Click here to get back home

Why php gettext is needed in real life?

 HomeNewsGroups | Search

get this group's latest topics as an RSS feed  comp.lang.php - PHP programming language discussions

Subject Author Date
Why php gettext is needed in real life? howa 06-03-2008
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:



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:



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:


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


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
  • Subject
  • Date

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

1-Script XML SitemapXML Sitemap
Privacy Policy