check-translations Checks for missing message files or forgotten translations

  1. Documentation
  2. Change Log

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.

Documentation

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
// or where ever your yii frameworks is located
$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

Change Log

February 5, 2010
  • Initial release.
2 0
3 followers
678 downloads
Yii Version: 1.1
License: (not set)
Category: Console
Tags:
Developed by: mintao
Created on: Feb 5, 2010
Last updated: 14 years ago

Downloads

show all