Dotclear

Ticket #1156 (closed defect: fixed)

Opened 15 years ago

Last modified 14 years ago

locales pour les thèmes

Reported by: biou Owned by: team
Priority: normal Milestone:
Component: module:themes Version: 2.2
Severity: normal Keywords:
Cc:

Description

Si je ne me trompe pas, les locales sont chargées automatiquement pour les plugins, mais pas pour les thèmes. Cf  http://tips.dotaddict.org/fiche/Ajouter-des-traductions-dans-les-th%C3%A8mes

Ce comportement n'est pas cohérent, on ne devrait pas avoir à créer ce fichier _public.php dans un thème pour pouvoir charger un fichier de traduction.

Change History

comment:1 Changed 14 years ago by franck

Dans /inc/public/prepend.php (ligne 84, environ) en remplaçant

$core->themes->loadModules($core->blog->themes_path);

par

$core->themes->loadModules($core->blog->themes_path,'public',$_lang);

Ça devrait suffire à charger le main.po du thème s'il est présent. À tester…

comment:2 Changed 14 years ago by bruno

  • Priority changed from low to normal
  • Milestone 2.3 deleted

comment:3 Changed 14 years ago by kozlika

On teste sur la branche themes ? Franck ?

comment:4 Changed 14 years ago by franck

  • Status changed from new to closed
  • Resolution set to fixed

Fixed, see [420]

Note: See TracTickets for help on using tickets.

Sites map