Reputation: 4286
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.
Upvotes: 4
Views: 3575
Reputation: 11989
Create a folder name with Values-fil. For Further information
You can look at this link
Upvotes: 0
Reputation: 321
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
Upvotes: 1
Reputation: 224
For Android studio, I used values-tl for the values folder and it works for Tagalog.
Upvotes: 0
Reputation: 4286
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
}
Upvotes: 2
Reputation: 3759
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
.
Upvotes: 0
Reputation: 1007584
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).
Upvotes: 7