Hi all,
I going to create a php web site in English.
I want to have a another language in my site which not in Google Translator.
How can I do this in PHP.

Recommended Answers

All 2 Replies

Member Avatar for diafol

If you go down the gettext route, I have a few posts here:

http://diafol.blogspot.co.uk/2013/01/php-localization-with-gettext-on-windows.html

http://diafol.blogspot.co.uk/2013/01/supporting-xgettext-on-windows-from.html

http://diafol.blogspot.co.uk/2013/03/gettext-issues-fix-with-php-gettext.html

http://diafol.blogspot.com/2013/01/creating-pot-files-in-poedit-for.html

Alternatively, see the index page: http://diafol.blogspot.co.uk/p/quick-index.html

Gettext can be a little daunting. There are alternatives, like php array files or duplicate static files. Come back when you pick an approach.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.