[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: KOffice documentation problem, important for the da, nl, pt, es,
From: Federico Zenith <zenith () chemeng ! ntnu ! no>
Date: 2006-02-23 11:42:08
Message-ID: 200602231242.12262.zenith () chemeng ! ntnu ! no
[Download RAW message or body]
There have been some modifications to the KOffice documentation recently that
have not yet made it in the POT files. There are therefore problems with
regeneration of the documentation for Kexi, KPlato and KSpread.
This message is important for the da, nl, pt, es, sv teams, who have a
complete translation of the documentation.
Since the docbooks are not in sync with the POT files, when you regenerate
with update_xml the program po2xml will not find some messages present in the
original docbook, and will leave the English sentence instead.
To fix the problem, you have to regenerate the POTs yourself from the
docbooks, merge with current POs and fix the last fuzzies.
To do it, you can use the following script; substitute your code in the LANG
variable, and possibly use your own account for SVN if you want. Once you
have the new POs, you can find those that have issues in folder xx_new (for
me it's one in Kexi, a few for KPlato and one in KSpread), finish them, and
use them to regenerate the documentation (you'll have to move them to where
you keep your local copy).
-------------
#!/bin/bash
#Set your language code
LANG="it"
#Set this to svn+ssh://<username>@svn.kde.org/home/kde
#if you have an account and want to use it
SVN="svn://anonsvn.kde.org/home/kde"
DIR="KOffice_test_dir"
#Get files from SVN
mkdir $DIR
cd $DIR
svn checkout ${SVN}/trunk/koffice/doc docbooks
svn checkout ${SVN}/trunk/l10n/${LANG}/docmessages/koffice ${LANG}_svn
#Generate POTs
FILES=$(find docbooks -name *.docbook)
mkdir pot_folder
for FILE in $FILES
do
POTNAME=$(echo $FILE | sed -e "s#^docbooks/##g" -e "s#/#_#g" -e
"s#\.docbook##g" -e "s#_index\$##g" )
xml2pot $FILE > pot_folder/$POTNAME.pot
done
#Merge translations
mkdir ${LANG}_new
POFILES=$(find ${LANG}_svn/ -name *.po | sed -e "s#^${LANG}_svn/##g" )
for POFILE in $POFILES
do
msgmerge ${LANG}_svn/$POFILE pot_folder/${POFILE}t > ${LANG}_new/${POFILE}
done
-----------
Hope this helps. KOffice tag is tomorrow, so you have to hurry!
Cheers,
-Federico
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic