annotate rhodecode/i18n/how_to @ 4147:1c8f818787b3 rhodecode-2.2.5-gpl

old style: show the full link box on summary page - no overlap or truncation
author Mads Kiilerich <madski@unity3d.com>
date Wed, 02 Jul 2014 19:03:23 -0400
parents eabb273bfd80
children 7e5f8c12a3fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1225
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
1 ##########################
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
2 # to create new language #
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
3 ##########################
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
4
3933
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
5 Translations are available on transifex under::
3925
8ddf35e02d05 updated translations and added transifex link
Marcin Kuzminski <marcin@python-works.com>
parents: 3690
diff changeset
6
8ddf35e02d05 updated translations and added transifex link
Marcin Kuzminski <marcin@python-works.com>
parents: 3690
diff changeset
7 https://www.transifex.com/projects/p/RhodeCode/
8ddf35e02d05 updated translations and added transifex link
Marcin Kuzminski <marcin@python-works.com>
parents: 3690
diff changeset
8
3933
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
9 Preferred method is to register on transifex and request new language translation.
1225
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
10
3933
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
11 manual creation of new language
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
12 +++++++++++++++++++++++++++++++
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
13
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
14 Dowload sources of RhodeCode. Run::
1225
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
15
3933
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
16 python setup.py develop
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
17
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
18 To prepare the enviroment
1225
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
19
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
20
3933
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
21 Make sure all translation strings are extracted by running::
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
22
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
23 python setup.py extract_messages
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
24
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
25 Create new language by executing following command::
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
26 python setup.py init_catalog -l <new_language_code>
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
27
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
28 This creates a new language under directory rhodecode/i18n/<new_language_code>
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
29 Be sure to update transifex mapping under .tx/config for new language
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
30
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
31 Edit the new PO file located in LC_MESSAGES directory with poedit or your
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
32 favorite PO files editor. Do translations and at the end verify the translation
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
33 file for any errors. This can be done by executing::
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
34
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
35 msgfmt -f -c rhodecode/i18n/<new_language_code>/LC_MESSAGES/<updated_file.po>
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
36
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
37 finally compile the translations::
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
38
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
39 python setup.py compile_catalog -l <new_language_code>
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
40
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
41 ##########################
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
42 # to update translations #
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
43 ##########################
1225
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
44
3933
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
45 Fetch latest version of strings for translation by running::
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
46
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
47 python setup.py extract_messages
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
48
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
49 Update PO file by doing::
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
50
3934
eabb273bfd80 fix typo
Marcin Kuzminski <marcin@python-works.com>
parents: 3933
diff changeset
51 python setup.py update_catalog -l <new_language_code><- to update the translations
3933
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
52
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
53 Edit the new updated po file. Repeat all steps after `init_catalog` step from
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
54 new translation instructions
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
55
1225
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
56
3933
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
57 ########################
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
58 # testing translations #
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
59 ########################
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
60
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
61 Edit test.ini file and set lang attribute to::
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
62
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
63 lang=<new_language_code>
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
64
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
65 Run RhodeCode tests by executing::
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
66
a5d30196711e Updated translations how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 3925
diff changeset
67 nosetests