askbot.utils.pluralization receives wrong language code

asked 2014-08-16 14:06:14 -0500

loyning gravatar image

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 settings.py file is set to "nb_NO" which should be the correct value for "Norwegian bokmål" "Norway".

In the pluralization.py 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? :)

edit retag flag offensive close merge delete

Comments