Here is a tutorial to help you translate XOOPS 2.5.6 entirely in your language.
First of all, you can help you with files already present on
transifex, or just help with the translation on this website. Simply register, send me an email (see my profile) with your nickname, specify your language, and I will add you as a translator.
Explanation for the following lines:
yourlang = english or french
yourshortlang = en or fr
File list to translate (with explanations when it needs):
htdocs\class\xoopseditor\dhtmltextarea\language
yourlang.php
---------------------------
htdocs\class\xoopseditor\textarea\language
yourlang.php
---------------------------
htdocs\class\xoopseditor\tinymce\language
yourlang.php
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\themes\simple\langs
yourshortlang.js
(0)(0) shortlang example: en for english, fr for french---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\langs
yourshortlang.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopsimagemanager\langs
yourshortlang.js
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\themes\advanced\langs
yourshortlang.js
yourshortlang_dlg.js
----------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\paste\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\template\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xhtmlxtras\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopsmlcontent\langs
yourshortlang.js
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\advlink\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\fullpage\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\searchreplace\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\style\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\table\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\example\langs
yourshortlang.js
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopscode\langs
yourshortlang.js
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopsemotions\langs
yourshortlang.js
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopsquote\langs
yourshortlang.js
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\advhr\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\advimage\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\emotions\langs
yourshortlang_dlg.js
---------------------------
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\media\langs
yourshortlang_dlg.js
---------------------------
htdocs\Frameworks\moduleclasses\moduleadmin\language\
-> add folder
yourlang\
insert into this folder, the file main.php (translated in yourlang)
-> copy file index.html
htdocs\Frameworks\moduleclasses\moduleadmin\language\english\index.html
into
htdocs\Frameworks\moduleclasses\moduleadmin\language\yourlang\
---------------------------
htdocs\install\language
-> copy the english folder entirely
htdocs\install\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\install\language\yourlang
-> replace into it these files, with your own, translated into your language:
install.php
install2.php
welcome.php
support.php
-> in support.php file, add extra support sites, use corresponding language folder name as key, for instance:
$supports["french"] = array(
"url" => "http://www.frxoops.org/",
"title" => "Support francophone"
);
---------------------------
htdocs\language
-> copy the english folder entirely
htdocs\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\language\yourlang
-> replace into it these files, with your own, translated into your language:
admin.php
auth.php
banners.php
calendar.php
captcha.php
comment.php
countries.php
errors.php
findusers.php
formdhtmltextarea.php
global.php
locale.php
logger.php
mail.php
misc.php
notification.php
pmsg.php
search.php
timezone.php
uploader.php
user.php
xoopsmailerlocal.php
(0a)\mail_template\activated.tpl
\mail_template\adminactivate.tpl
\mail_template\comment_notify.tpl
\mail_template\commentsubmit_notify.tpl
\mail_template\default_notify.tpl
\mail_template\lostpass1.tpl
\mail_template\lostpass2.tpl
\mail_template\register.tpl
\mail_template\tellfriend.tpl
\mail_template\welcome.tpl
(0a) Only put your lang code line 43, example for french: $this->multimailer->SetLanguage("fr");
(
1) Important: if you take the translated files from the website Transifex, you must rename the file .html into .tpl---------------------------
htdocs\modules\pm\language
-> copy the english folder entirely
htdocs\modules\pm\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\modules\pm\language\yourlang
-> replace into it these files, with your own, translated into your language:
admin.php
main.php
modinfo.php
\help\help.html
(2) Important: if you take the translated file help.html from the website Transifex, I suggest you to take the English original file and edit from it, because the beginning of the code is truncated. Transifex not recognizing the code of XOOPS (i.e $xoops_url ; xoAdminIcons home.png), and it modifies or deletes it.---------------------------
htdocs\modules\profile\language\
-> copy the english folder entirely
htdocs\modules\profile\language\english\
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\modules\profile\language\yourlang\
-> replace into it these files, with your own, translated into your language:
admin.php
main.php
modinfo.php
\help\help.html
\mail_template\emailchanged.tpl
Important: See warnings (1) and (2) above---------------------------
htdocs\modules\protector\language\
-> copy the english folder entirely
htdocs\modules\protector\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\modules\protector\language\yourlang
-> replace into it this file, with your own, translated into your language:
\help\help.html
Important: See warning (2) above---------------------------
htdocs\modules\system\language
-> copy the english folder entirely
htdocs\modules\system\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\modules\system\language\yourlang
-> replace into it these files, with your own, translated into your language:
admin.php
blocks.php
cpanel.php
modinfo.php
\admin\avatars.php
\admin\banners.php
\admin\blocksadmin.php
\admin\comments.php
\admin\groups.php
\admin\images.php
\admin\mailusers.php
\admin\maintenance.php
\admin\modulesadmin.php
\admin\preferences.php
\admin\smilies.php
\admin\tplsets.php
\admin\userrank.php
\admin\users.php
\help\avatars.html
\help\banners.html
\help\blocksadmin.html
\help\comments.html
\help\groups.html
\help\help_center.html
\help\images.html
\help\mailusers.html
\help\maintenance.html
\help\module_index.html
\help\modulesadmin.html
\help\preferences.html
\help\smilies.html
\help\tplsets.html
\help\userrank.html
\help\users.html
---------------------------
htdocs\modules\system\themes\default\language
-> copy the english folder entirely
htdocs\modules\system\themes\default\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\modules\system\themes\default\language\yourlang
-> replace into it these files, with your own, translated into your language:
admin.php
localsupport.php
(3)(4)(3) this file is the same in:
htdocs\modules\system\themes\zetadigme\language\yourlang
(4) for example in french file localsupport.php, we have this code: define("_AD_XOOPS_LOCAL_NAME","Accueil");
define("_AD_XOOPS_LOCAL_FORUMS","Forums");
define("_AD_XOOPS_LOCAL_THEMES","Galerie de thèmes");
define("_AD_XOOPS_LOCAL_MODULES","Référentiel de modules");
define("_AD_XOOPS_LOCAL_XDONATIONS","Faire un don");
define("_AD_XOOPS_LOCAL_SFXF","Sourceforge Xoops France");
$menu = array();
// French support
$menu[] = array(
"link" => "http://www.frxoops.org",
"title" => _AD_XOOPS_LOCAL_NAME,
"absolute" => 1,
"icon" => XOOPS_ADMINTHEME_URL . "/default/images/xoops.png"
);
$menu[] = array(
"link" => "http://www.frxoops.org/modules/newbb/",
"title" => _AD_XOOPS_LOCAL_FORUMS,
"absolute" => 1,
"icon" => XOOPS_ADMINTHEME_URL . "/default/images/xoops.png"
);
$menu[] = array(
"link" => "http://sourceforge.net/projects/xoopsfrance/",
"title" => _AD_XOOPS_LOCAL_SFXF,
"absolute" => 1
);
$menu[] = array(
"link" => "https://xoops.org/modules/xdonations/",
"title" => _AD_XOOPS_LOCAL_XDONATIONS,
"absolute" => 1
);
return $menu;
---------------------------
htdocs\modules\system\themes\zetadigme\language\
-> copy the english folder entirely
htdocs\modules\system\themes\zetadigme\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\modules\system\themes\zetadigme\language\yourlang
-> replace into it these files, with your own, translated into your language:
admin.php
localsupport.php
(3)(4)See (3) and (4) notifications above---------------------------
htdocs\themes\suico\language\
-> copy the english folder entirely
htdocs\themes\suico\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\themes\suico\language\yourlang
-> replace into it this file, with your own, translated into your language:
main.php
---------------------------
htdocs\themes\zetagenesis\language\
-> copy the english folder entirely
htdocs\themes\zetagenesis\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\themes\zetagenesis\language\yourlang
-> replace into it this file, with your own, translated into your language:
main.php
---------------------------
htdocs\xoops_lib\modules\protector\language
-> copy the english folder entirely
htdocs\xoops_lib\modules\protector\language\english
and past it
-> rename new folder (the copy) into "yourlang"
htdocs\xoops_lib\modules\protector\language\yourlang
-> replace into it these files, with your own, translated into your language:
admin.php
main.php
modinfo.php
--------------------------
htdocs\class\mail\phpmailer\language\
phpmailer.lang-yourshortlang.php
Work with this file: xoopsmailerlocal.php, see
(0a) above.
--------------------------
=======
Optional?
=======
htdocs\xoops_lib\modules\protector\library\HTMLPurifier\Language
-> I don't know if we have to translate any file into this folder.
======================
Files not included on Transifex
======================
Files that are not accepted by Transifex (code or extension that are not compatible):
[size=xx-small]htdocs\install\language\yourlang\mysql.lang.data.sql
htdocs\install\language\yourlang\support.php
htdocs\install\language\yourlang\welcome.php
htdocs\xoops_lib\modules\protector\language\yourlang\modinfo.php
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\themes\simple\langs\yourshortlang.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\langs\yourshortlang.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\paste\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\template\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xhtmlxtras\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\advlink\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\fullpage\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\searchreplace\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\style\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\table\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\example\langs
yourshortlang.js
yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopscode\langs
yourshortlang.js
yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopsemotions\langs
yourshortlang.js
yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopsquote\langs
yourshortlang.js
yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopsimagemanager\langs
yourshortlang.js
yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\xoopsmlcontent\langs
yourshortlang.js
yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\themes\advanced\langs
yourshortlang.js
yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\advhr\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\advimage\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\emotions\langs\yourshortlang_dlg.js
htdocs\class\xoopseditor\tinymce\tinymce\jscripts\tiny_mce\plugins\media\langs\yourshortlang_dlg.js
htdocs\class\mail\phpmailer\language\phpmailer.lang-yourshortlang.php
htdocs\language\yourlang\xoopsmailerlocal.php
htdocs\install\language\yourlang\finish.php
htdocs\modules\system\themes\zetadigme\language\yourlang\localsupport.php
htdocs\modules\system\themes\default\language\yourlang\localsupport.php[/size]