class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
after reading the code, looking around here all docs, i still do not know how to show localized (not english) messages. The class uses gettext (as far i can see), but could someone point in the right direction how to use several languages?
The class simply uses the function _() to translate text. At the end of the class, the function _() is defined if it doesn't already exist, and simply returns the text that it receives in input.
So you can define your own function _() that will translate the messages, and for instance just wrap your own translation functions with it.Reply
after reading the code, looking around here all docs, i still do not know how to show localized (not english) messages.
The class uses gettext (as far i can see), but could someone point in the right direction how to use several languages?
thx in advance - michael
So you can define your own function _() that will translate the messages, and for instance just wrap your own translation functions with it.