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.

Bug 216303 - I18N: language switching doesn't work when installation is performed in English
Summary: I18N: language switching doesn't work when installation is performed in English
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.2
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2012-08-02 08:33 UTC by Masaki Katakai
Modified: 2012-10-10 14:16 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2012-08-02 08:33:40 UTC
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.
Comment 1 Antonin Nebuzelsky 2012-08-03 11:19:06 UTC
Caches in netbeans-7.2/nb/var/cache are created at installation time (issue 209263).

Reassigning to installer for evaluation of this usecase.
Comment 2 Jiri Rechtacek 2012-08-03 11:42:05 UTC
(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?
Comment 3 Jaroslav Tulach 2012-09-12 15:38:48 UTC
ergonomics#4df913ce087a

Can I backport to release 7.2?
Comment 4 Quality Engineering 2012-09-15 02:12:31 UTC
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
Comment 5 Tomas Danek 2012-10-05 08:27:54 UTC
verified in 20121002, menus & stuff are correctly localised. Please backport.
Comment 6 Jaroslav Tulach 2012-10-08 17:34:39 UTC
Merged into release72 as 5e5132223da7
Comment 7 Quality Engineering 2012-10-10 14:16:34 UTC
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