Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299124

Language names don't show up localized in language switcher anymore

$
0
0

Problem/Motivation

In Drupal 7, the language names in the language list show up as localized to their native names. In Drupal 8 native names don't exist anymore as a concept, however language names are translated to any other language just as well as any other configuration entity. We should restore the behavior of the language switcher block to use the localized language name for that language through a specific language context.

Proposed resolution

- Make language list display in language switcher block use the localized language names by loading the language objects in the specific language context from config.

How to test

  1. Install drupal 8 with default (English) language + standard profile.
  2. Enalbe language & configuration translation module
  3. Add one or two language from admin/config/regional/language/add
  4. Go to admin/config/regional/language and select 'translate' from the dropdown of the language you want to translate.
  5. Assign language switched block to 'sidebar first' region
  6. Now you can see the localized name (i.e. translated string).

User interface changes

- New setting in the block configuration for language switchers
- Display of language switcher changes based on configuration.

API changes

None.

- #1498880: Theme language switcher for seven theme
- Follow-up: #2135379: Make the language switcher configurable and extensible


Viewing all articles
Browse latest Browse all 299124

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>