First time here? Check out the FAQ!

Revision history  [back]

Why language code changed by itself?

Someday I found that I cann't voteup for somebody. Although the upvote sign turned green, but his karma doesn't go up.

In settings.py, I have

LANGUAGE_CODE = 'zh-TW'
LANGUAGES = (('zh-TW', 'Chinese'),)

And I found that in the database, the repute table's language code changed by it self to lowercase after some day.

image description

Does anyone know how to fix this?
Why it set the language_code to 'zh-tw' for my language_code is 'zh-TW'?

Why language code changed by itself?

Someday I found that I cann't voteup for somebody. Although the upvote sign turned green, but his karma doesn't go up.

In settings.py, I have

LANGUAGE_CODE = 'zh-TW'
LANGUAGES = (('zh-TW', 'Chinese'),)

And I found that in the database, the repute table's language code changed by it self to lowercase after some day.

image description

Does anyone know how to fix this?
Why it set the language_code to 'zh-tw' for my language_code is 'zh-TW'?