« Return to Thread: gettext best practices?

Re: gettext best practices?

by thomasW :: Rate this Message:

Reply to Author | View in Thread

Hy,

> On Drupal community CMS the whole translation seems to be in one package.
> The .mo file content is stored inside database in one field. At least if I
> have understood it correctly.

One package is from the translators view and from the programmers view
always the best and fastest possibility.
From the view of speed there is no advantage.

Also to mention, if you have strings which are equal in other "modules" you
would have them multiple times translated.
Think of a "Ok" and "Cancel" Button... these 2 strings you must translate
for all modules where you have such buttons. The bigger your application is
the more duplicated string you will have.

> And I don't know if Drupal makes some kind of caching with gettext data.

As I know from drupal, they do not do any caching... reading the cached
file/cache is as fast as reading the original gettext file.

Greetings
Thomas (Zend_Translate author)
I18N Team Leader

 « Return to Thread: gettext best practices?