[devtools] restore i18n of string removed in 4001cfe2f44d
Removing that string from the po files means that after running i18ncube
against newer cubicweb, we lose the translation when running on older
cubicweb's, which is probably not a good idea.
--- a/devtools/devctl.py Sat Jan 31 19:32:32 2015 +0100
+++ b/devtools/devctl.py Mon Feb 02 12:07:10 2015 +0100
@@ -167,6 +167,11 @@
if not eschema.final:
add_msg(w, 'This %s:' % etype)
add_msg(w, 'New %s' % etype)
+ if libconfig is not None: # processing a cube
+ # As of 3.20.3 we no longer use it, but keeping this string
+ # allows developers to run i18ncube with new cubicweb and still
+ # have the right translations at runtime for older versions
+ add_msg(w, 'This %s' % etype)
if eschema.description and not eschema.description in done:
done.add(eschema.description)
add_msg(w, eschema.description)
--- a/devtools/test/data/cubes/i18ntestcube/i18n/en.po.ref Sat Jan 31 19:32:32 2015 +0100
+++ b/devtools/test/data/cubes/i18ntestcube/i18n/en.po.ref Mon Feb 02 12:07:10 2015 +0100
@@ -21,6 +21,9 @@
msgid "Forum_plural"
msgstr ""
+msgid "This Forum"
+msgstr ""
+
msgid "This Forum:"
msgstr ""
@@ -47,6 +50,9 @@
msgid "ForumThread_plural"
msgstr ""
+msgid "This ForumThread"
+msgstr ""
+
msgid "This ForumThread:"
msgstr ""