This seemed to work, but I have a question about translation. I first created the english .ts file. I assume that someone then does a translation of that file, but I notice in the XML that it has it tied to a line number. What happens when I make a change to the code and the line number changes? How is this all managed?
On Thu, Jun 20, 2019 at 11:52 AM Roberta Fagandini <[email protected]> wrote: > Hi all, > following Jonas suggestion to use pylupdate5 script, I finally found a > possible solution. > I have created a .bat file with the following lines (probably are obvious > for most of the dev community ;-)): > > @echo off > call "C:\OSGeo4W64\bin\o4w_env.bat" > call "C:\OSGeo4W64\bin\qt5_env.bat" > call "C:\OSGeo4W64\bin\py3_env.bat" > > @echo on > pylupdate5 myPlugin.pro > > The .bat file creates the .ts file correctly and then I modified and > released it with Qt Linguist. > > Hope this helps! > > Roberta > > > Il giorno gio 20 giu 2019 alle ore 10:16 DelazJ <[email protected]> ha > scritto: > >> >> Hi >> >> >>> On Thu, Jun 20, 2019 at 9:11 AM matteo <[email protected]> wrote: >>> >>>> > Hi Matteo, >>>> > thank you for the help, your solution works fine in linux. Do you know >>>> > if something similar exists for Windows? >>>> >>>> make transup and make transcompile just call bash scripts..... not sure >>>> what the workaround could be in Windows. Doesn't Windows have a kind of >>>> linux bash integrated? >>>> >>>> Yes, I think. Cygwin [0] and alike are designed for that. >> But I think the osgeo4w.bat file under the osgeo4w install folder should >> be enough. From what I can see, I can run bash commands inside (at least it >> recognize "make" commands that the usual Windows cmd.exe ignores). >> >> [0] https://www.cygwin.com/ >> >> Regards, >> Harrissou >> >> Matteo >>>> _______________________________________________ >>>> QGIS-Developer mailing list >>>> [email protected] >>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >>> >>> >>> >>> -- >>> Ismail Sunni >>> ismailsunni.wordpress.com >>> _______________________________________________ >>> QGIS-Developer mailing list >>> [email protected] >>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> _______________________________________________ >> QGIS-Developer mailing list >> [email protected] >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
