-
Notifications
You must be signed in to change notification settings - Fork 154
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
Fallback improvement #210
Comments
Yes, we should have this. Never got round to adding it. Same logic should apply for resolving plural rules. |
+1. Thank you. |
Anyone want to have a go at fixing this? |
Any news about this? |
Given that language codes are standardised, it's probably not needed to expose it as an option. The fallback language can be derived automatically: e.g.: |
@rubenv That's correct but I think there'll still be needed for a general fallback language and use it only if it was defined by the user. Otherwise just use the detected fallback. |
@crissdev I'm not following you there. Is |
Half a truth. There are also some languages which are very similar. E.g. if my mother lang is |
I can see what I forgot to add.
|
@crissdev This solution would be realy nice. |
@crissdev @Akarienta That will only work if plural rules are equal for those languages (which we can expect for variants of the same base language). I'd rather not support this, for two reasons:
|
@rubenv only automatic fallback by doing nl_NL -> nl is insufficient for our needs. We have specific POs which are content related, not only language related. So being able to specify the actual PO used as a fallback is a requirement for us. |
@rubenv Well that's right, obviously. In fact, a user can change the language in app settings in case I am writing about (if he/she likes). This solution would be enough then: |
Having the fallback as above would be fine (and enough) as well. |
Closes rubenv#210
Closes rubenv#210
It would be nice to have improved fallback langugage. E.g. I have the string in the locale
de
but I don't have the string in the localede_CH
. Actually, if the user uses localede_CH
, the string in the default langugae (= English) is used but it is better for user to use the string of localede
instead. Then, if no string for localede_CH
either for localede
exists, the English string is used.Is it possible? It would be nice to have also a possibility to define this 'fallback waterfall' but the default gettext behaviour is enough I think:
(country specific locale, e.g. 'de_CH') -> (general locale, e.g. 'de') -> (the default language = English)
.The text was updated successfully, but these errors were encountered: