##// END OF EJS Templates
fix typo
marcink -
r3934:eabb273b beta
parent child Browse files
Show More
@@ -1,67 +1,67 b''
1 1 ##########################
2 2 # to create new language #
3 3 ##########################
4 4
5 5 Translations are available on transifex under::
6 6
7 7 https://www.transifex.com/projects/p/RhodeCode/
8 8
9 9 Preferred method is to register on transifex and request new language translation.
10 10
11 11 manual creation of new language
12 12 +++++++++++++++++++++++++++++++
13 13
14 14 Dowload sources of RhodeCode. Run::
15 15
16 16 python setup.py develop
17 17
18 18 To prepare the enviroment
19 19
20 20
21 21 Make sure all translation strings are extracted by running::
22 22
23 23 python setup.py extract_messages
24 24
25 25 Create new language by executing following command::
26 26 python setup.py init_catalog -l <new_language_code>
27 27
28 28 This creates a new language under directory rhodecode/i18n/<new_language_code>
29 29 Be sure to update transifex mapping under .tx/config for new language
30 30
31 31 Edit the new PO file located in LC_MESSAGES directory with poedit or your
32 32 favorite PO files editor. Do translations and at the end verify the translation
33 33 file for any errors. This can be done by executing::
34 34
35 35 msgfmt -f -c rhodecode/i18n/<new_language_code>/LC_MESSAGES/<updated_file.po>
36 36
37 37 finally compile the translations::
38 38
39 39 python setup.py compile_catalog -l <new_language_code>
40 40
41 41 ##########################
42 42 # to update translations #
43 43 ##########################
44 44
45 45 Fetch latest version of strings for translation by running::
46 46
47 47 python setup.py extract_messages
48 48
49 49 Update PO file by doing::
50 50
51 python setup.py update_catalog -l pl<- to update the translations
51 python setup.py update_catalog -l <new_language_code><- to update the translations
52 52
53 53 Edit the new updated po file. Repeat all steps after `init_catalog` step from
54 54 new translation instructions
55 55
56 56
57 57 ########################
58 58 # testing translations #
59 59 ########################
60 60
61 61 Edit test.ini file and set lang attribute to::
62 62
63 63 lang=<new_language_code>
64 64
65 65 Run RhodeCode tests by executing::
66 66
67 67 nosetests
General Comments 0
You need to be logged in to leave comments. Login now