Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
wants to merge 4 commits into from

3 participants

@erlenddalen

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'.

@ojii
Collaborator

"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?

@erlenddalen
@ojii
Collaborator

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

@KristianOellegaard

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

@ojii
Collaborator

fixed in cbaf6bf

@ojii ojii closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
6 cms/locale/no/LC_MESSAGES/django.po
@@ -16,7 +16,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Language: no\n"
+"Language: nb\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Country: SWITZERLAND\n"
"X-Poedit-Language: English\n"
@@ -710,7 +710,7 @@ msgstr "endret av"
msgid ""
"When the page should go live. Status must be \"Published\" for page to go "
"live."
-msgstr "Når sideb skal gjøres offentlig. Status må være \"Publisert\" for at siden skal vises."
+msgstr "Når siden skal gjøres offentlig. Status må være \"Publisert\" for at siden skal vises."
#: models/pagemodel.py:62
msgid "When to expire the page. Leave empty to never expire."
@@ -732,7 +732,7 @@ msgstr "tilknyttet meny"
#: models/pagemodel.py:67
msgid "is published"
-msgstr "er poblisert"
+msgstr "er publisert"
#: models/pagemodel.py:69
msgid "The template used to render the content."
View
2  cms/locale/no/LC_MESSAGES/djangojs.po
@@ -15,7 +15,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Language: no\n"
+"Language: nb\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: static/cms/js/change_form.js:31
Something went wrong with that request. Please try again.