We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New 'template_language' plugin available.

Development and Programming

MF's avatar
MF
15 posts
19 years ago
MF's avatar MF

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.

       
ExpressionEngineer's avatar
ExpressionEngineer
148 posts
19 years ago
ExpressionEngineer's avatar ExpressionEngineer

Sounds brilliant, many thanks!

:: andy

       
Thomas Krueger's avatar
Thomas Krueger
4 posts
19 years ago
Thomas Krueger's avatar Thomas Krueger

Thanks a lot!

       
Djive's avatar
Djive
97 posts
19 years ago
Djive's avatar Djive

Yep sounds great 😊

       
Jonathan Haig's avatar
Jonathan Haig
1 posts
19 years ago
Jonathan Haig's avatar Jonathan Haig

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

       
ayza's avatar
ayza
71 posts
19 years ago
ayza's avatar ayza

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

Thanks a lot!

😊

Ayza

       
vik407's avatar
vik407
15 posts
about 16 years ago
vik407's avatar vik407

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

Thanks

       
outline4's avatar
outline4
271 posts
15 years ago
outline4's avatar outline4
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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.