First time here? Check out the FAQ!

Revision history  [back]

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? :)