hi every one ,...

i am working on a project of translating a website to an Arabic Langauge :

and i am using in translation the "PO" and "MO" files

-- the "Bindtextdomain function "

the function is used to connect with domain and the mo files ........

but the probelm is when executing the translation function gettext() or its alias _()
this error is occured :

call undefined function bindtext domain in translate.php line:19

how can i solve it ?

    First question: is the Gettext extension installed?

      Weedpacket;10901242 wrote:

      First question: is the Gettext extension installed?

      the gettext() extension is an external party of php5 , isn't it ?

      how can i know if it exists or not ?
      how can i install it ?

        i am using windows Xp

        maybe i well return to Ununtu Linux to use PHP5

        but i need to know how can i install the packages ?

          Instructions for Linux are in the manual. The method for Windows is the same as for other extensions: uncomment the line that loads it in php.ini ("extension=php_gettext.dll").

            6 days later

            the problem was in the installation of the wamp,
            but i removed it and changed it with Xampp
            and the function works with me

              Write a Reply...