Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-01-20 00:58:20

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Admin > Languages: Order of languages

Looks like languages in the Languages panel are sorted by their English names, not by their proper names: Bahasa Indonesia at the alphabetic position of Malay, Suomi at the position of Finnish, Latviešu after Lietuvių. Might be confusing for first-time installers who don’t discover their own language, then, while scanning the page quickly.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#2 2018-01-20 11:14:28

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Admin > Languages: Order of languages

Inclined to agree, if it’s possible. The languages at the moment are ordered by language code alphabetically (such as en-gb) but by actual name alphabetically would be more useful. Can you open an issue on GitHub please? Cheers!

Offline

#3 2018-01-20 11:36:29

etc
Developer
Registered: 2010-11-11
Posts: 5,187
Website GitHub

Re: Admin > Languages: Order of languages

Sorry, I don’t see how ภาษาไทย compares to Русский?

Offline

#4 2018-01-20 12:18:20

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,188
Website

Re: Admin > Languages: Order of languages

etc wrote #308780:

Sorry, I don’t see how ภาษาไทย compares to Русский?

From North to South?


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#5 2018-01-20 18:21:15

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Admin > Languages: Order of languages

Hmmm, that’s a good point. Didn’t consider non-Latin alphabets. Maybe we can show the actual language code on the languages panel too, which then gives a visual clue to the order?

Offline

#6 2018-01-21 00:02:44

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,259
GitHub

Re: Admin > Languages: Order of languages

While we’re at it – and I’ve held off on mentioning this as it might be too obtuse…

The Install, Remove and Update buttons are in English by default, until a non-English language is installed and then they’re in whatever site language is chosen.

Is it viable to replace these text labels with something iconic instead, perhaps with hover/alt text with the words for Install and Update in the respective Textpack language?

It’s a bit of a UI train wreck to have each language’s Install, Remove or Update string on the button itself, but something iconic would give more of a clue as to what’s required if a non-expert, non-English Textpattern person finds themselves in that panel.

A propos nothing, about 40% of the “it’s broken” feedback I get from the Textpattern demo site is that it’s in some whacky, non-English language.

…told you it was obtuse!

Offline

#7 2018-01-23 14:21:24

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: Admin > Languages: Order of languages

gaekwad wrote #308789:

The Install, Remove and Update buttons are… in whatever site language is chosen.

Yes, they’re gTxt() string elements so are governed by the currently in-force UI language. But I see your point that it’s not ideal to have the language name itself localized and not the button actions.

Not really sure how to get round this. Even if we add the install/update gTxt strings into the “header” portion of the language files (which will then put them in the [common] group) we’d need some special code to display the gTxt() for each button not in the site UI language just for this panel.

Is it viable to replace these text labels with something iconic instead

This would be my preferred option if we can find some suitably international symbols. Anything in our icon pack/symbol font @philwareham?

Hover/alt would suffer from the same issue as above – dedicated code required, and strings would need moving to the top of the file, which is not something I’d relish at this stage. Or ever, in fact!

about 40% of the “it’s broken” feedback I get from the Textpattern demo site is that it’s in some whacky, non-English language.

There’s really not much else we can do about this. If the site’s in ar-dz and it’s not your native tongue, you just need to click randomly around until you find something that looks a bit languagey. Granted, when you’re there, it’d be cool to have button icons rather than text so at least you can figure out which button does what in the language tile that you do speak! The ‘x’ or trash seems fairly universal for ‘delete’ actions.

It’s the same on your phone. Go to the settings, pick a foreign language and go back to the home screen. Sure the ‘gear’ is easy to find the settings panel but from there, you’d probably still have to try each option until you found the right one unless you knew where it was.

Short of putting a language dropdown in the header bar, which is extra page weight and requires a little code refactorisation – not to mention switching admin language isn’t something you do every day – or a flag symbol of the current language in the menu bar so the Languages menu item stands out, I think we’re just going to have to live with it.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#8 2018-01-23 15:08:24

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Admin > Languages: Order of languages

I’m really not keen on adding ~50 extra translation strings to each Textpack to allow for translations of language names per language. I don’t want to have to also be tied to adding new language strings to those files every time we add a new language pack. So that isn’t an option! ;)

I’d also not be too keen on totally replacing button texts with icons. I would, however, be interested in adding icons to the text we already have there, since we already have the UI to do that.

Just need to choose suitable icons from the pile.

Offline

#9 2018-01-23 15:17:30

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: Admin > Languages: Order of languages

I wasn’t advocating adding localised strings for each language, don’t worry! It was only moving the two strings “Install” and “Remove” to the top so we could read them. But that doesn’t solve the problem anyway, so is not something I want to do.

philwareham wrote #308822:

I would, however, be interested in adding icons to the text we already have there

How about the +/- icons for add and remove, respectively? Either in circles or squares or bare. The minus in a circle always looks like “No entry” to me, but if it’s located near a ‘plus’ the ambiguity might be reduced.

Last edited by Bloke (2018-01-23 15:32:30)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#10 2018-01-23 15:45:44

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Admin > Languages: Order of languages

How about this? (the first row) – forget that the icons are wrong colour, it’s just a quick hack together.

I’ve also put the language codes on that row, which gives a visual clue as to the order the languages are listed in – negating the fact that fi is Suomi but appears in the ‘Fs’, and suchlike, as alluded to in the original post above.

I guess the icon on update button isn’t essential.

Offline

#11 2018-01-23 15:50:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: Admin > Languages: Order of languages

Yes! I like the three-icon approach.

Does it make sense to put the language code inline with the language name, or does that look crap?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#12 2018-01-23 16:07:00

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Admin > Languages: Order of languages

Bloke wrote #308826:

Does it make sense to put the language code inline with the language name, or does that look crap?

Tried that – looked crap. OK I’ll put some CSS/PHP in place tomorrow to get this into core. Got work stuff to do now.

Offline

Board footer

Powered by FluxBB