Skip to content

onMissingTransaltion Error 400 #16

@nordkite

Description

@nordkite

I added

public function actionMissingTranslation($category, $message, $language) {
    Yii::t($category, $message, null, null, $language);
}

in controllers/SiteController.php
and my config is

'jsTrans'=>array( 
        'class'=>'ext.JsTrans.JsTrans', 
        'categories'=>array('app'), // the categories to be made available 
        'languages'=>array('fr','es'), // the languages to be made available
        'onMissingTranslation'=>array('site/missingTranslation'), // optional route to handle untranslated messages
    ), 

When I acces site/missingTranslation it gives Error 400: Your request is invalid.
Can you tell how the url should look like?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions