android-locales icon indicating copy to clipboard operation
android-locales copied to clipboard

#Latn or #Cyrl gives error

Open sarangvyas opened this issue 9 years ago • 7 comments

Hello,

First of all thanks for listing down values folder name for all locales. I want to add Serbian (Latin,Serbia) language, Android Studio just gives you option to select the Language and locale. This creates a values-sr-rRS directory. I want to add Latin as well as Cyrillic. However when I add values-sr-RS_#Latn, Android studio gives "Invalid resource directory error". I have tried removing #, adding - instead of _ and many other options. Can you let me know what should be the values folder name for Serbian (Latin,Serbia) and Serbian (Cyrillic,Serbia) ?

sarangvyas avatar Sep 23 '15 13:09 sarangvyas

@championswimmer are their any ears for this issue ?

sarangvyas avatar Sep 24 '15 04:09 sarangvyas

I'll take look at this. I am kinda away from a terminal for a couple of days. (Replying to this right now on mail) On Sep 24, 2015 9:33 AM, "Sarang Vyas" [email protected] wrote:

@championswimmer https://github.com/championswimmer are their any ears for this issue ?

— Reply to this email directly or view it on GitHub https://github.com/championswimmer/android-locales/issues/1#issuecomment-142803141 .

championswimmer avatar Sep 24 '15 08:09 championswimmer

@championswimmer did you get a chance to look into this ?

sarangvyas avatar Nov 09 '15 17:11 sarangvyas

@championswimmer Any solution for this?I am facing the same issue

siju2014 avatar May 30 '16 08:05 siju2014

Still nothing?

dvdbrk avatar Mar 08 '17 20:03 dvdbrk

Same problem.

dj3underscores avatar Apr 11 '17 11:04 dj3underscores

For latin and cyril you should use "values-b+sr+Latn" and "values-b+sr+Cyrl" respectively. This is a new naming scheme, and it works only from API 24 and above.. But languages are natively picked up depending on system language..

gajicm93 avatar Jan 10 '19 15:01 gajicm93