Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arabic (.ar) translation doesn't work #54

Open
Gable82 opened this issue May 28, 2015 · 1 comment
Open

Arabic (.ar) translation doesn't work #54

Gable82 opened this issue May 28, 2015 · 1 comment

Comments

@Gable82
Copy link

Gable82 commented May 28, 2015

We have used vernacular for other language translations successfully, but if we try to use arabic, we just get the untranslated terms back. I've tried to use another language's strings as well for the arabic version just to test whether it is the arabic text itself that's messing with us, but even if I use any latin language for the .ar version, it still doesn't work.

EDIT:
Interestingly enough, if I copied the Arabic text itself for another language (let's say Spanish resources), I will see the Arabic translation in the app. Somehow it seems like the Arabic flag is ignored in the project when it comes to recognising available languages?

Both for iOS (ar.lproj) and Android (values-ar).

@stiiifff
Copy link

stiiifff commented Oct 5, 2016

Problem comes from the default value for pluralCount (= 1) in ResourceCatalog.GetResource.
It's used to generate the resource_id which is actually using a 0 value if no plural is specified.
By changing the default value of the method to 0, it works perfectly ... not sure it's the right fix though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants