How To Run Gettext

liunx

Guest
I am running a script (Menalto Gallery) that uses gettext files for providing different languages. For the particular language I am using, I needed to re-encode the language files to UTF-8 in order to be compatible with the Dragonfly CMS I am using. I did that for the .po files that I need.<br /><br />Now, I understand I need to run the .po files through "gettext" in order to get the .mo files that I believe the script is using. I have looked up gettext on several sites, but still don't quite understand how I would "run" it on my TCH hosted site. I suspect I need to upload the .po files and then write a small php script to kick gettext into action, but am not sure what this should look like.<br /><br />If anyone has a snippet they have used, I would appreciate it.<!--content-->
gettext is enabled in php here<br />so maybe these links will help.<br /><a href="http://www.onlamp.com/pub/a/php/2002/06/13/php.html" target="_blank">onlamp.com</a><br /><a href="http://www.phpdig.net/ref/rn26.html" target="_blank">Quick Primer on Using gettext</a><!--content-->
Thank you for the links. They were a bit easier to understand than the ones I had been following up till now. I will delve into it and see how it goes!<!--content-->
 
Back
Top