Welcome Guest, Not a member yet? Register   Sign In
Translate Code Igniter language files with Google Translate
#1

[eluser]Unknown[/eluser]
Hi,

I created a language file translator based on the Google Translate API.
This translator will run through all language files in the CI language folder and translate them from the defined source language to the target language.

All you have to do is :

1) Include the gtranslate library into your application/library directory. Make sure that you have correctly filled out the API Key (it works better with that). Make sure that you have CURL installed if you want to use it.

2) Put the attached PHP file into a controller (for example : utils/google_translate).

3) Adjust the file to your local settings

4) Run the file through the URL.

Let me know if you have any issues with that (rupert [dot] schiessl [at] gmail [dot] com).

Rupert

PS : The translator code is based on the gtranslate library (you can find the library here : http://blog.josedasilva.net/google-trans...p-library/).




Theme © iAndrew 2016 - Forum software by © MyBB