Pootle: source file paths not available anymore

Hi,

I found out that the information about paths to source code files with the strings to translate is now missing in Pootle. This is a drawback of the (surely necessary) migration to gettext - strings are now stored in messages.po files which does not correspond anymore with the structure of the source code.
(In some cases, the path can be derived from file name, e.g. .ui files lives in uiconfig/ui/, but this is not 100%.)

This broke my workflow, as I am used to jump often to the Github history of the file corresponding with a translated string (its URL is created by a JavaScript bookmarklet using data from a current Pootle page). By that, I got very useful overview of the change (e.g. if it is cosmetic or not), I could check related bugzilla reports to see what a new feature should do and where to find it in UI etc.

Does anyone else miss the paths? And would it be possible to give them back, i.e. to save them together with file name when generating .po files?

Best regards,
Stanislav

Hi Stanislav

I'd miss the paths too.

Fortunately it is possible to restore them, a first patch is here:
https://gerrit.libreoffice.org/46591

I still need to look at the code a bit more for a full solution that
covers all file types.

Regards
Gabor Kelemen

2017-12-14 17:33 keltezéssel, Stanislav Horáček írta:

Hi Gabor,

thanks a lot for the patch - at least for me it would be sufficient, becuase I think that the file types you covered contain the most of source strings.

Best regards,
Stanislav

Dne 16.12.2017 v 10:03 Gabor Kelemen napsal(a):