This extension simply checks all subfolders in your messages directory for missing translation files. It also compares existent files for missing translation keys.
This little script just scans the directories and files - no write access.
Future releases may contain automatic translations from google translate or any other service.
Just created this little helper for my own and wanted to share it.
Copyright (c) 2010 mintao GmbH & Co. KG
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Requirements
- Yii 1.1 or above (I haven't tried it out under 1.0, but I'm quite sure it'll run due to a minimum of yii functions)
Installation
- Extract the release file under
commands
Usage
I've a extra console bootstrapper
console.php which looks like that:
<?php
$yii=dirname(__FILE__).'/protected/vendors/yii/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/console.php';
if(!file_exists($yii) || !file_exists($config))
die('Framework of config not found.');
require_once $yii;
Yii::createConsoleApplication($config)->run();
In your console/terminal just call it:
#> cd <YOUR_PROJECT>/protected
#> php console.php checktranslations