Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-16 09:13:03

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

prd_switch_lang

:: prd_switch_lang ::

When this plugin is active, it gives you, in the admin tab, the language menu so you can switch to your prefered language even if you’re not an admin.

Plugin based on txp_prefs.php with a little help of _steve and ruud from the forum – many thanks.

You can find it here.

Work with TXP 4.0.2 > 4.0.6. Compatibility not tested with a hundred of other plugin ;-)

The original forum thread.

Last edited by fpradignac (2008-03-14 21:00:35)


françois

Offline

#2 2007-12-16 10:46:28

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: prd_switch_lang

Please use a 3 character prefix.

Offline

#3 2009-01-30 18:01:45

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: prd_switch_lang

Hello,

I’ve installed it in Textpattern 4.0.8 and it is working, but every user can change the language for all users, not only for himself. Is it possible to change this behavior, so that the user can have his own language and only the admin has the right for changing the side language??

Thanks …
Andreas

Offline

#4 2009-01-30 21:14:06

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

Re: prd_switch_lang

Hello Andreas,

sorry but the switch is for everyone; but I think it will be simple to limit it to the admin.
Perhaps using add_privs('even', '1'); somewhere, but I’m not sure.


françois

Offline

#5 2009-01-30 22:53:39

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: prd_switch_lang

Sorry, tried some combinations, but with no success …
Can tell the users how to use it, they understand all the languages (german, russian, ukrainian), but would be more nice, if they could individually choose their language….

Andreas

Offline

#6 2010-06-08 16:31:58

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: prd_switch_lang

Hi, is there a plugin for TXP 4.2 ?


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#7 2010-06-08 17:54:26

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

Re: prd_switch_lang

Bonjour Nicolas,

Je n’ai pas pris le temps d’y regarder… mais je peux t’envoyer la source si tu veux y regarder.

Cordialement.


françois

Offline

#8 2010-06-09 07:27:36

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: prd_switch_lang

Merci François,

Je veux bien y jeter un œil, mais je ne suis pas sûr d’y comprendre quelque-chose :-/
Je ne suis pas programmeur. Tags txp, (x)html et css sont les seuls langages avec lesquels je développe pour l’instant…

Sinon, il y a toujours MLP, mais c’est vrai que c’est un peu lourd pour n’être utilisé que pour changer la langue admin.

Bien à toi


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#9 2011-05-15 21:04:32

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,099
Website Mastodon

Re: prd_switch_lang

NicolasGraph wrote:

Hi, is there a plugin for TXP 4.2 ?

yes ditto from me.

Hopefully there is an update for 4.4.X so that we can have each user select their own admin language interface?

added; Or is MLP the only option we have

Last edited by bici (2011-05-15 21:05:33)


…. texted postive

Online

#10 2011-05-15 21:21:33

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

Re: prd_switch_lang

Haven’t had to deal with a multilingual environment, but what about wet_native?

Last edited by uli (2011-05-15 21:21:46)


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

Offline

#11 2011-05-15 21:31:15

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,099
Website Mastodon

Re: prd_switch_lang

uli wrote:

Haven’t had to deal with a multilingual environment, but what about wet_native?

That would do the trick very nicely! thanks!

For the past 2 hours I did all kinds of searching in the forums and on the internet via google and that option was never revealed. Now it is i hope … so that others may find it

cheers


…. texted postive

Online

Board footer

Powered by FluxBB