annotate rhodecode/i18n/how_to @ 3882:2c5ceb546234 beta

renamed gists routing to proper plural names
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 20 May 2013 21:40:00 +0200
parents b2332bfb61de
children 8ddf35e02d05
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
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
2577
4857ed50f498 added format check command into i18n how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 1225
diff changeset
7 python setup.py extract_messages <- get messages from project
4857ed50f498 added format check command into i18n how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 1225
diff changeset
8 python setup.py init_catalog -l pl <- create a language directory for <pl> lang
4857ed50f498 added format check command into i18n how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 1225
diff changeset
9 #edit the new po file with poedit or any other editor
4857ed50f498 added format check command into i18n how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 1225
diff changeset
10 msgfmt -f -c <updated_file.po> <- check format and errors
3690
b2332bfb61de update i18n
Marcin Kuzminski <marcin@python-works.com>
parents: 2577
diff changeset
11 python setup.py compile_catalog -l pl <- create translation files
1225
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 #############
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
14 # to update #
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
15 #############
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
16
2577
4857ed50f498 added format check command into i18n how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 1225
diff changeset
17 python setup.py extract_messages <- get messages from project
3690
b2332bfb61de update i18n
Marcin Kuzminski <marcin@python-works.com>
parents: 2577
diff changeset
18 python setup.py update_catalog -l pl<- to update the translations
2577
4857ed50f498 added format check command into i18n how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 1225
diff changeset
19 #edit the new updated po file with poedit
4857ed50f498 added format check command into i18n how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 1225
diff changeset
20 msgfmt -f -c <updated_file.po> <- check format and errors
3690
b2332bfb61de update i18n
Marcin Kuzminski <marcin@python-works.com>
parents: 2577
diff changeset
21 python setup.py compile_catalog -l pl <- create translation files
1225
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
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 # change language #
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
26 ###################
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
27
2577
4857ed50f498 added format check command into i18n how_to
Marcin Kuzminski <marcin@python-works.com>
parents: 1225
diff changeset
28 `lang=pl`
1225
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
29
357b0c18f844 refreshed how_to on translations
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
30 in the .ini file