if( !load_plugin_index(mwindow, index_path) ) return 1;
FILE *fp = fopen(index_path,"w");
if( !fp ) {
if( !load_plugin_index(mwindow, index_path) ) return 1;
FILE *fp = fopen(index_path,"w");
if( !fp ) {
- fprintf(stderr," MWindow::init_plugins: "
- "can't create plugin index: %s\n", index_path);
+ fprintf(stderr,_("MWindow::init_plugins: "
+ "can't create plugin index: %s\n"), index_path);
for(Track *track=tracks->first; track && !errmsg; track=track->next) {
if( track->data_type != TRACK_VIDEO ) continue;
if( !track->record ) continue;
for(Track *track=tracks->first; track && !errmsg; track=track->next) {
if( track->data_type != TRACK_VIDEO ) continue;
if( !track->record ) continue;
++count;
int64_t units_start = track->to_units(start,0);
int64_t units_end = track->to_units(end,0);
++count;
int64_t units_start = track->to_units(start,0);
int64_t units_end = track->to_units(end,0);
Indexable *indexable = edit1->get_source();
Asset *asset = (Asset *)indexable;
File *file = video_cache->check_out(asset, edl);
Indexable *indexable = edit1->get_source();
Asset *asset = (Asset *)indexable;
File *file = video_cache->check_out(asset, edl);
int64_t edit_length = units_end - units_start;
int64_t edit_start = units_start - edit1->startproject + edit1->startsource;
result = commercials->put_clip(file, edit1->channel,
track->from_units(edit_start), track->from_units(edit_length));
video_cache->check_in(asset);
int64_t edit_length = units_end - units_start;
int64_t edit_start = units_start - edit1->startproject + edit1->startsource;
result = commercials->put_clip(file, edit1->channel,
track->from_units(edit_start), track->from_units(edit_length));
video_cache->check_in(asset);
gui->show_message(string);
if(debug) printf("MWindow::load_filenames %d\n", __LINE__);
gui->show_message(string);
if(debug) printf("MWindow::load_filenames %d\n", __LINE__);
- sprintf(string, "%s's resolution is %dx%d.\nImages with odd dimensions may not decode properly.",
+ sprintf(string, _("%s's resolution is %dx%d.\nImages with odd dimensions may not decode properly."),
- sprintf(string, "%s's index was built for program number %d\n"
- "Playback preference is %d.\n Using program %d.",
+ sprintf(string, _("%s's index was built for program number %d\n"
+ "Playback preference is %d.\n Using program %d."),
new_asset->path, new_asset->program,
edl->session->program_no, new_asset->program);
MainError::show_error(string);
new_asset->path, new_asset->program,
edl->session->program_no, new_asset->program);
MainError::show_error(string);
- "The effect '%s' in file '%s' is not part of your installation of Cinelerra.\n"
- "The project won't be rendered as it was meant and Cinelerra might crash.\n",
- plugin->title,
+ _("The %s '%s' in file '%s' is not part of your installation of Cinelerra.\n"
+ "The project won't be rendered as it was meant and Cinelerra might crash.\n"),
+ "effect", plugin->title,
- "The transition '%s' in file '%s' is not part of your installation of Cinelerra.\n"
- "The project won't be rendered as it was meant and Cinelerra might crash.\n",
- edit->transition->title,
+ _("The %s '%s' in file '%s' is not part of your installation of Cinelerra.\n"
+ "The project won't be rendered as it was meant and Cinelerra might crash.\n"),
+ "transition", edit->transition->title,
"you probably need to be root, or:\n"
"as root, run: echo 0x7fffffff > /proc/sys/kernel/shmmax\n"
"before trying to start cinelerra.\n"
"you probably need to be root, or:\n"
"as root, run: echo 0x7fffffff > /proc/sys/kernel/shmmax\n"
"before trying to start cinelerra.\n"