17452 Posts in 4473 Topics by 1971 members
|Go to End|
8 January 2008 at 6:55am
I try the translation for my site with i18n and for the content it work good. But the field Navigation ($MenuTitle) doesn't save when I save my Navigation Label. It always stay in the primary site language.
I try to add "static $extensions = array("Translatable('MenuTitle')");" in my class page and now my template crash.
I'm currently in version 2.2.0 and I try to update to 2.2.1 and it make no change.
Can you help me?
22 January 2008 at 5:23am
Hi I do some test and I go on the SiteTree_Lang table and see than the MenuTitle is still Null for all records. I put a value in this field by sql request and now I have my translation shown. In the SiteTree class MenuTitle is in the $extension array for the translatable option.
Then why the MenuTitle field don't save when I save my page in the cms?
And what is the class I must look to understand and test the bug?
26 January 2008 at 6:22pm
the "MenuTitle" column is marked for being translatable by default, as you've noted.
i've doublechecked demo.silverstripe.com, the menutitles seem to translate fine there
(i've looked for the OriginalLangID of the original page in SiteTree_lang and SiteTree_lang_Live).
can you try this for a fresh installation in which you create a single page, publish it, and then create a new translation?
2 February 2008 at 10:19am
I install a new fresh Silverstripe installation, enabled i18n and translate the default Home page to have a french one "Page d'accauil". And in navigation label I put "Acceuil" and it's was ok.
Then I change the default language to have "fr", because the default language site is in french and then again I can't no more translate the navigation label. It must be something with the i18n language part.
|Go to Top|