U4-6510 - Norwegian labels, dictionary and language in 7.2.4

Created by Kristian Ravnevand 08 Apr 2015, 13:22:13 Updated by Sebastiaan Janssen 15 Dec 2015, 14:29:53

Is duplicated by: U4-6634

Relates to: U4-6398

Relates to: U4-6460

Hi again, tested 7.2.4 now, it's still an issue with Norwegian language:

  • The labels are back using #label, but I had to change languages on settings to "Norsk" not "Norsk (bokmål) (Norge)", resulting in language id "no" instead of "nb_no"
  • When using "Norsk (bokmål) (Norge)" I got an error on Umbraco.Core.Services.LocalizedTextServiceFileSources.TryConvert2LetterCultureTo4Letter
  • When using "Norwegian" on "Language" on my user all buttons and labels translated by the \umbraco\Config\Lang shows as [buttons_saveAndPublish] etc (but the labels translated in dictionary still works)
  • In UmbracoTraceLog I get an error saying: Umbraco.Core.Services.LocalizedTextService - [Thread 8] The culture specified no was not found in any configured sources for this service

1 Attachments

Comments

Kristian Ravnevand 09 Apr 2015, 06:40:56

A follow up on this issue.

-Changed the userLanguage in the database on umbracoUser table to "nb_no" instead of "no" (no is set when choosing "Norwegian" in Umbraco backend on a given user). -Result: Labels/captions from \umbraco\Config\Lang are translated!

So:

-Labels from the dictionary are translated correctly using "Norsk", with language id "no" not "nb_no" -Labels from \umbraco\Config\Lang are translated correctly using "nb_no" as userLanguage not "no"

Hopes this clarify :-)


Tommy Enger 20 May 2015, 10:43:38

I have the same issue as you Kristian. To use a wokaround where I manually need to update a database table is not an option in my scenario.

My workaround was to rename the file /Config/lang/no.xml to /Config/lang/nb.xml

Labels from the dictionary are then translated correctly using "Norwegian (Bokmål) [nb]" Labels from \umbraco\Config\Lang are automatically translated correctly

(Note: If nuget auto package restore is enabled, the no.xml file will be downloaded on publish, resulting in a duplicate key exception)

Hope there will be a fix for this soon.


Kristian Ravnevand 29 May 2015, 09:22:29

Still an issue in 7.2.5


Kristian Ravnevand 12 Jun 2015, 06:22:56

Followup. Now using "no" gives correct translation on labels in Umbraco, the only error now seems to be that the \umbraco\Config\Lang\no.xml file has wrong culture:

Change:

To:

And everything seems fine if you are using "Norwegian" in the Language dialog (attached image).


Tommy Enger 29 Nov 2015, 16:37:40

PR: https://github.com/umbraco/Umbraco-CMS/pull/933

Instead of renaming the culture like you did Kristian, I renamed the file. I think this is more correct because "no" is not a valid culture name i think.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.2.4, 7.2.5

Due in version: 7.4.0

Sprint:

Story Points:

Cycle: