This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

AlexeiKo
AlexeiKo

Hey Trying to translate parts of my plugin and component: <?php namespace Bbrand\Comments\Components;

use Lang; use Cms\Classes\ComponentBase;

class Managecomment extends ComponentBase {

public function componentDetails()
{
    return [
        'name'        => 'bbrand.comments::lang.component.name',
        'description' => 'Comments component',
    ];
}

for example component name.

i have dir structure: bbrand comments lang en lang.php ru lang.php

and my lang file <?php

return [ 'component' =>[ 'name' => 'Newname', ], ]

not working! getting instead of the name 'bbrand.comments::lang.component.name'

tried to set instead: rainlab.user::lang.account.account

and its working well.

What i'm doing wrong? thanks

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.