Timeline for Changing interface language without multisite
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 24, 2015 at 11:10 | vote | accept | Mayeenul Islam | ||
Dec 24, 2015 at 11:05 | history | edited | Mayeenul Islam | CC BY-SA 3.0 |
fixed typo
|
Jun 9, 2014 at 11:20 | answer | added | gmazzap | timeline score: 1 | |
Jun 9, 2014 at 10:34 | comment | added | Mayeenul Islam | Thanks @G.M. I answered in my way. Tried your one with a syntax error, saying unwanted bracket ({). Would love if you comment how I can make my answer with your code. With advance thanks. :) | |
Jun 9, 2014 at 10:33 | answer | added | Mayeenul Islam | timeline score: 0 | |
Jun 9, 2014 at 9:10 | comment | added | gmazzap |
Don't use get_query_var for variables that are not query variables. Use: toscho_change_language( $locale ) { $bn = filter_input( INPUT_GET, 'bn' ) ? : $locale; } no need of get_query_var, no need of isset, just one line effective function. Regarding the 2 questions, it seems ok to me, but to be honest locale is not a field where I'm expert.
|
|
May 14, 2014 at 10:40 | history | asked | Mayeenul Islam | CC BY-SA 3.0 |