We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Both Android and iPhone have a structure to handle single/plurals (one, few, many, other etc.) Any recommendations/idea how to handle this in twine?
iOS - [file].stringsdict
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>NUMBER_OF_PEOPLE_KEY</key> <dict> <key>NSStringLocalizedFormatKey</key> <string>%#@num_people_in_room@ in the room</string> <key>num_people_in_room</key> <dict> <key>NSStringFormatSpecTypeKey</key> <string>NSStringPluralRuleType</string> <key>NSStringFormatValueTypeKey</key> <string>d</string> <key>zero</key> <string>No one is</string> <key>one</key> <string>A person is</string> <key>two</key> <string>Two people are</string> <key>other</key> <string>%d people are</string> </dict> </dict> </dict> </plist>
Android - plurals tags in the xml
<plurals name="movie_plural"> <item quantity="one">%d movie</item> <item quantity="other">%d movies</item> </plurals>
The text was updated successfully, but these errors were encountered:
put plurals in a separate plurals.xml file structured like so:
<plurals name="movie_plural"> <item quantity="one">@string/movie_one</item> <item quantity="other">@string/movie_other</item> </plurals>
then have movie_one and movie_other be in your twine strings..
movie_one
movie_other
Sorry, something went wrong.
This is a duplicate of #46
No branches or pull requests
Both Android and iPhone have a structure to handle single/plurals (one, few, many, other etc.)
Any recommendations/idea how to handle this in twine?
iOS - [file].stringsdict
Android - plurals tags in the xml
The text was updated successfully, but these errors were encountered: