Skip to content

onMissingTransaltion Error 400 #16

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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