ChanSearchTitleText::ChanSearchTitleText(ChanSearchGUI *gui, int x, int y)
- : BC_CheckBox(x, y, &gui->title_text_enable, "titles")
+ : BC_CheckBox(x, y, &gui->title_text_enable, _("titles"))
{
this->gui = gui;
}
ChanSearchInfoText::ChanSearchInfoText(ChanSearchGUI *gui, int x, int y)
- : BC_CheckBox(x, y, &gui->info_text_enable, "info")
+ : BC_CheckBox(x, y, &gui->info_text_enable, _("info"))
{
this->gui = gui;
}
ChanSearchMatchCase::ChanSearchMatchCase(ChanSearchGUI *gui, int x, int y)
- : BC_CheckBox(x, y, &gui->match_case_enable, "match case")
+ : BC_CheckBox(x, y, &gui->match_case_enable, _("match case"))
{
this->gui = gui;
}
ChanSearchStart::ChanSearchStart(ChanSearchGUI *gui, int x, int y)
- : BC_GenericButton(x, y, "Search")
+ : BC_GenericButton(x, y, _("Search"))
{
this->gui = gui;
}
int padx = BC_Title::calculate_w(this, (char*)"X", MEDIUMFONT);
int x = padx/2, y = pady/4;
text_x = x; text_y = y;
- BC_Title *title = new BC_Title(text_x, text_y, "Text:", MEDIUMFONT, YELLOW);
+ BC_Title *title = new BC_Title(text_x, text_y, _("Text:"), MEDIUMFONT, YELLOW);
add_subwindow(title); x += title->get_w();
search_text = new ChanSearchText(this, x, y, get_w()-x-10);
add_subwindow(search_text);
search_list->show_window();
int clktip_x = list_x;
int clktip_y = list_y + list_h + 5;
- click_tip = new BC_Title(clktip_x, clktip_y, "dbl clk row to find title");
+ click_tip = new BC_Title(clktip_x, clktip_y, _("dbl clk row to find title"));
add_subwindow(click_tip);
set_icon(iwindow->mwindow->theme->get_image("record_icon"));
}
ChanSearchGUI::ChanSearchGUI(ChanSearch *cswindow)
- : BC_Window(PROGRAM_NAME ": ChanSearch",
+ : BC_Window(_(PROGRAM_NAME ": ChanSearch"),
cswindow->iwindow->gui->get_abs_cursor_x(1) - 500 / 2,
cswindow->iwindow->gui->get_abs_cursor_y(1) - 300 / 2,
500, 300, 400, 300)
search_columns[0] = 0;
search_columns[1] = 1;
search_columns[2] = 2;
- search_column_titles[0] = "Source";
- search_column_titles[1] = "Title";
- search_column_titles[2] = "Start time";
+ search_column_titles[0] = _("Source");
+ search_column_titles[1] = _("Title");
+ search_column_titles[2] = _("Start time");
search_column_widths[0] = 120;
search_column_widths[2] = 120;
search_column_widths[1] = get_w()-search_column_widths[0]-search_column_widths[2]-32;
search_list->update(search_items, &search_column_titles[0],
&search_column_widths[0], lengthof(search_items));
- sprintf(text, "%d found", n);
+ sprintf(text, _("%d found"), n);
results->update(text);
}
struct tm xtm; localtime_r(&xt,&xtm);
cp += sprintf(cp,"%02d:%02d",xtm.tm_hour, xtm.tm_min);
if( !xtm.tm_hour && !xtm.tm_min ) {
- sprintf(cp,"(%3.3s) ",&"sunmontuewedthufrisat"[xtm.tm_wday*3]);
+ sprintf(cp,_("(%3.3s) "),&_("sunmontuewedthufrisat")[xtm.tm_wday*3]);
}
}
: BC_CheckBox(x, y, value, gui->cron_caption)
{
this->gui = gui;
- set_tooltip("activate batch record when ok pressed");
+ set_tooltip(_("activate batch record when ok pressed"));
}
ChannelInfoCron::
: BC_CheckBox(x, y , value, gui->power_caption)
{
this->gui = gui;
- set_tooltip("poweroff system when batch record done");
+ set_tooltip(_("poweroff system when batch record done"));
}
ChannelInfoPowerOff::~ChannelInfoPowerOff()
ChannelInfoFind::ChannelInfoFind(ChannelInfoGUI *gui, int x, int y)
- : BC_GenericButton(x, y, "Find")
+ : BC_GenericButton(x, y, _("Find"))
{
this->gui = gui;
- set_tooltip("search event titles/info");
+ set_tooltip(_("search event titles/info"));
}
ChannelInfoFind::~ChannelInfoFind()
&etm.tm_hour, &etm.tm_min, &etm.tm_sec,
&k);
if( l != 6 ) {
- printf("bad scan time: %s\n",info);
+ printf(_("bad scan time: %s\n"),info);
continue;
}
char *title = (bp += k);
while( bp<cp && *bp!='\n' ) ++bp;
char *dp = bp; *bp++ = 0;
if( !*title ) {
- printf("bad title: %s\n",info);
+ printf(_("bad title: %s\n"),info);
continue;
}
char stm_wday[4]; memset(&stm_wday,0,sizeof(stm_wday));
l = sscanf(bp, "(%3s) %d/%d/%d", &stm_wday[0],
&stm.tm_year, &stm.tm_mon, &stm.tm_mday);
if( l != 4 ) {
- printf("bad scan date: %s\n",info);
+ printf(_("bad scan date: %s\n"),info);
continue;
}
while( bp<cp && *bp!='\n' ) ++bp;
time_t et = mktime(&etm);
if( et < st ) et += 24*3600;
if( et < st ) {
- printf("end before start: %s\n",info);
+ printf(_("end before start: %s\n"),info);
continue;
}
if( panel->st_org - et > 24*3600*2) {
- printf("end time early: %s\n",info);
+ printf(_("end time early: %s\n"),info);
continue;
}
if( st - panel->st_org > 24*3600*12 ) {
- printf("start time late: %s\n",info);
+ printf(_("start time late: %s\n"),info);
continue;
}
time_t st_min = (st - panel->st_org)/60;
time_t et_min = (et - panel->st_org)/60;
int dt = et_min - st_min;
if( dt <= 0 ) {
- printf("zero duration: %s\n",info);
+ printf(_("zero duration: %s\n"),info);
continue;
}
: BC_OKButton(x, y)
{
this->gui = gui;
- set_tooltip("end channel info, start record");
+ set_tooltip(_("end channel info, start record"));
}
ChannelInfoOK::~ChannelInfoOK()
ChannelInfoGUI::ChannelInfoGUI(ChannelInfo *iwindow,
int x, int y, int w, int h)
- : BC_Window(PROGRAM_NAME ": Channel Info", x, y, w, h, 600, 400,
+ : BC_Window(_(PROGRAM_NAME ": Channel Info"), x, y, w, h, 600, 400,
1, 0, 0 , -1, iwindow->mwindow->get_cwindow_display())
{
this->iwindow = iwindow;
if( done ) break;
if( record->Thread::running() ) {
char string[BCTEXTLEN];
- sprintf(string,"Recording in progress\n");
+ sprintf(string,_("Recording in progress\n"));
MainError::show_error(string);
continue;
}
VideoInConfig *vconfig_in = session->vconfig_in;
if( vconfig_in->driver != CAPTURE_DVB ) {
char string[BCTEXTLEN];
- sprintf(string,"capture driver not dvb\n");
+ sprintf(string,_("capture driver not dvb\n"));
MainError::show_error(string);
continue;
}
else {
close_vdevice();
char string[BCTEXTLEN];
- sprintf(string,"cannot open dvb video device\n");
+ sprintf(string,_("cannot open dvb video device\n"));
MainError::show_error(string);
}
}
}
ChannelScan::ChannelScan(MWindow *mwindow)
- : BC_MenuItem("Scan", "Shift-S", 'S')
+ : BC_MenuItem(_("Scan"), _("Shift-S"), 'S')
{
set_shift();
this->mwindow = mwindow;