Re: I18n - any recommendations on approach with boa

"ianaré sévi" <[email protected]>
Newsgroups gmane.comp.ide.boa-constructor.user
Message-ID <[email protected]>
2007/8/31, Tim Burgess <[email protected]>:
> Don't suppose someone has a method for getting boa to use the project
> file to make the app.fil for mki18n.py? Or better yet has an automated
> way of running the gettext tools that are needed.

I use the following script to generate my catalog file:


#!/bin/bash

# grabs all translatable strings in python files

FILES=''

for file in `find . -name "*.py"`; do
    FILES="$FILES ${file:2}";
done

pygettext -a $FILES




And this to apply the translations (run from the 'locales' or
'languages' directory):



#!/bin/bash

msgfmt='/usr/bin/msgfmt';

for dir in `ls -1`; do
    if [ -d $dir ]
	then
	    $msgfmt -o $dir/LC_MESSAGES/messages.mo $dir/$dir.po;
	    rm -f $dir/*.mo;
    fi
done




Hope it helps

-- 
- ianaré sévi
Le Homard de Vinci
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Boa-constructor-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.