This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Please evaluate the following scenario. It seems that language switching by using --locale or setting LANG environment variables is not working when I install NetBeans in English locale. 1. download http://download.netbeans.org/netbeans/7.2/final/bundles/netbeans-7.2-ml-javase-linux.sh 2. install NetBeans using the installer in English locale 3. remove userdir ~/.netbeans and ~/.cache/netbeans 4. Try to start NetBeans with --locale option e.g. ./netbeans-7.2/bin/netbeans --locale zh:CN You can find localized strings appear on splash screen, however, menus and buttons on IDE are English. 5. remove userdir ~/.netbeans and ~/.cache/netbeans 6. remove all-manifests.dat file under NetBeans installation directory rm netbeans-7.2/nb/var/cache/all-manifests.dat 7. Try to start NetBeans with --locale option again ./netbeans-7.2/bin/netbeans --locale zh:CN Now all menus and UIs are localized on IDE. After removing all-manifests.dat under NetBeans installation directory (not netbeans userdir), it works. Who made all-manifests.dat? It seems that localized jar files are not in all-manifests.dat when installer is started in English locale. I tried zip distribution, it does not contain nb/var/cache in it. So there is no problem. This problem happens when installation is performed by installer in English.
Caches in netbeans-7.2/nb/var/cache are created at installation time (issue 209263). Reassigning to installer for evaluation of this usecase.
(In reply to comment #0) > 6. remove all-manifests.dat file under NetBeans installation directory > Now all menus and UIs are localized on IDE. Jardo, what do you think? To remember a active locale somewhere and make caches dirty if the current locale is different from stored locale?
ergonomics#4df913ce087a Can I backport to release 7.2?
Integrated into 'main-golden', will be available in build *201209150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4df913ce087a User: Jaroslav Tulach <jtulach@netbeans.org> Log: #216303: Remember the locale and branding and in case of change skip the ModuleManager cache
verified in 20121002, menus & stuff are correctly localised. Please backport.
Merged into release72 as 5e5132223da7
Integrated into 'releases', will be available in build *201210100934* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/4df913ce087a User: Jaroslav Tulach <jtulach@netbeans.org> Log: #216303: Remember the locale and branding and in case of change skip the ModuleManager cache