Hi, thanks for the little example. See below for my response. The problem is not eric4 but the pylupdate4 tool used by eric4.
On Mittwoch, 11. November 2009, Michele Petrazzo - Unipex wrote: > Hi, > > > Sorry If I send the files to you directly, but I think that it's not a > good thing to send to the ml my files. > > Attached you can find a simple but complete eric project that show the > first error on "generate translation". > > -- Messages for pylupdate4 > > pylupdate4: main.py:419: Unterminated string > pylupdate4: library/calendar_draw.py:208: Unterminated string > pylupdate4: library/calendar_draw.py:210: Unterminated string > pylupdate4: Updating 'i18n/i18nit.ts'... > pylupdate4: Found 3 source texts (3 new and 0 already existing) This seems to be a pylupdate4 problem. The empty docstring in line 165 of main.py causes it to not recognise translatable strings thereafter. Please report this problem to Phil- > > -- Messages for lupdate-qt4 > > lupdate-qt4: /home/michele/tmp/test_prj/library/calendar_draw.py:89: > Unterminated C++ string > lupdate-qt4: /home/michele/tmp/test_prj/library/calendar_draw.py:96: > Unterminated C++ string > lupdate-qt4: /home/michele/tmp/test_prj/library/calendar_draw.py:188: > Unterminated C++ string > lupdate-qt4: /home/michele/tmp/test_prj/library/calendar_draw.py:189: > Unterminated C++ string > lupdate-qt4: /home/michele/tmp/test_prj/library/calendar_draw.py:208: > Unterminated C++ string > lupdate-qt4: /home/michele/tmp/test_prj/library/calendar_draw.py:210: > Unterminated C++ string > lupdate-qt4: Updating 'i18n/i18nit.ts'... > lupdate-qt4: > lupdate-qt4: Found 10 source text(s) (10 new and 0 already existing) > lupdate-qt4: lupdate-qt4 does not handle Python source code. The output of this tool is irrelevant. > > Attached also both .ts (on test_prh/i18n directory) > > P.s. A little bug Project/ProjectTranslationsBrowser.py::937 > ).arg(pylupdate)) > has to be > ).arg(self.pylupdate)) Well spottet. > > Michele > Detlev -- Detlev Offenbach det...@die-offenbachs.de _______________________________________________ Eric mailing list Eric@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/eric