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