[Inkscape-translator] inkscape.pot missing vital entries

2017-07-30 Thread Alexandre Prokoudine
Hello,

When I run 'make inkscape_pot' for current git master, I get this:

[100%] Generating ../../po/inkscape.pot
Unsuccessful open on filename containing newline at
/usr/bin/intltool-update line 1150.

And then the following top menu items are missing from POT (become obsolete):

_View, _Layer, _Object, _Path, _Filters, _Extensions, _Help.

Both _File, _Edit, and _Text are OK.

I'd gladly push updated ru.po, but without these essential bits it's
not worth it really.

Any ideas what could be causing this?

Alex

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Inkscape-translator mailing list
Inkscape-translator@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-translator


Re: [Inkscape-translator] inkscape.pot missing vital entries

2017-07-30 Thread Eduard Braun

Am 30.07.2017 um 15:26 schrieb Alexandre Prokoudine:

Hello,

When I run 'make inkscape_pot' for current git master, I get this:

[100%] Generating ../../po/inkscape.pot
Unsuccessful open on filename containing newline at
/usr/bin/intltool-update line 1150.

And then the following top menu items are missing from POT (become obsolete):

_View, _Layer, _Object, _Path, _Filters, _Extensions, _Help.

Both _File, _Edit, and _Text are OK.

I'd gladly push updated ru.po, but without these essential bits it's
not worth it really.

Any ideas what could be causing this?

Alex


This was caused by the switch to external UI files, specifically
https://gitlab.com/inkscape/inkscape/commit/78cebbf91af8d91681d4ff18b7c1a8b25f2c431a

Seems we currently have a bit of a "change it now and fix regressions 
later" attitude in the Inkscape project (with the "later" part often 
forgotten)... We really should work on this!


That being said it should be fixable but needs some changes (at the very 
least the UI files need to be adjusted and added to the files searched 
by intltool). Maybe some code changes (to exclude translatable strings 
from the UI files) are an even the better approach, though (I'll need to 
look into this).


For now I'm afraid there's not much you can do to update the .pot file
Also note that simply running "intltool-update" (or "make inkscape_pot") 
usually is not sufficient if new code files were added to the source. 
Then one has to regenerate the file "POTFILES.in" using 
"generate_POTFILES.sh" which might (or as in this case might not) 
produce the necessary input files for intltool.


Regards,
Eduard

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Inkscape-translator mailing list
Inkscape-translator@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-translator


Re: [Inkscape-translator] inkscape.pot missing vital entries

2017-07-30 Thread Eduard Braun

I pushed a fix for the menus.xml file in
https://gitlab.com/inkscape/inkscape/commit/bcec10178c7642ab5781df898fcf1347b1ee6222
and updated the inkscape.pot in
https://gitlab.com/inkscape/inkscape/commit/13cc0631ddc9595e5eaab244c24d7128dd588dec

Let me know if there are still strings missing! (also tell me if there 
are any useless new strings)


As for updating the inkscape.pot I added a small README with the most 
important steps in

https://gitlab.com/inkscape/inkscape/commit/d02bf1eb5e83251d4d3b2a9293922f73ae276f30
Hopefully this helps to give developers a starting point on what to do 
and encourages some contributions to make this process a bit more 
convenient and error-proof in future.


Regards,
Eduard


Am 30.07.2017 um 15:53 schrieb Eduard Braun:

Am 30.07.2017 um 15:26 schrieb Alexandre Prokoudine:

Hello,

When I run 'make inkscape_pot' for current git master, I get this:

[100%] Generating ../../po/inkscape.pot
Unsuccessful open on filename containing newline at
/usr/bin/intltool-update line 1150.

And then the following top menu items are missing from POT (become 
obsolete):


_View, _Layer, _Object, _Path, _Filters, _Extensions, _Help.

Both _File, _Edit, and _Text are OK.

I'd gladly push updated ru.po, but without these essential bits it's
not worth it really.

Any ideas what could be causing this?

Alex


This was caused by the switch to external UI files, specifically
https://gitlab.com/inkscape/inkscape/commit/78cebbf91af8d91681d4ff18b7c1a8b25f2c431a 



Seems we currently have a bit of a "change it now and fix regressions 
later" attitude in the Inkscape project (with the "later" part often 
forgotten)... We really should work on this!


That being said it should be fixable but needs some changes (at the 
very least the UI files need to be adjusted and added to the files 
searched by intltool). Maybe some code changes (to exclude 
translatable strings from the UI files) are an even the better 
approach, though (I'll need to look into this).


For now I'm afraid there's not much you can do to update the .pot file
Also note that simply running "intltool-update" (or "make 
inkscape_pot") usually is not sufficient if new code files were added 
to the source. Then one has to regenerate the file "POTFILES.in" using 
"generate_POTFILES.sh" which might (or as in this case might not) 
produce the necessary input files for intltool.


Regards,
Eduard

-- 


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Inkscape-translator mailing list
Inkscape-translator@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-translator



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Inkscape-translator mailing list
Inkscape-translator@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-translator