Bug 120625

Summary: Duplicate status settings in tray icon menu
Product: [Translations] i18n Reporter: Funda Wang <fundawang>
Component: generalAssignee: Will Stephenson <wstephenson>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, kmashrab, kopete-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: My kopete tray menu
my msn account menu
Uzbek Kopete. Messages Online and Offline are translated.
Uzbek Kopete. Message Offline is not translated.
Uzbek Kopete. Message Offline is translated as Blah-blah.
kopete-0.12b1-fix-unknown-reason.patch

Description Funda Wang 2006-01-23 02:48:53 UTC
Version:           0.11 (using KDE KDE 3.5.1)
Installed from:    Mandriva RPMs
OS:                Linux

I'm using kopete under zh_CN locale. In the kopete tray icon popup menu, there are several submenus for every individual accounts, which can be used to set the online status of correspoding accounts.

But the options inside such submenus are duplicated quite much. Screenshot follows.
Comment 1 Funda Wang 2006-01-23 03:04:00 UTC
Created attachment 14348 [details]
My kopete tray menu

There are too more duplicated items in individual account menu.
Comment 2 Funda Wang 2006-01-23 03:09:23 UTC
Created attachment 14349 [details]
my msn account menu
Comment 3 Olivier Goffart 2006-01-23 09:00:36 UTC
wow, i never seen that.

are the entry also duplicated in the account menu of the contactlist window (when you right clic on the account icon)

Is it dependent of the language ?   try to run kopete with a different local (eg english)
Comment 4 Funda Wang 2006-01-23 09:24:13 UTC
> are the entry also duplicated in the account menu of the contactlist
> window (when you right clic on the account icon) 
Yes.

> Is it dependent of the language ?
> try to run kopete with a different local (eg english)
Here is my research on the problem. I've set the preferred languages via kcontrol.
1. zh_CN only -> wrong result, while many items are missing, such as out for lanch.
2. zh_CN, C -> wrong result.
3. zh_TW only -> wrong result
4. zh_TW, C -> correct result.
5. en_US -> correct result.
Comment 5 Sonyu Chen 2006-01-23 09:32:50 UTC
Hi, 

I was translating the zh_TW po file of kopete, and I encountered the problem too.  

At that time I did two things:

* Keep some of the items untranslated making the translated items not broken, so that users still have access to all statuses.

* To see if it was I broke the po file or not, I made another po file (from the pot file) with only the statuses translated. Well, it was also broken.  

  Please refer to bug 115714: http://bugs.kde.org/show_bug.cgi?id=115714

  So I think it is independent of languages.
Comment 6 Funda Wang 2006-01-23 09:44:48 UTC
And if I set to japanese only in kcontrol, the MSN account's menu will become wrong, too. But the jabber menu left correct :???
Comment 7 Sonyu Chen 2006-01-23 09:54:40 UTC
Wang, can you provide the locale, the KDE setting, and the list of zh_TW fonts on your system? I wanna reproduce the "wrong" in the 3rd item in #4. (I am using kde-3.5 and kopete 0.11.0)

Thanks
Comment 8 Funda Wang 2006-01-23 10:12:15 UTC
I didn't change my locale, it is always zh_CN. I just configure kcontrol(klocale) so that it contains zh_TW only as my language.

I'm using KDE 3.5 with kopete 0.11.0 also :) But I doubt the problem could be related to font (Uming).
Comment 9 Sonyu Chen 2006-01-23 12:33:55 UTC
Yep, I found several Yahoo status duplicated in zh_TW.  I haven't use Yahoo for a long time so I was not aware of this.  Thanks for notifying me that, I'll fix it in zh_TW. :)

However the original bug, I guess, might be some auto replace mechanisms, e.g.
if string "Out to lunch" is not present then use something simliar.  But I know little about the source code so I'm not sure what happened there. :)
Comment 10 Mashrab Kuvatov 2006-01-24 22:25:32 UTC
Created attachment 14371 [details]
Uzbek Kopete. Messages Online and Offline are translated.
Comment 11 Mashrab Kuvatov 2006-01-24 22:26:45 UTC
Created attachment 14372 [details]
Uzbek Kopete. Message Offline is not translated.
Comment 12 Mashrab Kuvatov 2006-01-24 22:28:31 UTC
Created attachment 14373 [details]
Uzbek Kopete. Message Offline is translated as Blah-blah.
Comment 13 Mashrab Kuvatov 2006-01-24 22:56:12 UTC
I have the similar problem with Kopete in KDE-3.5 branch. In my case Kopete translated in Uzbek.

