Ticket #1928 (closed defect: worksforme)

Opened 14 months ago

Last modified 13 months ago

Create button does not create a new translation

Reported by: Henk Poley Owned by: ischommer
Priority: medium Milestone:
Component: i18n Version:
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

I have enabled translations:

// Enable Translations
i18n::enable();
i18n::set_default_lang('nl');

My site is an upgrade from 2.1.0 -> 2.1.1 -> 2.2.0 (all stable versions). Ran the /db/build?flush=1 script (no errors). The *_lang tables are there. But on a 'Page' (so a normal SiteTree? item) the Translation tab the create button does nothing.

Tested on OS X in:

  • Safari 3.0.4 (523.12)
  • Opera 9.24 (build 3707)
  • Firefox 2.0.0.10

Change History

Changed 14 months ago by Henk Poley

Hmm, the language bar under the site tree isn't showing in the admin panel.

Let's see how that is loaded.

Changed 14 months ago by Henk Poley

Scratch that, the language bar is not supposed to show before any translation exist.

The Create button sends a XMLHttpRequest like /admin/createtranslation?ID=35&newlang=af&ajax=1

There doesn't seem to be any content in the reply. Is that normal (for 'asynchonous' requests)? It does get handled by createtranslation() in cms/code/CMSMain.php, removal of the ajax=1 variable gives a redirect to the homepage.

Changed 13 months ago by smagnusson

please check its not being caused by i18n::set_default_lang('nl');

(uncomment it)

Then double check that what you're doing does work at http://demo.silverstripe.com ;)

Changed 13 months ago by Henk_Poley

  • status changed from new to closed
  • resolution set to worksforme

*posting from a new account, lost the password in a laptop HD crash*

Lateron I saw other strang bugs. Like the ecommerce reports not working, and Security group editor not working at all. I upgraded my VPS from eAccelerator + PHP 5.2.3 to 5.2.5 and everything started working again.

Note: See TracTickets for help on using tickets.