From 42d6f6c579026a314d80afdd174c26d2edba34ac Mon Sep 17 00:00:00 2001 From: Nuno Ferreira Date: Sat, 21 Nov 1998 23:35:51 +0000 Subject: [PATCH] More i18n work. * More i18n work. --- ChangeLog | 5 +++ capplets/theme-switcher/gui.c | 13 +++---- capplets/theme-switcher/gui.c-6060 | 13 +++---- po/POTFILES.in | 4 +++ po/pt.po | 56 +++++++++++++++++++++++++++--- 5 files changed, 74 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe968393f..8cf67e59e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 1998-11-21 Nuno Ferreira + * capplets/screensaver-properties/callbacks.c: Include . + + * capplets/theme-switcher/gui.c: Include . Mark strings + for translation. + * capplets/sound-properties/sound-properties.c: Mark strings for translation. (main): Initialize gettext. diff --git a/capplets/theme-switcher/gui.c b/capplets/theme-switcher/gui.c index 5fa2a6cbe..a25e2b2d0 100644 --- a/capplets/theme-switcher/gui.c +++ b/capplets/theme-switcher/gui.c @@ -1,3 +1,4 @@ +#include #include "da.h" #include "capplet-widget.h" #include @@ -34,7 +35,7 @@ make_main(void) box = gtk_vbox_new(FALSE, GNOME_PAD); hbox = gtk_hbox_new(TRUE, GNOME_PAD); - frame = gtk_frame_new ("Available Themes"); + frame = gtk_frame_new (_("Available Themes")); vbox = gtk_hbox_new(FALSE, 0); gtk_container_border_width (GTK_CONTAINER (vbox), GNOME_PAD_SMALL); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); @@ -44,7 +45,7 @@ make_main(void) gtk_list_set_selection_mode(GTK_LIST(l2), GTK_SELECTION_SINGLE); hbxo = gtk_vbox_new (FALSE, GNOME_PAD_SMALL); gtk_container_border_width (GTK_CONTAINER (hbxo), GNOME_PAD_SMALL); - label = gtk_label_new ("Auto\nPreview"); + label = gtk_label_new (_("Auto\nPreview")); gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); auto_preview = gtk_check_button_new (); @@ -52,10 +53,10 @@ make_main(void) gtk_signal_connect (GTK_OBJECT (auto_preview), "toggled", GTK_SIGNAL_FUNC (auto_callback), NULL); gtk_container_add (GTK_CONTAINER (auto_preview), label); gtk_box_pack_start (GTK_BOX (hbxo), auto_preview, FALSE, FALSE, 0); - button = gtk_button_new_with_label ("Preview"); + button = gtk_button_new_with_label (_("Preview")); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (click_preview), NULL); gtk_box_pack_start (GTK_BOX (hbxo), button, FALSE, FALSE, 0); - button = gtk_button_new_with_label ("Install"); + button = gtk_button_new_with_label (_("Install")); /* FIXME: this needs ot actually do something. */ gtk_box_pack_start (GTK_BOX (hbxo), button, FALSE, FALSE, 0); @@ -69,7 +70,7 @@ make_main(void) gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbxo, FALSE, FALSE, 0); - frame = gtk_frame_new ("Theme Information"); + frame = gtk_frame_new (_("Theme Information")); evbox = gtk_viewport_new(NULL, NULL); gtk_container_add (GTK_CONTAINER (frame), evbox); gtk_container_border_width (GTK_CONTAINER (evbox), GNOME_PAD_SMALL); @@ -81,7 +82,7 @@ make_main(void) hbox = gtk_hbox_new (FALSE, GNOME_PAD_SMALL); gtk_container_border_width (GTK_CONTAINER (hbox), GNOME_PAD_SMALL); - frame = gtk_frame_new ("Preview"); + frame = gtk_frame_new (_("Preview")); gtk_box_pack_start(GTK_BOX(box), frame, TRUE, TRUE, 0); gtk_container_add (GTK_CONTAINER (frame), hbox); /* in a gratuituous reuse of variable names... */ diff --git a/capplets/theme-switcher/gui.c-6060 b/capplets/theme-switcher/gui.c-6060 index 5fa2a6cbe..a25e2b2d0 100644 --- a/capplets/theme-switcher/gui.c-6060 +++ b/capplets/theme-switcher/gui.c-6060 @@ -1,3 +1,4 @@ +#include #include "da.h" #include "capplet-widget.h" #include @@ -34,7 +35,7 @@ make_main(void) box = gtk_vbox_new(FALSE, GNOME_PAD); hbox = gtk_hbox_new(TRUE, GNOME_PAD); - frame = gtk_frame_new ("Available Themes"); + frame = gtk_frame_new (_("Available Themes")); vbox = gtk_hbox_new(FALSE, 0); gtk_container_border_width (GTK_CONTAINER (vbox), GNOME_PAD_SMALL); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); @@ -44,7 +45,7 @@ make_main(void) gtk_list_set_selection_mode(GTK_LIST(l2), GTK_SELECTION_SINGLE); hbxo = gtk_vbox_new (FALSE, GNOME_PAD_SMALL); gtk_container_border_width (GTK_CONTAINER (hbxo), GNOME_PAD_SMALL); - label = gtk_label_new ("Auto\nPreview"); + label = gtk_label_new (_("Auto\nPreview")); gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); auto_preview = gtk_check_button_new (); @@ -52,10 +53,10 @@ make_main(void) gtk_signal_connect (GTK_OBJECT (auto_preview), "toggled", GTK_SIGNAL_FUNC (auto_callback), NULL); gtk_container_add (GTK_CONTAINER (auto_preview), label); gtk_box_pack_start (GTK_BOX (hbxo), auto_preview, FALSE, FALSE, 0); - button = gtk_button_new_with_label ("Preview"); + button = gtk_button_new_with_label (_("Preview")); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (click_preview), NULL); gtk_box_pack_start (GTK_BOX (hbxo), button, FALSE, FALSE, 0); - button = gtk_button_new_with_label ("Install"); + button = gtk_button_new_with_label (_("Install")); /* FIXME: this needs ot actually do something. */ gtk_box_pack_start (GTK_BOX (hbxo), button, FALSE, FALSE, 0); @@ -69,7 +70,7 @@ make_main(void) gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbxo, FALSE, FALSE, 0); - frame = gtk_frame_new ("Theme Information"); + frame = gtk_frame_new (_("Theme Information")); evbox = gtk_viewport_new(NULL, NULL); gtk_container_add (GTK_CONTAINER (frame), evbox); gtk_container_border_width (GTK_CONTAINER (evbox), GNOME_PAD_SMALL); @@ -81,7 +82,7 @@ make_main(void) hbox = gtk_hbox_new (FALSE, GNOME_PAD_SMALL); gtk_container_border_width (GTK_CONTAINER (hbox), GNOME_PAD_SMALL); - frame = gtk_frame_new ("Preview"); + frame = gtk_frame_new (_("Preview")); gtk_box_pack_start(GTK_BOX(box), frame, TRUE, TRUE, 0); gtk_container_add (GTK_CONTAINER (frame), hbox); /* in a gratuituous reuse of variable names... */ diff --git a/po/POTFILES.in b/po/POTFILES.in index 43595e503..5914b9eb3 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -100,3 +100,7 @@ control-center/capplet-widget-libs.c capplets/mouse-properties/mouse-properties.c capplets/keyboard-properties/keyboard-properties.c capplets/sound-properties/sound-properties.c +capplets/theme-switcher/gui.c +capplets/screensaver-properties/callbacks.c +capplets/screensaver-properties/screensaver-dialog.c +capplets/screensaver-properties/screensaver-properties-capplet.c diff --git a/po/pt.po b/po/pt.po index 7fe85b0d2..f897a74e6 100644 --- a/po/pt.po +++ b/po/pt.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: gnome-core 0.30\n" -"POT-Creation-Date: 1998-11-21 22:27+0000\n" -"PO-Revision-Date: 1998-11-21 22:30+00:00\n" +"POT-Creation-Date: 1998-11-21 23:17+0000\n" +"PO-Revision-Date: 1998-11-21 23:29+00:00\n" "Last-Translator: Nuno Ferreira \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" @@ -1278,15 +1278,24 @@ msgstr "Grande" msgid "Small" msgstr "Pequena" -#: capplets/screensaver-properties/screensaver-dialog.c:50 +#: capplets/screensaver-properties/screensaver-dialog.c:25 +#: capplets/theme-switcher/gui.c:56 capplets/theme-switcher/gui.c:85 +msgid "Preview" +msgstr "Prever" + +#: capplets/screensaver-properties/screensaver-dialog.c:46 +msgid "About:" +msgstr "Acerca:" + +#: capplets/screensaver-properties/screensaver-dialog.c:51 msgid "Author:" msgstr "Autor:" -#: capplets/screensaver-properties/screensaver-dialog.c:60 +#: capplets/screensaver-properties/screensaver-dialog.c:61 msgid "Author: UNKNOWN" msgstr "Autor: DESCONHECIDO" -#: capplets/screensaver-properties/screensaver-dialog.c:76 +#: capplets/screensaver-properties/screensaver-dialog.c:77 #: desktop-properties/property-screensaver.cc:146 msgid "Settings" msgstr "Parâmetros" @@ -1295,6 +1304,7 @@ msgstr "Par msgid "Screen Saver" msgstr "Protecção de ecrã" +#: capplets/screensaver-properties/callbacks.c:382 #: capplets/screensaver-properties/screensaver-properties-capplet.c:59 msgid "Settings..." msgstr "Parâmetros..." @@ -1340,6 +1350,10 @@ msgstr "Desligar monitor" msgid " minutes after screen saver has started." msgstr " minutos depois da protecção de ecrã ter arrancado." +#: capplets/screensaver-properties/screensaver-properties-capplet.c:151 +msgid "Screen Saver Demo" +msgstr "Demo da Protecção de ecrã" + #: control-center/callbacks.c:69 msgid "Desktop Manager" msgstr "Gestor ambiente de trabalho" @@ -3171,3 +3185,35 @@ msgstr "Seleccione ficheiro de som" #: capplets/sound-properties/sound-properties.c:189 msgid "Sound Events" msgstr "Eventos de Som" + +#: capplets/theme-switcher/gui.c:38 +msgid "Available Themes" +msgstr "Temas disponíveis" + +#: capplets/theme-switcher/gui.c:48 +msgid "" +"Auto\n" +"Preview" +msgstr "" +"Auto\n" +"Prever" + +#: capplets/theme-switcher/gui.c:59 +msgid "Install" +msgstr "Instalar" + +#: capplets/theme-switcher/gui.c:73 +msgid "Theme Information" +msgstr "Informação do Tema" + +#: capplets/screensaver-properties/callbacks.c:86 +msgid "Require Password" +msgstr "Pedir palavra-passe" + +#: capplets/screensaver-properties/callbacks.c:138 +msgid "Use power management." +msgstr "Usar gestão de energia." + +#: capplets/screensaver-properties/callbacks.c:394 +msgid " Settings" +msgstr " Parâmetros"