Adjust the order of parameters during translation
Take this block as an example: item _ of _
In Chinese, the order of parameters needs to be adjusted. I guess there are some other languages with similar requirement.
In Scratch 3.0, a parameter can be referenced in the translated text by its id (https://github.com/scratchfoundation/scratch-l10n/blob/master/editor/extensions/zh-cn.json#L17). How to do it at MicroBlocks?
Comments (3)
-
repo owner -
repo owner - changed status to open
-
reporter translators will need to figure out wordings that make sense but preserve the parameter order.
Maybe we can use the backreference style of regular expressions: https://www.regular-expressions.info/backref.html
eg:
en: item _ of _ zh_cn: _2 的第 _1 项
MicroBlocks already has a large number of translation files, compatibility is necessary for this. For translated paragraphs without backreference symbols, the default order is maintained.
- Log in to comment
We may eventually add support parameter reordering -- as we eventually did in Scratch -- but it's not a simple, localized change, so I'm afraid it won't happen in the near term. Meanwhile, translators will need to figure out wordings that make sense but preserve the parameter order.