If you were Registered and logged in, you could reply and use other advanced thread options
|
Posted by howa on June 3, 2008, 1:06 pm
http://hk2.php.net/manual/en/ref.gettext.php
I just wonder why those kind of translation/mapping can't be
implemented in using plain PHP array?
Howard
|
|
Posted by Iván Sánchez on June 3, 2008, 1:20 pm
howa wrote:
> http://hk2.php.net/manual/en/ref.gettext.php
>
> I just wonder why those kind of translation/mapping can't be
> implemented in using plain PHP array?
None.
However, using gettext will allow you to use a large array of software for
easing the work of building translation tables. e.g. Kbabel, GTranslator,
poEdit.
In other words, professional translators will gave an easier time working
with a gettext-enabled program rather than a in-house translation solution.
Cheers,
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
MSN:i_eat_s_p_a_m_for_breakfast@hotmail.com
Jabber:ivansanchez@jabber.org ; ivansanchez@kdetalk.net
|
|
Posted by Iván Sánchez on June 3, 2008, 1:23 pm
Iván Sánchez Ortega wrote:
> In other words, professional translators will gave an easier time
str_replace('gave','have');
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Vamos, hale, hale, que es gerundio! (Yola Berrocal)
|
|
Posted by Joe Scylla on June 4, 2008, 2:57 am
howa wrote:
> http://hk2.php.net/manual/en/ref.gettext.php
>
> I just wonder why those kind of translation/mapping can't be
> implemented in using plain PHP array?
>
> Howard
First, gettext is faster that a php array
Sencondary, translators can use a gui programm for translation the
string (PoEdit, Eclipse Plugin).
But the main reason is: with gettext you can extract and refresh the
strings need translation out of the source code into your gettext
project file.
Joe
|
|
Posted by howa on June 4, 2008, 9:44 am
On 6$B7n(B4$BF|(B, $B2<8a(B2$B;~(B57$BJ,(B, Joe Scylla
> First, gettext is faster that a php array
I agree with points such as GUI tools, but is gettext faster?
PHP array can be cached into memory using APC/XCache and you can even
use them without any method call.
Howard
|
If you were Registered and logged in, you could reply and use other advanced thread options
Related Posts
Latest Posts
|
>
> I just wonder why those kind of translation/mapping can't be
> implemented in using plain PHP array?