summaryrefslogtreecommitdiff
path: root/src/screen/screen_setting.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen/screen_setting.c')
-rw-r--r--src/screen/screen_setting.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/screen/screen_setting.c b/src/screen/screen_setting.c
index 1f77d2a..46ea84a 100644
--- a/src/screen/screen_setting.c
+++ b/src/screen/screen_setting.c
@@ -223,15 +223,15 @@ static void initSettingFile()
if( configFile == NULL )
{
- fprintf(stderr, "Don't load %s\n", path);
- fprintf(stderr, "I create %s\n", path);
+ fprintf(stderr, _("I am unable to load: \"%s\" !\n"), path);
+ fprintf(stderr, _("Creating: \"%s\"\n"), path);
configFile = newTextFile(path);
}
if( configFile == NULL )
{
- fprintf(stderr, "Don't create %s\n", path);
+ fprintf(stderr, _("I was unable to create: \"%s\" !\n"), path);
return;
}
@@ -291,8 +291,7 @@ static void saveAndDestroyConfigFile()
{
if( configFile == NULL )
{
- fprintf(stderr, "i can't save configure, "
- "because config file not created !\n");
+ fprintf(stderr, _("I am unable to save configure file, because config file was not initialised!\n"));
return;
}
@@ -336,14 +335,14 @@ void initScreenSetting()
image = getImage(IMAGE_GROUP_BASE, "screen_main");
image_backgorund = newWidgetImage(0, 0, image);
- button_back = newWidgetButton(getMyText("BACK"), WINDOW_SIZE_X - 200, WINDOW_SIZE_Y - 100, eventWidget);
- button_keys = newWidgetButton(getMyText("CONTROLS"), WINDOW_SIZE_X - 200, button_back->y - WIDGET_BUTTON_HEIGHT - 10, eventWidget);
+ button_back = newWidgetButton(_("back"), WINDOW_SIZE_X - 200, WINDOW_SIZE_Y - 100, eventWidget);
+ button_keys = newWidgetButton(_("controls"), WINDOW_SIZE_X - 200, button_back->y - WIDGET_BUTTON_HEIGHT - 10, eventWidget);
#ifndef NO_SOUND
- label_music = newWidgetLabel(getMyText("MUSIC"), 100, WINDOW_SIZE_Y-85, WIDGET_LABEL_LEFT);
+ label_music = newWidgetLabel(_("Music:"), 100, WINDOW_SIZE_Y-85, WIDGET_LABEL_LEFT);
check_music = newWidgetCheck(label_music->x + label_music->w + 10,
WINDOW_SIZE_Y-80, isMusicActive() , eventWidget);
- label_sound = newWidgetLabel(getMyText("SOUND"), check_music->x + WIDGET_CHECK_WIDTH + 10,
+ label_sound = newWidgetLabel(_("Sound:"), check_music->x + WIDGET_CHECK_WIDTH + 10,
WINDOW_SIZE_Y-85, WIDGET_LABEL_LEFT);
check_sound = newWidgetCheck(label_sound->x + label_sound->w + 10,
WINDOW_SIZE_Y-80, isSoundActive() , eventWidget);
@@ -354,9 +353,9 @@ void initScreenSetting()
check_ai = newWidgetCheck(label_ai->x + label_ai->w + 10, WINDOW_SIZE_Y-80, FALSE, eventWidget);
- label_count_round = newWidgetLabel(getMyText("COUNT_ROUND"), 100, WINDOW_SIZE_Y-200, WIDGET_LABEL_LEFT);
- label_name_player1 = newWidgetLabel(getMyText("NAME_PLAYER1"), 100, WINDOW_SIZE_Y-160, WIDGET_LABEL_LEFT);
- label_name_player2 = newWidgetLabel(getMyText("NAME_PLAYER2"), 100, WINDOW_SIZE_Y-120, WIDGET_LABEL_LEFT);
+ label_count_round = newWidgetLabel(_("No. of rounds:"), 100, WINDOW_SIZE_Y-200, WIDGET_LABEL_LEFT);
+ label_name_player1 = newWidgetLabel(_("Player 1:"), 100, WINDOW_SIZE_Y-160, WIDGET_LABEL_LEFT);
+ label_name_player2 = newWidgetLabel(_("Player 2:"), 100, WINDOW_SIZE_Y-120, WIDGET_LABEL_LEFT);
textfield_count_cound = newWidgetTextfield(
getParamElse("--count", "15"),