Feature #36088
Improve error handling of translation handling
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
[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
[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
Applied in changeset 9ee4f38a9caa0974e45d378e7fa35b1c1fb6ab75.