Re: globalization / localization
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: globalization / localization

From: Iván Sánchez Ortega <i.punto.sanchez[-@rroba>
Date: Sat Oct 15 2005 - 15:31:38 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

alex wrote:

> I've seen some pre-coded php apps using this kind of code :
>
> echo __('Hello') ;
>
> This displays the Hello message in the correct language.
> I can't get how it works and no doc over the web about that !

There is documentation, you just have to look for it:

http://php.net/manual/en/function.gettext.php

As you'll see there, the _() function is an alias of gettext().

- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

Enemies of truth: Convictions are more dangerous enemies of truth than lies.
  -- Friedrich Nietzsche [1844 - 1900]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDUQS63jcQ2mg3Pc8RAmC4AKCHIbntzSPx+T8CeRW5H5dKMhgTEgCeOdrl
qeEYqdd0fgfs7INFmPjVojU=
=b1se
-----END PGP SIGNATURE-----
Received on Tue Oct 18 02:41:34 2005