why should we use native php gettext instead of gettexxt library -


i'm including gettext library in application. but, our team decided go native php gettext. gettext library accepts string , converts using "translate" function defined in library. how can shift native lib? performance? suggestions on using native lib. in advance.

it performance , ease of use.

when use external library inside php using system() e.g., pros able use of options, make power user. cons that, each time run it, have parsing of return string , figure out results , stuff, hassle , pretty error prone.

when use language-binding of external library, cons confined api calls binding provides. pros return values, error status etc defined within api calls handling calls easier.

this tradeoff , vary case case whether 1 should use native interfaces or execute library directly.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -