Feature #36088

Improve error handling of translation handling

Added by Alexander Stehlik over 3 years ago. Updated about 3 years ago.

Status:Resolved Start date:2012-04-15
Priority:Should have Due date:
Assigned To:Alexander Stehlik % Done:

100%

Category:I18n
Target version:TYPO3 Flow Base Distribution - 1.1
PHP Version: Complexity:
Has patch:No

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.

Associated revisions

Revision 3c0e30a0
Added by Robert Lemke about 3 years ago

[TASK] Add section on XLIFF plural form handling to guide

Adds a short explanation of plural form handling in XLIFF files to
the FLOW3 guide.

Change-Id: Ie09858e3ee668253207e1d61598c68e42fce6635
Related: #36088
Releases: 1.1

Revision 9ee4f38a
Added by Robert Lemke about 3 years ago

[FEATURE] Improve logging for translation handling

When a translation is not found a warning is logged so that the
user gets a clue what is wrong.

Change-Id: Id492016b825a304520f9aa8766e5eb73fa5170f7
Resolves: #36088
Releases: 1.1

History

#1 Updated by Gerrit Code Review over 3 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 3 years ago

  • Tracker changed from Bug to Feature

#3 Updated by Karsten Dambekalns over 3 years ago

  • Assigned To set to Alexander Stehlik
  • Target version set to 1.1

#4 Updated by Gerrit Code Review over 3 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 3 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 3 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 3 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 about 3 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 about 3 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 about 3 years ago

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

Also available in: Atom PDF