Ola
A grosso modo alguem poderia me explicar como funciona isso.
Andei pesquisando no amigo Google.
e achei isso
http://www.javafree.org/javabb/viewtopic.jbb?t=1387
eu estou desenvolvendo uma aplicativo baseando em api,
para desenvolver estou seguindo um manual, agora cheguei na
Internationalization (I18N) que é um padrão para modificar a linguagem do
sistema. o dono da api fornece essa classe segue uma parte do codigo.
[code]public class DjtResources_de extends ListResourceBundle {
/**
- Returns an array of key/value pairs.
/
public Object[][] getContents() {
return contents;
}
/* - The string definitions.
*/
public final Object[][] contents = {
{ “OK”, “OK” },
{ “CANCEL”, “Abbruch” },
{ “UNTITLED”, “Ohne Name” },
{ “ALL”, “Alle” },
{ “NONE”, “Keine” }
}[/code]
tendo essa classe em mão, fiz as traduções pertinentes
agora é como implemento isso.
O dono da api menciona assim em Inglês que não manjo muito.
9. Internationalization (I18N)
Internationalization and localization in DJT consist mainly of the following two items:
? String translation into other languages
? Date formatting into standards used by other countries
Using the standard Java resource bundle mechanism solved the string translation problem.
The default DJT resource bundle class is called DjtResources7. To add your own language
specific resource bundle (English and German are included) create a subclass of
ListResourceBundle and override the getContents(). Your own resource bundle must be
inside the package com.dlsc.djt! The following code fragment shows the German
resource bundle. The contents variable consists of an array of key / value pairs. To find out
which keys are supported look for the DjtResources.java source code file in the DJT
distribution.
Alguem pode me ajudar.