add_subwindow(title);
int x1 = x + title->get_w() + pad, y1 = y;
load_path = new SWindowLoadPath(this, x1, y1, script_path);
add_subwindow(title);
int x1 = x + title->get_w() + pad, y1 = y;
load_path = new SWindowLoadPath(this, x1, y1, script_path);
y += max(load_path->get_h(), load_file->get_h()) + pad;
x1 = x + pad, y1 = y;
BC_Title *title1, *title2;
y += max(load_path->get_h(), load_file->get_h()) + pad;
x1 = x + pad, y1 = y;
BC_Title *title1, *title2;
int x2 = x1 + max(title1->get_w(), title2->get_w()) + pad;
add_subwindow(script_filesz = new BC_Title(x2, y1, "0", MEDIUMFONT, YELLOW));
add_subwindow(script_entries = new BC_Title(x2, y2, "0", MEDIUMFONT, YELLOW));
int x3 = x2 + max(script_entries->get_w()*8, script_filesz->get_w()*8) + pad;
int x2 = x1 + max(title1->get_w(), title2->get_w()) + pad;
add_subwindow(script_filesz = new BC_Title(x2, y1, "0", MEDIUMFONT, YELLOW));
add_subwindow(script_entries = new BC_Title(x2, y2, "0", MEDIUMFONT, YELLOW));
int x3 = x2 + max(script_entries->get_w()*8, script_filesz->get_w()*8) + pad;
- add_subwindow(title1 = new BC_Title(x3, y1, "Lines:"));
- add_subwindow(title2 = new BC_Title(x3, y2, "Texts:"));
+ add_subwindow(title1 = new BC_Title(x3, y1, _("Lines:")));
+ add_subwindow(title2 = new BC_Title(x3, y2, _("Texts:")));
int x4 = x3 + max(title1->get_w(), title2->get_w()) + pad;
add_subwindow(script_lines = new BC_Title(x4, y1, "0", MEDIUMFONT, YELLOW));
add_subwindow(script_texts = new BC_Title(x4, y2, "0", MEDIUMFONT, YELLOW));
int x4 = x3 + max(title1->get_w(), title2->get_w()) + pad;
add_subwindow(script_lines = new BC_Title(x4, y1, "0", MEDIUMFONT, YELLOW));
add_subwindow(script_texts = new BC_Title(x4, y2, "0", MEDIUMFONT, YELLOW));
}
SWindowGUI::SWindowGUI(SWindow *swindow, int x, int y, int w, int h)
}
SWindowGUI::SWindowGUI(SWindow *swindow, int x, int y, int w, int h)
- : BC_Window(PROGRAM_NAME ": Subtitle", x, y, w, h, 600, 500,
+ : BC_Window(_(PROGRAM_NAME ": Subtitle"), x, y, w, h, 600, 500,
1, 0, 0 , -1, swindow->mwindow->get_cwindow_display())
{
this->swindow = swindow;
1, 0, 0 , -1, swindow->mwindow->get_cwindow_display())
{
this->swindow = swindow;
- sprintf(string,"cannot open: \"%s\"\n%s",script_path,strerror(errno));
+ sprintf(string,_("cannot open: \"%s\"\n%s"),script_path,strerror(errno));