On Thursday 28 October 2004 07:52 pm, Samuel Pecci wrote:
> Greetings,
>
>    From my ramblings with Rosegarden so far, I guess this is the right list
> to post this. I would like to submit a translation file for locale pt_BR
> (Brazilian Portuguese). Could the people involved give me directions on how
> to do it?

Grab a CVS tree (or a tarball...  we're trying very hard not to change strings 
right now, so it should be the same I guess) and have a look at this (pasted 
straight out of the file):

->cat rosegarden/docs/howtos/translation.txt
How to make a new translation for Rosegarden :

- run './scripts/update_i18n_messages' from the top-level directory to
ensure messages are up to date. This will update the 'rosegarden.pot'
file in the po/ directory.

- go to the po/ directory, copy 'rosegarden.pot' to the new xx.po file
you want to translate, for instance fr.po

- back to the top level, run 'make -f Makefile.cvs ; ./configure' (or
your preferred xx_configure wrapper script). This will refresh
po/Makefile so the new .po file will be taken into account.

- From now on, a 'make' in po/ will compile the message files into
.gmo files, and 'make package-messages' at top-level will update the
new po files with newly found messages as well.

XEmacs has a very good mode for po edition, but it doesn't know how to
deal with UTF-8 chars, and you have to stick to UTF-8 :

http://i18n.kde.org/translation-howto/

So KBabel (from the kdesdk module) is in fact a much better tool.

IMPORTANT NOTE : DO NOT USE QString CONCATENATION TO CREATE MESSAGES,
ALWAYS USE .arg().

E.g. this is WRONG :

QString message = i18n("Can't open file ") + filename;

And this is RIGHT :

QString message = QString(i18n("Can't open file %1")).arg(filename);



-- 
Michael McIntyre  ----   Silvan <[EMAIL PROTECTED]>
Linux fanatic, and certified Geek;  registered Linux user #243621
http://www.geocities.com/Paris/Rue/5407/
http://rosegarden.sourceforge.net/tutorial/


-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Rosegarden-devel mailing list
[EMAIL PROTECTED] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to