feat(i18n): calculator.js, timer.js, image-ref.js auf t() umstellen

This commit is contained in:
2026-03-22 18:05:40 +01:00
parent daea57a9df
commit d0f870ace1
3 changed files with 42 additions and 42 deletions
+3 -3
View File
@@ -69,7 +69,7 @@ const Calculator = {
const widgetId = WidgetManager.create('calculator', {
id: this.WIDGET_ID,
title: 'Taschenrechner',
title: t('calculator.title'),
x: saved.x || 400,
y: saved.y || 120,
width: saved.width || 280,
@@ -214,7 +214,7 @@ const Calculator = {
const title = document.createElement('div');
title.className = 'calc-history-title';
title.textContent = 'History';
title.textContent = t('calculator.history');
container.appendChild(title);
this._renderHistoryItems(container);
@@ -345,7 +345,7 @@ const Calculator = {
const result = this._evaluate(this._currentExpr);
if (result === null) {
this._lastResult = 'Fehler';
this._lastResult = t('calculator.error');
this._updateDisplay();
return;
}