Antworten: 4
Seite [1] |
|
zlobson Beginner Beiträge: 12 |
# Thema - 13.03.2010 um 10:40 Uhr
Hi, I have idea... I want create "languages switches" (for example: in the Userlogin panel - 2 buttons with imageflags EN and DE - after click ot this one web will be switched on choiced lanuage) I have prepared 2 index.htm files (en/de), buttons on the panel creating its no problem, both language Clansphere supported and i think that is possible working it. But i havent idea HOW code (action) create - for one click to change language (like is in users/settings/setup/language panel) WITH change to index for choiced language (and where placing EN/DE index files for correct working)? Of course, content my web will be CZ, but for many visitors changing language settings in the userpanel its not "easy". If they get view my web in CZ lang. and do not see VERY EASY POSSIBILITY for changing language version, then quickly left my web of course... (for example - someone want fightus, but dont know (CZ) "Vyzvěte nás" = "Fight Us" (EN)... You have any advice for me ? THX... ------------------ Damn ! I am GOOD !! My web ( http://www.100life.cz ) is 100% VALID in CSS, XHTML and RSS !! How is it possible?? |
Inaktiv |
|
Jam2 Highlander Beiträge: 3291 |
# Antwort: 1 - 13.03.2010 um 11:24 Uhr
Hi^^ take a look {users:navlang} or {users:navlang2} now you can change the content! to change your tpl: open system/core/functions.php search if(!empty($predefined['init_tpl'])) echo cs_template($cs_micro, $predefined['tpl_file']); } replace with if($cs_options['def_lang'] != $account['users_lang']){ $whiteList = array('English','German','CZ'); # case sensitiv! same like /lang/!German! if(in_array($account['users_lang'],$whiteList)){ $predefined['tpl_file'] = $account['users_lang'].'_'.$predefined['tpl_file']; } } if(!empty($predefined['init_tpl'])) echo cs_template($cs_micro, $predefined['tpl_file']); } now you can make your German_index.htm, English_index.htm note: standard language = index.htm (not tested) ------------------ Gruß/ Best regards Jam2 Nützliche Forumbeiträge/Codepastes: (Useful comments in our board / codepastes) Template Switch for index.php Board Navlist last posts Edi: könnte man denn auch hier eine erweiterung einfügen?
Jam2: das web ist wie toyota..... Edi: hö ? Jam2: nichts ist unmöglich! Zuletzt editiert von Jam2 am 13.03.2010 um 11:46 Uhr (4x Editiert) |
Inaktiv |
|
zlobson Thread-Ersteller Beginner Beiträge: 12 |
# Antwort: 2 - 18.03.2010 um 05:07 Uhr
THX for your advice, I want help with: I need set in the PHP file language. But I dont know how do it one. For example: If I write on address bar webbrowser this: http://www.100life.cz/index.php?mod=users&action=setup&lang=German and will be set German language. But HOW i must write PHP code for this action in the PHP file ? ------------------ Damn ! I am GOOD !! My web ( http://www.100life.cz ) is 100% VALID in CSS, XHTML and RSS !! How is it possible?? Zuletzt editiert von zlobson am 18.03.2010 um 21:36 Uhr (1x Editiert) |
Inaktiv |
|
SlayR Geekboy Herkunft: Calbe (Saale) Beiträge: 1133 |
# Antwort: 3 - 19.03.2010 um 17:06 Uhr
Maybe this were fine for an svn build-in? Its really hard for older Germans to read an Navigation or some else in English or for English men to read it in German Maybe it's possible to make the lang-switch standard for Clansphere (maybe for Coresphere)? ------------------ --- CLANSPHERE ---
Professional clan care starts here |
Inaktiv |
|
zlobson Thread-Ersteller Beginner Beiträge: 12 |
# Antwort: 4 - 19.03.2010 um 23:31 Uhr
THX for your help, my english is poor, maybe will be better see: http://www.100life.cz at top right in userlogin panel. This I would... and now it WORKS CORRECTLY AND VALID, yeaaa !!! ------------------ Damn ! I am GOOD !! My web ( http://www.100life.cz ) is 100% VALID in CSS, XHTML and RSS !! How is it possible?? |
Inaktiv |
|
Dieses Thema wurde von Jam2 geschlossen. |
|
Antworten: 4
Seite [1] |