2
.. i18n: ===========================
3
.. i18n: I18n - Internationalization
4
.. i18n: ===========================
7
===========================
8
I18n - Internationalization
9
===========================
11
.. i18n: Explain about the multiple language application
14
Explain about the multiple language application
23
.. i18n: The I18n contains the translation of module in different languages. The folder contains two type of files .po and .pot.
24
.. i18n: The .po files are the actual translation files where as .pot is the template for the translation.
27
The I18n contains the translation of module in different languages. The folder contains two type of files .po and .pot.
28
The .po files are the actual translation files where as .pot is the template for the translation.
30
.. i18n: The .po files should be named according to the language code of specific language and .pot should be named according to the module name.
33
The .po files should be named according to the language code of specific language and .pot should be named according to the module name.
35
.. i18n: Example of a account.pot file
38
Example of a account.pot file
42
.. i18n: "Project-Id-Version: OpenERP Server 5.0.0\n"
43
.. i18n: "Report-Msgid-Bugs-To: support@openerp.com\n"
44
.. i18n: "POT-Creation-Date: 2009-05-19 14:36+0000\n"
45
.. i18n: "PO-Revision-Date: 2009-05-20 10:36+0000\n"
46
.. i18n: "Last-Translator: <>\n"
47
.. i18n: "Language-Team: \n"
48
.. i18n: "MIME-Version: 1.0\n"
49
.. i18n: "Content-Type: text/plain; charset=UTF-8\n"
50
.. i18n: "Content-Transfer-Encoding: 8bit\n"
51
.. i18n: "X-Launchpad-Export-Date: 2009-12-07 15:06+0000\n"
52
.. i18n: "X-Generator: Launchpad (build Unknown)\n"
54
.. i18n: #. module: account
55
.. i18n: #: code:addons/account/account.py:0
56
.. i18n: #, python-format
57
.. i18n: msgid "Integrity Error !"
63
"Project-Id-Version: OpenERP Server 5.0.0\n"
64
"Report-Msgid-Bugs-To: support@openerp.com\n"
65
"POT-Creation-Date: 2009-05-19 14:36+0000\n"
66
"PO-Revision-Date: 2009-05-20 10:36+0000\n"
67
"Last-Translator: <>\n"
70
"Content-Type: text/plain; charset=UTF-8\n"
71
"Content-Transfer-Encoding: 8bit\n"
72
"X-Launchpad-Export-Date: 2009-12-07 15:06+0000\n"
73
"X-Generator: Launchpad (build Unknown)\n"
76
#: code:addons/account/account.py:0
78
msgid "Integrity Error !"
81
.. i18n: The above file is the template for the translation files for the account module they tell what all values of the module should be translated in the respective languages.
84
The above file is the template for the translation files for the account module they tell what all values of the module should be translated in the respective languages.
86
.. i18n: Example of fr_FR.po for account module translates in French language
89
Example of fr_FR.po for account module translates in French language
93
.. i18n: # Translation of OpenERP Server.
94
.. i18n: # This file contains the translation of the following modules:
99
.. i18n: "Project-Id-Version: OpenERP Server 5.0.0\n"
100
.. i18n: "Report-Msgid-Bugs-To: support@openerp.com\n"
101
.. i18n: "POT-Creation-Date: 2009-05-19 14:36+0000\n"
102
.. i18n: "PO-Revision-Date: 2010-01-04 11:19+0530\n"
103
.. i18n: "Last-Translator: Anup <ach@tinyerp.co.in>\n"
104
.. i18n: "Language-Team: \n"
105
.. i18n: "MIME-Version: 1.0\n"
106
.. i18n: "Content-Type: text/plain; charset=UTF-8\n"
107
.. i18n: "Content-Transfer-Encoding: 8bit\n"
108
.. i18n: "X-Launchpad-Export-Date: 2009-12-07 15:07+0000\n"
109
.. i18n: "X-Generator: Launchpad (build Unknown)\n"
111
.. i18n: #. module: account
112
.. i18n: #: code:addons/account/account.py:0
113
.. i18n: #, python-format
114
.. i18n: msgid "Integrity Error !"
115
.. i18n: msgstr "Erreur d'Intégrité !"
117
.. i18n: The above file translates the values of msgid to French in msgstr. Based on the msgid present in the .pot file.
118
.. i18n: fr_FR is the language code for French language in which fr specifies the language and FR specifies the country in which the language is spoken.
123
# Translation of OpenERP Server.
124
# This file contains the translation of the following modules:
129
"Project-Id-Version: OpenERP Server 5.0.0\n"
130
"Report-Msgid-Bugs-To: support@openerp.com\n"
131
"POT-Creation-Date: 2009-05-19 14:36+0000\n"
132
"PO-Revision-Date: 2010-01-04 11:19+0530\n"
133
"Last-Translator: Anup <ach@tinyerp.co.in>\n"
135
"MIME-Version: 1.0\n"
136
"Content-Type: text/plain; charset=UTF-8\n"
137
"Content-Transfer-Encoding: 8bit\n"
138
"X-Launchpad-Export-Date: 2009-12-07 15:07+0000\n"
139
"X-Generator: Launchpad (build Unknown)\n"
142
#: code:addons/account/account.py:0
144
msgid "Integrity Error !"
145
msgstr "Erreur d'Intégrité !"
147
The above file translates the values of msgid to French in msgstr. Based on the msgid present in the .pot file.
148
fr_FR is the language code for French language in which fr specifies the language and FR specifies the country in which the language is spoken.