Closed altagir closed 2 years ago
For ease of editing and simplicity, the developer language string in the twine file defaults to unordered parameters. However, each translation is more than welcome to change the order by using %1$@
, %2$f
, etc.
Maybe we should mention that in the README
:-)
Thanks! Yes it would be nice to see it in README :)
Upon testing this translation :
The file %@ could not be found %1$@ %2$@
works for iOS, however for android it produces :
The value "The file %@ could not be found %1$@ %2$@" contains numbered and non-numbered placeholders
I understand it cannot be mixed though, just surprised of difference between android and iOS
You can't mix and match numbered with non-numbered arguments. I believe that causes an error anywhere you would try it. You should use either The file %@ could not be found %@ %@
or The file %1$@ could not be found %2$@ %3$@
and it should properly work on both iOS and Android (the Android formatter will change every %@
to %s
). If any of this does not seem to be working as described that would be a bug we should definitely fix. :)
No everything works fine, just tested it It makes perfect sense not to be able to match them But only Android warns about it, iOS generation doesn't
Closing due to inactivity.
Hello Right now the field for parameter insertion is %@ Could it be possible to have ordered parameters like %1@ , %2@ order of parameters may not be the same in all languages Thanks