Multi-language pages- howto?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

And then in some strange way it works...... or if my secret genie pepe fixed it, but at the moment it just looks fine.
I like it so much, if you call me a secret genie....... :roll:


:oops: :oops: :oops: The secret GENIE :oops: :oops: :oops:
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Or did you mean the direct reroute to the english version?
The direct reroute to the corresponding site e.g. en_case <-> sw_case.
In real life, nobody did need this. For me it is a gimmick for particular cases.
Without this function you will name your category as you like. e.g. /backround.phtml and bakgrund.phtml

Please solve this: en-background2 -> en_background2

Gruß Knut :D
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
baby2boy
Posts: 12
Joined: Fri 23. Sep 2005, 00:10

Post by baby2boy »

Hi all, which of the 3 multilingual hacks is used on the PHPWCMS FAQ site?

Anyone know?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi baby2boy,

thats no hack. Tomasahl is using pepe´s methode: http://www.phpwcms.de/forum/viewtopic.php?t=6553

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
velo
Posts: 38
Joined: Sun 29. May 2005, 14:48

Post by velo »

Is it possible to use en- instead of en_ ? And what do i have to do to make it work?

Velo
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi,
Is it possible to use en- instead of en_ ?
yes it is.
And what do i have to do to make it work?
Don´t understand your question.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
velo
Posts: 38
Joined: Sun 29. May 2005, 14:48

Post by velo »

Ok I ment, do i need a special script or something, or just change the _ by - ?

Velo
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi velo,

you don´t need any script to realize this if you didn´t want to have a direct switch between corresponding sides. I haven´t seen a user switching between multiple languages at the same article. For me it´s a little programmer gimick. -And you can´t generate a different site structure for the other language.

If you haven´t equal named links (e.g. en=marketing de=marketing) you don´t need a prefix or suffix like en_ en- de_ de-.

As a basic principle I prefer this:
-------------------------------------
- home [hidden]
-- DE [hidden if you want]
---- Start [if you want it]
---- Punkt 1
---- Punkt 2
------ Unterpunkt 2_1
------ Unterpunkt 2_2
---- Punkt 3
---- Kontakt
---- Impressum
---- Sitemap-de [hidden]
---- Suchen [hidden]

-- EN [hidden if you want]
---- Home [if you want it]
---- Itrm 1
---- Item 2
------ Subitem 2_1
------ Subitem 2_2
------ Subitem 2_3
---- Item 3
------ Subitem 3_1
---- Contact
---- Imprint
---- Sitemap-en [hidden]
---- SeaRch [hidden]
-------------------------------------

Horizontal Navigation:
----------------------
NAV_LISTSETLEVEL
NAV_LIST_FROM
NAV_STRUCT

Verical Navigation:
----------------------
NAV_LIST_ALL
NAV_STRUCT

[EDIT]
Since V1.2.8 please use the NAV_LIST_UL for the horizontal and vertical navigation.

The "level lift" for the navigation:

Code: Select all

[PHP]
if(isset($GLOBALS['LEVEL_ID'][1])) {
$level_id = $GLOBALS['LEVEL_ID'][1];
echo '<div class="nlu_navi1">'.LF;
echo '{NAV_LIST_UL:F,'.$level_id.',,,active,,,}';
echo '</div>';
}
[/PHP]
Where LEVEL_ID'][X] is the level.
[/EDIT]
----------
Knut
Last edited by flip-flop on Thu 28. Dec 2006, 13:54, edited 1 time in total.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Tomasahl
Posts: 58
Joined: Thu 10. Mar 2005, 11:13
Location: Sweden
Contact:

And then the "home"- menu disappeared.

Post by Tomasahl »

When I did this multilanguage solution, and made the "index2-article to point to the swedish index page, the "Home"-label in the menu just disappeared. I get it to show in the breadcrumb, but not in the actual menu.

I guess that is because the article that IS "home" is not the swedish/english indexpage, but the empty one wuíth the reroute-code.

How can I solve this so I get the same in the menu?

Menu: part 1 | part 2 | part 3

Breadcrumb: Home -> part 1 -> (etc)

Do I do that with the navigationreptag {NAV_LIST_TOP:HOME}?
Post Reply