# HG changeset patch # User Julien Cristau # Date 1422875230 -3600 # Node ID 7e1c8fb9c4070d63c88925768376f92a0a9152f9 # Parent c06ef8a2e4dff5c544f2adc069c37b504402910f [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. diff -r c06ef8a2e4df -r 7e1c8fb9c407 devtools/devctl.py --- 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) diff -r c06ef8a2e4df -r 7e1c8fb9c407 devtools/test/data/cubes/i18ntestcube/i18n/en.po.ref --- 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 ""