Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Problem with translations

Go to End

10 Posts   2811 Views


Community Member, 349 Posts

19 November 2009 at 1:32pm

if i wanna translate the page
it gives the adress like so:
but it must be

how to fix it


Community Member, 283 Posts

19 November 2009 at 3:31pm

This doesn't make much sense, can you elaborate on what you are doing, what version of SS you're using, and what modules you have installed?


Community Member, 349 Posts

19 November 2009 at 8:17pm

Using version 2.3.3
in config

global $allowed_i18n;
$allowed_i18n = array('et' => "et_EE", 'en' => "en_GB", 'ru' => "ru_RU");
Object::add_extension('SiteTree', 'Translatable');
Currency::setCurrencySymbol(' ');

if in estonian link what i have already made i select translate tab and choose language what is en_gb or ru_ru i get the strange adress as shown above


Community Member, 283 Posts

20 November 2009 at 4:38pm

I don't have much experience with the i18n stuff, but that seems to be a likely culprit. Anyone else?


Community Member, 49 Posts

24 November 2009 at 11:31pm

I get the same error, but I'm not using the i18n::enable();

I only have Object::add_extension('SiteTree', 'Translatable');


Community Member, 9 Posts

26 May 2010 at 4:07am

Edited: 26/05/2010 4:10am

I have the same error, but only in IE 8 (SS 2.3.7, Translatable enabled)

Strange thing with url, after translated page has been created.
Translated page is created, but redirect to this new page dosen't work correctly.

must be ...admin/show/70, but I have admin/show/50/admin/show/70
where 50 - id of locale page and 70 - id of new, translated page.

Maybe problem in CMSMain.php Link function, row 148?
demo.silverstripe site has the same problem...


Community Member, 9 Posts

26 May 2010 at 6:15pm

Version 2.4 has the same problem, all works fine in Mozilla, Safari, Google Chrome and IE8 in Win7.
This problem occurs only in Windows XP + IE.

Seems, that IE under XP doesn't work correctly with cache. I found this post:

And I think, that something like this must be added:
if (IE) {clear_all and return blank_URL}

But I cant found, how and were the link generated after translating.
Please help, all ideas are welcome!


Community Member, 283 Posts

27 May 2010 at 2:40am

It appears that this is a IE specific bug, but it could be alleviated by using a random cache buster string on AJAX request (like all the js/css files carry).

This is part feature, part bug. I think this should go in Trac for the core team to review:

Go to Top