[ghex] Mark the GtkUIManager strings for translation



commit 1ba20395aa8db491fdf7a01521b702bdf278031d
Author: Kalev Lember <kalevlember gmail com>
Date:   Tue Aug 2 07:08:53 2011 +0300

    Mark the GtkUIManager strings for translation

 src/ghex-window.c |  132 ++++++++++++++++++++++++++--------------------------
 1 files changed, 66 insertions(+), 66 deletions(-)
---
diff --git a/src/ghex-window.c b/src/ghex-window.c
index 7397331..08acf82 100644
--- a/src/ghex-window.c
+++ b/src/ghex-window.c
@@ -322,118 +322,118 @@ ghex_window_delete_event(GtkWidget *widget, GdkEventAny *e)
 
 /* Normal items */
 static const GtkActionEntry action_entries [] = {
-    { "File", NULL, "_File" },
-    { "Edit", NULL, "_Edit" },
-    { "View", NULL, "_View" },
-    { "GroupDataAs", NULL, "_Group Data As" }, // View submenu
-    { "Windows", NULL, "_Windows" },
-    { "Help", NULL, "_Help" },
+    { "File", NULL, N_("_File") },
+    { "Edit", NULL, N_("_Edit") },
+    { "View", NULL, N_("_View") },
+    { "GroupDataAs", NULL, N_("_Group Data As") }, // View submenu
+    { "Windows", NULL, N_("_Windows") },
+    { "Help", NULL, N_("_Help") },
 
     /* File menu */
-    { "FileOpen", GTK_STOCK_OPEN, "_Open...", "<control>O",
-      "Open a file",
+    { "FileOpen", GTK_STOCK_OPEN, N_("_Open..."), "<control>O",
+      N_("Open a file"),
       G_CALLBACK (open_cb) },
-    { "FileSave", GTK_STOCK_SAVE, "_Save", "<control>S",
-      "Save the current file",
+    { "FileSave", GTK_STOCK_SAVE, N_("_Save"), "<control>S",
+      N_("Save the current file"),
       G_CALLBACK (save_cb) },
-    { "FileSaveAs", GTK_STOCK_SAVE_AS, "Save _As...", "<shift><control>S",
-      "Save the current file with a different name",
+    { "FileSaveAs", GTK_STOCK_SAVE_AS, N_("Save _As..."), "<shift><control>S",
+      N_("Save the current file with a different name"),
       G_CALLBACK (save_as_cb) },
-    { "FileExportToHTML", NULL, "Save As _HTML...", NULL,
-      "Export data to HTML source",
+    { "FileExportToHTML", NULL, N_("Save As _HTML..."), NULL,
+      N_("Export data to HTML source"),
       G_CALLBACK (export_html_cb) },
-    { "FileRevert", GTK_STOCK_REVERT_TO_SAVED, "_Revert", NULL,
-      "Revert to a saved version of the file",
+    { "FileRevert", GTK_STOCK_REVERT_TO_SAVED, N_("_Revert"), NULL,
+      N_("Revert to a saved version of the file"),
       G_CALLBACK (revert_cb) },
-    { "FilePrint", GTK_STOCK_PRINT, "_Print", "<control>P",
-      "Print the current file",
+    { "FilePrint", GTK_STOCK_PRINT, N_("_Print"), "<control>P",
+      N_("Print the current file"),
       G_CALLBACK (print_cb) },
-    { "FilePrintPreview", GTK_STOCK_PRINT_PREVIEW, "Print Previe_w...", "<shift><control>P",
-      "Preview printed data",
+    { "FilePrintPreview", GTK_STOCK_PRINT_PREVIEW, N_("Print Previe_w..."), "<shift><control>P",
+      N_("Preview printed data"),
       G_CALLBACK (print_preview_cb) },
-    { "FileClose", GTK_STOCK_CLOSE, "_Close", "<control>W",
-      "Close the current file",
+    { "FileClose", GTK_STOCK_CLOSE, N_("_Close"), "<control>W",
+      N_("Close the current file"),
       G_CALLBACK (close_cb) },
-    { "FileExit", GTK_STOCK_QUIT, "E_xit", "<control>Q",
-      "Exit the program",
+    { "FileExit", GTK_STOCK_QUIT, N_("E_xit"), "<control>Q",
+      N_("Exit the program"),
       G_CALLBACK (quit_app_cb) },
 
     /* Edit menu */
-    { "EditUndo", GTK_STOCK_UNDO, "_Undo", "<control>Z",
-      "Undo the last action",
+    { "EditUndo", GTK_STOCK_UNDO, N_("_Undo"), "<control>Z",
+      N_("Undo the last action"),
       G_CALLBACK (undo_cb) },
-    { "EditRedo", GTK_STOCK_REDO, "_Redo", "<shift><control>Z",
-      "Redo the undone action",
+    { "EditRedo", GTK_STOCK_REDO, N_("_Redo"), "<shift><control>Z",
+      N_("Redo the undone action"),
       G_CALLBACK (redo_cb) },
-    { "EditCopy", GTK_STOCK_COPY, "_Copy", "<control>C",
-      "Copy selection to clipboard",
+    { "EditCopy", GTK_STOCK_COPY, N_("_Copy"), "<control>C",
+      N_("Copy selection to clipboard"),
       G_CALLBACK (copy_cb) },
-    { "EditCut", GTK_STOCK_CUT, "Cu_t", "<control>X",
-      "Cut selection",
+    { "EditCut", GTK_STOCK_CUT, N_("Cu_t"), "<control>X",
+      N_("Cut selection"),
       G_CALLBACK (cut_cb) },
-    { "EditPaste", GTK_STOCK_PASTE, "Pa_ste", "<control>V",
-      "Paste data from clipboard",
+    { "EditPaste", GTK_STOCK_PASTE, N_("Pa_ste"), "<control>V",
+      N_("Paste data from clipboard"),
       G_CALLBACK (paste_cb) },
-    { "EditFind", GTK_STOCK_FIND, "_Find", "<control>F",
-      "Search for a string",
+    { "EditFind", GTK_STOCK_FIND, N_("_Find"), "<control>F",
+      N_("Search for a string"),
       G_CALLBACK (find_cb) },
-    { "EditAdvancedFind", GTK_STOCK_FIND, "_Advanced Find", NULL,
-      "Advanced Find",
+    { "EditAdvancedFind", GTK_STOCK_FIND, N_("_Advanced Find"), NULL,
+      N_("Advanced Find"),
       G_CALLBACK (advanced_find_cb) },
-    { "EditReplace", GTK_STOCK_FIND_AND_REPLACE, "R_eplace", "<control>H",
-      "Replace a string",
+    { "EditReplace", GTK_STOCK_FIND_AND_REPLACE, N_("R_eplace"), "<control>H",
+      N_("Replace a string"),
       G_CALLBACK (replace_cb) },
-    { "EditGotoByte", NULL, "_Goto Byte...", "<control>J",
-      "Jump to a certain position",
+    { "EditGotoByte", NULL, N_("_Goto Byte..."), "<control>J",
+      N_("Jump to a certain position"),
       G_CALLBACK (jump_cb) },
-    { "EditPreferences", GTK_STOCK_PREFERENCES, "_Preferences", NULL,
-      "Configure the application",
+    { "EditPreferences", GTK_STOCK_PREFERENCES, N_("_Preferences"), NULL,
+      N_("Configure the application"),
       G_CALLBACK (prefs_cb) },
 
     /* View menu */
-    { "ViewAddView", NULL, "_Add View", NULL,
-      "Add a new view to the buffer",
+    { "ViewAddView", NULL, N_("_Add View"), NULL,
+      N_("Add a new view to the buffer"),
       G_CALLBACK (add_view_cb) },
-    { "ViewRemoveView", NULL, "_Remove View", NULL,
-      "Remove the current view of the buffer",
+    { "ViewRemoveView", NULL, N_("_Remove View"), NULL,
+      N_("Remove the current view of the buffer"),
       G_CALLBACK (remove_view_cb) },
 
     /* Help menu */
-    { "HelpContents", GTK_STOCK_HELP, "_Contents", "F1",
-      "Help on this application",
+    { "HelpContents", GTK_STOCK_HELP, N_("_Contents"), "F1",
+      N_("Help on this application"),
       G_CALLBACK (help_cb) },
-    { "HelpAbout", GTK_STOCK_ABOUT, "_About", NULL,
-      "About this application",
+    { "HelpAbout", GTK_STOCK_ABOUT, N_("_About"), NULL,
+      N_("About this application"),
       G_CALLBACK (about_cb) }
 };
 
 /* Toggle items */
 static const GtkToggleActionEntry toggle_entries[] = {
     /* Edit menu */
-    { "EditInsertMode", NULL, "_Insert Mode", "Insert",
-      "Insert/overwrite data",
+    { "EditInsertMode", NULL, N_("_Insert Mode"), "Insert",
+      N_("Insert/overwrite data"),
       G_CALLBACK (insert_mode_cb), FALSE },
 
     /* Windows menu */
-    { "CharacterTable", NULL, "Character _Table", NULL,
-      "Show the character table",
+    { "CharacterTable", NULL, N_("Character _Table"), NULL,
+      N_("Show the character table"),
       G_CALLBACK (character_table_cb), FALSE },
-    { "Converter", NULL, "_Base Converter", NULL,
-      "Open base conversion dialog",
+    { "Converter", NULL, N_("_Base Converter"), NULL,
+      N_("Open base conversion dialog"),
       G_CALLBACK (converter_cb), FALSE },
-    { "TypeDialog", NULL, "Type Conversion _Dialog", NULL,
-      "Show the type conversion dialog in the edit window",
+    { "TypeDialog", NULL, N_("Type Conversion _Dialog"), NULL,
+      N_("Show the type conversion dialog in the edit window"),
       G_CALLBACK (type_dialog_cb), TRUE }
 };
 
 /* Radio items in View -> Group Data As */
 static GtkRadioActionEntry group_data_entries[] = {
-    { "Bytes", NULL, "_Bytes", NULL,
-      "Group data by 8 bits", GROUP_BYTE },
-    { "Words", NULL, "_Words", NULL,
-      "Group data by 16 bits", GROUP_WORD },
-    { "Longwords", NULL, "_Longwords", NULL,
-      "Group data by 32 bits", GROUP_LONG }
+    { "Bytes", NULL, N_("_Bytes"), NULL,
+      N_("Group data by 8 bits"), GROUP_BYTE },
+    { "Words", NULL, N_("_Words"), NULL,
+      N_("Group data by 16 bits"), GROUP_WORD },
+    { "Longwords", NULL, N_("_Longwords"), NULL,
+      N_("Group data by 32 bits"), GROUP_LONG }
 };
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]