[android]Enable per-app language #3584
No reviewers
Labels
No labels
Accessibility
Address
Android
Android Auto
Android Automotive (AAOS)
API
AppGallery
AppStore
Battery and Performance
Blocker
Bookmarks and Tracks
Borders
Bug
Build
CarPlay
Classificator
Community
Core
CrashReports
Cycling
Desktop
DevEx
DevOps
dev_sandbox
Directions
Documentation
Downloader
Drape
Driving
Duplicate
Editor
Elevation
Enhancement
Epic
External Map Datasets
F-Droid
Fonts
Frequently User Reported
Fund
Generator
Good first issue
Google Play
GPS
GSoC
iCloud
Icons
iOS
Legal
Linux Desktop
Linux packaging
Linux Phone
Mac OS
Map Data
Metro
Navigation
Need Feedback
Night Mode
NLnet 2024-06-281
No Feature Parity
Opening Hours
Outdoors
POI Info
Privacy
Public Transport
Raw Idea
Refactoring
Regional
Regression
Releases
RoboTest
Route Planning
Routing
Ruler
Search
Security
Styles
Tests
Track Recording
Translations
TTS
UI
UX
Walk Navigation
Watches
Web
Wikipedia
Windows
Won't fix
World Map
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps#3584
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "github/fork/Jean-BaptisteC/language"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR add ability to change app language only for OM on devices on Android 13.
More information here
This PR cannot be merge because bump appcompat to 1.6.0 need update app theme -> check this #3537 (comment)
When i changed language in Android settings and i back to OM, app language have changed. But to update maps language we need to restart app.
@biodranik
Is it ok for you, i'm not sure user change language every day and restart app to update map is not big inconvenient.#3586
It is ok, maybe we can show some kind of hint about that? Or at least add it into the FAQ.
What about adding this?

Are you sure about en-rGB? Should it be en-GB, as in the example?
Are you sure about these? In the example they use zh-Hant and zh-Hans. Can you please test if it works properly?
ditto
ditto
ditto
Check this
I think the real interest is to reduce size of app by remove unused strings in libraries.
Edit:
I not sure, it's necessary to add something in FAQ (I have discover FAQ in app today :) ) because this feature is only available on devices used Android 13.
About map languages not synchronised when you changes language, maybe you can implement this with #391
Did you test these languages on your device? Did they work?
I have test with english
-en_GB

What about Chinese?
Examples:
pt
delete (bottomsheet on map)=Eliminar
pt_BR(Brazil)
delete=Apagar
Examples:
fr (France)
Translittération en latin (App settings)
fr_CA (Canada)
Translittération vers l'alphabet latin (App settings)
Examples:
nit: new line
Are you sure here? I can see the following names in res/values:
zh-Hans

zh-Hant

add zh-HK or zh-rHK have none difference, because string name file contains
r
is just use tu specifie when you have some strings only for country.Examples:
If i want translate all strings for Great Britain, i create res file with this name values-en-GB
If i want only translate special strings for Great Britain, i create res file with this name values-en-rGB. (And strings not translate in this file are take from values-en or values.
I have test with
r
and without, 0 difference.https://developer.android.com/guide/topics/resources/localization#avoid-creating-more-resource-files-and-text-strings-than-you-need
approved this merge request
I've read the docs and confirm that the new locale format should work. We use the old one, pre-Android 7 for our resources because we need to support Android 5 and 6.
mentioned in merge request !3619