Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-02 09:18:57

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

installation: order of list of available languages

Well, this is not really a bug, but it confuses me since a long time:
If your doing a clean install and want to select a language, these are not ordered alphabetically, so it’s hard to see if your native language is available at all. Could this be changed?

Thanks!

Offline

#2 2006-01-02 19:28:38

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: installation: order of list of available languages

Alphabetically to whom?

español ~= spanish

Offline

#3 2006-01-02 21:14:31

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: installation: order of list of available languages

That’s how the list is looking by now:

  • English (US)
  • Français
  • Español
  • Dansk
  • Ελληνικά
  • Svenska
  • Italiano
  • Čeština
  • 日本語
  • Deutsch
  • Norsk
  • Português
  • Русский
  • Slovenčina
  • ไทย
  • Nederlands
  • Íslenska(Icelandic)
  • Suomi

I’m speaking German, so I’m looking for “German” or “Deutsch”, so I presume my language is filled under “g” or “d”. An unsorted list (as it is now) is confusing…

Offline

#4 2006-09-09 07:34:06

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: installation: order of list of available languages

Anything new about that? It would be great if the languages were ordered by the first letter. Two possibilities:

  1. Ordered alphabetically by their english names (Danish, English, French, German, Spanish …)
  2. Ordered alphabetically by their original names (Dansk, Deutsch, English, Español, Français …)

Any order would be much appreciated!

Offline

#5 2006-09-10 16:32:47

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: installation: order of list of available languages

They are in order, actually – in order by their lang code (en-gb, fr-fr, etc), makes it easy when adding new langs (see setup-langs.php).

You realize that you can get to your lang by focusing the lang dropdown and hitting “D” on your keyboard, right?

Offline

#6 2006-09-10 16:39:31

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: installation: order of list of available languages

Hmm… Well, I see they are in order on the “Manage Language” tab. But when I start the installation (/textpattern/setup) I get the following in the source code:

<option value="en-us">English (US)</option>
<option value="fr-fr">Français</option>
<option value="es-es">Español</option>
<option value="da-dk">Dansk</option>
<option value="el-gr">Ελληνικά</option>
<option value="sv-se">Svenska</option>
<option value="it-it">Italiano</option>
<option value="cs-cz">Čeština</option>
<option value="ja-jp">日本語</option>
<option value="de-de">Deutsch</option>
<option value="no-no">Norsk</option>
<option value="pt-pt">Português</option>
<option value="ru-ru">Русский</option>
<option value="sk-sk">Slovenčina</option>
<option value="th-th">ไทย</option>
<option value="nl-nl">Nederlands</option>
<option value="is-is">Íslenska(Icelandic)</option>
<option value="fi-fi">Suomi</option>
<option value="ca-es">Català</option>
<option value="he-il">Hebrew</option>
<option value="ro-ro">Română</option>
<option value="hu-hu">Magyar</option>

I can’t see any logical order (neither by lang code nor by lang name). Is something wrong with my installation or do we talk about different things?

edit: I checked my files. The languages are ordered in /textpattern/setup/setup-lang.php, but the array in function langs() in /textpattern/setup/index.php is unordered:

bc.. $things = array( ‘en-gb’ => ‘English (GB)’, ‘en-us’ => ‘English (US)’, ‘fr-fr’ => ‘Français’, ‘es-es’ => ‘Español’, ‘da-dk’ => ‘Dansk’, ‘el-gr’ => ‘Ελληνικά’, ‘sv-se’ => ‘Svenska’, ‘it-it’ => ‘Italiano’, ‘cs-cz’ => ‘Čeština’, ‘ja-jp’ => ‘日本語’, ‘de-de’ => ‘Deutsch’, ‘no-no’ => ‘Norsk’, ‘pt-pt’ => ‘Português’, ‘ru-ru’ => ‘Русский’, ‘sk-sk’ => ‘Slovenčina’, ‘th-th’ => ‘ไทย’, ‘nl-nl’ => ‘Nederlands’, ‘is-is’ => ‘Íslenska(Icelandic)’, ‘fi-fi’ => ‘Suomi’, ‘ca-es’ => ‘Català’, ‘he-il’ => ‘Hebrew’, ‘ro-ro’ => ‘Română’, ‘hu-hu’ => ‘Magyar’ );

Last edited by Skubidu (2006-09-10 16:56:12)

Offline

#7 2006-09-10 17:10:54

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: installation: order of list of available languages

Good find. I’ll see what I can do.

Offline

#8 2006-09-10 18:15:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: installation: order of list of available languages

See r1806.

Offline

#9 2006-09-10 18:42:55

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: installation: order of list of available languages

Wonderful! Thank you a lot :)

Offline

Board footer

Powered by FluxBB