Skip to content

Commit

Permalink
Translations
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Apr 5, 2024
1 parent 8a6fafe commit b893bce
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 41 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This adapter has vis2 widget.
-->

## Changelog
### 1.3.5 (2024-04-05)
### **WORK IN PROGRESS**
* (bluefox) Corrected widget errors
* (bluefox) Implemented custom types
* (bluefox) Added possibility to control devices on holidays
Expand Down
13 changes: 0 additions & 13 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
"name": "scheduler",
"version": "1.3.5",
"news": {
"1.3.5": {
"en": "Corrected widget errors\nImplemented custom types\nAdded possibility to control devices on holidays",
"de": "Korrigierte Widget-Fehler\nImplementierte benutzerdefinierte Typen\nMöglichkeit zur Steuerung von Geräten an Feiertagen",
"ru": "Исправленные ошибки виджета\nРеализованные пользовательские типы\nДобавлена возможность управления устройствами в праздничные дни",
"pt": "Erros de widget corrigidos\nTipos personalizados implementados\nAdicionado possibilidade de controlar dispositivos em férias",
"nl": "Gecorrigeerde widget-fouten\nGeïmplementeerde aangepaste types\nToegevoegde mogelijkheid om apparaten op vakantie te bedienen",
"fr": "Erreurs de widget corrigées\nTypes personnalisés mis en œuvre\nAjout de la possibilité de contrôler les appareils pendant les vacances",
"it": "Errori di widget corretti\nTipi personalizzati implementati\nAggiunta possibilità di controllare i dispositivi durante le vacanze",
"es": "Errores de widget corregidos\nTipos de encargo implementados\nMayor posibilidad de controlar dispositivos en vacaciones",
"pl": "Skorygowane błędy widget\nWdrożone typy niestandardowe\nDodano możliwość sterowania urządzeniami w święta",
"uk": "Виправлені помилки віджету\nРеалізовані спеціальні типи\nДодана можливість управління пристроями на свята",
"zh-cn": "修正的部件错误\n已执行定制类型\n增加节假日控制设备的可能性"
},
"1.3.1": {
"en": "Corrected widget errors\nImplemented custom types",
"de": "Korrigierte Widget-Fehler\nImplementierte benutzerdefinierte Typen",
Expand Down
20 changes: 9 additions & 11 deletions src/src/components/ProfilesPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,9 @@ class ProfilesPanel extends Component {
}

renderEditDeleteDialog() {
const { isDialogOpen } = this.state;
if (!this.state.isDialogOpen) {
return null;
}
const folderItems = this.props.profiles.filter(profile =>
(!this.state.dialogElementParent && !profile.parent) || this.state.dialogElementParent === profile.parent);

Expand All @@ -705,8 +707,8 @@ class ProfilesPanel extends Component {

return <Dialog
onClose={() => this.onDialogClose()}
open={isDialogOpen}
onKeyDown={e => e.keyCode === 13 && canSubmit && this.onUpdateItem()}
open={!0}
onKeyDown={e => e.key === 'Enter' && canSubmit && this.onUpdateItem()}
maxWidth="sm"
fullWidth
>
Expand Down Expand Up @@ -739,21 +741,17 @@ class ProfilesPanel extends Component {
/>
</DialogContent>
<DialogActions>
{
!this.state.isNew && <Button style={{ color: '#FF8080' }} onClick={this.onDeleteItem} variant="outlined" startIcon={<DeleteIcon />}>
{I18n.t('Delete')}
</Button>
}
{!this.state.isNew && <Button style={{ color: '#FF8080' }} onClick={this.onDeleteItem} variant="outlined" startIcon={<DeleteIcon />}>
{I18n.t('Delete')}
</Button>}
<Button
disabled={!canSubmit}
onClick={this.onUpdateItem}
variant="contained"
color="primary"
startIcon={<CheckIcon />}
>
{
I18n.t(this.state.isNew ? 'Create' : (this.state.duplicate ? 'Copy' : 'Update'))
}
{I18n.t(this.state.isNew ? 'Create' : (this.state.duplicate ? 'Copy' : 'Update'))}
</Button>
<Button
onClick={() => this.onDialogClose()}
Expand Down
4 changes: 2 additions & 2 deletions src/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Type": "Typ",
"Percent": "Prozent",
"Temperature": "Temperatur",
"On/Off": "An aus",
"On/Off": "An/Aus",
"Priority": "Priorität",
"Normal": "Normal",
"High": "Hoch",
Expand Down Expand Up @@ -74,4 +74,4 @@
"show profiles": "Profile anzeigen",
"wrong type": "Falscher Typ",
"Errors": "Fehler"
}
}
4 changes: 2 additions & 2 deletions src/src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Type": "Escribe",
"Percent": "Por ciento",
"Temperature": "Temperatura",
"On/Off": "Encendido apagado",
"On/Off": "Encendido/Apagado",
"Priority": "Prioridad",
"Normal": "Normal",
"High": "Elevado",
Expand Down Expand Up @@ -74,4 +74,4 @@
"show profiles": "Mostrar perfiles",
"wrong type": "Tipo incorrecto",
"Errors": "Errores"
}
}
4 changes: 2 additions & 2 deletions src/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Type": "Taper",
"Percent": "Pour cent",
"Temperature": "Température",
"On/Off": "Allumé éteint",
"On/Off": "Allumé/éteint",
"Priority": "Priorité",
"Normal": "Normal",
"High": "Haute",
Expand Down Expand Up @@ -74,4 +74,4 @@
"show profiles": "Afficher les profils",
"wrong type": "mauvais type",
"Errors": "les erreurs"
}
}
4 changes: 2 additions & 2 deletions src/src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Type": "Tipo",
"Percent": "Per cento",
"Temperature": "Temperatura",
"On/Off": "Acceso spento",
"On/Off": "Acceso/Spento",
"Priority": "Priorità",
"Normal": "Normale",
"High": "Alto",
Expand Down Expand Up @@ -74,4 +74,4 @@
"show profiles": "Mostra profili",
"wrong type": "tipo sbagliato",
"Errors": "Errori"
}
}
4 changes: 2 additions & 2 deletions src/src/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Type": "Type",
"Percent": "procent",
"Temperature": "Temperatuur",
"On/Off": "Aan uit",
"On/Off": "Aan/Uit",
"Priority": "Prioriteit",
"Normal": "normaal",
"High": "Hoog",
Expand Down Expand Up @@ -74,4 +74,4 @@
"show profiles": "Profielen tonen",
"wrong type": "verkeerde soort",
"Errors": "Fouten"
}
}
4 changes: 2 additions & 2 deletions src/src/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Type": "Modelo",
"Percent": "Por cento",
"Temperature": "Temperatura",
"On/Off": "Ligado desligado",
"On/Off": "Ligado/Desligado",
"Priority": "Prioridade",
"Normal": "Normal",
"High": "Alto",
Expand Down Expand Up @@ -74,4 +74,4 @@
"show profiles": "Mostrar perfis",
"wrong type": "tipo errado",
"Errors": "Erros"
}
}
4 changes: 2 additions & 2 deletions src/src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Type": "Тип",
"Percent": "Процентов",
"Temperature": "Температура",
"On/Off": "Вкл выкл",
"On/Off": "Вкл/Выкл",
"Priority": "Приоритет",
"Normal": "Обычный",
"High": "Высокий",
Expand Down Expand Up @@ -74,4 +74,4 @@
"show profiles": "Показать профили",
"wrong type": "Неправильный тип",
"Errors": "Ошибки"
}
}
4 changes: 2 additions & 2 deletions src/src/i18n/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"Normal": "нормальний",
"OFF": "ВИМКНЕНО",
"ON": "УВІМКНЕНО",
"On/Off": "Увімкнено вимкнено",
"On/Off": "Увімкнено/Вимкнено",
"Open all": "Розгорнути все",
"Percent": "Відсоток",
"Priority": "Пріоритет",
Expand Down Expand Up @@ -74,4 +74,4 @@
"show profiles": "Показати профілі",
"wrong type": "неправильний тип",
"Errors": "Помилки"
}
}

0 comments on commit b893bce

Please sign in to comment.