-1

hi my toast needs to translate to France or English depending on what you select as your language, in the login screen you can select your languages

EKN
  • 1,886
  • 1
  • 16
  • 29
johan
  • 19
  • 5

3 Answers3

1

Put your texts for the default language in res/values/strings.xml . and create res/values-fr/strings.xml where you put the translations for french and repeat for each language.

Your application will be shown in the correct language depending in the phone language setting.

from56
  • 3,976
  • 2
  • 13
  • 23
0

You can create different string resource file based on country. Then android will automatically refer the message from proper string file based on the selected language.

EKN
  • 1,886
  • 1
  • 16
  • 29
0

Create strings.xml file depends on language. Read: stackoverflow.com/a/41907754/1636478 Developer Guide

maatik5
  • 148
  • 16