Recent

Author Topic: local svn lazarus -> how to see changes in po files?  (Read 10296 times)

thierrybo

  • Full Member
  • ***
  • Posts: 146
local svn lazarus -> how to see changes in po files?
« on: November 01, 2009, 09:48:00 am »
Hi,

Some month ago I send small patch for my language. At this time, I didn't saw the final result until the next release.

Now that I'm more comfortable with svn, I want to test my changes before sending it.  I downloaded lazarus from svn, made a change to po files. What I did not found in wiki is what to do thereafter? I suppose the build process incorporates these changes automatically but this is not stated anywhere.
 I compiled with make, and I saw my changes in IDE screen, fine. Then I started translate some additional strings, 'make clean all', and so on.
But suddendly after a while I lost all my translation from t he beginning. I mean they are in the .po file, but none of my changes is displayed. What I don't understand is that is work for a while.
« Last Edit: November 01, 2009, 09:51:45 am by thierrybo »

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: local svn lazarus -> how to see changes in po files?
« Reply #1 on: November 01, 2009, 08:11:28 pm »
.po files are not compiled in the application, but are read at run time. Is the file still at the location it used to be.

To use the local changes using svn, you can use the following command in the svn dir:
Code: [Select]
svn diff.
TortoiseSVN has "Create Patch" and "Check for modifications".

thierrybo

  • Full Member
  • ***
  • Posts: 146
Re: local svn lazarus -> how to see changes in po files?
« Reply #2 on: November 01, 2009, 09:10:51 pm »
.po files are not compiled in the application, but are read at run time. Is the file still at the location it used to be.

Well, this is not my local lazarus behavior. If I delete lazaruside.fr.po, then run lazarus, it is still in french!?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: local svn lazarus -> how to see changes in po files?
« Reply #3 on: November 01, 2009, 09:19:43 pm »
What is your lazarus dir (see environment options)?

What is the location of the deleted .po file?

thierrybo

  • Full Member
  • ***
  • Posts: 146
Re: local svn lazarus -> how to see changes in po files?
« Reply #4 on: November 01, 2009, 11:39:50 pm »
I checkout in ~/Sys/local/opt/lazarus_svn/

deleted po file was ~/Sys/local/opt/lazarus_svn/languages/lazaruside.fr.po

lazarus dir is ..  :o /usr/lib/lazarus/0.9.28.2/  How does this change? I mean, when I checkout and built the first time, I checked this and it was pointing to ~/Sys/local/opt/lazarus_svn/  , this explains that it work at first time. I did not checked this thereafter. I delete ~/.lazarus/ often, and my stable lazarus use ~/.lazarus-stable/ as primary config path to avoid conflict with SVN. So I did not explain how it use the directory from where I run Lazarus at first, then change to my lazarus stable version.

thierrybo

  • Full Member
  • ***
  • Posts: 146
Re: local svn lazarus -> how to see changes in po files?
« Reply #5 on: November 02, 2009, 12:18:56 am »
I think I got it. When I change lazarus path to ~/Sys/local/opt/lazarus_svn/ , exit and run again lazarus, path reverts back to /usr/lib/lazarus/0.9.28.2/.

As I understand it, Secondary Config Path erase values already defined in Primary Config Path. And from the output
Quote
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/home/thierrybo/.lazarus"
  SecondaryConfigPath="/etc/lazarus"

there is something in /etc/lazarus/ (environmentoptions.xml) since I installed lazarus stable version. This file contains
Quote
<LazarusDirectory Value="/usr/lib/lazarus/0.9.28.2">
.

So the workaround is to launch
Code: [Select]
./startlazarus --scp=~/.lazarus/, and now  changes to po files are back  :D

 

TinyPortal © 2005-2018