Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $locale_lang = $_GET['lang'];
- $locale_file = new FileReader("locale/$locale_lang/LC_MESSAGE/messages.mo");
- $local_fetch = new gettext_reader($locale_file);
- function _($text){
- global $locale_fetch;
- return $locale_fetch->translate($text);
- }
- ?>
- <h1><?php echo _("Translate using gettext") ?></h1>
- <p><?php echo _("This video shows a simple tutorial of how ot translate variables using getter.") ?></p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement