https://bugs.documentfoundation.org/show_bug.cgi?id=154607

            Bug ID: 154607
           Summary: In menu XML files the "menu:label" property should be
                    localizable
           Product: LibreOffice
           Version: 7.6.0.0 alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Localization
          Assignee: [email protected]
          Reporter: [email protected]

This ticket is a spinoff from a discussion in Gerrit while fixing bug 151338.

The XML files used to define menus / popup menus in LibreOffice support a
menu:label property, which allows the definition of a custom label instead of
showing the command's Label or ContextLabel (as defined in the .xcu file). See:

https://opengrok.libreoffice.org/xref/core/framework/dtd/menubar.dtd

The only problem is that this label wouldn't be picked up for translation. So I
would like to propose that these labels become localizable. For that, we would
need to create a new property menu:localize in the DTD file (similar to what we
already have in help XHP files). However, here menu:localize would be assumed
as False if omitted, and labels that are supposed to be translatable would have
to be flagged with menu:localize="True". 

This would make it much easier to create menus / popup menus and give names
that are specific to certain situations without having to create new Uno
commands.

Currently the menu:label property is only used in Math (see code pointer below)
to define multiple menu entries that use the same command with a string
argument. To the best of my knowledge, the labels here are not translatable.

https://opengrok.libreoffice.org/xref/core/starmath/uiconfig/smath/popupmenu/edit.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to