[Qgis-developer] plugin translation
Richard Duivenvoorde
rdmailings at duif.net
Tue Mar 22 12:18:39 PDT 2016
Hi Matteo,
this Makefile also comes from the plugin builder:
https://github.com/rduivenvoorde/sectorplot/blob/master/SectorPlot/Makefile#L183
In that line it points to scripts (also from the builder plugin):
https://github.com/rduivenvoorde/sectorplot/blob/master/SectorPlot/scripts/update-strings.sh
which I used to update the strings. I realize these are all shell
scripts indeed, but you can use them to find the logic used to do all stuff.
Regards,
Richard
On 22-03-16 12:13, matteo wrote:
> Hi Matthias,
>
>> I was never very happy with qmake/.pro and try to avoid it, but this may
>> be a subjective thing. I'm normally using the scripts/update-strings.sh
>> script with a Makefile.
>
> I did not find the script you are talking about (is maybe
> scripts/update_ts.sh or scripts/update_ts_files.sh ?)
>
> Anyway, I found out something that might be a little bit weird (at least
> for me):
>
> * if I run lupdate the menu(s) are not taken into account, while all the
> dialog yes
>
> * if I run pylupdate4 the the menu(s) voices are there..
>
> the only uncomfortable thing with pylupdate4 is that you have to write
> manually all the files that have to be read. So for example, my
> my_plugin.pro file is:
>
> FORMS = ../ui/*
>
> SOURCES = ../my_plugin.py
>
> TRANSLATIONS = my_plugin_it.ts
>
>
> this file fits for lupdate, while with pylupdate4 I have to add each ui
> file manually, like
>
> FORMS = ../ui/dialog1.ui \
> ../ui/dialog2.ui
>
> SOURCES = ../my_plugin.py
>
> TRANSLATIONS = my_plugin_it.ts
>
>
>
> it's not a real problem (it just takes a little bit time...) :)
>
>
> Is this the expected behavior of lupdate and pylupdate4?
>
> If yes, I can update the cookbook and change the command..
>
> Thanks!
>
> Matteo
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
More information about the Qgis-developer
mailing list