I'm trying to translate JFileChooser into French and so far I have this:
import javax.swing.JFileChooser;
import javax.swing.UIManager;
public class JFileChooserTest {
public static void main(String[] args) throws Exception {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
UIManager.put("FileChooser.acceptAllFileFilterText", "Tous les fichiers");
UIManager.put("FileChooser.directoryOpenButtonText", "Ouvrir");
UIManager.put("FileChooser.openButtonText", "Ouvrir");
UIManager.put("FileChooser.saveButtonText", "Enregitrer");
UIManager.put("FileChooser.cancelButtonText", "Annuler");
UIManager.put("FileChooser.lookInLabelText", "Organiser :");
UIManager.put("FileChooser.fileNameLabelText", "Nom du fichier :");
UIManager.put("FileChooser.filesOfTypeLabelText", "Type :");
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Ouvrir");
chooser.showOpenDialog(null);
}
}
I can't find the translation for "New Folder". How can I get it?

According to https://github.com/openjdk-mirror/jdk7u-jdk/blob/master/src/macosx/classes/com/apple/laf/AquaFileChooserUI.java, it might be one of
"FileChooser.newFolderButtonText""FileChooser.newFolderTitleText""FileChooser.newFolderPromptText"I haven't tried that out myself, just looked for a resource, but this example file seems to point the way.
GL & HF