Translations break menu restructuring
Alexander Dymo
alexander.dymo at gmail.com
Sun Apr 4 13:30:59 UTC 2010
> On 03.04.10 18:59:48, David Nolden wrote:
> > Another option would be just doing the restructuring when the UI
> > language is english, which would be easy to do.
>
> Hell no :) Sorry, but thats just totally broken having different menu
> structure in different languages.
I think I have the fix in place (see my commits from today).
In KDE 4.4 we can set our own katepartui.rc for kate part which greatly
simplifies restructuring task. I did exactly that and it works fine with
translations and also with local menu/shortcuts modifications.
I also found a way to add main menus before "File" ( append="first_menu"
attribute ), so no restructuring is necessary for that as well.
As a side effect, at last, tab switching is fast again (67% of the tab
switching time according to the Valgrind was spent in menu restructuring).
The only downside is that we can't set custom katepartui.rc in KDE 4.3. IMHO
it's a good compromise to drop restructuring support in 4.3, but if you guys
think otherwise, I'm ready to bring David's code back and use it for KDE 4.3
(not sure what to do with translated menus though).
More information about the KDevelop-devel
mailing list