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 200730 - Services tab "remembers" the name after locale switch
Summary: Services tab "remembers" the name after locale switch
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: I18N
: 220232 221455 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-07 13:03 UTC by yuriy_lalym
Modified: 2012-11-13 14:37 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (261.48 KB, image/png)
2011-08-07 13:03 UTC, yuriy_lalym
Details
screenshot (90.35 KB, image/png)
2011-08-08 20:53 UTC, yuriy_lalym
Details
screenshot on NB7.3 Beta2 (35.10 KB, image/jpeg)
2012-11-12 02:50 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yuriy_lalym 2011-08-07 13:03:33 UTC
Created attachment 109833 [details]
screenshot

In main menu - Services
Comment 1 Masaki Katakai 2011-08-08 07:01:15 UTC
Thank you for filing the issue.

I think you wanted to say "Services" is not reverted back to English.

I understand this is the expected behavior now. When we switch
NetBeans language, NetBeans cache should be deleted. I think
you had started NetBeans in different language before.

Please refer to the following FAQs.

http://wiki.netbeans.org/FaqMessagesInEnglish
http://blogs.oracle.com/katakai/entry/start_netbeans_in_english_uis
Comment 2 yuriy_lalym 2011-08-08 20:53:45 UTC
Created attachment 109876 [details]
screenshot

Product Version: NetBeans IDE Dev (Build 201108070600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17

1. rm -fr $HOME/.netbeans/dev
2. Start NetBeans from KDE Menu (Russian interface). Close
3. Start konsole

> export LANG=C
> export LC_ALL=C
> ./netbeans

See screenshot.

+

Product Version: NetBeans IDE Dev (Build 201108080600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17

4. cd /usr/local/netbeans-dev-201108080600/bin/
> export LANG=C
> export LC_ALL=C
> ./netbeans

See screenshot (The same result)

If I first time will start NetBeans with the Russian interface - nothing will help
Comment 3 yuriy_lalym 2011-08-08 21:03:10 UTC
Where that met me other decision 

-J-Duser.language=en -J-Duser.region=US

Usually I by him and I use, but it the same in this case not effectively.
Comment 4 Masaki Katakai 2011-08-08 21:29:59 UTC
The wiki says that netbeans user directory needs to be removed
when you switch the language.

In you steps,

(In reply to comment #2)
> 4. cd /usr/local/netbeans-dev-201108080600/bin/

You need to remove ~/.netbeans/dev here.

rm -fr $HOME/.netbeans/dev

> > export LANG=C
> > export LC_ALL=C
> > ./netbeans
Comment 5 yuriy_lalym 2011-08-08 23:30:41 UTC
To switch language I should destroy each time all adjustments. Not bad.

Well - has deleted $HOME/.netbeans/dev
export LANG=C
export LC_ALL=C
./netbeans - All in English

Close

And now from other terminal (and not remove dev)

echo LC_ALL
LC_ALL
echo $LANG
ru_RU.UTF-8
./netbeans - All in Russian

And deleted nothing and has from English into Russian passed correctly.
Why causes a problem reverse passage? 

You excuse, actually I don't insist. If you consider that everything is all right - simply close this question.
Comment 6 Jaroslav Tulach 2011-08-27 17:30:51 UTC
Fixed together with bug 199320 I think.

*** This bug has been marked as a duplicate of bug 199320 ***
Comment 7 Masaki Katakai 2012-11-12 02:43:02 UTC
*** Bug 221455 has been marked as a duplicate of this bug. ***
Comment 8 Masaki Katakai 2012-11-12 02:45:47 UTC
I got a report as bug 221455. It seems that it's still happening.
I tried it on NB7.3 Beta2 on Windows 7.

1. start NetBeans in ja locale and quit
2. start NetBeans with --locale en:US option to start as English UI

"Services" is still Japanese. Others can be switched to English.

Could you evaluate again?
Comment 9 Masaki Katakai 2012-11-12 02:50:18 UTC
Created attachment 127571 [details]
screenshot on NB7.3 Beta2
Comment 10 Masaki Katakai 2012-11-12 02:53:45 UTC
*** Bug 220232 has been marked as a duplicate of this bug. ***
Comment 11 Jaroslav Tulach 2012-11-13 09:56:49 UTC
I am changing title to closer match the problem. Is it correct? 

If so, let's start investigation from the owner of core.ide/**/ServicesTab which seems to belong to platform/-- other -- category. I suspect the name of the tab may be persisted between sessions either by ServicesTab itself of by Window system (CCing Standa).

If the change title does not match the subject, feel free to update it and possibly reassign back to me.
Comment 12 ecerichter 2012-11-13 10:04:33 UTC
(In reply to comment #11)
> I am changing title to closer match the problem. Is it correct? 
> 
> If so, let's start investigation from the owner of core.ide/**/ServicesTab
> which seems to belong to platform/-- other -- category. I suspect the name of
> the tab may be persisted between sessions either by ServicesTab itself of by
> Window system (CCing Standa).
> 
> If the change title does not match the subject, feel free to update it and
> possibly reassign back to me.

It describes correctly the issue behavior: at first place, I had Portuguese Brazilian configured, just later I've chosen to keep it in US English. Only the "services" tab kept the old internationalized name.

Thanks,
Edson
Comment 13 Stanislav Aubrecht 2012-11-13 14:20:04 UTC
When a window is persisted its display name (in current locale) is written to disk. When you restore the window in a different locale the persisted name will take precedence. Note that some windows (e.g. Projects) reset their display name with each selection changes in their content.

As noted in the FAQ you need to clear caches. Alternatively you can just delete <userdir>/config/Windows2Local folder.
Comment 14 ulim 2012-11-13 14:33:26 UTC
That is an overly broad workaround, as you will lose all your settings. It is enough to remove the services.settings file.
Comment 15 Stanislav Aubrecht 2012-11-13 14:37:56 UTC
(In reply to comment #14)
> That is an overly broad workaround, as you will lose all your settings. It is
> enough to remove the services.settings file.

Yes, that's an option too.

I could even add a hack to Services/Welcome TopComponent code but there are probably other windows that suffer from this problem so it wouldn't be a real fix anyway.