Quantcast

[libreoffice-l10n] how to translate strings containing certain XML tags

classic Classic list List threaded Threaded
4 messages Options
Andika Triwidada Andika Triwidada
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[libreoffice-l10n] how to translate strings containing certain XML tags

Hello,

In strings containing XML tags, should we also translate name="something" too?
For instance, [1] source string is <variable id="doc_title"><link
href="text/shared/05/00000150.xhp" name="Managing Bookmarks">Managing
Bookmarks</link></variable>. Should we translate both "Managing
Bookmarks"?

Thanks,
Andika Triwidada

1. https://translations.documentfoundation.org/id/libo_help/shared/05.po/translate/?unit=13521597

--
Unsubscribe instructions: E-mail to [hidden email]
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

sophi sophi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [libreoffice-l10n] how to translate strings containing certain XML tags

Hi Andika
On 07/07/2012 17:19, Andika Triwidada wrote:
> Hello,
>
> In strings containing XML tags, should we also translate name="something" too?
> For instance, [1] source string is<variable id="doc_title"><link
> href="text/shared/05/00000150.xhp" name="Managing Bookmarks">Managing
> Bookmarks</link></variable>. Should we translate both "Managing
> Bookmarks"?

This what is said in the guide :
link
Attributes href, name, type, target
Description Designates a hyperlink to another help file or to the WWW as
specified by the href attribute.
Element link
Rule
- Localize element content
- Localize the name attribute
- Copy the rest of the element tags exactly
Example
Source:
\<link href=\"text/swriter/123.xhp\" name=\"Name of the
link\"\>Using Headings\<\/item\>
Localized:
\<link href=\"text/swriter/123.xhp\" name=\"Name des
Links\"\>Überschriften verwenden\<\/item\>

Kind regards
Sophie

--
Unsubscribe instructions: E-mail to [hidden email]
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
Andras Timar Andras Timar
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [libreoffice-l10n] how to translate strings containing certain XML tags

Hi,

2012/7/7 Sophie Gautier <[hidden email]>:

> Hi Andika
>
> On 07/07/2012 17:19, Andika Triwidada wrote:
>>
>> Hello,
>>
>> In strings containing XML tags, should we also translate name="something"
>> too?
>> For instance, [1] source string is<variable id="doc_title"><link
>> href="text/shared/05/00000150.xhp" name="Managing Bookmarks">Managing
>> Bookmarks</link></variable>. Should we translate both "Managing
>> Bookmarks"?
>
>
> This what is said in the guide :
> link
> Attributes href, name, type, target
> Description Designates a hyperlink to another help file or to the WWW as
> specified by the href attribute.
> Element link
> Rule
> - Localize element content
> - Localize the name attribute
> - Copy the rest of the element tags exactly
> Example
> Source:
> \<link href=\"text/swriter/123.xhp\" name=\"Name of the
> link\"\>Using Headings\<\/item\>
> Localized:
> \<link href=\"text/swriter/123.xhp\" name=\"Name des
> Links\"\>Überschriften verwenden\<\/item\>
>

This is the theory. :) In practice name element is not converted by
main_transform.xsl
(http://opengrok.libreoffice.org/xref/core/xmlhelp/util/main_transform.xsl)
So you can leave it untranslated, or translate it, it does not matter.
Maybe it makes more sense to translate it, who knows, some day we may
use it as a tooltip of the link.

Best regards,
Andras

--
Unsubscribe instructions: E-mail to [hidden email]
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
Martin Srebotnjak Martin Srebotnjak
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [libreoffice-l10n] how to translate strings containing certain XML tags

2012/7/7 Andras Timar <[hidden email]>

>
> Maybe it makes more sense to translate it, who knows, some day we may
> use it as a tooltip of the link.
>

Yeah, maybe someone fixes that. Slovenian has tags fully localized.

Lp, m.

--
Unsubscribe instructions: E-mail to [hidden email]
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

Loading...