4

I am trying to support filipino in my android app. But when I create a folder named raw-fil, I see a compiler error that the resource folder name is not valid.

7 Answers7

7

There is no ISO 639-1 code for Flipino. Hence, I am not aware that you can write an app that offers Filipino translations, as Android uses ISO 639-1, not ISO 639-2 (where fil would be valid).

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
4

Try raw-tl (Tagalog is the filipino language).

strange-corner
  • 404
  • 4
  • 13
2

Ok. Nothing seems to work. Neither raw-ph, raw-rPH or raw-fil. I am going ahead with custom handling by using:

Locale.getDefault().getLanguage().equals("fil"){
    //load resources from another location
}
Sled
  • 18,541
  • 27
  • 119
  • 168
  • Locale.getDefault().getLanguage().equals("fil") == 'values-tl' as a resource directory. I had hard time to find the right one tho. I actually searched for phillippines flag in Intellij Translation Edtitor :) @strange-coroner answer is right – Srneczek Dec 09 '15 at 13:15
1

For Android Studio, try using this. create another values folder named

values-tl-rPH

place your strings.xml that contains your Filipino strings inside this folder.

now to make your app use those strings. change your app locale by using this consider also seeing this

Community
  • 1
  • 1
YellowJ
  • 271
  • 5
  • 18
0

It doesn't look like you can support Filipino or Tagalog as languages, but you can support the Philippines as a region using raw-rPH.

snotyak
  • 3,709
  • 6
  • 35
  • 52
0

For Android studio, I used values-tl for the values folder and it works for Tagalog.

Daniel Burgner
  • 224
  • 2
  • 6
  • 16
0

Create a folder name with Values-fil. For Further information
You can look at this link

Hoque MD Zahidul
  • 10,560
  • 2
  • 37
  • 40