mirror of
https://github.com/mue/mue.git
synced 2026-07-16 13:34:03 +02:00
fix(translations): add missing translations
This commit is contained in:
@@ -20,7 +20,7 @@ export default class Item extends PureComponent {
|
||||
updateAddon() {
|
||||
uninstall(this.props.data.type, this.props.data.display_name);
|
||||
install(this.props.data.type, this.props.data);
|
||||
toast('Successfully updated!');
|
||||
toast(variables.language.getMessage(variables.languagecode, 'toasts.updated'));
|
||||
this.setState({
|
||||
showUpdateButton: false
|
||||
});
|
||||
@@ -57,7 +57,7 @@ export default class Item extends PureComponent {
|
||||
<Fragment key='update'>
|
||||
<br/><br/>
|
||||
<button className='removeFromMue' onClick={() => this.updateAddon()}>
|
||||
Update Add-on
|
||||
{getMessage('modals.main.addons.product.buttons.update_addon')}
|
||||
</button>
|
||||
</Fragment>
|
||||
);
|
||||
|
||||
@@ -102,9 +102,11 @@ export default class Added extends PureComponent {
|
||||
});
|
||||
|
||||
if (updates > 0) {
|
||||
toast('Updates available: ' + updates);
|
||||
toast(this.getMessage('modals.main.addons.updates_available', {
|
||||
amount: updates
|
||||
}));
|
||||
} else {
|
||||
toast('No updates available');
|
||||
toast(this.getMessage('modals.main.addons.no_updates'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,7 +139,7 @@ export default class Added extends PureComponent {
|
||||
<option value='a-z'>{this.getMessage('modals.main.addons.sort.a_z')}</option>
|
||||
<option value='z-a'>{this.getMessage('modals.main.addons.sort.z_a')}</option>
|
||||
</Dropdown>
|
||||
<button className='addToMue sideload updateCheck' onClick={() => this.updateCheck()}>Check for updates</button>
|
||||
<button className='addToMue sideload updateCheck' onClick={() => this.updateCheck()}>{this.getMessage('modals.main.addons.check_updates')}</button>
|
||||
<br/>
|
||||
<Items items={this.state.installed} toggleFunction={(input) => this.toggle('item', input)} />
|
||||
</>
|
||||
|
||||
@@ -254,16 +254,13 @@ export default class Create extends PureComponent {
|
||||
</Dropdown>
|
||||
{this.state.addonMetadata.type === 'quote_api' ? <>
|
||||
<h3>{getMessage('modals.main.addons.create.quotes.api.title')}</h3>
|
||||
<p>{getMessage('modals.main.addons.create.quotes.api.url')}</p>
|
||||
<input type='text' value={this.state.addonData.url} onChange={(e) => this.updateQuotePackAPI('url', e.target.value)}/>
|
||||
<p>{getMessage('modals.main.addons.create.quotes.api.name')}</p>
|
||||
<input type='text' value={this.state.addonData.name} onChange={(e) => this.updateQuotePackAPI('name', e.target.value)}/>
|
||||
<p>{getMessage('modals.main.addons.create.quotes.api.author')}</p>
|
||||
<input type='text' value={this.state.addonData.author} onChange={(e) => this.updateQuotePackAPI('author', e.target.value)}/>
|
||||
<TextField label={getMessage('modals.main.addons.create.quotes.api.url')} varient='outlined' InputLabelProps={{ shrink: true }} value={this.state.addonData.url} onInput={(e) => this.updateQuotePack(e.target.value, 'url')}/>
|
||||
<TextField label={getMessage('modals.main.addons.create.quotes.api.name')} varient='outlined' InputLabelProps={{ shrink: true }} value={this.state.addonData.name} onInput={(e) => this.updateQuotePack(e.target.value, 'name')}/>
|
||||
<TextField label={getMessage('modals.main.addons.create.quotes.api.author')} varient='outlined' InputLabelProps={{ shrink: true }} value={this.state.addonData.author} onInput={(e) => this.updateQuotePack(e.target.value, 'author')}/>
|
||||
<br/><br/>
|
||||
</> : <>
|
||||
<h3>{getMessage('modals.main.addons.create.quotes.local.title')}</h3>
|
||||
<button onClick={() => this.importQuotes()} className='uploadbg' style={{ marginRight: '10px' }}>Import Current</button>
|
||||
<button onClick={() => this.importQuotes()} className='uploadbg' style={{ marginRight: '10px' }}>{getMessage('modals.main.addons.create.settings.current')}</button>
|
||||
<br/><br/>
|
||||
</>}
|
||||
<button onClick={() => this.changeTab(2)} className='uploadbg' style={{ marginRight: '10px' }}>{getMessage('modals.welcome.buttons.previous')}</button>
|
||||
@@ -277,7 +274,7 @@ export default class Create extends PureComponent {
|
||||
<>
|
||||
<h3>{getMessage('modals.main.addons.create.photos.title')}</h3>
|
||||
<h3>{getMessage('modals.main.addons.create.quotes.local.title')}</h3>
|
||||
<button onClick={() => this.importPhotos()} className='uploadbg' style={{ marginRight: '10px' }}>Import Current</button>
|
||||
<button onClick={() => this.importPhotos()} className='uploadbg' style={{ marginRight: '10px' }}>{getMessage('modals.main.addons.create.settings.current')}</button>
|
||||
<br/><br/>
|
||||
<button onClick={() => this.changeTab(2)} className='uploadbg' style={{ marginRight: '10px' }}>{getMessage('modals.welcome.buttons.previous')}</button>
|
||||
<button onClick={() => this.changeTab(3)} className='uploadbg' disabled={nextPhotosDisabled}>{getMessage('modals.welcome.buttons.next')}</button>
|
||||
|
||||
@@ -26,16 +26,16 @@ export default class LanguageSettings extends PureComponent {
|
||||
return;
|
||||
}
|
||||
|
||||
let array = [];
|
||||
const quoteLanguages = [];
|
||||
data.forEach((item) => {
|
||||
array.push({
|
||||
quoteLanguages.push({
|
||||
name: item,
|
||||
value: item
|
||||
});
|
||||
});
|
||||
|
||||
this.setState({
|
||||
quoteLanguages: array
|
||||
quoteLanguages
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import variables from 'modules/variables';
|
||||
import { PureComponent, Fragment } from 'react';
|
||||
import { PureComponent } from 'react';
|
||||
import { Cancel, Add } from '@mui/icons-material';
|
||||
import { TextField } from '@mui/material';
|
||||
|
||||
|
||||
@@ -406,7 +406,8 @@
|
||||
"author": "Autor",
|
||||
"buttons": {
|
||||
"addtomue": "Zu Mue hinzufügen",
|
||||
"remove": "Entfernen"
|
||||
"remove": "Entfernen",
|
||||
"update_addon": "Update Add-on"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warnung",
|
||||
@@ -420,6 +421,9 @@
|
||||
},
|
||||
"addons": {
|
||||
"added": "Hinzugefügt",
|
||||
"check_updates": "Check for updates",
|
||||
"no_updates": "No updates available",
|
||||
"updates_available": "Updates avaialble {amount}",
|
||||
"empty": {
|
||||
"title": "Hier ist es leer",
|
||||
"description": "Gehen Sie zum Marktplatz, um einige hinzuzufügen"
|
||||
@@ -546,6 +550,7 @@
|
||||
"reset": "Reset successfully",
|
||||
"installed": "Erfolgreich installiert",
|
||||
"uninstalled": "Erfolgreich entfernt",
|
||||
"updated": "Successfully updated",
|
||||
"error": "Etwas ist schief gelaufen",
|
||||
"imported": "Erfolgreich importiert"
|
||||
}
|
||||
|
||||
@@ -405,7 +405,8 @@
|
||||
"author": "Author",
|
||||
"buttons": {
|
||||
"addtomue": "Add To Mue",
|
||||
"remove": "Remove"
|
||||
"remove": "Remove",
|
||||
"update_addon": "Update Add-on"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warning",
|
||||
@@ -419,6 +420,9 @@
|
||||
},
|
||||
"addons": {
|
||||
"added": "Added",
|
||||
"check_updates": "Check for updates",
|
||||
"no_updates": "No updates available",
|
||||
"updates_available": "Updates avaialble {amount}",
|
||||
"empty": {
|
||||
"title": "Empty",
|
||||
"description": "No addons are installed"
|
||||
@@ -455,7 +459,7 @@
|
||||
"download": "Download Add-on"
|
||||
},
|
||||
"settings": {
|
||||
"current": "Import current setup",
|
||||
"current": "Import current",
|
||||
"json": "Upload JSON"
|
||||
},
|
||||
"photos": {
|
||||
@@ -545,6 +549,7 @@
|
||||
"reset": "Reset successfully",
|
||||
"installed": "Successfully installed",
|
||||
"uninstalled": "Successfully removed",
|
||||
"updated": "Successfully updated",
|
||||
"error": "Something went wrong",
|
||||
"imported": "Successfully imported"
|
||||
}
|
||||
|
||||
@@ -405,7 +405,8 @@
|
||||
"author": "Author",
|
||||
"buttons": {
|
||||
"addtomue": "Add To Mue",
|
||||
"remove": "Remove"
|
||||
"remove": "Remove",
|
||||
"update_addon": "Update Add-on"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warning",
|
||||
@@ -419,6 +420,9 @@
|
||||
},
|
||||
"addons": {
|
||||
"added": "Added",
|
||||
"check_updates": "Check for updates",
|
||||
"no_updates": "No updates available",
|
||||
"updates_available": "Updates avaialble {amount}",
|
||||
"empty": {
|
||||
"title": "Empty",
|
||||
"description": "No addons are installed"
|
||||
@@ -545,6 +549,7 @@
|
||||
"reset": "Reset successfully",
|
||||
"installed": "Successfully installed",
|
||||
"uninstalled": "Successfully removed",
|
||||
"updated": "Successfully updated",
|
||||
"error": "Something went wrong",
|
||||
"imported": "Successfully imported"
|
||||
}
|
||||
|
||||
@@ -405,7 +405,8 @@
|
||||
"author": "Autor",
|
||||
"buttons": {
|
||||
"addtomue": "Añadir a Mue",
|
||||
"remove": "Desinstalar"
|
||||
"remove": "Desinstalar",
|
||||
"update_addon": "Update Add-on"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Advertencia",
|
||||
@@ -419,6 +420,9 @@
|
||||
},
|
||||
"addons": {
|
||||
"added": "Añadidos",
|
||||
"check_updates": "Check for updates",
|
||||
"no_updates": "No updates available",
|
||||
"updates_available": "Updates avaialble {amount}",
|
||||
"empty": {
|
||||
"title": "Vacío",
|
||||
"description": "Dirígete a la tienda para agregar algunos."
|
||||
@@ -545,6 +549,7 @@
|
||||
"reset": "Restablecido correctamente",
|
||||
"installed": "Instalado correctamente",
|
||||
"uninstalled": "Desinstalado correctamente",
|
||||
"updated": "Successfully updated",
|
||||
"error": "Algo salió mal",
|
||||
"imported": "Importado correctamente"
|
||||
}
|
||||
|
||||
@@ -405,7 +405,8 @@
|
||||
"author": "Auteur",
|
||||
"buttons": {
|
||||
"addtomue": "Ajouter à Mue",
|
||||
"remove": "Enlever"
|
||||
"remove": "Enlever",
|
||||
"update_addon": "Update Add-on"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warning",
|
||||
@@ -419,6 +420,9 @@
|
||||
},
|
||||
"addons": {
|
||||
"added": "Ajoutées",
|
||||
"check_updates": "Check for updates",
|
||||
"no_updates": "No updates available",
|
||||
"updates_available": "Updates avaialble {amount}",
|
||||
"empty": {
|
||||
"title": "C'est vide par ici",
|
||||
"description": "Dirigez vous vers le marché pour ajouter des options"
|
||||
@@ -545,6 +549,7 @@
|
||||
"reset": "Réinitialisé avec succès",
|
||||
"installed": "Installé avec succès",
|
||||
"uninstalled": "Enlevé avec succès",
|
||||
"updated": "Successfully updated",
|
||||
"error": "Quelque chose s'est mal passé",
|
||||
"imported": "Importé avec succès"
|
||||
}
|
||||
|
||||
@@ -405,7 +405,8 @@
|
||||
"author": "Maker",
|
||||
"buttons": {
|
||||
"addtomue": "Toevoegen aan Mue",
|
||||
"remove": "Verwijderen"
|
||||
"remove": "Verwijderen",
|
||||
"update_addon": "Update Add-on"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Waarschuwing",
|
||||
@@ -419,6 +420,9 @@
|
||||
},
|
||||
"addons": {
|
||||
"added": "Toegevoegd",
|
||||
"check_updates": "Check for updates",
|
||||
"no_updates": "No updates available",
|
||||
"updates_available": "Updates avaialble {amount}",
|
||||
"empty": {
|
||||
"title": "Het is hier erg leeg",
|
||||
"description": "Ga naar de marktplaats om een paar extensies toe te voegen"
|
||||
@@ -545,6 +549,7 @@
|
||||
"reset": "Het herstellen is voltooid",
|
||||
"installed": "De installatie is voltooid",
|
||||
"uninstalled": "Het verwijderen is voltooid",
|
||||
"updated": "Successfully updated",
|
||||
"error": "Er is iets misgegaan",
|
||||
"imported": "Het importeren is voltooid"
|
||||
}
|
||||
|
||||
@@ -405,7 +405,8 @@
|
||||
"author": "Forfatter",
|
||||
"buttons": {
|
||||
"addtomue": "Legg Til Mue",
|
||||
"remove": "Fjern"
|
||||
"remove": "Fjern",
|
||||
"update_addon": "Update Add-on"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warning",
|
||||
@@ -419,6 +420,9 @@
|
||||
},
|
||||
"addons": {
|
||||
"added": "Lagt til",
|
||||
"check_updates": "Check for updates",
|
||||
"no_updates": "No updates available",
|
||||
"updates_available": "Updates avaialble {amount}",
|
||||
"empty": {
|
||||
"title": "Det er tomt her.",
|
||||
"description": "Gå til markedsplassen å legg til noe"
|
||||
@@ -545,6 +549,7 @@
|
||||
"reset": "Tilbakestillte vellykket",
|
||||
"installed": "Installert",
|
||||
"uninstalled": "Fjernet",
|
||||
"updated": "Successfully updated",
|
||||
"error": "Noe gikk galt",
|
||||
"imported": "Successfully imported"
|
||||
}
|
||||
|
||||
@@ -405,7 +405,8 @@
|
||||
"author": "Автор",
|
||||
"buttons": {
|
||||
"addtomue": "Добавить в Mue",
|
||||
"remove": "Удалить"
|
||||
"remove": "Удалить",
|
||||
"update_addon": "Update Add-on"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Предупреждение",
|
||||
@@ -419,6 +420,9 @@
|
||||
},
|
||||
"addons": {
|
||||
"added": "Добавлен",
|
||||
"check_updates": "Check for updates",
|
||||
"no_updates": "No updates available",
|
||||
"updates_available": "Updates avaialble {amount}",
|
||||
"empty": {
|
||||
"title": "Здесь пусто",
|
||||
"description": "Зайдите в магазин, чтобы найти что-то интересное"
|
||||
@@ -546,6 +550,7 @@
|
||||
"reset": "Сброшено",
|
||||
"installed": "Успешно установлено",
|
||||
"uninstalled": "Успешно удалено",
|
||||
"updated": "Successfully updated",
|
||||
"error": "Что-то пошло не так",
|
||||
"imported": "Успешно импортировано"
|
||||
}
|
||||
|
||||
@@ -405,7 +405,8 @@
|
||||
"author": "作者",
|
||||
"buttons": {
|
||||
"addtomue": "添加至 Mue",
|
||||
"remove": "卸载"
|
||||
"remove": "卸载",
|
||||
"update_addon": "Update Add-on"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "注意",
|
||||
@@ -419,6 +420,9 @@
|
||||
},
|
||||
"addons": {
|
||||
"added": "已添加",
|
||||
"check_updates": "Check for updates",
|
||||
"no_updates": "No updates available",
|
||||
"updates_available": "Updates avaialble {amount}",
|
||||
"empty": {
|
||||
"title": "这里空空如也",
|
||||
"description": "请访问插件市场来添加插件。"
|
||||
@@ -545,6 +549,7 @@
|
||||
"reset": "重置成功",
|
||||
"installed": "安装成功",
|
||||
"uninstalled": "卸载成功",
|
||||
"updated": "Successfully updated",
|
||||
"error": "发生错误",
|
||||
"imported": "导入成功"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user