Mercurial > kallithea
annotate rhodecode/i18n/how_to @ 1583:8e77c75bd65a beta
made auth type optional in constructor
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 21 Oct 2011 13:28:32 +0200 |
parents | 357b0c18f844 |
children | 4857ed50f498 |
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 | 4 |
1225
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
5 #this needs to be done on source codes, preferable default/stable branches |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
6 |
0 | 7 python setup.py extract_messages -> get messages from project |
1225
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
8 python setup.py init_catalog -l pl -> create a language directory for <pl> lang |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
9 edit the new po file with poedit or any other editor |
0 | 10 python setup.py compile_catalog -> create translation files |
1225
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
11 |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
12 ############# |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
13 # to update # |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
14 ############# |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
15 |
0 | 16 python setup.py extract_messages -> get messages from project |
17 python setup.py update_catalog -> to update the translations | |
18 edit the new updated po file with poedit | |
19 python setup.py compile_catalog -> create translation files | |
1225
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
20 |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
21 |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
22 ################### |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
23 # change language # |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
24 ################### |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
25 |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
26 `lang=en` |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
27 |
357b0c18f844
refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
28 in the .ini file |