Skip to content

Commit dae6dc7

Browse files
committed
Translation
1 parent 7c371fa commit dae6dc7

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

core/class/instantInk.class.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ public function toHtml($_version = 'dashboard') {
221221
$template = 'instantInk_dashboard_flatdesign';
222222
$replace['#template#'] = $template;
223223

224-
return $this->postToHtml($_version, template_replace($replace, getTemplate('core', $version, $template, 'instantInk')));
224+
$filepath = 'plugins/'.__CLASS__.'/core/template/'.$version.'/'.$template.'.html';
225+
$html = template_replace($replace, getTemplate('core', $version, $template, 'instantInk'));
226+
$html = translate::exec($html, $filepath);
227+
return $this->postToHtml($_version, $html);
225228
}
226229

227230
/* Non obligatoire mais ca permet de déclencher une action après modification de variable de configuration

core/template/dashboard/instantInk_dashboard_flatdesign.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<div class="text-center widget-name">
44
<span class="reportModeVisible">#name_display# <span class="object_name">#object_name#</span></span>
55
<a href="#eqLink#" class="reportModeHidden" style="color:var(--eqTitle-color)!important;">#name_display# <span class="object_name">#object_name#</span></a>
6-
<span class="cmd refresh pull-right cursor" title="Rafraichir" data-cmd_id="#refresh_id#" onclick="jeedom.cmd.execute({id: #refresh_id#});">
6+
<span class="cmd refresh pull-right cursor" title="{{Rafraichir}}" data-cmd_id="#refresh_id#" onclick="jeedom.cmd.execute({id: #refresh_id#});">
77
<i class="fas fa-sync" style="color:var(--eqTitle-color)!important;"></i>
88
</span>
9-
<span class="cmd refresh pull-right cursor" title="Obtenir historique" data-cmd_id="#getHistory_id#" onclick="jeedom.cmd.execute({id: #getHistory_id#});">
9+
<span class="cmd refresh pull-right cursor" title="{{Obtenir historique}}" data-cmd_id="#getHistory_id#" onclick="jeedom.cmd.execute({id: #getHistory_id#});">
1010
<i class="far fa-chart-bar" style="color:var(--eqTitle-color)!important;"></i>
1111
</span>
1212
</div>

0 commit comments

Comments
 (0)