[Freeciv-Dev] [patch #4650] Split single input xx.po file into translations/*/xx.po

2014-07-12 Thread Jacob Nevins
Follow-up Comment #10, patch #4650 (project freeciv):

> This ticket is for (a) redoing the S2_4 import 
I've now done this. This also deals with the backlog of S2_4 updates that I
had not yet brought to later branches; all newer branches that have not yet
been worked on should now have the latest available translations from older
ones.

(If some translator had already started working on S2_5 and/or trunk before
this giant update, it's benign; they can ignore it as if it were a regular
"make update-po", and deal with the superfluous obsolete strings in their own
way, as pl and fr will already have had to.)

> and ideally (b) checking in a semi-automated procedure 
> (script or something) which will let us do it again
Haven't got this yet. Attached for reference is the script I used for this
job: a slight formalisation of comment #1, but has external dependencies
making it unsuitable for checkin.

(file #21378)
___

Additional Item Attachment:

File name: distributron.shSize:1 KB


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #4650] Split single input xx.po file into translations/*/xx.po

2014-07-06 Thread Jacob Nevins
Follow-up Comment #3, patch #4650 (project freeciv):

>> I believe this ends up with every source translation in exactly
>> one place,
> But is that what we want? It's possible that a few strings 
> (governor titles) are needed for both core nations and extended 
> nations.
You're right, what I described is not what we want. Fortunately, I was lying
:) If a msgid appears in both core and extended nations, this procedure puts
the translation in both resulting po-files.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #4650] Split single input xx.po file into translations/*/xx.po

2014-04-30 Thread Marko Lindqvist
Follow-up Comment #2, patch #4650 (project freeciv):

> I believe this ends up with every source translation in exactly
> one place,

But is that what we want? It's possible that a few strings (governor titles)
are needed for both core nations and extended nations.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #4650] Split single input xx.po file into translations/*/xx.po

2014-04-08 Thread Jacob Nevins
Follow-up Comment #1, patch #4650 (project freeciv):

Hacky manual procedure I've got so far (starting from ca-24.po which is the
monolithic S2_4 ca.po:


make freeciv/freeciv.pot, nations/freeciv-nations.pot,
ruledit/freeciv-ruledit.pot
msgmerge ca-24.po freeciv/freeciv.pot >tmp-freeciv-full-ca.po
msgmerge ca-24.po nations/freeciv-nations.pot | msgattrib --no-obsolete
>nations-ca.po
msgmerge ca-24.po ruledit/freeciv-ruledit.pot | msgattrib --no-obsolete
>ruledit-ca.po
# needed because msgattrib --ignore-file only takes 1 argument
msgcat nations-ca.po ruledit-ca.po >tmp-noncore-ca.po
msgattrib --obsolete tmp-freeciv-full-ca.po | msgattrib
--ignore-file=tmp-noncore-ca.po --set-obsolete | msgattrib --only-obsolete
>tmp-obsolete-ca.po
msgattrib --no-obsolete tmp-freeciv-full-ca.po | msgcat - tmp-obsolete-ca.po
>freeciv-ca.po
rm tmp-freeciv-full-ca.po tmp-noncore-ca.po tmp-obsolete-ca.po


I believe this ends up with every source translation in exactly one place,
with obsolete translations with no other home ending up in freeciv-ca.po.


freeciv-ca: 85%: 5354 translated, 571 fuzzy, 371 untranslated.
nations-ca: 97.6%: 1795 translated, 22 fuzzy, 22 untranslated.
ruledit-ca: 24%: 5 translated, 10 fuzzy, 6 untranslated.


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #4650] Split single input xx.po file into translations/*/xx.po

2014-04-08 Thread Jacob Nevins
URL:
  

 Summary: Split single input xx.po file into
translations/*/xx.po
 Project: Freeciv
Submitted by: jtn
Submitted on: Wed 09 Apr 2014 01:10:15 BST
Category: None
Priority: 5 - Normal
  Status: In Progress
 Privacy: Public
 Assigned to: jtn
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
 Planned Release: 2.5.0,2.6.0

___

Details:

>From patch #4190:
>> - When I generated extended set .po -files by msgmerging full 
>> .po against their .pot, I noticed how the files were about 
>> same size as the originals. I have not checked them, but I 
>> assume this to be due to the fact that even when .pot lacks 
>> the string existing in .po, it's not removed but merely 
>> commented out. That's not a big problem, but speaks against 
>> doing the conversion repeatedly (i.e. getting all the 
>> obsolete messages back in even if they have once been removed)
> 
> Indeed, every .po file contains all the translations from the 
> "other" ones as commented "obsolete" translations, which is 
> untidy.
> 
> As an early step to getting on top of this, I'm trying to find 
> a procedure for importing monolithic files from older branches 
> that puts existing "obsolete" strings in freeciv/*.po by 
> default and leaves other domains clean of them (using tools 
> like msggrep). 
> 
> If I succeed, I plan to re-run the import from S2_4 with that, 
> and use it for any further updates from S2_4.

This ticket is for (a) redoing the S2_4 import and ideally (b) checking in a
semi-automated procedure (script or something) which will let us do it again 
(allowing further imports from S2_4, or imports from a translator who prefers
to work on a single merged .po file).




___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev