Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some languages doesn't declare it's native name in _locale_get_predefined_list(). In this case the original name matches the native name (ej: English, Aymara,..), and it should be used, instead of the empty string.
It doesn't happen in D8 version of the module.
Comment | File | Size | Author |
---|---|---|---|
#1 | languagefield-2451967.patch | 1.32 KB | jonhattan |
Comments
Comment #1
jonhattanThis patch has two changes:
This is because
$language->native
is always available. See locale_add_language() for reference.This is the fix to the bug report. See also locale_add_language() for reference.
Comment #2
jonhattan@johnv please respect commit autorship and use following commit line, with --author. (generated with dreditor).
git commit -m 'Issue #2451967 by jonhattan: Use language name when there'\''s no native' --author="jonhattan <jonhattan@49817.no-reply.drupal.org>"
Comment #3
johnvSorry, I don't see a difference.
Can you show some printscreens?
Comment #5
johnvI only committed the second part.