finding key-ID in UI ?

Hi,

It's possible to find a key-ID in Pootle through search in 'comments'.

The other way round... if I see a key-ID: is there a trick to find it in
the UI ?
(I have some guidance of course from the Context of course, such as "
linetabpage.ui FT_CAP_STYLE label string.text" but that's still a puzzle..)

thanks,
Cor

Hi Cor

Hi,

It's possible to find a key-ID in Pootle through search in 'comments'.

The other way round... if I see a key-ID: is there a trick to find it in
the UI ?
(I have some guidance of course from the Context of course, such as "
linetabpage.ui FT_CAP_STYLE label string.text" but that's still a puzzle..)

thanks,
Cor

in share/config/soffice.cfg you can try "grep -ri FT_CAP_STYLE" and find
the ui file. You may find more than one ui file, though.

regards
- --
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
The Document Foundation, Kurfürstendamm 188, 10707 - Berlin, Germany
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
Legal details: http://www.documentfoundation.org/imprint
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812

Hi Cor, *,

It's possible to find a key-ID in Pootle through search in 'comments'.

The other way round... if I see a key-ID: is there a trick to find it in
the UI ?

Search it in pootle, and have a look at the context-line / the filepath.

That will give you at least the modue (writer,calc,....) and often
enough the name of the dialog.l

If it is a .ui file, then it is a new style (aka glade) dialog that
you can open in glade without having to click through the menus, if it
is an old dialog, you should get some idea by the filename as to what
functionality it corresponds to.

(I have some guidance of course from the Context of course, such as "
linetabpage.ui FT_CAP_STYLE label string.text" but that's still a puzzle..)

Nah, in this case it is relatively easy - as it is a glade dialog

So look for the file linetabpage.ui in your installation (either use
"find /path/to/lo -name linetabpage.ui" or "locate linetabpage.ui" or
whatever file search your system provides)

It also tells you that the string is a label, i.e. a textfield in the
dialog that is non-editable by the user, but only a description field.
The ID hints to having something to do with CAPs (i.e. ending graphics
of lines (as it is is in a dialog that is about lines (line tab page)
- if the latter is not clear/obvious, it will be once you open the
dialog itself.

So use
GLADE_CATALOG_SEARCH_PATH=/path/to/lo/share/glade glade
/path/to/lo/share/config/soffice.cfg/cui/ui/linetabpage.ui to open the
dialog in glade.

Click on the "Caps" label/textfield in the dialog. This will select
the UI-element in the hierarchy and lets you confirm that that label
really has the ID "FT_CAP_STYLE" and thus is the one you were looking
for.

Alternatively use Glade's widget-search box and search for
"FT_CAP_STYLE" - that does it the opposite way. you select the ID in
the hierarchy and it will highlight the element in the dialog.

Instead of using glade, you can also try to deduce what dialog that is
in LibreOffice.

It is about lines, thus open up Draw, draw a line, select it and use
contextmenu → Line. While this doesn't give you the exact element
directly, hopefully there will only be one element in that dialog that
has the value that is given in pootle as the source/translation text.

HTH,

ciao
Christian