We’re improving the way in-page localization works in Pontoon by droping a feature instead of introducing a new one. Translating text on the web page itself using the contentEditable attribute has been turned off.
That means the actual translation (typing) always takes place in the translation editor, which gives you access to all the relevant information you need for the translation.
The sidebar is always visible, allowing you to select strings from the list and then translate them. Additionally, you can still use the Inspector-like tool to select any localizable string on the page, which will then open in the translation editor in the sidebar to be translated.
Translation within the web page has turned out to be suboptimal for various reasons:
- Original string is not always presented unambiguously, e.g. if containing markup,
- Additional string details like comments and file paths are not displayed,
- Suggestions from history, machinery and other locales are not available,
- Only the first plural form can be translated,
- It’s hard to control markup or new lines on various sites if they’re part of the string.
I like this change. There is one issue that I thought this change would address. But, turned out the issue is with the markup not Pontoon it self.
The issue is this: in the Pontoon Intro page, there are some strings split into two lines. E.g. The phrase Translate selected text is split. (The
div.timeline-headingin that page have this issue.) If these are translated into Telugu, as they are done now, the resulting phrases are not natural in Telugu. (As a work around, the translation for first part of the phrase can be put in second part and vice versa. But it may confuse translators/reviewers.)
Ideally, each of those phrases can be marked up in one single
<h4>. For example:
<span>to apply all-caps styling and
<br>for breaking the line. (It can be done in other ways too.)
16 September 2016
Good article. I will be experiencing a few of these issues as well..
11 January 2019
By submitting a comment you grant Horv.at a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.