verot.net - class.upload.php translations ========================================= https://www.verot.net/php_class_upload_translations.htm Since version 0.25, the class error messages can now be translated. If your language is not listed below, send me your own translation!: mailto:web@verot.net ### How to use the translation files? Instantiate the class with a second argument being the language code. For instance, for the French language, you need to have the file class.upload.fr_FR.php in a directory lang/, below the main upload class. Then, instantiate the class as following: $handle = new upload($_FILES['image_field'], 'fr_FR'); $handle = new upload('/home/user/myfile.jpg', 'fr_FR'); Note that the class is by default in English. If you only needs English language, you don't need any translation files. ### How to create translations? You can use this file: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.xx_XX.php as a template to create new language files. In the file, the messages are provided in English; simply change the text in the array (don't change any keys!). Then, put your name in the file, and replace all the xxxx that can be there. Rename the file with your language code instead of xx_XX, and send it to me: mailto:web@verot.net. The file must be edited in UTF-8, but don't save it with the BOM bit. You can use an editor such as Scite: http://www.scintilla.org/SciTE.html to open the file, and then select File > Encoding > UTF-8 Cookie to see the characters properly. ### Translations available Here is a list of the translations available. Although there are also provided in the packages: https://www.verot.net/php_class_upload_download.htm, you can get the latest versions here. Download it, replace the .txt extension with .php, and you're done. * French translation by Colin Verot. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.fr_FR.php * Spanish translation by Jorge Peréz Vega. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.es_ES.php * Italian translation by Paolo Iulita. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.it_IT.php * Dutch translation by Alfons Knaapen. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.nl_NL.php * German translation by some dude from Germany. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.de_DE.php * Czech translation by Lukáš Gavenda. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.cs_CS.php * Swedish translation by Mikael Andersson. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.sv_SE.php * Norwegian translation by Trond Torkildsen. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.no_NO.php * Danish translation by Lars Krogsgård Hansen. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.da_DK.php * Finnish translation by Asko Pesola. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.fi_FI.php * Lithuanian translation by Dainius Kaupaitis. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.lt_LT.php * Polish translation by Bartosz Rychlicki. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.pl_PL.php * Romanian translation by Cristian Datculescu. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.ro_RO.php * Croatian translation by Kresimir Virovic. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.hr_HR.php * Hungarian translation by Bosternák Balázs. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.hu_HU.php * Slovak translation by Bryan. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.sk_SK.php * Brazilian Portugese translation by Yuri Vecchi Baladelli. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.pt_BR.php * Turkish translation by Volkan Metin. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.tr_TR.php * Farsi translation by Morteza Karimi. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.fa_IR.php * Greek translation by Christos Grezios. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.el_GR.php * Macedonian translation by Zoran Tanevski. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.mk_MK.php * Serbian translation by Zeljko Markovic. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.sr_YU.php * Ukrainian translation by Sergiy Galashyn. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.uk_UA.php Also by Sergiy Galashyn, a Windows-1251 encoded translation file: Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.uk_UA.windows-1251.php * Catalan translation by Antoni Canals. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.ca_CA.php * Estonian translation by Lohe. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.et_EE.php * Russian translation by Chup. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.ru_RU.php Also by Chup, a Windows-1251 encoded translation file: Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.ru_RU.windows-1251.php * Hebrew translation by VirtualFlavius. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.he_IL.php * Tamil translation by Vijaya Sankar. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.ta_TA.php * Japanese translation by Kenta Ozaki. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.ja_JP.php * Indonesian (Bahasa) translation by Irwan Butar Butar. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.id_ID.php * Vietnamese translation by junzennt. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.vn_VN.php * Chinese translation by Shiwei Cao (曹诗蔚). Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.zh_CN.php Also by Shiwei Cao, a gb-2312 encoded translation file: Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.zh_CN.gb-2312.php * Traditional Chinese translation by Yang Chih-Wen. Download here: https://raw.githubusercontent.com/verot/class.upload.php/master/src/lang/class.upload.zh_TW.php It is normal that some files appear with some weird characters. It is because the translations are in UTF-8, but without the BOM byte. Simply use the file as is, and set your web page to be in UTF-8.