~openerp-chinese-team/openobject-doc/Chinese-init

« back to all changes in this revision

Viewing changes to i18n/zh_CN/source/developer/09_i18n.rst

  • Committer: JoshuaJan
  • Date: 2012-12-04 01:36:44 UTC
  • Revision ID: popkar77@gmail.com-20121204013644-k25kpyac672wxe22
Chinese initialization

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
.. i18n: ===========================
 
3
.. i18n: I18n - Internationalization
 
4
.. i18n: ===========================
 
5
..
 
6
 
 
7
===========================
 
8
I18n - Internationalization
 
9
===========================
 
10
 
 
11
.. i18n: Explain about the multiple language application
 
12
..
 
13
 
 
14
Explain about the multiple language application
 
15
 
 
16
.. i18n: Introduction
 
17
.. i18n: ============
 
18
..
 
19
 
 
20
Introduction
 
21
============
 
22
 
 
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.
 
25
..
 
26
 
 
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.
 
29
 
 
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.
 
31
..
 
32
 
 
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.
 
34
 
 
35
.. i18n: Example of a account.pot file
 
36
..
 
37
 
 
38
Example of a account.pot file
 
39
 
 
40
.. i18n: ::
 
41
.. i18n:    
 
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"
 
53
.. i18n: 
 
54
.. i18n:    #. module: account
 
55
.. i18n:    #: code:addons/account/account.py:0
 
56
.. i18n:    #, python-format
 
57
.. i18n:    msgid "Integrity Error !"
 
58
.. i18n:    msgstr ""
 
59
..
 
60
 
 
61
::
 
62
   
 
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"
 
68
   "Language-Team: \n"
 
69
   "MIME-Version: 1.0\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"
 
74
 
 
75
   #. module: account
 
76
   #: code:addons/account/account.py:0
 
77
   #, python-format
 
78
   msgid "Integrity Error !"
 
79
   msgstr ""
 
80
 
 
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.
 
82
..
 
83
 
 
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.
 
85
 
 
86
.. i18n: Example of fr_FR.po for account module translates in French language
 
87
..
 
88
 
 
89
Example of fr_FR.po for account module translates in French language
 
90
 
 
91
.. i18n: ::
 
92
.. i18n:   
 
93
.. i18n:   # Translation of OpenERP Server.
 
94
.. i18n:   # This file contains the translation of the following modules:
 
95
.. i18n:   #    * account
 
96
.. i18n:   #
 
97
.. i18n:   msgid ""
 
98
.. i18n:   msgstr ""
 
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"
 
110
.. i18n: 
 
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é !"   
 
116
.. i18n:   
 
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.   
 
119
..
 
120
 
 
121
::
 
122
  
 
123
  # Translation of OpenERP Server.
 
124
  # This file contains the translation of the following modules:
 
125
  #     * account
 
126
  #
 
127
  msgid ""
 
128
  msgstr ""
 
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"
 
134
  "Language-Team: \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"
 
140
 
 
141
  #. module: account
 
142
  #: code:addons/account/account.py:0
 
143
  #, python-format
 
144
  msgid "Integrity Error !"
 
145
  msgstr "Erreur d'Intégrité !"   
 
146
  
 
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.