Użytkownik Jacek Kałucki napisał:
> Użytkownik Uwe Grauer napisał:
>   
>> I do not understand what you mean by "View" translated to german or not.
>> Can you be more specific on what you think is wrong about menu
>> translations?
>> The translations worked prior to rev 4875. So i don't see what's wrong
>> with the translations.
>>   
>>     
>
> It's simple. Code in ClassDesignerMenu.py is:
>     vm = mb.getMenu(_("View"))
>
> It seems to be ok. but it's wrong! Although for getMenu doesn't matter 
> if there is "View" or "&View",
> for translation function _( it does.
> If there is no translated string for "View", function always returns 
> "View" string and getMenu is happy.
> But if you translate  this  string  to e.g.  "&Widok",  _(  returns also 
> "View" string, but real menu
> caption is now "&Widok" not "View".
> Hope my explanation is clear.
>   

I checked it now and for german locale, "&View" is translated to "&Anzeige".

Change code in ClassDesignerMenu.py to:
        vm = mb.getMenu(_("&View"))
and it will be working ok again.
Remember about other translated menus "File", etc.

Regards

Jacek Kałucki


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to