[libreoffice-l10n] Pootle: source file paths not available anymore

classic Classic list List threaded Threaded
3 messages Options
Stanislav Horáček Stanislav Horáček
Reply | Threaded
Open this post in threaded view
|

[libreoffice-l10n] 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

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

kelemeng kelemeng
Reply | Threaded
Open this post in threaded view
|

Re: [libreoffice-l10n] Pootle: source file paths not available anymore

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,
>
> 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
>



--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted
Stanislav Horáček Stanislav Horáček
Reply | Threaded
Open this post in threaded view
|

Re: [libreoffice-l10n] Pootle: source file paths not available anymore

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):

> 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,
>>
>> 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
>>
>
>

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