Elxis CMS Forum

Support => Language => Topic started by: regi168 on April 01, 2011, 17:12:54

Title: top menu item translation (solved)
Post by: regi168 on April 01, 2011, 17:12:54
I add a new top menu Item " top choice"

how to let it shows in other language when use other frontpage language.

It seems use hard code to define it.

How can do it, thanks
Title: Re: top menu item translation
Post by: ks-net on April 01, 2011, 17:47:55
I am not quiet sure what you want to do ??

possible solutions are:

publish it in all languages

OR

(i think you actually  mean the following)

multilingual  title

duplicate it and publish each copy to  a different lang....
then translate every new copy's   title and(or) menu items to the corresponded lang

****
multilingual  titles is applied only in core-default modules and components and in some third-party....
yes you need coding if you want to add that functionality in a module...
more here:
http://wiki.elxis.org/wiki/Module_Custom_Title
and here:
http://wiki.elxis.org/wiki/Multilingual_XML_parameters
http://wiki.elxis.org/wiki/Category:Modules_Developer_Guide
Title: Re: top menu item translation
Post by: regi168 on April 02, 2011, 12:48:57
I think is menu customs Title part is right.   

Now I try to copy the following files to translate it.   

administrator-->languages-->english directory-->english.php

I will only duplicate whole english directory, rename the directory name to new language name

and translate the english.php only ( for fornt-tend menu item and third-party Item), others will kepp intact.

If I am wrong, please tell me.  Thanks ~
Title: Re: top menu item translation
Post by: ks-net on April 02, 2011, 14:08:37
DON't do anything....

first please explain better  what you want to do...

i hardly understand you....
Title: Re: top menu item translation
Post by: regi168 on April 02, 2011, 20:11:33
frontpage in top menu, like  " home | Contact Us | link " 

if we change another language,  default they are not translated.   They just   " home | Contact Us | link "  remain unchange still in english.

I just want to add the Correct Translation of the language  to it.  to make it translated more complete.

somebody just don't understand english. even basic enlglish words.



Title: Re: top menu item translation
Post by: ks-net on April 02, 2011, 21:24:02
my friend this is easy....

you have only to make the links in the menu and publish them to the correct language (not all lang option)

example:

home -> link to com_frontpage  -> publish Only to en-english
αρχικη ->  link to com_frontpage -> publish Only   to el-greek

Contact -> link to com_contact_my_english_contact-item  -> publish  Only to en-english
Επικοινωνια -> link to com_contact_my_greek_contact-item  -> publish  Only to el-greek

reservations -> link to com_reservations  -> publish  Only to en-english
Κρατησεις -> link to com_reservations  -> publish  Only to el-greek

Some English Content -> link to my_autonomous_page-en  -> publish  Only to en-english
Ελληνικό περιεχόμενο -> link to my_autonomous_page-el  ->  publish  Only to el-greek
Title: Re: top menu item translation
Post by: regi168 on April 03, 2011, 03:45:38
Thanks very much~

It solves the problem, and learned one more skill.