Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-25 15:51:42

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

Per-user languages

Is there any mileage in making the txp_pref language settable per user?

Granted, the only 2 user levels that can change it directly are Publisher and Managing Editor, but what if the Admin->Users tab could also have an additional dropdown listing all installed languages? Thus, when a user is created/edited by a publisher, any user can be assigned a specific language (which is the language of the publisher, if not altered).

For people across countries collaborating on sites for clients, it just makes the whole process a little smoother because each person in the team can see the admin interface in their chosen (if allowed) or assigned language.


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

#2 2009-04-25 18:25:46

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Per-user languages

Perfect for me, I have English and French clients.

Offline

#3 2009-04-25 19:16:44

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Per-user languages

I agree that would be very useful.
FYI The MLP pack provides a similar feature but requires the user to manually choose the admin language from a dropdown menu located at the bottom of each admin page.

Offline

#4 2009-04-25 19:37:21

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

Re: Per-user languages

redbot wrote:

FYI The MLP pack provides a similar feature

Correct. But I have an ulterior motive for making this request that ties into MLP *ominous chord plays* ;-)

It would also mean that, for example, users registered / logged in via mem_self_register / ign_password_protect could ultimately choose a default language from the ones installed and be served different content. It’s only a small change to manfre’s code.


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

#5 2009-04-26 13:04:27

kus
Member
From: madiun, Indonesia
Registered: 2007-03-15
Posts: 64
Website

Re: Per-user languages

+1 ,

I have Indonesian, Italian, East Timor, & Thailand contributor.

Offline

#6 2009-04-26 13:52:11

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

Re: Per-user languages

kus wrote:

+1 ,

I have Indonesian, Italian, East Timor, & Thailand contributor.

But if the end result- the website – is in a single language, doesn’t it mean that they all have at least one common language, meaning that Stef’s idea is arguably redundant?

I admit that I don’t really get this idea..!


Keith
Blyth, Northumberland, England
Capture The Moment

Offline

#7 2009-04-26 14:05:00

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

Re: Per-user languages

keith wrote:

But if the end result- the website – is in a single language, doesn’t it mean that they all have at least one common language, meaning that Stef’s idea is arguably redundant?

Kind of, but not necessarily. If you don’t think in terms of creating articles but in terms of creating an entire client site then it becomes a bit more useful.

For example, recently I collaborated with Uli on a site for a German client. We each had a login to a development TXP install. The admin side language had to be in German to demo it to the client. Uli was creating the content and the styling, tweaking form output and tags and he was way more comfortable in German than English; I was labouring away in other Pages/Forms and writing custom PHP and I’m wholly uncommunicative in German. My job would have been a lot easier had I been able to have the admin side showing up in English and Uli could have set his and the clients’ logins to use German, at the same time. As it stands, we had to pick one; and English was outnumbered ;-)

Luckily I’m seasoned in the admin side so I just kinda went where I knew the tabs should be and hoped that any messages that came back to me from the results of my tinkering were ‘success’ messages. I did learn a bit of German in the process, but I should think it would be a little more disorienting if I was collaborating with kus on a project and had to make my way round an Indonesian admin side!

Last edited by Bloke (2009-04-26 14:08:58)


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 2009-04-27 09:19:56

kus
Member
From: madiun, Indonesia
Registered: 2007-03-15
Posts: 64
Website

Re: Per-user languages

But if the end result- the website – is in a single language, doesn’t it mean that they all have at least one common language, meaning that Stef’s idea is arguably redundant?

at website we using Bahasa Indonesia and English, but soon , we will using about 3 or 4 other languages like East Timor, France , & simple Arabic.

Yes, we will using MLP too :)

ps: sorry for my english.

site : Pralangga | Our Peacekeeping Journey

Last edited by kus (2009-04-27 09:22:41)

Offline

#9 2009-04-27 09:44:33

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: Per-user languages

Hello,

this plugin is not a real solution for you, but it can help in some cases : prd_switch_lang


françois

Offline

#10 2009-04-28 08:43:53

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Per-user languages

The most recent development version contains a lot of the required bricks to build this feature. I’ve written a bit of the unavoidable glue and dubbed it wet_native.

Offline

#11 2009-04-28 09:42:13

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: Per-user languages

Whaou! Excellent wet!


françois

Offline

#12 2009-04-28 14:43:26

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

Re: Per-user languages

wet wrote:

I’ve written a bit of the unavoidable glue and dubbed it wet_native

Poifick! The fact you are using the same pref name ‘language’ in a per-user guise is incredibly useful: a single get_pref('language') will suffice for whoever’s logged in.

Only a core dev could get away with using a plugin to write a pref with the same name as one built into the core ;-) All us lesser authors would have had to prefix the pref name with our plugin prefix, which would make it unduly complex.

Thank you very much for this plugin, wet. Brilliant.


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

Board footer

Powered by FluxBB