[five-or-more] Make theme names translatable
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more] Make theme names translatable
- Date: Sat, 3 Mar 2018 16:16:10 +0000 (UTC)
commit 08b0b47a60db6c94e8203e9dfc66567ec6cd56bd
Author: Ruxandra Simion <ruxandra simion93 gmail com>
Date: Sun Feb 25 01:32:33 2018 +0200
Make theme names translatable
https://bugzilla.gnome.org/show_bug.cgi?id=672675
data/Makefile.am | 7 ++++---
data/translatable_themes.h | 9 +++++++++
po/POTFILES.in | 1 +
src/games-file-list.c | 3 ++-
4 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index caf95bc..5aaed20 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -29,12 +29,13 @@ appstream_XML = $(appstream_in_files:.xml.in=.xml)
@INTLTOOL_XML_RULE@
EXTRA_DIST = \
- $(theme_DATA) \
$(appstream_in_files) \
$(desktop_in_files) \
$(gsettings_SCHEMAS) \
- $(man_MANS) \
- $(ui_DATA)
+ $(man_MANS) \
+ $(ui_DATA) \
+ $(theme_DATA) \
+ translatable_themes.h
CLEANFILES = \
$(appstream_XML) \
diff --git a/data/translatable_themes.h b/data/translatable_themes.h
new file mode 100644
index 0000000..eafed46
--- /dev/null
+++ b/data/translatable_themes.h
@@ -0,0 +1,9 @@
+/*
+ * Translatable strings file.
+ * Add this file to your project's POTFILES.in.
+ * DO NOT compile it as part of your application.
+ */
+NC_("themes", "balls")
+NC_("themes", "dots")
+NC_("themes", "gumball")
+NC_("themes", "shapes")
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9edc91f..9e40b03 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -7,5 +7,6 @@ data/five-or-more.desktop.in
[type: gettext/glade]data/five-or-more.ui
[type: gettext/glade]data/menu.ui
data/org.gnome.five-or-more.gschema.xml
+data/translatable_themes.h
src/five-or-more.c
src/games-scores-dialog.c
diff --git a/src/games-file-list.c b/src/games-file-list.c
index 7162bbe..633e9c1 100644
--- a/src/games-file-list.c
+++ b/src/games-file-list.c
@@ -314,7 +314,8 @@ games_file_list_create_widget (GamesFileList * filelist,
}
}
- gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), visible);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget),
+ g_dpgettext2 (NULL, "themes", visible));
if (selection && (!strcmp (string, selection))) {
gtk_combo_box_set_active (widget, itemno);
found = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]