In diesem Tutorial wird beschrieben, wie Sie eine App mit Unterstützung für mehrere Sprachen entwickeln.
Wir erstellen separate strings.xml-Dateien für jede Sprache.
Wir werden AlertDialog verwenden, um Sprachen anzuzeigen, um eine von ihnen auszuwählen und zu ändern. Die Einstellungen werden unter Verwendung der gemeinsamen Einstellungen gespeichert. Wenn Sie also die App starten, wird sie in der Sprache geladen, die Sie zuletzt ausgewählt haben.
Unser Chanel:
Unsere Websites:
Unsere Apps im PlayStore:
Wenn dir dieses Video gefällt, "Gefällt mir", "Kommentieren", "Abonnieren", "Unterstützen Sie uns"
Something REALLY IMPORTANT GUYS, make sure you call loadLocale before setContentView, i got stuck cuz of it xD
The best and simple way to change language is to use this library:- https://github.com/ramt57/EasyLocaleApp
i set language code form setting activity how to load class loadlocal form mainactivity?
Thanks ! <3
Could you please share with us the code. I want to change the language of my weather app to Arabic.
Thank you very much!!! You help my life! haha
good work
Best! Very nice work…
do not work for me
Thanks Man really helpful
It wasn't working on recyclerview items.
Thanks
It is the best tutorial !! Thanks a lot !
It doesent work
thanx for the simple code but how to fix release apk it dosnt make any change and keep only one language
@Atif Pervaiz
Thank you it's working
Your Tutorial is always well sir, please give us some project tutorial.
Very useful tutorial
Thank you so much :)))
tutorial is good but i am getting a small error can you please help me for me the action bar which i am adding does not support..
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setTitle(java.lang.CharSequence)' on a null object reference
is there any method that change app data language at realtime and data is coming from firebase ???
thanks bro!
atif bhai keyboard bhi change ho ga ?
Works , just api level 24 and above , what to do with api level 21 and other, pleas if you can help;
Thx brother
first of all thansk for your helpful tutorial, i have a problem after clossing the app from backhround it reset to default Langauge in API 28 can you guid me where is the mistake i will share the project
https://github.com/forotan1/JulyLang
Clear, efficient, thanks a lot
Oreo version mobile not change language how to solve?
Lol, honestly I was expecting someting much more smaller in code but I forgot that this is java 😀
Thx man!!