Search code examples
phpgettext

PHP gettext() maximum translations?


I'm just starting to use gettext() and it seems to do what I need.

I'm try to find out if there is a practical or physical limit to the number of msgid/msgstr pairs that should be used in a po/mo ?

I plan to apply languages to two sites, one will have no more that 1000 translations, the other will have considerably more, possibly upto 10,000+ entries.

The larger site could be broken into sections, would it be be better to create one large po/mo file or create smaller ones for each section and apply the correct po/mo to the correct php script ?

Thanks


Solution

  • There are no limits, but if your files will be large enough, it could cause performance issues.

    Full documentation could be found here.