Skip to content

Conversation

@strump
Copy link

@strump strump commented Oct 28, 2025

Python and Ruby implementations both support reading of plural values but not writing.

It means that Twine can parse file:

[bookmarks_places]
    en:one = %d bookmark
    en:other = %d bookmarks

but when we write it back we get only

[bookmarks_places]
    en = %d bookmarks

This PR fixes Twine exporter for Python. So after the fix we can parse Android and iOS plurals into Twine format. And even export plurals from strings.txt back to Android and iOS (not implemented yet).

@strump strump changed the title Plural values in Twine format Write plural values in Twine format Oct 29, 2025
@strump strump merged commit 108c3a4 into organicmaps Oct 29, 2025
6 checks passed
@strump strump deleted the twine_plurals branch October 29, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants