Mercurial > dive4elements > gnv-client
annotate doc/config-manual/adding_new_languages.tex @ 1143:597163195dc9
dummy merge for repo head
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:15:21 +0200 |
parents | 411b09d348ca |
children |
rev | line source |
---|---|
1134
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
1 \subsection{Adding new Languages} |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
2 The GNV-Server has the possibility to handle different languages. It is |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
3 necessary to configure those. |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
4 |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
5 The configuration is divided into three steps: |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
6 |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
7 \begin{enumerate} |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
8 \item Adding the required resource-file to the GNV-Server |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
9 \\{\tt /gnv-artifacts/src/main/resources/lang } |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
10 \item Adding the required resource-file to the GNV-Web-Client |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
11 {\tt /gnv/src/main/resources} |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
12 \item Publishing the new language to the GNV-Server by adding the |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 language-code to the file |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
14 \\{\tt /gnv-artifacts/src/main/resources/lang/lang.conf} |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
15 \end{enumerate} |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
17 To generate the resource-files it might be helpful to copy an existing one and |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 translate its content into the desired language. |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
19 |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
20 Please note that you have to re-package the modules gnv and gnv-artifacts to |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
21 enable the new languages - currently, only german and english are provided. |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
22 If you want to provide further languages you have to change the toggle-mechanism |
411b09d348ca
Some refactoring of 'Adding new Languages' section.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
23 for switching the language in the web-client. |