Difference between revisions of "User:Masao/i18n"
m (in the <locale-config> element) |
(Login.jspf and images) |
||
Line 10: | Line 10: | ||
Add information for a link to language-specific helps. | Add information for a link to language-specific helps. | ||
(maybe no need to work right now...) | (maybe no need to work right now...) | ||
===pubman_presentation/src/main/webapp/desktop/Login.jspf=== | |||
Add a locale switch link for new language. | |||
====pubman_presentation/src/main/webapp/image==== | |||
Current implementation needs the national flag for the language. (really?) | |||
Put the image file here, and link to it from the jspf. | |||
I got an image of the PD Japanese flag from WM, and modified it for the desired size (currently 30x15). | |||
===pubman_presentation/src/main/resources/{Message,Label}_ja.properties=== | ===pubman_presentation/src/main/resources/{Message,Label}_ja.properties=== |
Revision as of 14:08, 22 September 2008
On 2008-09-22, I made some of Japanese resources for PubMan.
Howto[edit]
pubman_presentation/src/main/webapp/WEB-INF/faces-config.xml[edit]
Add the following line in the <locale-config> element:
<supported-locale>ja</supported-locale>
pubman_presentation/src/main/java/de/mpg/escidoc/pubman/util/InternationalizationHelper.java[edit]
Add information for a link to language-specific helps. (maybe no need to work right now...)
pubman_presentation/src/main/webapp/desktop/Login.jspf[edit]
Add a locale switch link for new language.
pubman_presentation/src/main/webapp/image[edit]
Current implementation needs the national flag for the language. (really?) Put the image file here, and link to it from the jspf.
I got an image of the PD Japanese flag from WM, and modified it for the desired size (currently 30x15).
pubman_presentation/src/main/resources/{Message,Label}_ja.properties[edit]
Copy from each "*_en" into "*_ja" properties files, and then add Japanese translations for labels/messages.
Note that Java does not support native encodings of Japanese characters. You need to use unicode-escaping. "native2ascii" utility will work for that purpose, but PropertyEditor plugin for eclipse works fine.