csnemeth79 / locasync
EASY and smart tool for keep language files syncronized.
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-12-17 06:28:18 UTC
README
##EASY and smart tool for keep language files syncronized ##
###REPO###
https://github.com/csnemeth79/locasync
###CONFIGURATION###
Copy config.inc.php.sample and paste it to config.inc.php on same directory.
####config tags#### $main_directory - laguage directoty $prior_language - main language (only one) $additional_languages = array for additional languages $auto_fix = true = auto fix and log, false = only logging
###Usage###
- Open /bin directory
- Run: sync.bat
- Watch console and check out logs\log.txt
###REQUIREMENTS###
-
unlimited languages supported with one main language (source generation)
-
language files are case sensitive
-
language files must be valid php files
-
language files must consist only one multi-dimensional(two dimensions array)
-
any file must be only one close tag at the end of array
-
close tag -> ');'
-
sample files are:
'success text', 'error' => 'error text' ); ?>or
"The :attribute must be a date before :date.", "between" => array( "numeric" => "The :attribute must be between :min and :max.", "file" => "The :attribute must be between :min and :max kilobytes.", "string" => "The :attribute must be between :min and :max characters.", "array" => "The :attribute must have between :min and :max items.", ), ); ?>