Am 06.04.20 um 18:43 schrieb Patrick Storz:
Seem nextgenerator needs a small update.
"|from inkex.localization import _" should not be required anymore, it should work out-of the box when deriving from |||InkscapeExtension||
- Yep, I just updated it, thanks for the hint, Alvin and Patrick. The latest version is now available from
https://gitlab.com/Moini/nextgenerator/-/tags/v0.9
@Maren: Do you intend to localize nextgenerator? It would be a good opportunity to test the new "translationdomain" functionality in the field. I'd be happy to assist (the main job is not even specific to Inkscape extensions and involves extracting the translatable strings into a .po file and compiling them to .mo files with proper directory structure).
- I hadn't actually planned to do that, but we can still use the extension as a test candidate (and for putting together instructions for others). After all, we both also do German translations and documentation.
Maren
Cheers, Patrick
||||
Am 06.04.2020 um 18:11 schrieb Alvin Penner:
Hi, just for fun I tried the version from Moini\nextgenerator on Inkscape 1.1-dev. I got the Python error message:
Traceback (most recent call last): File "next_gen.py", line 37, in <module> from inkex.localization import _ ImportError: cannot import name '_' from 'inkex.localization' (C:\APP\Temp\inkscape_devel\share\inkscape\extensions\inkex\localization.py)
Alvin _______________________________________________ Inkscape Devel mailing list -- inkscape-devel@lists.inkscape.org To unsubscribe send an email to inkscape-devel-leave@lists.inkscape.org
Inkscape Devel mailing list -- inkscape-devel@lists.inkscape.org To unsubscribe send an email to inkscape-devel-leave@lists.inkscape.org