5520 Posts in 1734 Topics by 1223 members
|Go to End|
11 August 2009 at 10:47pm
for the first time i wanted to use the i18nTextCollector. But i have some problems with it.
Rewriting Core Language Files
http://localhost/testproject/dev/tasks/i18nTextCollectorTask/?module=mysite should collect every _t that is in my mysite-folder.
But i get this error message:
[Warning] fopen(/srv/www/htdocs/testprojekt/sapphire/lang/en_US.php): failed to open stream: Permission denied
Why is it trying to write into this File? When i chmod it to 777 the process is running but the original file becomes much shorter. Most of the variables are lost.
In my template-file \themes\testproject\templates\Includes\NewsPage.ss i am using the _t-Funktion:
<% _t('News.WEITER','weiter',PR_MEDIUM, 'weiter-Button bei News mit internem Link') %>
Is The TextCollector really runnig through templates? It did not generate a corresponding variable.
12 August 2009 at 12:33am
but i would like to use the silverstripe built-in functions.
Probably i am using them not correctly.
15 August 2009 at 3:26pm
Have you tried to add a writable en_US.php file to your modules lang folder?
This worked for me (2.3.2)...
|Go to Top|