Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
5.0.1
-
-
stripes-force 114, stripes-force 115
-
Stripes Force
-
GBV, University of Leipzig
Description
The I18n best practices document
https://github.com/folio-org/stripes/blob/v5.0.1/doc/i18n.md#examples
encourages to use placeholders in translation strings by showing examples from ControlledVocab in the example section:
"cv.cannotDeleteTermMessage": "This {type} cannot be deleted, as it is in use by one or more records.", "cv.numberOfObjects": "# of {objects}", "cv.termDeleted": "The {type} <b>{term}</b> was successfully <b>deleted</b>"
See STSMACOM-453 why this cannot be translated for many type values in some languages.
The type influences other words of the translation in some languages.
If the type or the (complete or some fraction of the) list of types is known at development time a type specific translation key should be used.
Task:
Remove the cv.* example from the documentation.
Explain why placeholders should be avoided.
TestRail: Results
Attachments
Issue Links
- relates to
-
ERM-1628 Expand emptyAccordion.* {type} for correct translations
-
- Closed
-
-
STRIPES-748 Add example section to doc/i18n.md
-
- Closed
-
-
STSMACOM-453 Cannot translate {type} placeholder in ControlledVocab
-
- Closed
-