Hi! Just installed module in root folder, but when I try to dev/build, see that:
Fatal error: Call to undefined method i18n::register_plugin() in /home/rosyjski/public_html/customtranslations/_config.php on line 3.
What can I change it to work?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Hi! Just installed module in root folder, but when I try to dev/build, see that:
Fatal error: Call to undefined method i18n::register_plugin() in /home/rosyjski/public_html/customtranslations/_config.php on line 3.
What can I change it to work?
Hi.
You must be the first person I know to use it; very bleeding edge ;-)
This requires the very latest sapphire 2.4 (actually, requires revision 104847 or greater), which you can get via svn. I don't think the standard download (5 May 2010) has this. I thought the doc had the revision constraint, but it didn't, although the module description on ss.org does. I'll update the docs accordingly.
If you give it a go with the latest sapphire, let us know how you get on. I'd like to know what you think about it.
Mark
hello Mark,
it looks like your probably great module doesnt work with latest sapphire rev (106650) :(
File i18n.php doesnt contain required method...
pali
Hi. Are you using sapphire trunk or branches/2.4 ?
hello, svn URL is http://svn.silverstripe.com/open/phpinstaller/trunk so i hope its trunk
pali
Ah, ok. That explains the lack of the method. branches/2.4 is the current stable release. The changes to i18n to support customtranslations has been applied to that, for inclusion in 2.4.1. Those changes have not been merged into trunk yet. I will have a look into that next week.
Mark
Hi. I had a look at this. While I can put this change over to sapphire trunk, I wouldn't recommend using trunk on a production web site at present, as merges from 2.4 to trunk are still being worked through.