Posted by:
fahani
(---.162.216.87.static.jazztel.es)
Hello RiggsFolly, thank you for your time man.
php error log is empty
apache error log:
[Tue Oct 18 09:55:33.416902 2016] [mpm_winnt:notice] [pid 2824:tid 336] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 18 09:55:35.417017 2016] [mpm_winnt:notice] [pid 4852:tid 160] AH00364: Child: All worker threads have exited.
[Tue Oct 18 09:55:35.437018 2016] [mpm_winnt:notice] [pid 2824:tid 336] AH00430: Parent: Child process 4852 exited successfully.
[Tue Oct 18 09:55:37.281123 2016] [auth_digest:notice] [pid 8648:tid 336] AH01757: generating secret for digest authentication ...
[Tue Oct 18 09:55:37.327126 2016] [mpm_winnt:notice] [pid 8648:tid 336] AH00455: Apache/2.4.23 (Win64) PHP/5.6.25 configured -- resuming normal operations
[Tue Oct 18 09:55:37.327126 2016] [mpm_winnt:notice] [pid 8648:tid 336] AH00456: Apache Lounge VC14 Server built: Jul 1 2016 11:43:51
[Tue Oct 18 09:55:37.327126 2016] [core:notice] [pid 8648:tid 336] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.23\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.23'
[Tue Oct 18 09:55:37.329126 2016] [mpm_winnt:notice] [pid 8648:tid 336] AH00418: Parent: Created child process 9056
[Tue Oct 18 09:55:37.814154 2016] [auth_digest:notice] [pid 9056:tid 160] AH01757: generating secret for digest authentication ...
[Tue Oct 18 09:55:37.861156 2016] [mpm_winnt:notice] [pid 9056:tid 160] AH00354: Child: Starting 64 worker threads.
I have been playing around with this code:
putenv("LC_ALL=en-US"
;
var_dump( setlocale(LC_ALL, "en-US"
);
var_dump( setlocale(LC_ALL, 0));
bindtextdomain("plantasenelaire", "./locale/"
;
textdomain("plantasenelaire"
;
bind_textdomain_codeset("plantasenelaire", 'UTF-8');
echo _("POSTAL_CODE"
;
die;
changing from /locale/en_US/LC_MESSAGES/plantasenelaire.mo to /locale/en-US/LC_MESSAGES/plantasenelaire.mo
restarting the server
output of the php is:
C:\wamp64\www\plants\libs\Bootstrap.php:137:string 'en-US' (length=5)
C:\wamp64\www\plants\libs\Bootstrap.php:138:string 'en-US' (length=5)
Código postal
if I rename locale/es_ES/LC_MESSAGES/plantasenelaire.mo to /locale/es_ES/LC_MESSAGES/xyz.mo and restart, the output is:
C:\wamp64\www\plants\libs\Bootstrap.php:137:string 'en-US' (length=5)
C:\wamp64\www\plants\libs\Bootstrap.php:138:string 'en-US' (length=5)
"POSTAL_CODE"
if I rename locale/en_US/LC_MESSAGES/plantasenelaire.mo to /locale/es_ES/LC_MESSAGES/plantasenelaire.mo and restart, the output is:
C:\wamp64\www\plants\libs\Bootstrap.php:137:string 'en-US' (length=5)
C:\wamp64\www\plants\libs\Bootstrap.php:138:string 'en-US' (length=5)
Postal code
It seems it goes to the es_ES directory no matter what.