Ticket #7103 (closed Bug: fixed)

Opened 4 years ago

Last modified 4 years ago

Displaying native language names via languageselector.pt

Reported by: hray Owned by: hannosch
Priority: major Milestone: 3.1.5
Component: Internationalization Keywords:
Cc:

Description (last modified by hray) (diff)

The drop-down list of languages that can be displayed on a Plone site (as an alternative to flags) via languageselector.pt (lib/python/plone/app/i18n/locales/browser/languageselector.pt) lists selected languages in English only (even if the default language is not English).

In prior versions of Plone languages were listed in their native format e.g. English, Français, Español etc. by default.

I'd like to be able to list languages in their native format. Will this be made available as an option?

Change History

comment:1 Changed 4 years ago by hray

  • Priority changed from minor to major
  • Description modified (diff)

comment:2 Changed 4 years ago by jphoude

I also came across this problem with a plone 3.0.3 site. The language name in the language selector menu is always displayed in English, but the native language name should be displayed.

I fixed the problem by changing "PloneLanguageTool/LanguageTool.py" :

274c274
<             return info.get(u'name', None)
---
>             return info.get(u'native', None)

But I'm not sure if that change could affect other parts of plone where the language should be displayed in English­.

comment:3 Changed 4 years ago by hannosch

  • Status changed from new to closed
  • Resolution set to fixed

(In [22086]) Changed the language selector viewlet to use the native name instead of always showing the English name. This closes #7103.

Note: See TracTickets for help on using tickets.