Feature #36088

Improve error handling of translation handling

Added by Alexander Stehlik almost 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Should have
Category:
I18n
Start date:
2012-04-15
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

At the moment, if a translation for a plural version of a translation is not available, the translation system silently fails.

It would be better to throw an exception if the translation is available but the matching plural version is missing so that the developer knows whats going on.

Additionally the documentation for the plural handling of the translation system should be updated. An example for a translation with multiple plurals is this:

<group id="my.unique.translationkey" restype="x-gettext-plurals">
    <trans-unit id="my.unique.translationkey[0]">
        <source>MySourceText</source>
        <target>This is only {0} item.</target>
    </trans-unit>
    <trans-unit  id=my.unique.translationkey[1]">
        <source>MySourceText</source>
        <target>These are {0} items.</target>
    </trans-unit>
</group>

For more details you can also have a look at the Google+ Post about this topic.

#1

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10523

#2

Updated by Karsten Dambekalns over 8 years ago

  • Tracker changed from Bug to Feature
#3

Updated by Karsten Dambekalns over 8 years ago

  • Assignee set to Alexander Stehlik
  • Target version set to 1.1
#4

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10523

#5

Updated by Gerrit Code Review over 8 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10523

#6

Updated by Gerrit Code Review over 8 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10523

#7

Updated by Gerrit Code Review over 8 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10523

#8

Updated by Gerrit Code Review over 8 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10523

#9

Updated by Gerrit Code Review over 8 years ago

Patch set 7 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10523

#10

Updated by Robert Lemke over 8 years ago

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

Also available in: Atom PDF