You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to move the strings to a strings.xml file so that apps could provide their own translated versions by overriding them in other locales.
Environment
If it's a bug, version(s) of android this affects:
All
Version of osmdroid the issue relates to:
6.1.2
The text was updated successfully, but these errors were encountered:
@grishka The good thing is that as you see it's very easy to put your own translation even with the current implementation.
What if someone else would like to put the name of the set of tiles being currently downloaded, like "Downloading map of Italy"? Your improvement suggestion wouldn't work; in that case again you would have to override getUITitle.
My point of view: the current system is flexible enough for all developers' needs. Btw I'm not an expert on strings.xml files - I mean, yes of course I use one per language, but not several files for the same language, with the possible tag collision issues. And as a developer I don't like the idea of retrieving unnecessary data (including translations) from a lib for languages or use-cases I don't need.
That being said, feel free to create a PR for the translation of "Downloading tiles" through strings.xml.
Issue Type
[ ] Question
[ ] Bug
[x] Improvement
[ ] Build system related
[ ] Performance
[ ] Documentation
Description and/or steps/code to reproduce the problem
CacheManager shows dialogs, and all the user-visible strings are hardcoded and not translatable. For example:
osmdroid/osmdroid-android/src/main/java/org/osmdroid/tileprovider/cachemanager/CacheManager.java
Lines 766 to 779 in 98085a5
I was able to substitute this particular one for a localized string like this, but still...
It would be nice to move the strings to a
strings.xml
file so that apps could provide their own translated versions by overriding them in other locales.Environment
If it's a bug, version(s) of android this affects:
All
Version of osmdroid the issue relates to:
6.1.2
The text was updated successfully, but these errors were encountered: