I’m writing Content Management software in PHP (which should not be bigger then 3kb when minified), but what engine should I use for languages (english, dutch, german, chinese, etc…)? I was thinking of creating a function called
function _(){}
that reads strings from a file (a .ini file or similar). But does somebody has an (preferably one with as less code as possible) engine that might be smaller or faster?
I’m not sure if these engines exist already, if not, please say and I will use the _() function.
You can’t use
_()because this is a build-in function for internationalization. You are free to roll your own function (call it__()) or use the build-in one which uses the widespread gettext system.