This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello, I want to overwrite a octobercms language string (backend) with my own one. I've found this doc page: http://laravel.com/docs/5.1/localization But the octobercms file structure is a bit different than the laravel one. Where do i have to put my lang.php to make it work? :) Usually it would be "resources/lang/vendor/{package}/{locale}" (laravel). I want to overwrite the page menu_label: return [ 'page' => [ 'menu_label' => 'Pages' ] ];
Kind regards, dk
Has no one a little tip? I've tried many different locations, but the changes aren't working :/
/lang/{locale}/{vendor}/{plugin}/lang.php
works for me.
E.g. /lang/cs/rainlab/user/lang.php
Thanks a lot! It was a bit different to me, because it was a cms lang file, so i had to copy it from /modules/cms/lang/en/lang.php to /lang/en/cms/lang.php I haven't worked with laravel before, but it seems a bit confusing, at least for the language changes of the core modules, it's definitely more obvious for the plugins, because it's documented.
Kind regards, dk
And for backend translations:
/lang/{locale}/backend/lang.php
/lang/{locale}/cms/lang.php
/lang/{locale}/system/lang.php
Last updated
Vojta Svoboda said:
And for backend translations:
/lang/{locale}/backend/lang.php
/lang/{locale}/cms/lang.php
/lang/{locale}/system/lang.php
Nice, finally found this!
1-6 of 6