Last active
December 10, 2015 10:18
-
-
Save dropmeaword/4419928 to your computer and use it in GitHub Desktop.
Simple test that I ran in both CLI and Apache environments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dir = dirname(__FILE__).'/locale'; | |
$locale="nl_NL"; //"en_GB"; | |
$domain="messages"; | |
echo "dir = {$dir}\n"; | |
echo "locale = {$locale}\n"; | |
echo "domain = {$domain}\n\n"; | |
var_dump(setlocale(LC_TIME, $locale)); | |
putenv("LC_ALL={$locale}"); | |
putenv("LANG={$locale}"); | |
putenv("LANGUAGE="); | |
var_dump(setlocale(LC_ALL, $locale)); | |
// configure settext domain | |
bindtextdomain($domain, $dir); | |
bind_textdomain_codeset($domain, 'UTF-8'); | |
textdomain($domain); | |
?> | |
<h1><?= _("Historial envios"); ?></h1> | |
<h1><?= _("Categorias e Intereses"); ?></h1> | |
<h1><?= _("Listado de usuarios"); ?></h1> | |
<h1><?= _("Gestión de retornos colectivos cumplidos"); ?></h1> | |
<h1><?= _("Actividad reciente"); ?></h1> | |
<h1><?= _("Gestión de campañas"); ?></h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment