[gedit] Internationalisation improvements
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Internationalisation improvements
- Date: Wed, 17 Feb 2010 15:59:19 +0000 (UTC)
commit 9c64d2d66430773ad679233441f1c75cdf9c5e7f
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Feb 17 15:57:40 2010 +0000
Internationalisation improvements
Removed some markup in strings, added some translator comments and removed
the "translatable" tag from some strings which were inappropriately marked as
such. Helps: bgo#610048
gedit/gedit-print-preferences.ui | 4 +-
gedit/gedit-print-preview.c | 1 +
plugins/docinfo/docinfo.ui | 25 +++++++++++++----------
plugins/filebrowser/gedit-file-browser-store.c | 2 +
plugins/snippets/snippets/snippets.ui | 5 +++-
plugins/spell/gedit-automatic-spell-checker.c | 1 +
plugins/spell/gedit-spell-checker-dialog.c | 3 ++
plugins/spell/spell-checker.ui | 10 +++++++-
plugins/time/gedit-time-setup-dialog.ui | 5 +++-
9 files changed, 39 insertions(+), 17 deletions(-)
---
diff --git a/gedit/gedit-print-preferences.ui b/gedit/gedit-print-preferences.ui
index dcb08cf..3917eeb 100644
--- a/gedit/gedit-print-preferences.ui
+++ b/gedit/gedit-print-preferences.ui
@@ -121,7 +121,7 @@
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="xalign">0.47999998927116394</property>
- <property name="label" translatable="yes">_Number every</property>
+ <property name="label" translatable="yes" comments="'Number every' from 'Number every 3 lines' in the 'Text Editor' tab of the print preferences.">_Number every</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">line_numbers_spinbutton</property>
</object>
@@ -147,7 +147,7 @@
<child>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
- <property name="label" translatable="yes">lines</property>
+ <property name="label" translatable="yes" comments="'lines' from 'Number every 3 lines' in the 'Text Editor' tab of the print preferences.">lines</property>
</object>
<packing>
<property name="expand">False</property>
diff --git a/gedit/gedit-print-preview.c b/gedit/gedit-print-preview.c
index 7926987..293a930 100644
--- a/gedit/gedit-print-preview.c
+++ b/gedit/gedit-print-preview.c
@@ -612,6 +612,7 @@ create_bar (GeditPrintPreview *preview)
/* We are displaying 'XXX of XXX'. */
gtk_box_pack_start (GTK_BOX (status),
+ /* Translators: the "of" from "1 of 19" in print preview. */
gtk_label_new (_("of")),
FALSE, FALSE, 0);
diff --git a/plugins/docinfo/docinfo.ui b/plugins/docinfo/docinfo.ui
index fa0dbd4..bb73d40 100644
--- a/plugins/docinfo/docinfo.ui
+++ b/plugins/docinfo/docinfo.ui
@@ -70,7 +70,7 @@
<child>
<object class="GtkLabel" id="file_name_label">
<property name="visible">True</property>
- <property name="label" translatable="yes"><span weight="bold">File Name</span></property>
+ <property name="label" translatable="yes">File Name</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -84,6 +84,9 @@
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+ </attributes>
</object>
<packing>
<property name="padding">0</property>
@@ -159,7 +162,7 @@
<child>
<object class="GtkLabel" id="bytes_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -213,7 +216,7 @@
<child>
<object class="GtkLabel" id="chars_ns_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -267,7 +270,7 @@
<child>
<object class="GtkLabel" id="chars_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -294,7 +297,7 @@
<child>
<object class="GtkLabel" id="words_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -375,7 +378,7 @@
<child>
<object class="GtkLabel" id="lines_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -466,7 +469,7 @@
<child>
<object class="GtkLabel" id="selected_lines_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -490,7 +493,7 @@
<child>
<object class="GtkLabel" id="selected_words_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -514,7 +517,7 @@
<child>
<object class="GtkLabel" id="selected_chars_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -538,7 +541,7 @@
<child>
<object class="GtkLabel" id="selected_chars_ns_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -562,7 +565,7 @@
<child>
<object class="GtkLabel" id="selected_bytes_label">
<property name="visible">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label">0</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
diff --git a/plugins/filebrowser/gedit-file-browser-store.c b/plugins/filebrowser/gedit-file-browser-store.c
index 46d6e76..aca8572 100644
--- a/plugins/filebrowser/gedit-file-browser-store.c
+++ b/plugins/filebrowser/gedit-file-browser-store.c
@@ -3540,6 +3540,7 @@ gedit_file_browser_store_new_file (GeditFileBrowserStore * model,
g_return_val_if_fail (iter != NULL, FALSE);
parent_node = FILE_BROWSER_NODE_DIR (parent->user_data);
+ /* Translators: This is the default name of new files created by the file browser pane. */
file = unique_new_name (((FileBrowserNode *) parent_node)->file, _("file"));
stream = g_file_create (file, G_FILE_CREATE_NONE, NULL, &error);
@@ -3592,6 +3593,7 @@ gedit_file_browser_store_new_directory (GeditFileBrowserStore * model,
g_return_val_if_fail (iter != NULL, FALSE);
parent_node = FILE_BROWSER_NODE_DIR (parent->user_data);
+ /* Translators: This is the default name of new directories created by the file browser pane. */
file = unique_new_name (((FileBrowserNode *) parent_node)->file, _("directory"));
if (!g_file_make_directory (file, NULL, &error)) {
diff --git a/plugins/snippets/snippets/snippets.ui b/plugins/snippets/snippets/snippets.ui
index c6bb5c1..34b7b96 100644
--- a/plugins/snippets/snippets/snippets.ui
+++ b/plugins/snippets/snippets/snippets.ui
@@ -367,7 +367,7 @@
<child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Activation</b></property>
+ <property name="label" translatable="yes">Activation</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -381,6 +381,9 @@
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+ </attributes>
</object>
<packing>
<property name="padding">0</property>
diff --git a/plugins/spell/gedit-automatic-spell-checker.c b/plugins/spell/gedit-automatic-spell-checker.c
index 7236272..f37133e 100644
--- a/plugins/spell/gedit-automatic-spell-checker.c
+++ b/plugins/spell/gedit-automatic-spell-checker.c
@@ -416,6 +416,7 @@ build_suggestion_menu (GeditAutomaticSpellChecker *spell, const gchar *word)
{
/* no suggestions. put something in the menu anyway... */
GtkWidget *label;
+ /* Translators: Displayed in the "Check Spelling" dialog if there are no suggestions for the current misspelled word */
label = gtk_label_new (_("(no suggested words)"));
mi = gtk_menu_item_new ();
diff --git a/plugins/spell/gedit-spell-checker-dialog.c b/plugins/spell/gedit-spell-checker-dialog.c
index b3742f9..0488d16 100644
--- a/plugins/spell/gedit-spell-checker-dialog.c
+++ b/plugins/spell/gedit-spell-checker-dialog.c
@@ -450,6 +450,8 @@ update_suggestions_list_model (GeditSpellCheckerDialog *dlg, GSList *suggestions
{
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
+ /* Translators: Displayed in the "Check Spelling" dialog if there are no suggestions
+ * for the current misspelled word */
COLUMN_SUGGESTIONS, _("(no suggested words)"),
-1);
@@ -556,6 +558,7 @@ check_word_button_clicked_handler (GtkButton *button, GeditSpellCheckerDialog *d
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
+ /* Translators: Displayed in the "Check Spelling" dialog if the current word isn't misspelled */
COLUMN_SUGGESTIONS, _("(correct spelling)"),
-1);
diff --git a/plugins/spell/spell-checker.ui b/plugins/spell/spell-checker.ui
index e40c863..697e6cd 100644
--- a/plugins/spell/spell-checker.ui
+++ b/plugins/spell/spell-checker.ui
@@ -73,7 +73,7 @@
<child>
<object class="GtkLabel" id="misspelled_word_label">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>word</b></property>
+ <property name="label" translatable="yes">word</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@@ -83,6 +83,9 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+ </attributes>
</object>
<packing>
<property name="left_attach">1</property>
@@ -412,7 +415,7 @@
<child>
<object class="GtkLabel" id="language_label">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Language</b></property>
+ <property name="label" translatable="yes">Language</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -422,6 +425,9 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+ </attributes>
</object>
<packing>
<property name="padding">0</property>
diff --git a/plugins/time/gedit-time-setup-dialog.ui b/plugins/time/gedit-time-setup-dialog.ui
index 1967c6f..63ae396 100644
--- a/plugins/time/gedit-time-setup-dialog.ui
+++ b/plugins/time/gedit-time-setup-dialog.ui
@@ -270,7 +270,7 @@
<child>
<object class="GtkLabel" id="custom_format_example">
<property name="visible">True</property>
- <property name="label" translatable="yes"><span size="small">01/11/2002 17:52:00</span></property>
+ <property name="label" translatable="yes">01/11/2002 17:52:00</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
@@ -280,6 +280,9 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/><!-- PANGO_SCALE_SMALL -->
+ </attributes>
</object>
<packing>
<property name="padding">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]