Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-04

Modified .po files after each build

14 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Recently it started to happen that every time I build Lazarus IDE after a clean checkout, after the build I have many modified .po files.

Should the localize.sh script be run or something?

eg:

===================================
------- components/projecttemplates/languages/frmtemplatevariables.de.po ------- index f04ab28..874b3e0 100644
@@ -13,6 +13,10 @@ msgstr ""
msgid "Description"
msgstr "Beschreibung"

+#: frmtemplatevariables.snoadditionalvars
+msgid "This project has no additional variables." +msgstr ""
+
#: frmtemplatevariables.svalue
msgid "Value"
msgstr "Wert"

------- components/projecttemplates/languages/frmtemplatevariables.es.po ------- index b6d736d..61f7e42 100644
@@ -13,6 +13,10 @@ msgstr ""
msgid "Description"
msgstr "Descripcion"

+#: frmtemplatevariables.snoadditionalvars
+msgid "This project has no additional variables." +msgstr ""
+
#: frmtemplatevariables.svalue
msgid "Value"
msgstr "Valor"

===================================

Here is a complete list of files that changes after a Lazarus IDE rebuild.

$ git diff --stat=72
.../languages/frmtemplatevariables.de.po | 4 ++++ .../languages/frmtemplatevariables.es.po | 4 ++++ .../languages/frmtemplatevariables.fr.po | 4 ++++ .../languages/frmtemplatevariables.id.po | 4 ++++ .../languages/frmtemplatevariables.it.po | 4 ++++ .../languages/frmtemplatevariables.lt.po | 4 ++++ .../languages/frmtemplatevariables.pb.po | 4 ++++ .../languages/frmtemplatevariables.pl.po | 4 ++++ .../languages/frmtemplatevariables.po | 4 ++++ .../languages/frmtemplatevariables.ru.po | 4 ++++ 10 files changed, 40 insertions(+), 0 deletions(-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Alexander Klenin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
Hi, Recently it started to happen that every time I build Lazarus IDE after a clean checkout, after the build I have many modified .po files.

Yes, this bothers me too.
Additionally, many makefiles aloso get modified.

Alexander S. Klenin

Reply by email

Graeme Geldenhuys
to Mattias Gärtner

2009/4/14 Mattias G?rtner :

These are separated things. Can you both provide more details to reproduce?

For the *.po files issue:

* Do a clean 'svn co' of the repository or 'git clone'.
* I always use my previous version of Lazarus executable to build so copy it into new directory.
* Run Lazarus, setup Environment options in not set.
* Tools -> Configure build lazarus -> Advanced
- radio buttons to build, except for examples
- check GTK2
- check "with packages"
- target directory is "/opt/lazarus"
- check "Restart after build"
- Click BUILD
* once complete, do a "svn status -q" or "git diff" and I have a whole list of modified *.po files as I listed before.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gärtner
to Graeme Geldenhuys

Zitat von Graeme Geldenhuys :

Show quoted text 20 lines
2009/4/14 Mattias G??rtner : > > These are separated things. > Can you both provide more details to reproduce? For the *.po files issue: * Do a clean 'svn co' of the repository or 'git clone'. * I always use my previous version of Lazarus executable to build so copy it into new directory. * Run Lazarus, setup Environment options in not set. * Tools -> Configure build lazarus -> Advanced - radio buttons to build, except for examples - check GTK2 - check "with packages" - target directory is "/opt/lazarus" - check "Restart after build" - Click BUILD * once complete, do a "svn status -q" or "git diff" and I have a whole list of modified *.po files as I listed before.

What package is installed and what .po file was changed?

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gärtner: Zitat von Graeme Geldenhuys : What package is installed and what .po file was changed?…

2009/4/14 Mattias G?rtner :

What package is installed and what .po file was changed?

The changed .po files:

.../languages/frmtemplatevariables.de.po
.../languages/frmtemplatevariables.es.po
.../languages/frmtemplatevariables.fr.po
.../languages/frmtemplatevariables.id.po
.../languages/frmtemplatevariables.it.po
.../languages/frmtemplatevariables.lt.po
.../languages/frmtemplatevariables.pb.po
.../languages/frmtemplatevariables.pl.po
.../languages/frmtemplatevariables.po
.../languages/frmtemplatevariables.ru.po

I attached the exported list of installed packages. See attached xml file.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: installed_packages.xml
Type: text/xml
Size: 1036 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090415/81fa489b/attachment.xml

Reply by email

Alexander Klenin
to Mattias Gärtner: An embedded and charset-unspecified text was scrubbed... Name: not available Url:…

2009/4/15 Mattias G?rtner :

Show quoted text 5 lines
Zitat von Alexander Klenin : > Additionally, many makefiles also get modified. Can you both provide more details to reproduce?

Hm, I did a clean rebuild if recent SVN and now only two makefiles changed: components/sqldb/Makefile
components/sqldb/Makefile.fpc

Diffs attached.

Alexander S. Klenin -------------- next part -------------- A non-text attachment was scrubbed... Name: makefiles.zip Type: application/zip Size: 2873 bytes Desc: not available Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090415/15981f90/attachment.zip

Reply by email

Mattias Gärtner
to Alexander Klenin

Zitat von Alexander Klenin :

Show quoted text 13 lines
2009/4/15 Mattias G??rtner : > Zitat von Alexander Klenin : >> Additionally, many makefiles also get modified. > > Can you both provide more details to reproduce? Hm, I did a clean rebuild if recent SVN and now only two makefiles changed: components/sqldb/Makefile components/sqldb/Makefile.fpc Diffs attached.

Thanks.
The order of IDE packages has changed and so has the order of unit search paths. I updated the Makefile.

Mattias

Reply by email

Jesus Reyes
to Vincent Snijders: Already reported: http://bugs.freepascal.org/view.php?id=13128 Possible cause:…

--- El mar 14-abr-09, Vincent Snijders escribi?:

Show quoted text 21 lines
De:: Vincent Snijders Asunto: Re: [Lazarus] Modified .po files after each build A: "General mailing list" Fecha: martes, 14 abril, 2009, 2:44 pm Graeme Geldenhuys schreef: > Hi, > > Recently it started to happen that every time I build Lazarus IDE > after a clean checkout, after the build I have many modified .po > files. > Already reported: http://bugs.freepascal.org/view.php?id=13128 Possible cause: Localize.sh and the IDE generate different po-files. Vincent

Actually the IDE and localize scripts should produce identical po files, if it doesn't then that is indeed a bug, but I have not seen reports about this yet.

The problem here seems to be another one, I will quoute from previous msg (unfortunately the diff for the base .po file was not dumped but it doesn't matter too much):

------- components/projecttemplates/languages/frmtemplatevariables.es.po ------- index b6d736d..61f7e42 100644
@@ -13,6 +13,10 @@ msgstr ""
msgid "Description"
msgstr "Descripcion"

+#: frmtemplatevariables.snoadditionalvars
+msgid "This project has no additional variables." +msgstr ""
+
#: frmtemplatevariables.svalue
msgid "Value"
msgstr "Valor"

This means that resourcestring snoadditionalvars in frmtemplatevariables.pas was found new and so the base .po file was out-of-date, when the base .po file change the translated .xx.po files are automatically updated too. It would be a bug if the po files were not generated, because it would mean that the automatic tool missed a file that it must have processed.

Althought components/projecttemplates is processed in localize scripts updating is limited to these situation where an .rst file is found, that is because the tool is based on rst files which are generated on compilation. This also means that no devel (who do .po commits) has compiled projecttemplates package, but this also doesn't mean that he have done wrong, because is perfectly fine that he is not interested in such package :).

what to do?, simply do a diff with changed po files, somebody should apply the patch and everybody happy again.

Jesus Reyes A.

?Obt?n la mejor experiencia en la web! Descarga gratis el nuevo Internet Explorer 8. http://downloads.yahoo.com/ieak8/?l=mx

Reply by email

Graeme Geldenhuys
to Jesus Reyes: --- El mar 14-abr-09, Vincent Snijders escribi?: Actually the IDE and localize scripts…

Hi Jesus,

You explanation makes sense.

what to do?, simply do a diff with changed po files, somebody should apply the patch and everybody happy again.

Please find the patch attached.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: projecttemplates.patch
Type: text/x-patch
Size: 5586 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090416/f6414a77/attachment.bin

Reply by email

Vincent Snijders
to Jesus Reyes: --- El mar 14-abr-09, Vincent Snijders escribi?: Actually the IDE and localize scripts…
Jesus Reyes wrote
Althought components/projecttemplates is processed in localize scripts updating is limited to these situation where an .rst file is found, that is because the tool is based on rst files which are generated on compilation. This also means that no devel (who do .po commits) has compiled projecttemplates package, but this also doesn't mean that he have done wrong, because is perfectly fine that he is not interested in such package :).

Right, this is what was happening. Localize.bat looks in old output directories, without the widgetset appended. I still have files in the old output directories, so the old file still gets used.

I will update the localize.bat.

Vincent

Reply by email