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.
Asked
Active
Viewed 3,090 times
4
-
rename the folder to raw_fil – Niko Aug 31 '13 at 17:11
7 Answers
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
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

Piyush-Ask Any Difference
- 4,294
- 5
- 46
- 92
-
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
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