Here I will try to explain my screen shots showing ICQ and Jabber status menu.

Case 1. The status messages "O&nline", "Online", "&Online", "Offline" and "O&ffline" are translated. Instead of "O&ffline" message O&nline (Он&лайн) is shown.
Case 2. The status messages "Offline" is not translated. Everything is as expected.
Case 3. The same as in Case 1, but message "Offline" is translated as "Blah-blah". Everything is as expected.

Like you see the Case 1 and Case 3 are not consistent. Moreover, it not only the wrong message, but the action is also not correct (look at the icons). So, in Case 1 if one clicks on the second "O&nline" (Он&лайн), it really goes online.

From my observations I conclude that the bug is in the code not in the translations.

PS. The accelerators () in ICQ status messages make no sense. At least, it is not consistent with the status messages for other protocols.
Comment 14 Matt Rogers 2006-02-19 05:49:35 UTC
guidance from the translators on how to fix this properly would be appreciated. Is it just a matter of removing the accelerators from the menus and letting the code that assigns accelerators automatically do the trick?
Comment 15 Mashrab Kuvatov 2006-02-20 18:51:20 UTC
I've just tested Kopete 0.12 branch. It seems the problem I had has gone. I tested it with a translation of a stable branch. I'll do some more test to make sure it is fixed.

For the sake of consistency, could you please remove the accelerators from ICQ status messages (O&nline, &Away...).
Comment 16 Olivier Goffart 2006-03-24 11:36:53 UTC
> I've just tested Kopete 0.12 branch. It seems the problem I had has gone.

If you say it...

I still don't beleive my eyes when looking the screenshot :-)
Comment 17 Mashrab Kuvatov 2006-03-27 16:11:16 UTC
I removed kdenetwork-kopete (0.11) and did a clean compile/install of 0.12. The problem is still there. So, reopening...
Comment 18 Olivier Goffart 2006-04-15 09:52:38 UTC
I have no idea where the problem could be,  so no idea how to fix it.
Comment 19 Funda Wang 2006-11-14 01:36:49 UTC
Created attachment 18531 [details]
kopete-0.12b1-fix-unknown-reason.patch

How do you like this patch? It works under zh_CN locale. But I don't know if it
solves other locales.
Comment 20 Funda Wang 2006-12-02 16:53:07 UTC
What is the status of this bug and the patch I've provided?
Comment 21 Lukáš Tinkl 2006-12-04 11:49:51 UTC
I'll test the patch 
Comment 22 Lukáš Tinkl 2006-12-04 16:25:44 UTC
Will wants it
Comment 23 Funda Wang 2007-02-08 13:59:46 UTC
Status???
Comment 24 Marek Laane 2007-04-13 23:57:51 UTC
Nobody knows status? :-)
Comment 25 Marek Laane 2007-06-08 01:17:48 UTC
No reaction?
Comment 26 Marek Laane 2007-07-07 01:12:34 UTC
Any reaction?
Comment 27 Marek Laane 2007-08-07 00:11:59 UTC
Absolutely no more reaction?
Comment 28 Marek Laane 2007-09-08 00:56:05 UTC
Forgotten bug?
Comment 29 Marek Laane 2008-01-08 00:26:31 UTC
So, is it resolved or not?
Comment 30 Matt Rogers 2008-01-08 02:38:33 UTC
Why don't you test KDE 4.0 for us and let us know? I don't believe  
any of the developers run a translated version of Kopete. (Which  
would be why this bug has gone unresolved for so long)
Comment 31 Albert Astals Cid 2010-03-03 00:35:21 UTC
Mattr great answer dude, let's keep away people who translate our programs so that they don't find bugs in our software.

Anyway i have all my kopete menus correctly translated if that problem is still happening for someone please reopen the bug and explain exactly what's the problem and how to get it (screenshots won't hurt)