Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


On Sun, Jun 12, 2016 at 12:44 PM, Jean-Baptiste Faure
<jbfaure@libreoffice.org> wrote:
Hi,

Given a string to be translated, given its tag (comment), how to find
where it is used in the UI (in which menu or dialog box)?

Look at the context info in pootle - if it is a dialog, the dialog's
filename will be listed

https://translations.documentfoundation.org/fr/libo_ui/translate/svx/uiconfig/ui.po#unit=33752638

→ compressgraphicdialog.ui , and as the path to the po shows in svx/uiconfig

you can open that dialog in
glade /opt/libreofficedev5.2/share/config/soffice.cfg/svx/ui/compressgraphicdialog.ui

That already will give some context and typically is enough to guess
where the function can be accessed from the UI

The path UI -> the string in Pootle is easy with the keyID, but, to my
knowledge, there is no easy way to find a keyID in the UI.

Yes, having just a keyID, it is not possible. To find pootle sting in
UI, it is best to go from pootle context/path info.
If it is in sw or scalc projects, you already have an idea it is in
writer or calc for example.

What is your strategy to find a given string in the UI?

See above. easiest if it is a dialog. If it is not a dialog, look at
surrounding strings, maybe there is something familiar and you can at
least have a rough idea.

* filename of po file → rough idea in what module
* context info/places → more detailed info.

→ if in .ui file → look at the dialog in glade → see string in context

you can also use opengrok http://opengrok.libreoffice.org/ to look
where the string is used, maybe the code then gives you a clear idea
(or course depends on your ability to read a little code).

ciao
Christian

-- 
To unsubscribe e-mail to: l10n+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.