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
Comments from Cloph: 15:11:05 <cloph> why two ways to define it? why is the label in xcu not sufficient? 15:13:57 <cloph> (the example with math explicitly sattes that they use labels here because they are not translatable/that anything that should be translated should be done in the xcu instead) 15:15:52 <cloph> apart from that no hard feelings, however not sure whether just label alone will be sufficient/whether a context attribute or similar to uniquely identify the string also would be necessarily, similar to strings in .ui files.
Hello, It's been a while since this issue was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Dear Rafael Lima, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear Rafael Lima, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp