J'ai téléchargé ce thème et comme indiqué dans sa description, il utilise un fichier /inc/language/english/global.lang.php modifié.
A première vue ces ajouts concernent justement les textes des boutons + quelques modifications mineures.
Il faut donc que tu édites le fichier /inc/languages/french/global.lang.php pour y apporter les mêmes modifications/ajouts que dans le fichier anglais.
Pour t’aider en voici la liste :
après ligne 16, rajouter cette ligne ;
Code :
$l['toplinks_forums'] = "Forums";
la ligne 33 :
Code :
$l['welcome_pms_usage'] = "(Unread {1}, Total {2})";
devient :
Code :
$l['welcome_pms_usage'] = "{1}";
// default:
// $l['welcome_pms_usage'] = "(Unread {1}, Total {2})";
la ligne ligne 111 disparaît :
Code :
[-]$l['date'] = "Date";
après la ligne 213, rajouter ce bloc :
Code :
// Edited:
$l['postbit_reputation_add'] = "Rep +/-";
$l['postbit_website'] = "WWW";
$l['postbit_email'] = "Email";
$l['postbit_find'] = "Find Posts";
$l['postbit_report'] = "Report";
$l['postbit_quote'] = "Quote";
$l['postbit_qdelete'] = "Delete";
$l['postbit_profile'] = "Profile";
$l['postbit_pm'] = "Message";
$l['postbit_edit'] = "Edit";
$l['postbit_multiquote'] = "Multi-Quote";
$l['postbit_quick_edit'] = "Quick Edit";
$l['postbit_full_edit'] = "Full Edit";
$l['postbit_show_ignored_post'] = "Show this Post";
$l['postbit_currently_ignoring_user'] = "The contents of this message are hidden because {1} is on your <a href=\"usercp.php?action=editlists\">ignore list</a>.";
$l['postbit_warning_level'] = "Warning Level:";
$l['postbit_warn'] = "Warn the author for this post";
et commenter les lignes 214 à 230 du fichier original :
Code :
/* Default:
$l['postbit_reputation_add'] = "Give Reputation to this user";
$l['postbit_website'] = "Visit this user's website";
$l['postbit_email'] = "Send this user an email";
$l['postbit_find'] = "Find all posts by this user";
$l['postbit_report'] = "Report this post to a moderator";
$l['postbit_quote'] = "Quote this message in a reply";
$l['postbit_quick_edit'] = "Quick Edit";
$l['postbit_full_edit'] = "Full Edit";
$l['postbit_show_ignored_post'] = "Show this Post";
$l['postbit_currently_ignoring_user'] = "The contents of this message are hidden because {1} is on your <a href=\"usercp.php?action=editlists\">ignore list</a>.";
$l['postbit_warning_level'] = "Warning Level:";
$l['postbit_warn'] = "Warn the author for this post";
*/
Attention, les numéros des lignes sont ceux du fichier d'origine.
Une fois ajouté/supprimé des lignes les numéros vont changer.
PS : je trouve que c'est une drôle d'idée d'aller modifier un fichier du noyau.
J'imagine qu'il aurait été possible d'intégrer des variables dans le fichier de langue du plugin.
A la prochaine mise à jour de MyBB, les modifs seront perdues et à refaire !
PS 2 : les lignes ajoutées sont évidemment à traduire !