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

language does not change

Development and Programming

Thomas Hartmann's avatar
Thomas Hartmann
170 posts
14 years ago
Thomas Hartmann's avatar Thomas Hartmann

Hi @ all

I choose under General Configuration as Default language “German” as my prefered language.

But my member themes are all in english, do you know whats happeing here?

Best, Thomas

       
Thomas Hartmann's avatar
Thomas Hartmann
170 posts
14 years ago
Thomas Hartmann's avatar Thomas Hartmann

And I also would like to know which is the language file for the member themes. I thought it was lang.member.php oder lang.members.php, but I can change them and nothing happens…I also do not find anything over google about this question…getting angry :(

thank you!

       
Thomas Hartmann's avatar
Thomas Hartmann
170 posts
14 years ago
Thomas Hartmann's avatar Thomas Hartmann

sry for spaming, but actually post is solved…but I still wanna know which is the language file for the member themes, and why are there so many files called member…?

       
John Henry Donovan's avatar
John Henry Donovan
12,339 posts
14 years ago
John Henry Donovan's avatar John Henry Donovan

Hi frankylefteye,

There are 2 member language files member_lang.php and members_lang.php.

In General Configuration you are setting the default language . To set your own language goto your My Account area and change it there too

Does that help?

       
Thomas Hartmann's avatar
Thomas Hartmann
170 posts
14 years ago
Thomas Hartmann's avatar Thomas Hartmann

yes, I will take a look at the files!

One question more: At my account you can change your language, so afterwards your member profile is displayed in that language. In our website users can not choose their language, I want to set that manually.

I think the users language is stored in a global variable, right? Can I change this manually like for example: $global_lang = “de” or something like that?

THX!

       
Thomas Hartmann's avatar
Thomas Hartmann
170 posts
14 years ago
Thomas Hartmann's avatar Thomas Hartmann

and you know if there are language packs for French where the member files are also translated? I downloaded french language pack, but I do not see any member files in it…thx!

       
Thomas Hartmann's avatar
Thomas Hartmann
170 posts
14 years ago
Thomas Hartmann's avatar Thomas Hartmann

in my profile themes template the vars are defined like that: {lang:personal_info}, {lang:email}, {lang:communications}, and so on…

but in my member_lang.php file, the vars are defined by “mbr_email”, “mbr_cocommunications”…can you tell me where got the actual translation from, there are so many language files

thank you

       
Kevin Smith's avatar
Kevin Smith
4,784 posts
14 years ago
Kevin Smith's avatar Kevin Smith

Hi frankylefteye,

If you’re wanting to set the default language for your site, do that by going to Admin > General Configuration, and set the default language for your site there.

The French language pack does have member_lang.php and members_lang.php in it. Be sure to download the language pack for EE 2.

The template variables you mentioned like {lang:personal_info} map exactly to a line in one of the language files that reads “personal_info”, and in this case, that’s in the member_lang.php file. Be sure to check both the member_lang.php and members_lang.php.

Does that help clear things up?

       
Thomas Hartmann's avatar
Thomas Hartmann
170 posts
14 years ago
Thomas Hartmann's avatar Thomas Hartmann

thank you… but somethig is still open 😊

the var {lang:personal_info} consists of two parts, the language choosen and the var-name. how can I chance the lang part manually.

I mean somewhere in EE, the system has to read out the actual taken language and store it in “lang”

the mapping is no problem for me.

thx!

       
Kevin Smith's avatar
Kevin Smith
4,784 posts
14 years ago
Kevin Smith's avatar Kevin Smith

Hi frankylefteye,

I’m not sure I understand what you’re asking. The “lang” part of the tag just lets ExpressionEngine know that this is a language tag that should be translated. You don’t need to change the lang part of the tag.

Are you trying to change the default language for the whole site? Or only for a specific member? Or only change the language for a specific context?

       
Thomas Hartmann's avatar
Thomas Hartmann
170 posts
14 years ago
Thomas Hartmann's avatar Thomas Hartmann

Hey

I want to change language “only for a specific member”. By default the user is doing this in his profile, but I want to do it manually in my code…

better?

Best, Thomas

       
Kevin Smith's avatar
Kevin Smith
4,784 posts
14 years ago
Kevin Smith's avatar Kevin Smith

Oh, I see. Well, there’s nothing provided natively by EE that makes this possible, but some custom programming or custom queries on your database might be able to get you the solution you’re looking for. Since this isn’t within the realm of technical support, I’ve moved this thread over to Development and Programming so that you might be able to get some input from other developers on how to accomplish this using some custom work.

To help prime the pump, let me ask you a question that will help others help you better: Do you want to change it once and for all for a given member or do you want to be able to change a member’s default language selection based on certain conditions?

       
Thomas Hartmann's avatar
Thomas Hartmann
170 posts
14 years ago
Thomas Hartmann's avatar Thomas Hartmann

Hey Kev

Actually our platform is based in Switzerland, we speak many languages in our country 😊 Via the browser I can check from which region the visitor is coming from…based on that information I want to change the users language.

So let’s say I want to change member’s default language based on ceratin conditions.

Thx for your effort!

Best, Thomas

       

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.