multiple languages and redirection

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
ACmonKey
Posts: 9
Joined: Mon 21. Mar 2005, 12:18

Post by ACmonKey »

Vielen Dank.
Ich werde gleich anschauen welche änderungen nötig waren.
RonDog
Posts: 50
Joined: Fri 10. Sep 2004, 22:02
Location: Germany, Munich
Contact:

multiple-language issue

Post by RonDog »

Hi folks,

concerning the multiple-language issue, I might have a suggestion to Oliver, our head guru and PHP animal trainer… :)

As the whole CMS site is based on database records, I might have found a way to have literally unlimited language dependent versions of the same content, by using the phpwcms["db_prepend"] constant dynamically.

Provided, the core of phpWCMS will be changed to have dynamic assignments to $phpwcms["db_prepend"], such as “DE” or “EN” and the like, and provided we have a switching feature, like language flags in one of the side bars of the template, which allows to dynamically change the $phpwcms["db_prepend"] value, the page – when refreshed - will switch according to the content of "db_prepend", i.e. to the right language.

An absolute prerequisite is, that all language versions are identical, in terms of layout, templates and page structure. As you will see later, translation work is not affected and (minor) changes can be made to any of the language versions independently as well.

To accomplish this, Oliver must allow to (pre)define a number of languages and must change certain tasks to apply all (certain) changes to all parallel language versions. Those tasks are mainly inserting new records, moving records (sort up and down) but not changing existing article content.

Supposing such an extension does exist, the creation of a new page layout, a new template, inserting a new structure level, creating a new article in a structure level and adding a new content part to an article will perform this task to all parallel language versions.

It would be helpful to define a ‘default language’, to allow to copy (new) content by request to all parallel language versions, or to copy the default content part automatically if the content parts of the parallel languages are still empty.

With such an extension, ones could create a basic (default) site version without care about the structure and content of the remaining languages.

After finishing the default or basic language version, each one of the other languages can be modified as necessary. As layout, templates, structure levels, articles and content parts are only 'copied' to the remaining language versions, when they are created, no content will be overwritten.

Even when adding a new page layout, adding a new template, inserting a new structure level, creating a new article in a structure level and / or adding a new content part to an article, this task will be done parallel and will not interfere with existing content.

So aliases are still the same, ID’s are still the same. Picture and Icon sources remain the same. Replacement-Tags, Links and referrers are alive and working. Changing / translating category titles, category infotext, article basic information’s and content will not interfere with other language versions, because by being separated by $phpwcms["db_prepend"] they can live happily together side by side.

The only thing we cannot do is inserting or creating new structure levels, creating new articles in a structure level and adding a new content part to any article to a certain language only and independently, because this will destroy the uniformity of the structural parallelism, which is absolute essential and a MUST to allow to run this trick! What sure can be done is to perform such tasks as mentioned for all languages (done at the default language) and then set certain content parts of certain languages invisible. This preserves the structure and consistency of the system and allows to have language independent content by keeping over all structural integrity.

As far as I can judge my own ideas I think this is the far most easiest and most appropriate way to solve the multiple language issue.

I would be happy to hear from you folks and from our gurus if you think this is an idea to follow…
Ron

"Silence is foolish if we are wise, but wise if we are foolish."
Guido
Posts: 22
Joined: Thu 30. Jun 2005, 10:37
Location: Germany

Post by Guido »

Ich scheine vor lauter Bäumen den Wald nicht zu sehen.
Ich benutzte die 1.2.3 DEV Version, hat auch bisher dank des Forums alles sehr gut geklappt.

Möchte nun die gesamte Webseite noch ins Englische übersetzen, samt Bildern mit Infos in Englisch und am besten über eine Flaggennavigation wie bei phpwcms-docu zu sehen ist.

Die Struktur der Seite sieht wie folgt aus:

Startseite
- Neuheiten
- Produkte
- Kontakt
- Impressum

usw..

Nun habe ich den Code von der ersten Seite in die Startseite eingefügt. Leider keine sichtbare Änderung erhalten, also wieder raus getan.

Möchte obige Struktur dann ändern, eventuell in der Form
Startseite
-Deutsch (mit obigem Inhalt)
-Englisch (mit obigem Inhalt in Englisch halt)

Aber stehe nun ein wenig hilflos da, da sich wohl viele Tips noch auf die vorherige Version beziehen.

Über einen Wink mit dem Zaunpfahl wäre ich sehr dankbar, auch wie ich das mit den Flaggen implementiere, da die Navigation auf der linken Seite ist und oben nur die Breadcrumbs.

Vielen Dank.
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Hallo Guido,
hast du das mal gelesen??

Mittlerweile gibt es schon einige Sites, die damit arbeiten... insbesondere Sites, die komplett übersetzt sind.
Alles bleibt dynamisch! Voraussetzung, du hältst dich an die Art der ALIAS-Vergabe für die Kategorien!


http://www.phpwcms.de/forum/viewtopic.p ... sc&start=0
Guido
Posts: 22
Joined: Thu 30. Jun 2005, 10:37
Location: Germany

Post by Guido »

Hallo Pepe

Ja das habe ich schon gesehen, kann ich den da eine Englische Menüstruktur haben, die sich entsprechend umschaltet wenn ich die Englische Version / Flagge anklicke?

Ja ich weiß, das sind jede Menge Sonderwünsche die ich habe, hoffe bekomme es bis dahin noch hin. Der Tip von Oliver brachte mich irgendwie nicht weiter, oder liegt an Firefox.
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Die Menüstruktur , also die Navigationsbezeichnungen, kann ja in jeder beliebigen Sprache geschrieben sein :!:

Lediglich die ALIAS-Bezeichnungen müssen, bis auf das Prefix, identisch geschrieben sein!

Das ist der einzige Nachteil - meine ich - aber das muß eh jeder für sich entscheiden :wink:
Guido
Posts: 22
Joined: Thu 30. Jun 2005, 10:37
Location: Germany

Post by Guido »

Du meinst also das die Alias Bezeichnungen im Admin Menü in etwa wie folgt auszusehen haben??

en_produkte bzw. de_produkte für Englisch respektive Deutsch.

Und der Rest dann so wie in Deiner Anleitung beschrieben??
Guido
Posts: 22
Joined: Thu 30. Jun 2005, 10:37
Location: Germany

Post by Guido »

Also, soweit klappt das ja, nur das ich dann das Navigationsmenü in beiden Sprachen habe. Gibt es keine Möglichkeit entweder das Deutsche oder Englische Navigationsmenü anzuzeigen??

Jetzt habe ich "nur" noch bei mir DE und EN sichtbar, wenn ich die entsprechende Sprachversion anwähle. Gibt es jemand der mir sagen kann, wie ich diese Menüpunkte noch verstecken kann? Im Admin Menü ist dies so gewählt, sehe es aber noch bei der Sprachauswahl.

Und NAV_TABLE_SIMPLE möchte ich nicht verwenden, dafür sieht es mit NAV_TABLE_COLUMN inzwischen zu gut aus.

Struktur sieht also wie folgt aus

Deutsch
- Neuheiten
- Chronik
- Kontakt
- Produkte

Man sieht den Punkt Deutsch nicht mehr, aber ein Navigationspunkt und eine leere Zeile sind immer noch sichtbar. Kann man dies irgendwie komplett auschalten, so das ich entweder das Englische oder das Deutsche Menü habe?
musons
Posts: 43
Joined: Sun 9. Jan 2005, 21:36

Post by musons »

I read this all and not realy understand how can I make my page in tow language?
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Post Reply