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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Translateable Module Error


Go to End


3 Posts   1322 Views

Avatar
sn1k

Community Member, 1 Post

14 October 2014 at 9:25pm

dear community,
i currently installed silverstripe in the newest version, plus Translateable v2.0 (the "master" did'nt worked).

I will now tell you what I exactly did, step by step, also for the next persons who are searching for a solution:

- Download & Installed SilverStripe
- Download Translateabe v2.0, renamed the folder to "translateable" and copied into my root directory (/silverstripe/translateable)

- Edited the /mysite/_config.php
Translatable::set_default_locale('de_DE');
Object::add_extension('SiteTree', 'Translatable');
Object::add_extension('SiteConfig', 'Translatable'); // 2.4 or newer only

- Edited the first lines of /mysite/code/Page.php
<?php
class Page extends SiteTree {
private static $extensions = array(
"Translatable"
);

- Rebuild with /dev/build

- Worked fine without error, loggin into Admin site
- When i want to edit my sites, there is a dropdown menue showing a lot of languages, if i select one and click on go, the following error occured:

Action 'LangForm' isn't available on class CMSPagesController.

No matter which language i select. what did i wrong?

Thanks in advice :)

Avatar
filipporiccio

Community Member, 1 Post

20 October 2014 at 7:26am

Hi,
I have exactly the same problem, though:
- I didn't rename the folder
- I used translatable 2.0.4

Avatar
Sygmoral

Community Member, 46 Posts

10 November 2014 at 5:42am

Edited: 10/11/2014 5:50am

I had the same issue in 2.0.4, although I didn't have it on another installation where an older version was installed.

So then I compared, and I saw that in this new installation, I still had the folder as "silverstripe-translatable" while in the 'correctly working one' it was just "translatable" (NOT translateable). So, correcting the directory name and flushing fixed the issue for me, since that removed the button.

In any case, you don't really need that button, since the language is loaded as soon as you select it in the dropdown.