New file format supported: PHP files for the Laravel framework
By Edouard on April 25, 2014
You can now translate PHP files for the Laravel framework with WebTranslateIt.
The Laravel framework indeed supports nested arrays in translation files, so you can have things like:
<?php
# Some copyright comments
return array(
'welcome' => 'Welcome to our application',
'nested' => array(
'key' => 'value',
'nested' => array(
'key' => 'value',
'key2' => 'value2',
),
),
);
You can find more information about this new file format in the documentation.
Refinements to the other PHP handlers
Our other PHP handlers (the PHP Array handler and PHP Define handlers have been updated to make the PHP closing tag (?>
) optional. If you don’t include it in your files on import WebTranslateIt will generate translation files without the closing tag on export.
I hope you will find these improvements useful. Thank you for using WebTranslateIt.