Mailinglist Archive: opensuse-translation (237 mails)

< Previous Next >
Re: [opensuse-translation] How to translate patterns in YaST software manager?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2015-10-26 09:03, opensuse.lietuviu.kalba wrote:
Thanks for information.
Can someone help to propertly initialize "lt" directory with *.po files?


Something like this:

#!/bin/bash

F=`basename $1 .po`
FF=`basename $F .es`
POFILE=$FF.es.po
POTFILE=../../50-pot/$FF.pot

echo "$POFILE and $POTFILE"

if test -f $POFILE -a -f $POTFILE; then
echo Applying msgmerge to $POFILE
#msgmerge --previous --no-wrap --force-po -U $POFILE -C
../../50-memory/memory.es.po $POTFILE
msgmerge --previous --no-wrap --force-po -U $POFILE $POTFILE
msgfmt --check --stat $POFILE
rm messages.mo
else
echo "Not found: " $POFILE or $POTFILE
fi || { echo "msgmerge --no-wrap --force-po for \"$POTFILE\" failed" ; }


exit



This is what I use on the lcn directory, for Spanish. You will have to edit and
adapt for your locale and for that new branch and directory.


Hum. No. There is a problem with the script: it does not initialize, but update.
I have to think more about it.

- --
Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlYuNkMACgkQtTMYHG2NR9VAmACdGXvzUt9VceHQ/J7C0pzUI17L
XeoAnA+zCkFG9XoiJdGLa5XhOfL6p5sI
=5Ygv
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-translation+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-translation+owner@xxxxxxxxxxxx

< Previous Next >