[wp-trac] [WordPress Trac] #29456: Deprecating WPLANG constant is a regression

WordPress Trac noreply at wordpress.org
Tue Sep 2 22:08:18 UTC 2014

#29456: Deprecating WPLANG constant is a regression
 Reporter:  tenpura       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.0
Component:  I18N          |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:

Comment (by tenpura):

 One more thing to say.

 Making existence of *.mo prerequisite for selectable languages like this
 is logically wrong and should not do.

 $languages = get_available_languages();
 if ( ! empty( $languages ) ) {

 Locale setting is basically used for triggering locale specific codes and
 tasks like:

 * Outputting <html lang="xx">
 * Words or characters? counting
 * Choosing which translation files to update, etc

 Loading proper translation files is of course one of these and it should
 be optional somehow. In fact many Japanese prefer not to load ja.mo files
 for their Japanese blog, but even such a case, they still need language
 specific functionality like character counting.

Ticket URL: <https://core.trac.wordpress.org/ticket/29456#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list