Roxen.git
/
local
/
translations
/
README
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/local/translations/README:32:
to the translations directory. 3) Create a project description xml file in the configs directory specifying the files that are part of your module: <?xml version="1.0" encoding="iso-8859-1"?> <project name="myproject"> <nocopy /> <baselang>eng</baselang>
-
<xmlpath>
../local/translations/
%L/myproject.xml</xmlpath>
-
<file>../
local/
modules/myproject.pike</file>
+
<xmlpath>%L/myproject.xml</xmlpath>
+
<file>../modules/myproject.pike</file>
</project>
-
Note: The file names are specified relative to the
server
+
Note: The file names are specified relative to the
translations
directory. Note: The path specified in <xmlpath> must correspond to the one in register_project() above in step 2. Note: The directory for the language specified in <baselang> must exist before the next step. 4) Now you can actually generate the translation template files. On Unix, Linux and MacOS X, you simply run make: make On NT you will have to invoke the extractor by hand:
-
../../ntstart --silent-start --program -x extract_locale --config="
%PWD%
/myproject.xml" --wipe --sync
+
../../ntstart --silent-start --
cd "%PWD%" --
program -x extract_locale --config="
configs
/myproject.xml" --wipe --sync
5) To make an initial translation, create an empty translation file for that language or copy the default language file, and rerun the command in step 4. On Unix, Linux and MacOS X: mkdir ger touch ger/myproject.xml make
Roxen.git/local/translations/README:78:
Note: Language catalogs are named according to ISO 639-2/T. To get a list valid of ISO 639-2/T codes you can execute: ../../start --silent-start --program \ -e 'write("%O", Standards.ISO639_2.list_languages_t());' 6) To update the translation files, simply rerun the command in step 4. Strings that need to be translated will be marked with <new/>.
-
$Id: README,v 1.
2
2005/03/
22
19
:
36
:
42
grubba Exp $
+
$Id: README,v 1.
3
2005/03/
23
12
:
34
:
48
grubba Exp $