Member
Member
Comodor125   09-03-2017, 14:40
#1

For the use of translation why not use php files like this instead of .mo files :

$lang['global.sign_up'] = 'S\'enregistrer';
$lang['global.login'] = 'Login';

Administrator
Administrator
acrylian   09-03-2017, 14:50
#2

Because gettext is a general PHP extension available even on standard host. Why invent such a workaround if a convenient tool is existing? It is much more convenient to handle as you can set the text to translate right in the code where they are. There are also quite convenient translation (free) editors like Poedit (or even command line for the die hard purists) that can parse to collect and update the translation catalog automatically.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.