New ‘template_language’ plugin available.
Posted: 05 November 2005 08:45 AM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  757
Joined  06-01-2004

I’ve written an EE plugin that will let you change language localization settings from within templates. I call it the ‘template_language’ plugin. It’s attached to this post as ‘pi.template_language.txt’. To use the attachment (save it into your plugin folder and) rename it to pi.template_language.php.

It can be used to:

(A) Override any site wide language localization settings and any user control panel language preferences for a CURRENT template/page.

OR

(B) Override any site wide language localization settings and any user control panel language preferences for FUTURE templates/pages (that a user will visit after the current one). This works only for ANONYMOUS (not logged in) users. I use it to set the language for the “user message template” (such as the “mailinglist subscription message” etc.).

Please try it out and give me your feedback about bugs etc. I plan to add the final version to the pMachines list of plugins for EE if you like. Thanks.

File Attachments
pi.template_language.txt  (File Size: 6KB - Downloads: 827)
 Signature 

mode.com | schmuck.com | mode.ch | shop.ch

Profile
 
 
Posted: 05 November 2005 09:37 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  567
Joined  07-22-2004

Sounds brilliant, many thanks!

:: andy

 Signature 

ExpressionEngineer - custom solutions for EE

I EE

Profile
 
 
Posted: 06 November 2005 01:58 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  86
Joined  08-07-2004

Thanks a lot!

 Signature 

YachtPanorama.com

Profile
 
 
Posted: 06 November 2005 10:55 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
RankRankRank
Total Posts:  461
Joined  09-09-2004

Yep sounds great smile

 Signature 

Web Hosting - CMS - Izrada web stranica - SEO - Marketing Hrvatska

Profile
 
 
Posted: 12 March 2006 09:33 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  2
Joined  11-24-2005

Works great - exactly what I have been looking for grin Thank you so much for a great little tool

Profile
 
 
Posted: 12 May 2006 07:37 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  297
Joined  08-13-2003

You just saved my day (or rather my client’s)!

Thanks a lot!

grin

Ayza

 Signature 

Lidne Inc. :: Business by Design

Profile
 
 
Posted: 01 June 2009 10:01 AM   [ Ignore ]   [ # 6 ]  
Summer Student
Avatar
Total Posts:  18
Joined  11-23-2006

I try to apply this plugin and doesnt works (ExpressionEngine 1.6.7) someone knows a plugin like this to override locale settings?

Thanks

 Signature 

Víctor Hugo Hernández
Twitter / nullun
Cali - Colombia

Profile
 
 
Posted: 19 June 2009 05:39 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  211
Joined  06-27-2008
vik407 - 01 June 2009 10:01 AM

I try to apply this plugin and doesnt works (ExpressionEngine 1.6.7) someone knows a plugin like this to override locale settings?

Thanks

ext.language_switcher might be the thing you’re looking for:
http://elwinzuiderveld.nl/downloads/language_switcher.zip

 Signature 

outline4.ch | buy me a beer…

Profile
 
 
   
 
 
‹‹ pi.dyno_cat.php on line 78      Magpie Error ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120285 Total Logged-in Users: 45
Total Topics: 126405 Total Anonymous Users: 20
Total Replies: 664767 Total Guests: 309
Total Posts: 791172    
Members ( View Memberlist )