Class lajax\translatemanager\services\scanners\ScannerJavaScriptFunction
Inheritance | lajax\translatemanager\services\scanners\ScannerJavaScriptFunction » lajax\translatemanager\services\scanners\ScannerFile » yii\console\controllers\MessageController |
---|---|
Available since version | 1.0 |
Class for processing JavaScript files.
Language elements detected in JavaScript files: "lajax.t" functions
lajax.t('language element);
lajax.t('language element {replace}', {replace:'String'});
lajax.t("language element");
lajax.t("language element {replace}", {replace:'String'});
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$module | lajax\translatemanager\Module | TranslateManager Module | lajax\translatemanager\services\scanners\ScannerFile |
$scanner | lajax\translatemanager\services\Scanner | Object. | lajax\translatemanager\services\scanners\ScannerFile |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$files | array | Array to store patsh to project files. | lajax\translatemanager\services\scanners\ScannerFile |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | lajax\translatemanager\services\scanners\ScannerFile | |
init() | lajax\translatemanager\services\scanners\ScannerFile | |
run() | Start scanning JavaScript files. | lajax\translatemanager\services\scanners\ScannerJavaScriptFunction |
Protected Methods
Method | Description | Defined By |
---|---|---|
checkTokens() | lajax\translatemanager\services\scanners\ScannerFile | |
extractMessages() | Extracts messages from a file | lajax\translatemanager\services\scanners\ScannerFile |
getLanguageItem() | Returns language elements in the token buffer. | lajax\translatemanager\services\scanners\ScannerJavaScriptFunction |
isValidCategory() | Determines whether the category received as a parameter can be processed. | lajax\translatemanager\services\scanners\ScannerFile |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
EXTENSION | '*.js' | Extension of JavaScript files. | lajax\translatemanager\services\scanners\ScannerJavaScriptFunction |