[passepartout] improved the main window translatability
- From: Sven Herzberg <herzi src gnome org>
- To: svn-commits-list gnome org
- Subject: [passepartout] improved the main window translatability
- Date: Sat, 11 Apr 2009 10:21:51 -0400 (EDT)
commit 92da18452df2d198ca3a77137823e63d2c1337b6
Author: Sven Herzberg <herzi src gnome org>
Date: Wed Apr 8 19:25:16 2009 +0000
improved the main window translatability
* po/POTFILES.in: new translatable files
* po/de.po: updated German translation
* src/pptout/window.cc,
* src7pptout/windowmenus.cc: added more translatable strings
git-svn-id: http://svn.gnome.org/svn/passepartout/trunk 1534 910bfebc-b532-0410-a802-fb3981afa09c
---
po/POTFILES.in | 2 +
po/de.po | 257 ++++++++++++++++++++++++++++++++++++++++++++-
src/pptout/window.cc | 20 ++--
src/pptout/windowmenus.cc | 90 ++++++++--------
4 files changed, 313 insertions(+), 56 deletions(-)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index f3c54ac..a2e2772 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,2 +1,4 @@
passepartout.desktop.in
src/pptout/main.cc
+src/pptout/window.cc
+src/pptout/windowmenus.cc
diff --git a/po/de.po b/po/de.po
index c274b35..1f2221d 100644
--- a/po/de.po
+++ b/po/de.po
@@ -9,14 +9,22 @@ msgid ""
msgstr ""
"Project-Id-Version: passepartout 0.7.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-04-08 15:26+0200\n"
-"PO-Revision-Date: 2009-04-08 15:31+0200\n"
+"POT-Creation-Date: 2009-04-08 16:50+0200\n"
+"PO-Revision-Date: 2009-04-08 16:55+0200\n"
"Last-Translator: Sven Herzberg <herzi gnome-de org>\n"
"Language-Team: German <gnome-de gnome org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit"
+#: ../passepartout.desktop.in.h:1
+msgid "Desktop publishing application"
+msgstr "Desktop-Publishing Anwendung (DTP)"
+
+#: ../passepartout.desktop.in.h:2 ../src/pptout/window.cc:191
+msgid "Passepartout"
+msgstr "Passepartout"
+
#: ../src/pptout/main.cc:58
msgid "Show version number"
msgstr "Zeige die verwendete Versionsnummer an"
@@ -35,5 +43,248 @@ msgstr "Zeige diesen Hilfetext"
#: ../src/pptout/main.cc:93
msgid "Usage: passepartout [options] [files...]"
-msgstr "Aufruf: passepartout [Optionen] [Dateien...]"
+msgstr "Aufruf: passepartout [Optionen] [Dateienâ?¦]"
+
+#: ../src/pptout/window.cc:60
+msgid "Open"
+msgstr "Ã?ffnen"
+
+#: ../src/pptout/window.cc:61
+msgid "Save As"
+msgstr "Speichern"
+
+#: ../src/pptout/window.cc:67
+msgid "Passepartout Document files (.pp)"
+msgstr "Passepartout-Dokumente (.pp)"
+
+#: ../src/pptout/window.cc:70
+msgid "All files"
+msgstr "Alle Dateien"
+
+#: ../src/pptout/window.cc:87
+msgid "Import Image"
+msgstr "Bild importieren"
+
+#: ../src/pptout/window.cc:134
+msgid "P_age:"
+msgstr "_Seite:"
+
+#: ../src/pptout/window.cc:140
+msgid "_Zoom:"
+msgstr "_Zoom:"
+
+#. / *** file menu ***
+#: ../src/pptout/windowmenus.cc:143
+msgid "_File"
+msgstr "_Datei"
+
+#: ../src/pptout/windowmenus.cc:145
+msgid "_New ..."
+msgstr "_Neuâ?¦"
+
+#: ../src/pptout/windowmenus.cc:146
+msgid "Create a new document"
+msgstr "Ein neues Dokument erstellen"
+
+#: ../src/pptout/windowmenus.cc:149
+msgid "New Vi_ew"
+msgstr "Neue _Ansicht"
+
+#: ../src/pptout/windowmenus.cc:150
+msgid "Create a new window for the current document"
+msgstr ""
+
+#: ../src/pptout/windowmenus.cc:154
+msgid "_Open ..."
+msgstr "_Ã?ffnenâ?¦"
+
+#: ../src/pptout/windowmenus.cc:155
+msgid "Open a document"
+msgstr "Ein Dokument öffnen"
+
+#: ../src/pptout/windowmenus.cc:158
+msgid "_Save ..."
+msgstr "_Speichernâ?¦"
+
+#: ../src/pptout/windowmenus.cc:159
+msgid "Save document"
+msgstr "Das Dokument speichern"
+
+#: ../src/pptout/windowmenus.cc:166
+msgid "_Print ..."
+msgstr "_Druckenâ?¦"
+
+#: ../src/pptout/windowmenus.cc:167
+msgid "Print document"
+msgstr "Das Dokument drucken"
+
+#: ../src/pptout/windowmenus.cc:172
+msgid "Print Pre_view ..."
+msgstr "Druck_vorschauâ?¦"
+
+#: ../src/pptout/windowmenus.cc:173
+msgid "Print document to external viewer"
+msgstr ""
+
+#: ../src/pptout/windowmenus.cc:177
+msgid "P_roperties ..."
+msgstr "_Eigenschaftenâ?¦"
+
+#: ../src/pptout/windowmenus.cc:178
+msgid "Document properties"
+msgstr "Dokument-Einstellungen"
+
+#. / *** edit menu ***
+#: ../src/pptout/windowmenus.cc:190
+msgid "_Edit"
+msgstr "_Bearbeiten"
+
+#: ../src/pptout/windowmenus.cc:205
+msgid "Select _All"
+msgstr "_Alles auswählen"
+
+#. select
+#: ../src/pptout/windowmenus.cc:210
+msgid "Dese_lect All"
+msgstr "Alles a_bwählen"
+
+#. deselect
+#. *** arrange submenu ***
+#: ../src/pptout/windowmenus.cc:217
+msgid "A_rrange"
+msgstr "_Ausrichten"
+
+#: ../src/pptout/windowmenus.cc:219
+msgid "_Group"
+msgstr "_Gruppieren"
+
+#: ../src/pptout/windowmenus.cc:223
+msgid "_Ungroup"
+msgstr "Grupp_ierung aufheben"
+
+#: ../src/pptout/windowmenus.cc:228
+msgid "Move to _top"
+msgstr "Nach ganz o_ben anheben"
+
+#: ../src/pptout/windowmenus.cc:228
+msgid "Move to top"
+msgstr ""
+
+#: ../src/pptout/windowmenus.cc:235
+msgid "Move _up"
+msgstr "_Anheben"
+
+#: ../src/pptout/windowmenus.cc:235
+msgid "Move up"
+msgstr ""
+
+#: ../src/pptout/windowmenus.cc:241
+msgid "Move _down"
+msgstr "Ab_senken"
+
+#: ../src/pptout/windowmenus.cc:241
+msgid "Move down"
+msgstr ""
+
+#: ../src/pptout/windowmenus.cc:247
+msgid "Move to _bottom"
+msgstr "Nach ganz u_nten absenken"
+
+#: ../src/pptout/windowmenus.cc:247
+msgid "Move to bottom"
+msgstr ""
+
+#: ../src/pptout/windowmenus.cc:253
+msgid "Insert Te_xt Frame ..."
+msgstr "_Textrahmen einfügen�"
+
+#: ../src/pptout/windowmenus.cc:254
+msgid "Insert text frame"
+msgstr ""
+
+#: ../src/pptout/windowmenus.cc:258
+msgid "Insert _Image ..."
+msgstr "_Bild einfügen�"
+
+#: ../src/pptout/windowmenus.cc:258
+msgid "Insert image"
+msgstr "Bild einfügen"
+
+#. *** page menu ***
+#: ../src/pptout/windowmenus.cc:267
+msgid "_Page"
+msgstr "_Seite"
+
+#: ../src/pptout/windowmenus.cc:269
+msgid "_Delete"
+msgstr "_Löschen"
+
+#: ../src/pptout/windowmenus.cc:272
+msgid "Insert _Before ..."
+msgstr "Da_vor einfügen�"
+
+#. not after
+#. we only need one of these when we don't have any pages
+#: ../src/pptout/windowmenus.cc:277
+msgid "Insert _After ..."
+msgstr "Da_hinter einfügen�"
+
+#. after
+#. *** view menu ***
+#: ../src/pptout/windowmenus.cc:283
+msgid "_View"
+msgstr "_Ansicht"
+
+#: ../src/pptout/windowmenus.cc:285
+msgid "_Toolbar"
+msgstr "_Werkzeugleiste"
+
+#: ../src/pptout/windowmenus.cc:290
+msgid "_Full screen"
+msgstr "_Vollbild"
+
+#: ../src/pptout/windowmenus.cc:307
+msgid "_Properties"
+msgstr "_Eigenschaften"
+
+#: ../src/pptout/windowmenus.cc:307
+msgid "Show Properties window"
+msgstr ""
+
+#: ../src/pptout/windowmenus.cc:312
+msgid "_Streams"
+msgstr "_Streams"
+
+#: ../src/pptout/windowmenus.cc:312
+msgid "Show Streams window"
+msgstr ""
+
+#: ../src/pptout/windowmenus.cc:319
+msgid "Snap to _grid"
+msgstr "_Einrasten"
+
+#: ../src/pptout/windowmenus.cc:319
+msgid "Toggle snap to grid"
+msgstr ""
+
+#. *** help menu ***
+#: ../src/pptout/windowmenus.cc:325
+msgid "_Help"
+msgstr "_Hilfe"
+
+#: ../src/pptout/windowmenus.cc:327
+msgid "_User's guide"
+msgstr "_Handbuch"
+
+#: ../src/pptout/windowmenus.cc:331
+msgid "_About"
+msgstr "_Info"
+
+#: ../src/pptout/windowmenus.cc:334
+msgid "_Homepage"
+msgstr "_Webseite"
+
+#: ../src/pptout/windowmenus.cc:337
+msgid "_Inspiration"
+msgstr "I_nspiration"
diff --git a/src/pptout/window.cc b/src/pptout/window.cc
index 23850d3..f4de87b 100644
--- a/src/pptout/window.cc
+++ b/src/pptout/window.cc
@@ -24,6 +24,8 @@
#include "streamdialog.h"
#include "pagesel.h"
+#include <glib/gi18n.h>
+
namespace{
typedef std::set<FrameWindow*> Windows;
Windows windows; // a list of all windows
@@ -57,17 +59,17 @@ void FrameWindow::constructor_common() {
signal_key_press_event().connect
(sigc::mem_fun(document_view, &DocumentView::on_key_press_event));
- open_dialog.reset(new Filesel(*this, "Open"));
- save_dialog.reset(new Filesel(*this, "Save As",
+ open_dialog.reset(new Filesel(*this, _("Open")));
+ save_dialog.reset(new Filesel(*this, _("Save As"),
Gtk::FILE_CHOOSER_ACTION_SAVE));
// file filters
{
Gtk::FileFilter pfilter;
- pfilter.set_name("Passepartout Document files");
+ pfilter.set_name(_("Passepartout Document files (.pp)"));
pfilter.add_pattern("*.pp");
Gtk::FileFilter afilter;
- afilter.set_name("All files");
+ afilter.set_name(_("All files"));
afilter.add_pattern("*");
open_dialog->add_filter(pfilter);
save_dialog->add_filter(pfilter);
@@ -84,7 +86,7 @@ void FrameWindow::constructor_common() {
try { factor = length_units.get_factor(unit); }
catch(unknown_unit_error&) { unit = Glib::ustring(); }
import_dialog.reset
- (new ImageFilesel(*this, "Import Image",
+ (new ImageFilesel(*this, _("Import Image"),
config.DefaultResolution.values.front(),
unit, factor));
}
@@ -131,13 +133,13 @@ void FrameWindow::constructor_common() {
cafe_opera->property_spacing() = double_space;
cafe_opera->pack_end(*pagesel, Gtk::PACK_SHRINK, 0);
- Gtk::Label *page_label = manage(new Gtk::Label("P_age:", true));
+ Gtk::Label *page_label = manage(new Gtk::Label(_("P_age:"), true));
page_label->set_mnemonic_widget(pagesel->get_menu());
cafe_opera->pack_end(*page_label,
Gtk::PACK_SHRINK, 0);
cafe_opera->pack_end(zoom_factor.get_widget(), Gtk::PACK_SHRINK, 0);
- Gtk::Label *zoom_label = manage(new Gtk::Label("_Zoom:", true));
+ Gtk::Label *zoom_label = manage(new Gtk::Label(_("_Zoom:"), true));
zoom_label->set_mnemonic_widget(zoom_factor.get_widget());
cafe_opera->pack_end(*zoom_label, Gtk::PACK_SHRINK, 0);
@@ -186,9 +188,9 @@ FrameWindow::~FrameWindow() {
void FrameWindow::set_filename(const Glib::ustring &filename) {
if(!filename.empty()) {
- set_title(basename(filename) + " - Passepartout");
+ set_title(Glib::ustring::compose("%1 - Passepartout", basename(filename)));
} else
- set_title("Passepartout");
+ set_title(_("Passepartout"));
}
void FrameWindow::zoom_factor_changed_action(float factor) {
diff --git a/src/pptout/windowmenus.cc b/src/pptout/windowmenus.cc
index ce988f0..9373d6d 100644
--- a/src/pptout/windowmenus.cc
+++ b/src/pptout/windowmenus.cc
@@ -21,6 +21,8 @@
#include "templatepagedialog.h"
#include "clipboard.h"
+#include <glib/gi18n.h>
+
namespace {
template<class P> P nonull(P p) {
if(!p)
@@ -138,42 +140,42 @@ void FrameWindow::create_menus() {
/// *** file menu ***
- main_group->add(Action::create("FileMenu", "_File"));
+ main_group->add(Action::create("FileMenu", _("_File")));
- main_group->add(Action::create("FileNew", Stock::NEW, "_New ...",
- "Create a new document"),
+ main_group->add(Action::create("FileNew", Stock::NEW, _("_New ..."),
+ _("Create a new document")),
bind(sigc::ptr_fun(&new_document), &document_view));
- doc_group->add(Action::create("FileNewView", "New Vi_ew",
- "Create a new window "
- "for the current document"),
+ doc_group->add(Action::create("FileNewView", _("New Vi_ew"),
+ _("Create a new window "
+ "for the current document")),
bind(sigc::ptr_fun(&duplicate_view), this));
- main_group->add(Action::create("FileOpen", Stock::OPEN, "_Open ...",
- "Open a document"),
+ main_group->add(Action::create("FileOpen", Stock::OPEN, _("_Open ..."),
+ _("Open a document")),
mem_fun(*open_dialog, &Filesel::show_all));
- doc_group->add(Action::create("FileSave", Stock::SAVE, "_Save ...",
- "Save document"),
+ doc_group->add(Action::create("FileSave", Stock::SAVE, _("_Save ..."),
+ _("Save document")),
mem_fun(*this, &FrameWindow::save));
doc_group->add(Action::create("FileSaveAs", Stock::SAVE_AS),
AccelKey("<shift><control>S"),
mem_fun(*save_dialog, &Filesel::show_all));
- page_group->add(Action::create("FilePrint", Stock::PRINT, "_Print ...",
- "Print document"),
+ page_group->add(Action::create("FilePrint", Stock::PRINT, _("_Print ..."),
+ _("Print document")),
AccelKey("<control>P"),
mem_fun(*print_dialog, &PrintDialog::show_it));
page_group->add(Action::create("FilePrintPreview", Stock::PRINT_PREVIEW,
- "Print Pre_view ...",
- "Print document to external viewer"),
+ _("Print Pre_view ..."),
+ _("Print document to external viewer")),
AccelKey("<shift><control>P"),
bind(sigc::ptr_fun(&print_to_viewer), &document_view));
- doc_group->add(Action::create("FileDocProps", "P_roperties ...",
- "Document properties"),
+ doc_group->add(Action::create("FileDocProps", _("P_roperties ..."),
+ _("Document properties")),
bind(sigc::ptr_fun(&show_doc_props_dialog), &document_view));
main_group->add(Action::create("FileClose", Stock::CLOSE),
@@ -185,7 +187,7 @@ void FrameWindow::create_menus() {
/// *** edit menu ***
- main_group->add(Action::create("EditMenu", "_Edit"));
+ main_group->add(Action::create("EditMenu", _("_Edit")));
selection_group->add(Action::create("EditCopy", Stock::COPY),
bind(sigc::ptr_fun(&copi), &document_view));
@@ -200,60 +202,60 @@ void FrameWindow::create_menus() {
AccelKey("Delete"),
bind(sigc::ptr_fun(&delete_selected), &document_view));
- page_group->add(Action::create("EditSelectAll", "Select _All"),
+ page_group->add(Action::create("EditSelectAll", _("Select _All")),
AccelKey("<control>A"),
bind(sigc::ptr_fun(&select_all_frames), &document_view,
true /* select */));
- page_group->add(Action::create("EditUnselectAll", "Dese_lect All"),
+ page_group->add(Action::create("EditUnselectAll", _("Dese_lect All")),
AccelKey("<shift><control>A"),
bind(sigc::ptr_fun(&select_all_frames), &document_view,
false /* deselect */));
// *** arrange submenu ***
- main_group->add(Action::create("ArrangeMenu", "A_rrange"));
+ main_group->add(Action::create("ArrangeMenu", _("A_rrange")));
- selection_group->add(Action::create("ArrangeGroup", "_Group"),
+ selection_group->add(Action::create("ArrangeGroup", _("_Group")),
AccelKey("<control>G"),
bind(sigc::ptr_fun(group_selected), &document_view));
- selection_group->add(Action::create("ArrangeUngroup", "_Ungroup"),
+ selection_group->add(Action::create("ArrangeUngroup", _("_Ungroup")),
AccelKey("<control>U"),
bind(sigc::ptr_fun(ungroup_selected), &document_view));
selection_group->add(Action::create("ArrangeTop", Stock::GOTO_TOP,
- "Move to _top", "Move to top"),
+ _("Move to _top"), _("Move to top")),
AccelKey("<control>Home"),
bind(sigc::ptr_fun(&rearrange_selected),
&document_view, TOP));
selection_group->add(Action::create("ArrangeUp", Stock::GO_UP,
- "Move _up", "Move up"),
+ _("Move _up"), _("Move up")),
AccelKey("<control>Page_Up"),
bind(sigc::ptr_fun(&rearrange_selected),
&document_view, UP));
selection_group->add(Action::create("ArrangeDown", Stock::GO_DOWN,
- "Move _down", "Move down"),
+ _("Move _down"), _("Move down")),
AccelKey("<control>Page_Down"),
bind(sigc::ptr_fun(&rearrange_selected),
&document_view, DOWN));
selection_group->add(Action::create("ArrangeBottom", Stock::GOTO_BOTTOM,
- "Move to _bottom", "Move to bottom"),
+ _("Move to _bottom"), _("Move to bottom")),
AccelKey("<control>End"),
bind(sigc::ptr_fun(&rearrange_selected),
&document_view, DOWN));
page_group->add(Action::create("EditInsertText", StockID("newframe"),
- "Insert Te_xt Frame ...",
- "Insert text frame"),
+ _("Insert Te_xt Frame ..."),
+ _("Insert text frame")),
mem_fun(*text_frame_dialog, &TextFrameDialog::show_raise));
page_group->add(Action::create("EditInsertImage", StockID("moose"),
- "Insert _Image ...", "Insert image"),
+ _("Insert _Image ..."), _("Insert image")),
mem_fun(*import_dialog, &Filesel::show_all));
main_group->add(Action::create("EditPrefs", Stock::PREFERENCES),
@@ -262,30 +264,30 @@ void FrameWindow::create_menus() {
// *** page menu ***
- main_group->add(Action::create("PageMenu", "_Page"));
+ main_group->add(Action::create("PageMenu", _("_Page")));
- page_group->add(Action::create("PageDelete", "_Delete"),
+ page_group->add(Action::create("PageDelete", _("_Delete")),
mem_fun(document_view, &DocumentView::delete_page));
- doc_group->add(Action::create("PageInsertBefore", "Insert _Before ..."),
+ doc_group->add(Action::create("PageInsertBefore", _("Insert _Before ...")),
bind(sigc::ptr_fun(&insert_page),
this, &document_view, false /* not after */));
// we only need one of these when we don't have any pages
- page_group->add(Action::create("PageInsertAfter", "Insert _After ..."),
+ page_group->add(Action::create("PageInsertAfter", _("Insert _After ...")),
bind(sigc::ptr_fun(&insert_page),
this, &document_view, true /* after */));
// *** view menu ***
- main_group->add(Action::create("ViewMenu", "_View"));
+ main_group->add(Action::create("ViewMenu", _("_View")));
- main_group->add(ToggleAction::create("ViewToolbar", "_Toolbar", "",
+ main_group->add(ToggleAction::create("ViewToolbar", _("_Toolbar"), "",
true /* active */),
bind(sigc::ptr_fun(toggle_toolbar), uimanager));
{
Glib::RefPtr<ToggleAction> action =
- ToggleAction::create("ViewFullScreen", "_Full screen", "",
+ ToggleAction::create("ViewFullScreen", _("_Full screen"), "",
false /* not active */);
main_group->add(action, AccelKey("F11"),
bind(sigc::ptr_fun(toggle_fullscreen), action, this));
@@ -302,37 +304,37 @@ void FrameWindow::create_menus() {
bind(sigc::ptr_fun(&zoom), &zoom_factor, Stock::ZOOM_100));
doc_group->add(Action::create("ViewProps", Stock::PROPERTIES,
- "_Properties", "Show Properties window"),
+ _("_Properties"), _("Show Properties window")),
mem_fun(PropertiesDialog::instance(),
&PropertiesDialog::show_raise));
doc_group->add(Action::create("ViewStreams", StockID("streams"),
- "_Streams", "Show Streams window"),
+ _("_Streams"), _("Show Streams window")),
mem_fun(StreamDialog::instance(),
&StreamDialog::show_raise));
{
Glib::RefPtr<Gtk::ToggleAction> action =
ToggleAction::create("ViewSnapGrid", StockID("grid"),
- "Snap to _grid", "Toggle snap to grid");
+ _("Snap to _grid"), _("Toggle snap to grid"));
doc_group->add(action,
bind(sigc::ptr_fun(&toggle_grid), action, &document_view));
}
// *** help menu ***
- main_group->add(Action::create("HelpMenu", "_Help"));
+ main_group->add(Action::create("HelpMenu", _("_Help")));
- main_group->add(Action::create("HelpHelp", Stock::HELP,"_User's guide"),
+ main_group->add(Action::create("HelpHelp", Stock::HELP, _("_User's guide")),
AccelKey("F1"),
ptr_fun(&Programs::open_docs));
- main_group->add(Action::create("HelpAbout", "_About"),
+ main_group->add(Action::create("HelpAbout", _("_About")),
mem_fun(::AboutDialog::instance(), &::AboutDialog::show_all));
- main_group->add(Action::create("HelpHomepage", Stock::HOME, "_Homepage"),
+ main_group->add(Action::create("HelpHomepage", Stock::HOME, _("_Homepage")),
ptr_fun(&Programs::open_homepage));
- main_group->add(Action::create("HelpInspiration", "_Inspiration"),
+ main_group->add(Action::create("HelpInspiration", _("_Inspiration")),
mem_fun(Inspiration::instance(),
&Inspiration::show_all));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]