5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1207 Views |
-
i18nTextCollector

11 August 2009 at 10:47pm
Hi,
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 deniedWhy 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.
Template-Parsing?
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.
Thanks
lx -
Re: i18nTextCollector

11 August 2009 at 11:49pm
Hi lx
I once wrote a small PHP script that basically does the same... until I noticed that such a thing already exists
Anyway, you could give it a try and look if it works better for you: http://bummzack.ch/langbuilder/ -
Re: i18nTextCollector

12 August 2009 at 12:33am
Thanks banal,
but i would like to use the silverstripe built-in functions.
Probably i am using them not correctly. -
Re: i18nTextCollector

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)...
| 1207 Views | ||
|
Page:
1
|
Go to Top |



