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

Hi Andika

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

Hi,

Hi Andika

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. :slight_smile: 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

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

Lp, m.