Poor man's multilanguage enhancement v2.0 - enhanced
- Fulvio Romanin
- Posts: 394
- Joined: Thu 4. Dec 2003, 11:12
- Location: Udine, Italy
- Contact:
Poor man's multilanguage enhancement v2.0 - enhanced
Ok, i felt the urge for a more easy way to do multilanguage sites. Having 5-6 pages for the same subject in different languages was painful (lots of wrong cross-linking, etc.), and impossible with news systems (300 miles long pages).
So, i asked my friend Luca (http://www.malisan.it) and he made up a script for phpwcms. All you have to do is just include the script like shown in the instructions (3 mins of work, maybe, and NO PHPWMCS FILES TO MODIFY) and, in the wysiwyg editor, include your languages (including images, or whatever you want to) inside of simple but specific tags like {IT}testo{/IT} or {EN}text{EN}.
Yes, it's all. Yes, it is so simple. It's not perfect, it's not the best solution in life, but it works
You can see a rolling demo here (it won't be here forever, so go look now)
http://www.rototomsunsplash.com/index.php?id=25
You can find the instructions and the code for v1.0 here
http://www.fulvioromanin.it/phpwcms/
the code for v2.0 is on a post following right in this thread
You can also consider donating ONE euro with the link at the bottom of the doc page if you like the script. Its free for you, but it has costed me something to develop it, so...
So, i asked my friend Luca (http://www.malisan.it) and he made up a script for phpwcms. All you have to do is just include the script like shown in the instructions (3 mins of work, maybe, and NO PHPWMCS FILES TO MODIFY) and, in the wysiwyg editor, include your languages (including images, or whatever you want to) inside of simple but specific tags like {IT}testo{/IT} or {EN}text{EN}.
Yes, it's all. Yes, it is so simple. It's not perfect, it's not the best solution in life, but it works
You can see a rolling demo here (it won't be here forever, so go look now)
http://www.rototomsunsplash.com/index.php?id=25
You can find the instructions and the code for v1.0 here
http://www.fulvioromanin.it/phpwcms/
the code for v2.0 is on a post following right in this thread
You can also consider donating ONE euro with the link at the bottom of the doc page if you like the script. Its free for you, but it has costed me something to develop it, so...
Last edited by Fulvio Romanin on Wed 7. Sep 2005, 16:29, edited 1 time in total.
Completeness is reached through subtraction, not through addition
- Fulvio Romanin
- Posts: 394
- Joined: Thu 4. Dec 2003, 11:12
- Location: Udine, Italy
- Contact:
For some reason when I load: http://www.rototomsunsplash.com/index.php?id=25
I first get the code - both the italian and english text - and after a while I just get the text from one lang.....
It's like the .js file load to late and that not user friendly.
Another issue: If you have 12 lang then it would cause a heavy server loader always loading all the 12 lang even when the user just need 1 lang.
But again the system work and easy to use.
I first get the code - both the italian and english text - and after a while I just get the text from one lang.....
It's like the .js file load to late and that not user friendly.
Another issue: If you have 12 lang then it would cause a heavy server loader always loading all the 12 lang even when the user just need 1 lang.
But again the system work and easy to use.
http://www.studmed.dk Portal for doctors and medical students in Denmark
- Fulvio Romanin
- Posts: 394
- Joined: Thu 4. Dec 2003, 11:12
- Location: Udine, Italy
- Contact:
I just developed another solution, without any Javascript and files to add, only your template has to be modified.
Disadvantage: Your articles become very unovervieable when using many languages.
I`m currently using it with 4 languages (no demo available, as only German is finished until now) with no problems.
--...--/index.php/topic,117.0.html
___________________________________
There are 3 advantages of this method:
Disadvantage: Your articles become very unovervieable when using many languages.
I`m currently using it with 4 languages (no demo available, as only German is finished until now) with no problems.
--...--/index.php/topic,117.0.html
___________________________________
There are 3 advantages of this method:
- no extra files, no code editing
CSS is loaded before the rest => no poping up of the other languages content
only the text is loaded and no images, where the style is display:none, which shouldn`t actually produce a high traffic
Last edited by brans on Sat 7. May 2005, 14:01, edited 1 time in total.
try this:
http://www.symposium-lp.ch.vu/index.php?slp&lang=de
is the only section where I applied the hack to the content.
http://www.symposium-lp.ch.vu/index.php?slp&lang=de
is the only section where I applied the hack to the content.
Can you tell me why the address does not change but the language has changed?? Do you modify database (e.g add another field...)?
Code: Select all
http://www.symposium-lp.ch.vu/index.php?slp&[color=blue][b]lang=de[/b][/color]
No the trick is the following:
When using this inside your url: &lang=de , then a session variable will be set that tells phpwcms to make only the german part visible. You only have to do this once and therefore this is very good for SEO, because all other links but the language link can stay the same.
Maybe have a look at the tutorial --...--/index.php/topic,117.0.html and see what is done with the variable string. There won't be anything to change, only some stuff to add into your template and thats all.
When using this inside your url: &lang=de , then a session variable will be set that tells phpwcms to make only the german part visible. You only have to do this once and therefore this is very good for SEO, because all other links but the language link can stay the same.
Maybe have a look at the tutorial --...--/index.php/topic,117.0.html and see what is done with the variable string. There won't be anything to change, only some stuff to add into your template and thats all.
I see, so I have said you just change the interface language!!brans wrote:No the trick is the following:
When using this inside your url: &lang=de , then a session variable will be set that tells phpwcms to make only the german part visible. You only have to do this once and therefore this is very good for SEO, because all other links but the language link can stay the same.
Maybe have a look at the tutorial --...--/index.php/topic,117.0.html and see what is done with the variable string. There won't be anything to change, only some stuff to add into your template and thats all.
Because, if someone want an interface with only german lang and german content and another interface with only enlish lang and enlish content (they are independance) this mod is not suittable.
- Fulvio Romanin
- Posts: 394
- Joined: Thu 4. Dec 2003, 11:12
- Location: Udine, Italy
- Contact: