Multilanguage question

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
design
Posts: 68
Joined: Thu 17. Feb 2005, 17:19

Multilanguage question

Post by design »

Hi guys,

I have a question about multilanguage site.

Normally, I know how to do it. But I need a structure like this:

-+ home : : ID=0
-+--+ en ID=01
-+--+--+ en_category_01 ID=02
-+--+--+ en_category_02 ID=03
-+--+--+ en_category_03 ID=04 !!!!!!
-+--+--+ en_category_04 ID=10
-: : : : :
-+--+ de ID=11
-+--+--+ de_Kategorie_01 ID=12
-+--+--+ de_Kategorie_02 ID=13
-+--+--+ de_Kategorie_03 ID=04 !!!!!!
-+--+--+ de_Kategorie_04 ID=20

How could I show CATEGORY ID=4 in both languages? That category is full of articles and I can't duplicate it (because change everyday). There's no need to translate that category, it's unique in all languages.

Obviously I need to see the unique content (ID=4 > all articles) inside both english and german template. I don't want a simple redirect URL to english version.

I need to show all the content CAT ID=4 inside german site. Is it possibile?

Maybe I need something like this: SHOW_ARTICLE_CP but showing CATEGORY content: SHOW_CATEGORY_CONTENT_ID

Do you have any advise?

Thank you so much,
d.
Old Boy
Posts: 1203
Joined: Fri 23. Nov 2012, 13:52

Re: Multilanguage question

Post by Old Boy »

That's very easy:

Inside the article basic information of the 2. language (de_Kategorie_03)

fill in the Article ID of the 1. language (en_category_03)

Don't forget to mark the little box behind the Article ID , so you have the fitting title in the correct language ... but the Contentparts of the 1. language, all on the correct position!

And you are done! :D
design
Posts: 68
Joined: Thu 17. Feb 2005, 17:19

Re: Multilanguage question

Post by design »

Unfortunately it's not so easy because i have a lot of "dynamic" articles inside ID=04.

They change every night (they are automatically created via XML) and so their ID change all the time. Maybe an article is there for a week, and then it's cancelled.

For that reason I need a way to SHOW all the content inside the category ID=04 (there are a lot of articles that change ID every day).

Thank you!
Old Boy
Posts: 1203
Joined: Fri 23. Nov 2012, 13:52

Re: Multilanguage question

Post by Old Boy »

I would split the Navigation and "add" the Cat ID=04 as a separate element inside the main template!
design
Posts: 68
Joined: Thu 17. Feb 2005, 17:19

Re: Multilanguage question

Post by design »

yes, It's a way. Thank you.

Maybe I can avoid a structure like this

-+ home : : ID=0
-+--+ en ID=01
-+--+--+ en_category_01 ID=02
-+--+--+ en_category_02 ID=03
-+--+--+ en_category_03 ID=04 !!!!!!
-+--+--+ en_category_04 ID=10
-: : : : :
-+--+ de ID=11
-+--+--+ de_Kategorie_01 ID=12
-+--+--+ de_Kategorie_02 ID=13
-+--+--+ de_Kategorie_03 ID=04 !!!!!!
-+--+--+ de_Kategorie_04 ID=20

Creating this:

-+ home : : ID=0
-+--+ ID=01
-+--+--+ category_01 ID=02
-+--+--+ category_02 ID=03
-+--+--+ category_03 ID=04 !!!!!!
-+--+--+ category_04 ID=10

I remember that some years ago there was another way to create a multi language site. You could use a replacement tag inside every article like these:

[ENG]put here the content in english[/ENG]
[GER]put here the content in german[/GER]

I can't find in the forum!!
In this way you can create only one template for all the languages. Then if you choose ENG flag you will see only the content in english.

Do you remember something like that?

Thanks!
User avatar
top
Posts: 535
Joined: Fri 11. Aug 2006, 15:03
Location: Eutin

Re: Multilanguage question

Post by top »

design
Posts: 68
Joined: Thu 17. Feb 2005, 17:19

Re: Multilanguage question

Post by design »

Thank you so much. It's a perfect solution. Very useful! Great!

I tried and everything works perfectly. My only problem is how to translate category titles. Replacement Tag [EN]...[/EN] works inside category titles but there is a max length field problem. I need more characters. :x

Furthermore, these long category titles are not so good to see, because can create confusion and break the "pagination":
[EN]Used[/EN][DE]Gebraucht[/DE][FR]Occasion[/FR][IT]Usato[/IT][ES]Alquiler[/ES]

Is there an alterantive way to translate categories? O I have to do it manually?
Because in the last case I won't be able to use BREADCRUMBS and it's a shame! :(

Have you any ideas?

I avoid the same problem inside articles just inserting titles and subtitles in the text area (and I hidden real titles, of course).

Thank you for your help.
Post Reply