Ticket #464 (closed enhancement: fixed)

Opened 9 months ago

Last modified 9 months ago

Fixes Languages Management.

Reported by: momo360modena Assigned to: somebody
Priority: normal Milestone: WPMU 2.0
Component: component1 Version: 2.0
Severity: normal Keywords: languages
Cc:

Description

Reference: ticket:328

This patch improve language management.

  • List MO files only
  • Possibility for each blogger to use English language. (the old way can't allow this.)
  • Translate code "fr_FR" to French.

I use only the first prefix "fr" to translate. List based on: http://www.loc.gov/standards/iso639-2/langhome.html

I'added a filter to allow admin to improve/customize this list with a plugin.

Attachments

fix_languages.patch (7.8 kB) - added by momo360modena on 10/20/07 14:26:31.
fix_languages.2.patch (8.7 kB) - added by momo360modena on 10/20/07 14:30:59.
fix_languages_settings.patch (511 bytes) - added by momo360modena on 10/23/07 07:54:36.

Change History

10/20/07 14:26:31 changed by momo360modena

  • attachment fix_languages.patch added.

10/20/07 14:30:59 changed by momo360modena

  • attachment fix_languages.2.patch added.

10/20/07 14:31:25 changed by momo360modena

Second patch fix UTF8 characters.

10/22/07 17:30:05 changed by donncha

  • status changed from new to closed.
  • resolution set to fixed.

Nice patch! Thank you. Applied in [1121]

10/23/07 07:38:51 changed by mark-k

  • status changed from closed to reopened.
  • resolution deleted.

Hmmm, this is not localizable :( , and it seems to assume that the default language is english, which is not true in my case.

As for being able to choose english, my suggestion is to add an empty en_US.mo file to the language directory.

10/23/07 07:54:24 changed by momo360modena

List of languages can be customize with a plugin.

See filter.

$lang_codes = apply_filters('lang_codes', $lang_codes);

and see patch for bug.

10/23/07 07:54:36 changed by momo360modena

  • attachment fix_languages_settings.patch added.

10/23/07 09:01:56 changed by donncha

  • status changed from reopened to closed.
  • resolution set to fixed.