askbot.utils.pluralization receives wrong language code

For some unknown reason the get_formula in askbot.utils.pluralization receives the langauge code: "nb-no" and therefore throws a critical error message.

The LANGUAGE setting in my file is set to "nb_NO" which should be the correct value for "Norwegian bokmål" "Norway".

In the file there is an array of germannic languages which should match what I have set: "nb_NO" GERMANNIC_FAMILY = ( 'en', 'bg', 'bg_BG', 'el', 'nb_NO', 'pt', 'ast', 'ca', 'de', 'it', 'hu', 'hi', 'sv_SE', 'fi', 'he_IL', 'gl', 'es', 'bn_IN' )

Why does get_formula get the wrong/lowercase langauge code? and what can I do to fix the problem? :)

loyning's avatar
asked 2014-08-16 14:06:14 -0500
edit flag offensive 0 remove flag close merge delete


AaronHuang's avatar AaronHuang (2016-12-25 19:07:43 -0500) edit
add a comment see more comments