Two (useful) scripts

Federico Bernardi fbernardi at bbros.it
Mon Mar 8 16:54:29 UTC 2004


We had the problem of inconsistency between .po and .pot files, since
someone could commit changes made to an old file.

I've made two scripts that I hope will help the managing of the .po and .pot
files.
I recommend to use it only if you are sure that the two files are out of
sync, and that will use it only one preson per language. (maybe better if
she is Sarah or other administrators).

1)
The first script, named popotmerge wants to be started with the .po file you
want to merge and MUST be executed from the directory from which you want
the script searches for .po files.
For example:

cd /home/fede/fedora
./popotmerge it.po

the script will search for all "it.po" and *.pot files starting from the
current working directory (`pwd`) and merges they together.
Actually you must have write permissions to /tmp directory (or you can
change the variable value at the begin of the script with $HOME).

2)
The second script, named pocvscommit wants to be started with the .po file
you want to commit via CVS and MUST be executed from the same directory as
the preview script.
For example:

cd /home/fede/fedora
./pocvscommit it.po

the script will search for all "it.po" files and commit the changes to the
CVS server.
You must have your CVS variable environment correctly configured.

-----
If you consider this message useful, and you was able to understand my poor
guide, use it with care.

To install:
save the attachment and
chmod +x popotmerge pocvscommit

Ciao!
Federico



----- Original Message ----- 
From: "Federico Bernardi" <fbernardi at bbros.it>
To: <fedora-trans-it at redhat.com>
Sent: Monday, March 08, 2004 12:05 PM
Subject: Re: Going to finish Italian...


> English:
> --------
> 1) Bugzilled successfully:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=117759 :)
>
> 2) How could we catch now which are the missing entries between .po and
.pot
> files?
>    Does someone have a tool to catch it or should I make a script that
> msgmerges all the po with pot files?
>
> 3) The first thing I made after finishing translations was go to the
status
> page and wait for the refresh to see Italian Translations at the first
> place! ;)
>
> Italian:
> --------
> 1) Bugzillato con successo:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=117759 :)
>
> 2) Come facciamo a trovare quali sono gli entry che mancano fra i .po e i
> .pot?
>    Qualcuno ha uno strumento x trovarli o devo fare uno script che fa
> l'msgmerge fra tutti i .po e i .pot?
>
> 3) La prima cosa che ho fatto dopo aver finito le traduzioni è stata
andare
> sulla Status Page e aspettare il refresh per vedere Italian al primo
posto!
> ;)
> CIAO
> Federico
>
>
> ----- Original Message ----- 
> From: "Sarah Wang" <sarahs at redhat.com>
> To: <fedora-trans-it at redhat.com>
> Sent: Monday, March 08, 2004 4:16 AM
> Subject: Re: Going to finish Italian...
>
>
> > Federico Bernardi wrote:
> >
> > >English:
> > >--------
> > >At this time seems to be all finished! :D
> > >
> > Well done! Must be good to see Italian on the top of the overall status
> > list ;)
> >
> > >
> > >Question:
> > >- I found in anaconda some strings about "RedHat" or
> "redhat-config-......"
> > >The strings are in the english version... will it be translated in
order
> to
> > >avoid confusing Fedora's users?
> > >Actually I've translated "RedHat" into "distribution" or
"redhat-config"
> > >into "system-config".
> > >
> > >
> > I would suggest you report such errors to bugzilla because the
> > developers need to change them in pot files.
> >
> > >Even it seems to be all finished, I saw there's a lot of mistakes in
> italian
> > >translations, so there's the need to check it... :( it seems to be
> > >translated with Google Language tools ;)
> > >Keep us updated about it in order to avoid multiple checking to the
same
> > >translations.
> > >
> > >
> > Very good idea to proofread the translated files! I would suggest you
> > have a update check before making corrections just to make sure that
> > your po files is consistent with latest pot file (I know this process
> > should be automated but at the moment just in case...):
> >
> > msgmerge it.po <package>.pot > tmp.po
> > mv tmp.po it.po
> >
> > Then edit it.po as usaual
> >
> > The correct number of total entries should be 10633 but Italian has
> > 10620 entries, so there must be some po files are not consistent with
> > pot files...
> > And of course, it's always a good idea to let others know what file you
> > are proofreading in advance :)
> >
> > Again, very well done!
> >
> > Regards,
> >
> > Sarah
> >
> >
> > --
> > Fedora-trans-it mailing list
> > Fedora-trans-it at redhat.com
> > http://www.redhat.com/mailman/listinfo/fedora-trans-it
> >
> >
>
>
>
> --
> Fedora-trans-it mailing list
> Fedora-trans-it at redhat.com
> http://www.redhat.com/mailman/listinfo/fedora-trans-it
>
>


begin 666 popotmerge.dat
M(R$O8FEN+W-H"B, at 4V-R:7!T(&UA9&4 at 8GD@1F5D97)I8V\@0F5R;F%R9&D@
M*$ET86QY*2!I;B!O<F1E<B!T;R!S:6UP;&EF>2!I,3AN(&UA;F%G:6YG"B,@
M4&QE87-E+"!S96YD(&UE('-U9V=E<W1I;VYS+ at HC"B, at +2TM+2TM+2TM+2TM
M+2TM+2TM+2TM+2TM+0HC(" @(" @1F5D97)I8V\@0F5R;F%R9&D*(R @(" @
M(&9B97)N87)D:4!B8G)O<RYI= HC("TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM
M+2T*(PH*5$U0/2]T;7 *9G5N8W1I;VX@=7-A9V4H*7L@"B @(" @(" @96-H
M;R!5<V%G93H at 66]U(&UU<W0@<W!E8VEF>2!W:&EC:" N<&\@9FEL92!M97)G
M92!W:71H("YP;W0 at 25PG;&P at 9FEN9"!S=&%R=&EN9R!F<F]M(&!P=V1 at +@H@
M(" @(" @(&5C:&\@17AA;7!L93H@)# @:70N<&\*?0H*8V%S92 B)#$B(&EN
M"B @(" M:'PM+6AE;' I"@EU<V%G90H)97AI=" P"F5S86,*"F-A<V4@(B0C
M(B!I;@H@(" @,2D*"6QI<W0]8&9I;F0 at +B M;F%M92 B*BYP;W0B("UP<FEN
M=& *"69O<B!E(&EN("1L:7-T.R!D;PH)"7!O=#U at 96-H;R D92!\(')E=B!\
M(&-U=" M9" B+R(@+68@,2!\(')E=F *"0ED:7(]8&5C:&\@)&4@?"!R978@
M?"!C=70 at +60@(B\B("UF(#(M('P@<F5V8 H)"65C:&\@+6X@(DUE<F=I;F<Z
M("1P;W0N+BXB"@D);7-G;65R9V4@)&1I<B\D,2 D92 ^("1435 O=&UP+G!O
M"@D);78@)%1-4"]T;7 N<&\@)&1I<B\D,0H)9&]N90H).SL*(" @("HI"@EU
2<V%G90H)97AI=" Q"F5S86,*
`
end

begin 666 pocvscommit.dat
M(R$O8FEN+W-H"B, at 4V-R:7!T(&UA9&4 at 8GD@1F5D97)I8V\@0F5R;F%R9&D@
M*$ET86QY*2!I;B!O<F1E<B!T;R!S:6UP;&EF>2!I,3AN(&UA;F%G:6YG"B,@
M4&QE87-E+"!S96YD(&UE('-U9V=E<W1I;VYS+ at HC"B, at +2TM+2TM+2TM+2TM
M+2TM+2TM+2TM+2TM+0HC(" @(" @1F5D97)I8V\@0F5R;F%R9&D*(R @(" @
M(&9B97)N87)D:4!B8G)O<RYI= HC("TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM
M+2T*(PH*5$U0/2]T;7 *4U1!4E1$25(]8'!W9& *9G5N8W1I;VX@=7-A9V4H
M*7L@"B @(" @(" @96-H;R!5<V%G93H at 66]U(&UU<W0@<W!E8VEF>2!W:&EC
M:"!T:&4 at +G!O(&9I;&4 at 25PG;&P at 9FEN9"!S=&%R=&EN9R!F<F]M(&!P=V1@
M('1O('-E;F0@=FEA($-64RX*(" @(" @("!E8VAO($5X86UP;&4Z("0P(&ET
M+G!O"GT*"F-A<V4@(B0Q(B!I;@H@(" @+6A\+2UH96QP*0H)=7-A9V4*"65X
M:70@, IE<V%C"@IC87-E("(D(R(@:6X*(" @(#$I"@EL:7-T/6!F:6YD("X@
M+6YA;64@(B0Q(B M<')I;G1@"@EF;W(@92!I;B D;&ES=#L at 9&\*"0ED:7(]
M8&5C:&\@)&4@?"!R978@?"!C=70 at +60@(B\B("UF(#(M('P@<F5V8 H)"65C
M:&\@(D-O;6UI='1I;F<Z("1D:7(O)#$N+BXB"@D)8V0@)&1I<@H)"6-V<R!C
M;VUM:70 at +6T@)#$*"0EC9" D4U1!4E1$25(*"61O;F4*"3L["B @(" J*0H)
3=7-A9V4*"65X:70@,0IE<V%C"@``
`
end





More information about the trans mailing list