Skip to content

A tool to scan gettext style translations for common errors

Notifications You must be signed in to change notification settings

deBhal/php-i18nlint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-i18nlint

A tool for checking for common gettext style translation errors in php files.

Setup:

php composer.phar install

Usage:

php i18nlint.php filename

For example:

$ php i18nlint.php test/some.php 
filename: test/some.php
$errors = array (
  0 => 
  array (
    'line' => 4,
    'code' => '__($not_ok);',
    'error' => 'Translate arguments must be plain strings',
  ),
  1 => 
  array (
    'line' => 5,
    'code' => '__(not_ok());',
    'error' => 'Translate arguments must be plain strings',
  ),
)

About

A tool to scan gettext style translations for common errors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages