Comment traduire l'UI Swing du JDK dans votre langue
The default Swing UIs, for example, "Cancel" button of Swing
filechooser and Swing colorchooser are coming from JDK, not from
NetBeans. JDK includes these UI messages inside JDK by default for
several languages .e.g. Japanese, Chinese, and etc. But it may not
include your languages. Here is the guide how to localize them into
your language.
Étape
|
|
|

|
Obtenir les Sources Anglais |
l10nkit is available
in File area of translatedfiles.netbeans.org, please pick up.
|
 |
Traduisez les |
Veuilez vous référer à ces documents. Cela dépend de ce que vous utilisez pour les traductions.
The UI messages are including Java files.
translatedfiles/src/swing/src/com/sun/java/swing/plaf/gtk/resources/gtk_<lang>.java
translatedfiles/src/swing/src/com/sun/java/swing/plaf/motif/resources/motif_<lang>.java
translatedfiles/src/swing/src/com/sun/java/swing/plaf/windows/resources/windows_<lang>.java
translatedfiles/src/swing/src/com/sun/swing/internal/plaf/basic/resources/basic_<lang>.properties
translatedfiles/src/swing/src/com/sun/swing/internal/plaf/metal/resources/metal_<lang>.properties
translatedfiles/src/swing/src/com/sun/swing/internal/plaf/synth/resources/synth_<lang>.properties
Important:
Please be careful when you translate .java file. 3 files are .java
files, so when you localize the files, you need to change class name
too. For example, when you translate motif.java to Italian, you need to
change the class name "motif" to "motif_it".
public final class motif_it extends ListResourceBundle {
Also encoding should be unicode ascii, which means you need to run
native2ascii for all java files.
|
 |
Vérifier les fichiers traduits |
Si vous pouvez compiler l'EDI NetBeans, jetez un oeil aux documents suivants, et vérifiez si vos fichiers traduits sont OK sous NetBeans.
|
 |
Commitez vos fichiers dans CVS
|
Copy you translated files into src/ directory and commit them. Veuillez utiliser la branche appropriée pour le check-in. For NetBeans 5.5, we should use "release55" branch.
- Les notifications peuvent être envoyées à cvs@translatedfiles.netbeans.org, vérifiez les archives de mail.
- Vous pouvez vérifier vos fichiers commités sur le web
|
 |
Essayez les builds journaliers |
Daily
builds can be downloaded from
Select "5.5" and "Daily", then click "Continue". Currently only
Japanese, Chinese and Brazilian Portuguese are available. |
Veuillez envoyer vos questions à dev@translatedfiles.netbeans.org.