Supporting the Filipino language

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

Answers (7)

Hoque MD Zahidul
Hoque MD Zahidul

Reputation: 11989

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

Upvotes: 0

YellowJ
YellowJ

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

Daniel Burgner
Daniel Burgner

Reputation: 224

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

Upvotes: 0

strange-corner
strange-corner

Reputation: 476

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

Upvotes: 4

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

kayton
kayton

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

CommonsWare
CommonsWare

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

Related Questions