(bug 49738) Use correct name for wiki content language

Happens when anonymous user cannot change language, and the
language of the translation differs from the content language.

Change-Id: Ie4f15f1813eec992cfe060baf9cd7dcb5f8a0d95
This commit is contained in:
Niklas Laxström
2013-08-30 12:18:55 +03:00
parent b90208affc
commit 34146ea023
7 changed files with 42 additions and 18 deletions

View File

@@ -51,3 +51,15 @@ Feature: ULS settings panel
And I click X
And I open "Language" panel of language settings
Then the panel is in English
Scenario: The name of site content language is correct when translation language is different
This feature is a bit hard to test. In most cases content language matches
the language of translation. In addition this only applies to anonymous
users in wikis where language changing for anonymous users is disabled. So
to test this we create a somewhat artificial test case by setting the wiki
interface language to a non-default value.
Given I temporarily use "Finnish" as the interface language
When I open "Language" panel of language settings
Then I see "English (sama kuin sisällön)" as the name of the content language