[gcompris] add missing translation warning to not translate tokens.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] add missing translation warning to not translate tokens.
- Date: Sat, 10 Jan 2015 23:02:40 +0000 (UTC)
commit efbd8308d79177be2000c0cd7ad8f445731ca3e5
Author: Bruno Coudoin <bruno coudoin gcompris net>
Date: Sun Jan 11 00:02:03 2015 +0100
add missing translation warning to not translate tokens.
src/administration-activity/admin/board_list.py | 2 ++
src/administration-activity/admin/group_edit.py | 1 +
src/lang-activity/langLib.py | 1 +
src/pythontest-activity/pythontest.py | 1 +
src/tuxpaint-activity/tuxpaint.py | 1 +
5 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/administration-activity/admin/board_list.py b/src/administration-activity/admin/board_list.py
index 403f0e5..cba4cb6 100644
--- a/src/administration-activity/admin/board_list.py
+++ b/src/administration-activity/admin/board_list.py
@@ -641,6 +641,7 @@ class Board_list:
def locales(self, button):
conf_locales = self.get_configured(self.active_profile, 'locale', 'NULL')
+ # Translators : Do not translate the token {profile}
bconf = gcompris.configuration_window ( \
_('<b>Locale</b> configuration\n for profile <b>{profile}</b>').\
format(profile=self.active_profile.name),
@@ -653,6 +654,7 @@ class Board_list:
conf_locales = self.get_configured(self.active_profile,
'locale_sound', 'NULL')
+ # Translators : Do not translate the token {profile}
bconf = gcompris.configuration_window ( \
_('<b>Locale sound</b> configuration\n for profile <b>{profile}</b>').\
format(profile=self.active_profile.name),
diff --git a/src/administration-activity/admin/group_edit.py b/src/administration-activity/admin/group_edit.py
index e70cadf..60ede0a 100644
--- a/src/administration-activity/admin/group_edit.py
+++ b/src/administration-activity/admin/group_edit.py
@@ -59,6 +59,7 @@ class GroupEdit(gtk.Window):
self.group_name = group_name
if(self.group_name):
+ # Translators : Do not translate the token {group} and {aclass}
frame = gtk.Frame(_("Editing group '{group}' for class '{aclass}'").\
format(group=self.group_name, aclass=class_name))
self.new_group = False
diff --git a/src/lang-activity/langLib.py b/src/lang-activity/langLib.py
index bedb21c..40ef91d 100644
--- a/src/lang-activity/langLib.py
+++ b/src/lang-activity/langLib.py
@@ -65,6 +65,7 @@ class Triplet:
fileName = self.voice.rsplit("/", 1)[1]
self.descriptionTranslated = translations[fileName]
except:
+ # Translators : Do not translate the token {word}
self.descriptionTranslated = \
_("Missing translation for '{word}'".format(word = self.description))
diff --git a/src/pythontest-activity/pythontest.py b/src/pythontest-activity/pythontest.py
index a367913..cd9daf6 100644
--- a/src/pythontest-activity/pythontest.py
+++ b/src/pythontest-activity/pythontest.py
@@ -444,6 +444,7 @@ class Gcompris_pythontest:
# the returned value is the main GtkVBox of the window,
#we can add what you want in it.
+ # Translators : Do not translate the token {profile}
bconf = gcompris.configuration_window ( \
_('<b>{config}</b> configuration\n for profile <b>{profile}</b>').format( \
config='Pythontest',
diff --git a/src/tuxpaint-activity/tuxpaint.py b/src/tuxpaint-activity/tuxpaint.py
index 8d4996d..7cc3809 100644
--- a/src/tuxpaint-activity/tuxpaint.py
+++ b/src/tuxpaint-activity/tuxpaint.py
@@ -232,6 +232,7 @@ class Gcompris_tuxpaint:
#set already configured values
self.config_dict.update(gcompris.get_conf(profile, self.gcomprisBoard))
+ # Translators : Do not translate the token {profile}
bconfig = gcompris.configuration_window( \
_('<b>{config}</b> configuration\n for profile <b>{profile}</b>').format( \
config='Tuxpaint',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]