Gettext or database translation

What's better:

  • Gettext
  • custom cache-based functionality + MySQL

Gettext is a kind of built-in function, so I assume that it is optimized for performance. Using poedit is a pain and cannot be shown to any client.

User functionality allows you to use a simple translation interface. But it can be hard to use php / db.

I guess which one would you use when?

+5
source share
2 answers

. . "pairs of words" => "Wortpaare", , . , , gettext ", ", , . , , , . , . gettext , , . i18n l10n, . gettext - , . .

, . , , . gettext xgettext .

, , , , . gettext, msgmerge .

. , "" , , , . gettext .

, , , . , , , , . PO , gettext . , , .

, , . gettext - , , , .

gettext Twig, gettext PHP .

+14

, Memcached, MySQL. , , .

+2

All Articles