Hi
Here it is
http://bugs.qooxdoo.org/show_bug.cgi?id=7076
and
http://bugs.qooxdoo.org/show_bug.cgi?id=7077
In the hope that this help
Regards
2012/12/5 thron7 <[email protected]>
> You are right, this is a bug. In fact there are two :-).
>
> Please open one bug for the missing line number in the error message.
>
> Open a second bug for the fact that you get an exception at all. Include
> your code snippet, which is enough to reproduce the issue in a desktop
> skeleton and running 'generate.py translation'.
>
> Thanks,
> T.
>
>
> On 12/04/2012 08:25 PM, Benjamin Dreux wrote:
>
> Hi
>
> Here is the trace when running this piece of code with the given flag
>
> -Traceback (most recent call last):
> File
> "/Users/dreux_b/project/chaire/ifsr/presentation/target/qooxdoo-sdk/tool/bin/generator.py",
> line 243, in <module>
> main()
> File
> "/Users/dreux_b/project/chaire/ifsr/presentation/target/qooxdoo-sdk/tool/bin/generator.py",
> line 226, in main
> generatorObj.run()
> File
> "/Users/dreux_b/project/chaire/ifsr/presentation/target/qooxdoo-sdk/tool/pylib/generator/Generator.py",
> line 498, in run
> self.runUpdateTranslation()
> File
> "/Users/dreux_b/project/chaire/ifsr/presentation/target/qooxdoo-sdk/tool/pylib/generator/Generator.py",
> line 1268, in runUpdateTranslation
> self._locale.updateTranslations(namespace,
> lib.translationPathSuffix(), locales)
> File
> "/Users/dreux_b/project/chaire/ifsr/presentation/target/qooxdoo-sdk/tool/pylib/generator/action/Locale.py",
> line 175, in updateTranslations
> pot = self.getPotFile(classList) # pot: translation keys from the
> source code
> File
> "/Users/dreux_b/project/chaire/ifsr/presentation/target/qooxdoo-sdk/tool/pylib/generator/action/Locale.py",
> line 117, in getPotFile
> strings = self.getPackageStrings(content, variants)
> File
> "/Users/dreux_b/project/chaire/ifsr/presentation/target/qooxdoo-sdk/tool/pylib/generator/action/Locale.py",
> line 388, in getPackageStrings
> translation, cached =
> self._classesObj[classId].messageStrings(variants)
> File
> "/Users/dreux_b/project/chaire/ifsr/presentation/target/qooxdoo-sdk/tool/pylib/generator/code/clazz/MClassI18N.py",
> line 66, in messageStrings
> raise RuntimeError("Could not extract message strings from %s!\n%s" % (
> self.id, detail))
> RuntimeError: Could not extract message strings from
> ifsr.lendingManager.lendingPresentation.tabs.project.OrganizationDetails!
>
> Hope this will help
> Regards
>
> 2012/12/4 thron7 <[email protected]>
>
>> Can you please re-run this with the '-s' command line option to the
>> generator, and post the output?!
>>
>> T.
>>
>>
>> > Hi
>> > I'm using the last stable version of qooxdoo.
>> > And there is no mention of console in this class.
>> > In Fact event if we keep the message as it is, it would be nice to add a
>> > line number with the class name.
>> >
>> > Regards
>> >
>> > 2012/12/4 thron7 <[email protected]>
>> >
>> >> Benjamin,
>> >>
>> >>
>> >> On 12/04/2012 04:36 PM, Benjamin Dreux wrote:
>> >>
>> >> Hi
>> >> This morning i've wrote this line
>> >>
>> >> invalidFields.push( this.tr( this.tr( "Associate" ) + "[" + index +
>> "]"
>> >> ) );
>> >>
>> >> Abviously it's correct, nor what i wanted to write.
>> >> The problem come from the message i got when i compiled this class
>> >>
>> >> -<type 'exceptions.RuntimeError'> : Could not extract message strings
>> >> from
>> >>
>> ifsr.lendingManager.lendingPresentation.tabs.project.OrganizationDetails!
>> >> global name 'console' is not defined
>> >>
>> >>
>> >> Mh, there is nothing obviously illegal with your code line, the outer '
>> >> this.tr' call should just trigger a warning saying "Unknown expression
>> >> as
>> >> argument to translation method". But this doesn't cause an exception.
>> >>
>> >> My feeling is the exception you get stems from some other piece of
>> code,
>> >> e.g. there is no mentioning of 'console' in the code you quoted.
>> >>
>> >> Could you re-check this? Could this be an old qooxdoo version?
>> >>
>> >> T.
>> >>
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> >> Remotely access PCs and mobile devices and provide instant support
>> >> Improve your efficiency, and focus on delivering more value-add
>> services
>> >> Discover what IT Professionals Know. Rescue delivers
>> >> http://p.sf.net/sfu/logmein_12329d2d
>> >> _______________________________________________
>> >> qooxdoo-devel mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >>
>> >>
>> >
>> >
>> > --
>> > Benjamin Dreux
>> > Analyste-Programmeur
>> > Chaire de logiciel libre-Finance Social et solidaire
>> > UQAM
>> > Montréal
>> >
>> ------------------------------------------------------------------------------
>> > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> > Remotely access PCs and mobile devices and provide instant support
>> > Improve your efficiency, and focus on delivering more value-add services
>> > Discover what IT Professionals Know. Rescue delivers
>> >
>> http://p.sf.net/sfu/logmein_12329d2d_______________________________________________
>> > qooxdoo-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> Remotely access PCs and mobile devices and provide instant support
>> Improve your efficiency, and focus on delivering more value-add services
>> Discover what IT Professionals Know. Rescue delivers
>> http://p.sf.net/sfu/logmein_12329d2d
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
>
>
> --
> Benjamin Dreux
> Analyste-Programmeur
> Chaire de logiciel libre-Finance Social et solidaire
> UQAM
> Montréal
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue
> delivershttp://p.sf.net/sfu/logmein_12329d2d
>
>
>
> _______________________________________________
> qooxdoo-devel mailing
> [email protected]https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
Benjamin Dreux
Analyste-Programmeur
Chaire de logiciel libre-Finance Social et solidaire
UQAM
Montréal
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel