3 |
# used for internationalization |
# used for internationalization |
4 |
# file to generate gnue.po file from all .py files we have |
# file to generate gnue.po file from all .py files we have |
5 |
|
|
6 |
xpot -d -o gnue.po \ |
if [ "$1" == "" ]; then |
7 |
../src/GBaseApp.py \ |
echo "" |
8 |
../src/GComm.py \ |
echo "Usage: utils/create-po.sh <mylanguage>" |
9 |
../src/GConfig.py \ |
echo "" |
10 |
../src/GConnections.py \ |
echo "Restrictions: - You have to be in the gnue-common directory." |
11 |
../src/GDataObjects.py \ |
echo " - a file translations/<lang>/LC_MESSAGES/gnue.po" |
12 |
../src/GDataSource.py \ |
echo " must exist. if not create it with 'touch'." |
13 |
../src/GDateTime.py \ |
echo "" |
14 |
../src/GParser.py \ |
exit 1 |
15 |
../src/GServerApp.py \ |
fi |
16 |
../src/GTypecast.py \ |
|
17 |
../src/GTrigger.py \ |
# TODO: - Check if we are in the gnue-common directory |
18 |
../src/RuntimeSettings.py \ |
# - automatically add copyright header |
19 |
../src/commdrivers/_directory/DirectoryServer.py \ |
# - do two runs to remove old comment ( # file:lineno) |
20 |
../src/commdrivers/_helpers/RpcDoc.py \ |
# - automatically add CHARSET (!important) |
21 |
../src/commdrivers/pyro/CommDriver.py \ |
|
22 |
../src/commdrivers/proxy/CommDriver.py \ |
LC_ALL=$1 xgettext -d gnue -o translations/$1/LC_MESSAGES/gnue.po -L Python -j `find . -maxdepth 10 -mindepth 2 -iname '*.py'` |
|
../src/commdrivers/pw_xmlrpc/ClientAdapter.py \ |
|
|
../src/commdrivers/pw_xmlrpc/DebugSocketServer.py \ |
|
|
../src/commdrivers/pw_xmlrpc/RpcDoc.py \ |
|
|
../src/commdrivers/pw_xmlrpc/ServerAdapter.py \ |
|
|
../src/commdrivers/soap/CommDriver.py \ |
|
|
../src/commdrivers/sockets/CommDriver.py \ |
|
|
../src/commdrivers/xmlrpc/ClientAdapter.py \ |
|
|
../src/commdrivers/xmlrpc/DebugSocketServer.py \ |
|
|
../src/commdrivers/xmlrpc/RpcDoc.py \ |
|
|
../src/commdrivers/xmlrpc/ServerAdapter.py \ |
|
|
../src/commdrivers/GCommBase.py \ |
|
|
../src/dbdrivers/cxoracle/DBdriver.py \ |
|
|
../src/dbdrivers/db2/DBdriver.py \ |
|
|
../src/dbdrivers/_dbsig/DBdriver.py \ |
|
|
../src/dbdrivers/geas/DBdriver.py \ |
|
|
../src/dbdrivers/informix/DBdriver.py \ |
|
|
../src/dbdrivers/ingres/DBdriver.py \ |
|
|
../src/dbdrivers/interbase/DBdriver.py \ |
|
|
../src/dbdrivers/mysql/DBdriver.py \ |
|
|
../src/dbdrivers/msado/DBdriver.py \ |
|
|
../src/dbdrivers/mxodbc/DBdriver.py \ |
|
|
../src/dbdrivers/odbc/DBdriver.py \ |
|
|
../src/dbdrivers/oracle/DBdriver.py \ |
|
|
../src/dbdrivers/postgresql/DBdriver.py \ |
|
|
../src/dbdrivers/sapdb/DBdriver.py \ |
|
|
../src/dbdrivers/sybase/DBdriver.py \ |
|
|
../src/dbdrivers/sqlrelay/DBdriver.py \ |
|
|
../src/FormatMasks/BaseMask.py \ |
|
|
../src/FormatMasks/DateMask.py \ |
|
|
../src/FormatMasks/NumberMask.py \ |
|
|
../src/FormatMasks/TextMask.py \ |
|
|
../../forms/src/GFClient.py \ |
|
|
../../forms/src/GFConfig.py \ |
|
|
../../forms/src/GFDisplayHandler.py \ |
|
|
../../forms/src/GFForm.py \ |
|
|
../../forms/src/GFInstance.py \ |
|
|
../../forms/src/GFKeyMapper.py \ |
|
|
../../forms/src/GFParser.py \ |
|
|
../../forms/src/GFTrigger.py \ |
|
|
../../forms/src/uidrivers/wx/UIdriver.py \ |
|
|
../../designer/src/DataSourceEditor.py \ |
|
|
../../designer/src/Debugger.py \ |
|
|
../../designer/src/Designer.py \ |
|
|
../../designer/src/Instance.py \ |
|
|
../../designer/src/MRUManager.py \ |
|
|
../../designer/src/MenuBar.py \ |
|
|
../../designer/src/PopupMenu.py \ |
|
|
../../designer/src/PropertyEditor.py \ |
|
|
../../designer/src/SchemaViewer.py \ |
|
|
../../designer/src/TemplateChooser.py \ |
|
|
../../designer/src/TemplateParser.py \ |
|
|
../../designer/src/ToolFrame.py \ |
|
|
../../designer/src/TriggerEditor.py \ |
|
|
../../designer/src/forms/Instance.py \ |
|
|
../../designer/src/forms/TreeView.py \ |
|
|
../../designer/src/schema/Instance.py |
|
23 |
|
|
24 |
echo "" |
echo "" |
25 |
echo " Now you have a file called gnue.po somewhere in this directory. You can" |
echo " Now you have a file called gnue.po somewhere in this directory. You can" |
28 |
echo " Content-Type: text/plain; charset=CHARSET\n" |
echo " Content-Type: text/plain; charset=CHARSET\n" |
29 |
echo " ^^^^^^^" |
echo " ^^^^^^^" |
30 |
echo "write here your charset, something like 'iso-8859-x'" |
echo "write here your charset, something like 'iso-8859-x'" |
31 |
echo "" |
|
32 |
echo " Content-Transfer-Encoding: ENCODING\n" |
echo " Content-Transfer-Encoding: ENCODING\n" |
33 |
echo " ^^^^^^^^" |
echo " ^^^^^^^^" |
34 |
echo "write here character encoding, something like '8bit'" |
echo "write here character encoding, something like '8bit'" |
37 |
echo " After you have finished, please run command: msgfmt -o gnue.mo gnue.po" |
echo " After you have finished, please run command: msgfmt -o gnue.mo gnue.po" |
38 |
echo "this will give you binary file of your translation, prepared to import" |
echo "this will give you binary file of your translation, prepared to import" |
39 |
echo "into GNUe." |
echo "into GNUe." |
|
echo "Thank you & have a lot of fun :)" |
|
40 |
|
echo "Thank you & have a lot of fun :)" |