mod_LanguageSelector - Multilanguage module - alpha version

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
User avatar
lindesbs
Posts: 80
Joined: Fri 18. Feb 2005, 19:13
Location: Oer-Erkenschwick, Germany
Contact:

mod_LanguageSelector - Multilanguage module - alpha version

Post by lindesbs »

DemoSite : http://www.ktrion.de/LanguageSelector/

It is necessary to patch the phpwcms source code. A patch script is at the moment only available for linux, but you can download a prepared version, for overwriting an existing installation, archive does not have a conf.inc.php
http://www.ktrion.de/LanguageSelector/L ... or.tar.bz2

Simple module installation, included install.txt
http://www.ktrion.de/LanguageSelector/m ... or.tar.bz2


This is an alpha version. Please report all bugs and whishes to mod_LanguageSelector@ktrion.de or enter them directly in my bugtracking system http://ktrion.de/mantis.

There is a new ReplacementTag called [LS]xxx[/LS] that is responsible for rendered text. Useable in templates, fixed textes and so on.
Translating via google and reverting to older version will follow in the next release.
This version is "only a teaser"



more documentation will follow soon. :D
kein Signatur mehr
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Re: mod_LanguageSelector - Multilanguage module - alpha version

Post by pepe »

Hi lindesbs,

looks great... but would be much, much better, without modifications inside the normal script... maybe possible???

I think, OG will NOT integrate it inside the core-code ( Nenn es "langjährige Erfahrung" mit phpwcms :-( ) and there would be problems, during former updates :-(


... but nevertheless go on working, a great tool to come, thumps up :D :D :D
User avatar
lindesbs
Posts: 80
Joined: Fri 18. Feb 2005, 19:13
Location: Oer-Erkenschwick, Germany
Contact:

Re: mod_LanguageSelector - Multilanguage module - alpha version

Post by lindesbs »

Without changing the db accessing options this will not work. OG has a function called _dbQuery, which encapsulate mysql_query. But he doesn´t use this everywhere. So, the end user must patch his installation at the moment to masquerade the original db access sequences. It´s only a new way of multilanguage option. When OG change his queries from mysql_query everywhere to _dbQuery it would be simplier.
kein Signatur mehr
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Re: mod_LanguageSelector - Multilanguage module - alpha version

Post by pepe »

Woud be great, if you have a "small talk" with OG.... if the Modul is ready to go :-)

The community needs something like that for years!!!
We have some users in Spain, Belgium, Canada, Swiss.... all countries with several languages.

And, to say the truth, my little "multilanguageswitch" is only a bad, bad workaround :roll:
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: mod_LanguageSelector - Multilanguage module - alpha version

Post by Jensensen »

wow! great work!

one question: How to
4. run renameAllDBQueries.sh in main directory
on a shared web server (as most of us have, usually) with no shell access?
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
lindesbs
Posts: 80
Joined: Fri 18. Feb 2005, 19:13
Location: Oer-Erkenschwick, Germany
Contact:

Re: mod_LanguageSelector - Multilanguage module - alpha version

Post by lindesbs »

just use the patched file. it is completly prepared. READY TO USE
kein Signatur mehr
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: mod_LanguageSelector - Multilanguage module - alpha version

Post by juergen »

Hey,

that's all unusuall .. whre to buy the big trust in these binary files ? :mrgreen:
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: mod_LanguageSelector - Multilanguage module - alpha version

Post by Jensensen »

i didn't find any binaries... but the question if we can trust in these scripts is able and allowable.

am i right, the script/mod triggers google and writes the translated text to the database? there's no translation on the fly?
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
lindesbs
Posts: 80
Joined: Fri 18. Feb 2005, 19:13
Location: Oer-Erkenschwick, Germany
Contact:

Re: mod_LanguageSelector - Multilanguage module - alpha version

Post by lindesbs »

google translation is not yet implementet.
Translation is done via Backend function. as fixed entries in DB
kein Signatur mehr
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: mod_LanguageSelector - Multilanguage module - alpha version

Post by Jensensen »

lindesbs wrote:...a function called _dbQuery, which encapsulate mysql_query...
Hi lindesbs,

you're right. I never noticed before although it's already used with v1.3.5 - but what is this "encapsulate mysql_query" about?
Couldn't find any explanation. :(

Do you have any link or info why, what, when... :?: :idea:
Thank you.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Post Reply