Jdialogs em português

4 respostas
E

Seguinte, galera, to tentando deixar minha aplicação em português, pra poder internacionaliza-la. Até agora tá funcionando, mas o problema é que os componentes gerados pelo métodos estáticos de Jdiolog tão retornando tudo em ingleŝ. Ou seja, mesmo usando o método

JComponent.setDefaultLocale(Locale.getDefault()); eu ainda to recebendo meus Jdialog em inglês, com as opções “cancel”, “yes”, “save”. O que eu posso fazer pra mudar isso pra minha linguá?

Eu não estou interessado em recriar os Jdialog, eu só quero uma forma de trocar as palavras do inglês pro português, nem que eu memo tenha que criar um arquivo de dr intecionalização ou sei lá. Alguma idéia?

4 Respostas

ViniGodoy

http://www.guj.com.br/java/23249-joption-portugues

E

Ok, cara, resolveu quase tudo, mas a barra de título do JFileChooser continua em inglês. Qual a propriedade da barra de titulo, alguém sabe?

ViniGodoy

Essas são todas as propriedades do JFileChooser:

# The text on the title bar (open dialog)

FileChooser.openDialogTitleText=Open

# The text on the title bar (save dialog)

FileChooser.saveDialogTitleText=Save

# The text for the label in front of the folder selection box (open dialog)

FileChooser.lookInLabelText=Look In:

# The text for the label in front of the folder selection box (save dialog)

FileChooser.saveInLabelText=Save In:

# The tooltip of the button for navigating to the parent folder

FileChooser.upFolderToolTipText=Up One Level

# The tooltip of the button for navigating to the home folder

FileChooser.homeFolderToolTipText=Desktop

# The tooltip of the button used to create a new folder

FileChooser.newFolderToolTipText=Create New Folder

# The tooltip of the button for switching to list view

FileChooser.listViewButtonToolTipText=List

# The tooltip of the button for switching to detailed view

FileChooser.detailsViewButtonToolTipText=Details

# The text placed on the header column displaying the file name in the detailed view

FileChooser.fileNameHeaderText=Name

# The text placed on the header column displaying the file size in the detailed view

FileChooser.fileSizeHeaderText=Size

# The text placed on the header column displaying the file type in the detailed view

FileChooser.fileTypeHeaderText=Type

# The text placed on the header column displaying the last modified date of the file in the detailed view

FileChooser.fileDateHeaderText=Date Modified

# The text placed on the header column displaying the file attributes in the detailed view

FileChooser.fileAttrHeaderText=Attributes

# The text of the label in front of the textfield containing the selected file name

FileChooser.fileNameLabelText=File Name:

# The text for the label in front of the filter selection box

FileChooser.filesOfTypeLabelText=Files of Type:

# The text on the button used to select the file on an open type dialog

FileChooser.openButtonText=Open

# The tooltip text for the button used to select the file on an open type dialog

FileChooser.openButtonToolTipText=Open selected file

# The text on the button used to select the file on a save type dialog

FileChooser.saveButtonText=Save

# The tooltip text for the button used to select the file on a save type dialog

FileChooser.saveButtonToolTipText=Save selected file

# The text on the button used to open a folder while browsing

FileChooser.directoryOpenButtonText=Save

# The tooltip text for the button used to open a folder while browsing

FileChooser.directoryOpenButtonToolTipText=Save selected file

# The text on the button used to cancel the file selection dialog

FileChooser.cancelButtonText=Cancel

# The tooltip text for the button used to cancel the file selection dialog

FileChooser.cancelButtonToolTipText=Abort file chooser dialog

FileChooser.updateButtonText=

FileChooser.updateButtonToolTipText=

FileChooser.helpButtonText=

FileChooser.helpButtonToolTipText=

# The error text to appear when an error occurs while creating a new folder

FileChooser.newFolderErrorText=Error creating new folder

# The description, to appear in the filter combobox, for the filter used in the file chooser to accept all the files.

FileChooser.acceptAllFileFilterText=All Files

# The button caption for confirmation in an option dialog

OptionPane.yesButtonText=Yes

# The button caption for denying an option dialog

OptionPane.noButtonText=No

# The button caption for aborting an option dialog

OptionPane.cancelButtonText=Cancel

# The text for the progress monitor

ProgressMonitor.progressText=Please wait

E

Ok, obrigado, mas agora, descobri que o menu de contexto do FileChooser continua em inglês. Mais alguma dica de onde eu posso achar as propriedades?

Criado 14 de março de 2011
Ultima resposta 16 de mar. de 2011
Respostas 4
Participantes 2