WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#12019 closed defect (bug) (fixed)

Corsican appears in the blogs language drop down box

Reported by: wpmuguru Owned by: nbachiyski
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: I18N Keywords:
Focuses: multisite Cc:

Description

MU Trac Ticket: http://trac.mu.wordpress.org/ticket/1109

In the last version, support for translation was added to the time zone list of cities. Since it is a long list, and should be loaded only when the 'General Settings' page is loaded, it uses a separate translation file (continents-cities). The list of cities is here: http://trac.mu.wordpress.org/browser/tags/2.8.4a/wp-admin/includes/continents-cities.php

Since I'm using the Hebrew translation I have two .mo files in my languages directory: he_IL.mo and continents-cities-he_IL.mo. Wpmu searchs for all *.mo files and checks the first two letters of the file name to determine the language. According to this, the continents-cities-he_IL.mo file is recognized as Corsican.

This issue appears in options-general.php and for admin also in wpmu-options.php.

As far as I know, all translations use a file name structure of 'aa_bb.mo' where 'aa' is the language and 'bb' is the country. A possible solution to this issue would be to check for the underscore ('_') after the first two letters of the file name to make sure it’s a different language.

Change History (3)

comment:1 nacin4 years ago

  • Component changed from Multisite to i18n
  • Keywords multisite added
  • Milestone changed from Unassigned to 3.0
  • Owner set to nbachiyski

This still an issue? Looks like it. Flagging for Nikolay.

comment:2 westi4 years ago

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

(In [12988]) Ignore the continents-cities mo files when searching for the list of installed language packs. Fixes #12019

comment:3 idotter4 years ago

I have the same issue and changing the settings (in two places) doesn't affect the backend-language :-(

Note: See TracTickets for help on using tickets.