Add option to show each language name in its own translation

Created on 5 March 2019, over 5 years ago
Updated 29 June 2023, over 1 year ago

Please add option to show each language in selection in its own translation of that language name. For example:

  • English
  • Русский
  • Français
  • Deutsch
  • Español
<!--break-->

Quick and dirty code i used to replace current "Language Native Name" with this functionality in LaguageDropdownForm.php:

        case LANGDROPDOWN_DISPLAY_NATIVE:
          $native_language = \Drupal::languageManager()->getNativeLanguages()[$lang_code];
          $native_language_translated = $this->t($native_language->getName(), [], ['langcode' => $lang_code]);
          $options += [$lang_code => $native_language_translated];
          break;

Thanks

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024