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!
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
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?
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!
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?
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?
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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.