Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Changing the langugage code for Norwegian from no to nb #1473

Closed
wants to merge 4 commits into
from

Conversation

Projects
None yet
3 participants
Contributor

erlenddalen commented Oct 11, 2012

In order to get norwegian text in Django-CMS to work after upgrading django to >1.2, the language code used in the settings-file, must be 'nb' instead of the old 'no'.
I have changed the .mo files to reflect this and at the same time fixed a couple of typos in the .mo files.
I would assume that it would be a good thing to change the localte directory from 'no' to 'nb' as well, but I wasn't able to do so using the web interface of GitHub (Yeah, I'm a newbie here at github). :)
Anyway, I was able to get the norwegian text still when the name of the directory was 'no' as long as the Language inside the .mo files was 'nb'.

Collaborator

ojii commented Oct 17, 2012

"no" is actually a valid ISO-639 language code for "Norwegian".

"nb" is ISO-639 for "Norwegian Bokmål".

Could you elaborate why we have to switch this? Could you give some sources as to why we're doing it wrong?

Contributor

erlenddalen commented Oct 17, 2012

Hi Jonas,

In Norway there are two official written languages. Norwegian bokmål and Norwegian nynorsk.

With a language code 'no' you are not able to have a site in both languages as all state controlled (and a lot of other) websites must have.

In Django 1.4, you have to change the language_code setting and use 'nb':
https://code.djangoproject.com/ticket/11068

/Erlend

Den 17. okt. 2012 kl. 17:03 skrev Jonas Obrist notifications@github.com:

"no" is actually a valid ISO-639 language code for "Norwegian".

"nb" is ISO-639 for "Norwegian Bokmål".

Could you elaborate why we have to switch this? Could you give some sources as to why we're doing it wrong?


Reply to this email directly or view it on GitHub.

Collaborator

ojii commented Nov 9, 2012

Shouldn't we then also COPY the no files to nb instead of moving them, like django 11068 did?

Contributor

KristianOellegaard commented Nov 9, 2012

You should probably move the folder, so it doesn't live in cms/locale/no anymore, but cms/locale/nb

Collaborator

ojii commented Nov 9, 2012

fixed in cbaf6bf

@ojii ojii closed this Nov 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment