File: README

package info (click to toggle)
performous 1.1%2Bgit20181118-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,712 kB
  • sloc: cpp: 30,008; ansic: 2,751; sh: 801; xml: 464; python: 374; makefile: 22
file content (66 lines) | stat: -rw-r--r-- 2,452 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Translation guide
=================

We recommend using POEdit (http://www.poedit.net/)
For Windows, download it from the website.
Most Linux distros have it in their repositories.

NOTE: Don't generate the binary .mo files - they are
      compiled (and installed) with Performous build

Updating existing translations
------------------------------
  1. Open the .po file in POEdit.
  2. Hit the Synchronize to source button in the toolbar.
  3. Start translating.
  4. Remember to save.

NOTES:
  * Setup your name and email in POEdit preferences if you haven't used it before
  * Also setup the Performous XML parser as instructed below
  * POEdit C/C++ parser might not recognize .hh extension by default, so add that:
    Edit -> Preferences -> Parsers -> C/C++ -> Edit -> List of extensions

Configuring the Performous XML parser
-------------------------------------
These steps enable translation of the XML locate bits.
  1. Click Edit -> Preferences
  2. Click the Parsers tab
  3. Click the New button and fill out the form like this:
       Language: Performous XML
       List of extensions: *.xml
       Parser command: $SOURCE_ROOT/tools/scripts/xml_gettext.sh %o %F
       An item in keywords list:
       An item in input files list: %f
       Source code charset:
     Where $SOURCE_ROOT is the path to the performous sources root.
  4. Click Okay

Creating a new catalog
----------------------
These are the steps to create a new catalog, but easiest
is probably just copy one of the existing ones and start
from there (in which case you can skip these steps.)

   1. Start POEdit
   2. Click File -> New Catalog
   3. Enter a project name (performous)
   4. Click the Paths tab at the top
   5. Click the New Item icon (second one, looks like a little square)
   6. Enter the path to the directory containing your plug-in file ("." tells POEdit to scan the directory that you will save the file to, usually only need to include ../game and ../data), press enter
   7. Click the Keywords tab at the top
   8. Click the New Item icon
   9. Enter _ (that's underscore), press enter
  10. Enter translate_noop and press enter
  11. Click Okay
  12. Choose a name for your .po file (performous) 
  13. Follow the instructions above to enable XML translation

REMEMBER TO SAVE WITH YOU LOCALE NAME

Example for English:
en.po

Acknowledgements
----------------
Thanks to guide at http://codex.wordpress.org/User:Skippy/Creating_POT_Files