Project

General

Profile

Actions

Task #29335

closed

XLIFF: Add translation hint to labels, which must not be translated

Added by Chris topher over 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2011-08-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

In the Core there are several labels, which contain strings, which must not be translated.
The problem with this is that people on the Translation Server try to translate them as sentences, which would break functionality.

Some example texts:
  • EXT:cms/cshimages/image1.png
  • xEXT_acronym:text
  • _MOD_index:now
  • xMOD_tx_impexp:import
  • index_config:hidden

These labels for example display a certain image or a link "Further help can be found in chapter XXX." Modifying them will break things.

After speaking with Dominique Feyer we came to the conclusion that the best solution for this problem is to add a translation hint to the labels, which may not be translated.

Proposal:
<trans-unit approved="yes" id="index"> <source>index_config:hidden</source> <target>index_config:hidden</target> <note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note> </trans-unit>

Possible RegExp for locating the affected strings:
<source>[\S]*:[(A-Za-z)]+


Files

pootle.png (59.1 KB) pootle.png Xavier Perseguers, 2011-08-31 07:57
Actions #1

Updated by Xavier Perseguers over 12 years ago

  • Status changed from New to Accepted
  • Priority changed from Should have to Must have
Actions #2

Updated by Mr. Hudson over 12 years ago

Patch set 1 of change Ibb765b53fc6093b087d22a1ba5f34efebd4db43b has been pushed to the review server.
It is available at http://review.typo3.org/4708

Actions #3

Updated by Xavier Perseguers over 12 years ago

It's how it will look like when working in Pootle:

Actions #4

Updated by Chris topher over 12 years ago

Perfect! That's exactly how it should be. :-)

Actions #5

Updated by Xavier Perseguers over 12 years ago

  • Status changed from Accepted to Under Review
  • Target version set to 4.6.0-beta3
Actions #6

Updated by Xavier Perseguers over 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF