diff --git a/public/locales/de-DE/translation.json b/public/locales/de-DE/translation.json index ca722b1..679ad37 100644 --- a/public/locales/de-DE/translation.json +++ b/public/locales/de-DE/translation.json @@ -29,13 +29,31 @@ "task.header.value": "Value", "repository.status.initializing": "Initializing repository...", - "repository.event.connection.cancel":"Cancel connection", "repository.status.connected": "Connected to repository", + "repository.event.connection.cancel":"Cancel connection", + "repository.event.connection.disconnect": "Disconnect from repository", + "repository.event.description.update": "Update description", + + "repository.feedback.description.required":"Repository description is required", + "repository.feedback.read.only": "Repository is read-only", + "repository.feedback.eco.disabled":"Inaktiv", + + "repository.attribute.server.url": "Server URL", + "repository.attribute.config.file": "Config file", + "repository.attribute.provider": "Provider", + "repository.attribute.algorithm.encryption": "Encryption algorithm", + "repository.attribute.algorithm.hash": "Hash algorithm", + "repository.attribute.algorithm.splitter": "Splitter algorithm", + "repository.attribute.algorithm.eco": "Error correction algorithm", + + "repository.attribute.connected.as": "Connected as", + "repository.attribute.compression.internal": "Internal compression", + "repository.attribute.format": "Repository format", + "repository.attribute.eco": "Error correction overhead", "log.event.hide": "Hide log", "log.event.show": "Show log", - "user.interface": "User interface", "user.interface.appearance":"Appearance", "user.interface.appearance.hint":"Select font size", @@ -62,6 +80,7 @@ "lang.ru": "Russian", "lang.jp": "Japanese", "lang.it": "Italian", + "lang.pl": "Polish", "lang.help": "Sets the language for the user interface", "lang.select": "Select language", diff --git a/public/locales/en-GB/translation.json b/public/locales/en-GB/translation.json index ca722b1..e0a47f0 100644 --- a/public/locales/en-GB/translation.json +++ b/public/locales/en-GB/translation.json @@ -29,13 +29,31 @@ "task.header.value": "Value", "repository.status.initializing": "Initializing repository...", - "repository.event.connection.cancel":"Cancel connection", "repository.status.connected": "Connected to repository", + "repository.event.connection.cancel":"Cancel connection", + "repository.event.connection.disconnect": "Disconnect from repository", + "repository.event.description.update": "Update description", + + "repository.feedback.description.required":"Repository description is required", + "repository.feedback.read.only": "Repository is read-only", + "repository.feedback.eco.disabled":"Disabled", + + "repository.attribute.server.url": "Server URL", + "repository.attribute.config.file": "Config file", + "repository.attribute.provider": "Provider", + "repository.attribute.algorithm.encryption": "Encryption algorithm", + "repository.attribute.algorithm.hash": "Hash algorithm", + "repository.attribute.algorithm.splitter": "Splitter algorithm", + "repository.attribute.algorithm.eco": "Error correction algorithm", + + "repository.attribute.connected.as": "Connected as", + "repository.attribute.compression.internal": "Internal compression", + "repository.attribute.format": "Repository format", + "repository.attribute.eco": "Error correction overhead", "log.event.hide": "Hide log", "log.event.show": "Show log", - "user.interface": "User interface", "user.interface.appearance":"Appearance", "user.interface.appearance.hint":"Select font size", @@ -62,6 +80,7 @@ "lang.ru": "Russian", "lang.jp": "Japanese", "lang.it": "Italian", + "lang.pl": "Polish", "lang.help": "Sets the language for the user interface", "lang.select": "Select language", diff --git a/public/locales/es-ES/translation.json b/public/locales/es-ES/translation.json index ca722b1..e0a47f0 100644 --- a/public/locales/es-ES/translation.json +++ b/public/locales/es-ES/translation.json @@ -29,13 +29,31 @@ "task.header.value": "Value", "repository.status.initializing": "Initializing repository...", - "repository.event.connection.cancel":"Cancel connection", "repository.status.connected": "Connected to repository", + "repository.event.connection.cancel":"Cancel connection", + "repository.event.connection.disconnect": "Disconnect from repository", + "repository.event.description.update": "Update description", + + "repository.feedback.description.required":"Repository description is required", + "repository.feedback.read.only": "Repository is read-only", + "repository.feedback.eco.disabled":"Disabled", + + "repository.attribute.server.url": "Server URL", + "repository.attribute.config.file": "Config file", + "repository.attribute.provider": "Provider", + "repository.attribute.algorithm.encryption": "Encryption algorithm", + "repository.attribute.algorithm.hash": "Hash algorithm", + "repository.attribute.algorithm.splitter": "Splitter algorithm", + "repository.attribute.algorithm.eco": "Error correction algorithm", + + "repository.attribute.connected.as": "Connected as", + "repository.attribute.compression.internal": "Internal compression", + "repository.attribute.format": "Repository format", + "repository.attribute.eco": "Error correction overhead", "log.event.hide": "Hide log", "log.event.show": "Show log", - "user.interface": "User interface", "user.interface.appearance":"Appearance", "user.interface.appearance.hint":"Select font size", @@ -62,6 +80,7 @@ "lang.ru": "Russian", "lang.jp": "Japanese", "lang.it": "Italian", + "lang.pl": "Polish", "lang.help": "Sets the language for the user interface", "lang.select": "Select language", diff --git a/public/locales/fr-FR/translation.json b/public/locales/fr-FR/translation.json index ca722b1..e0a47f0 100644 --- a/public/locales/fr-FR/translation.json +++ b/public/locales/fr-FR/translation.json @@ -29,13 +29,31 @@ "task.header.value": "Value", "repository.status.initializing": "Initializing repository...", - "repository.event.connection.cancel":"Cancel connection", "repository.status.connected": "Connected to repository", + "repository.event.connection.cancel":"Cancel connection", + "repository.event.connection.disconnect": "Disconnect from repository", + "repository.event.description.update": "Update description", + + "repository.feedback.description.required":"Repository description is required", + "repository.feedback.read.only": "Repository is read-only", + "repository.feedback.eco.disabled":"Disabled", + + "repository.attribute.server.url": "Server URL", + "repository.attribute.config.file": "Config file", + "repository.attribute.provider": "Provider", + "repository.attribute.algorithm.encryption": "Encryption algorithm", + "repository.attribute.algorithm.hash": "Hash algorithm", + "repository.attribute.algorithm.splitter": "Splitter algorithm", + "repository.attribute.algorithm.eco": "Error correction algorithm", + + "repository.attribute.connected.as": "Connected as", + "repository.attribute.compression.internal": "Internal compression", + "repository.attribute.format": "Repository format", + "repository.attribute.eco": "Error correction overhead", "log.event.hide": "Hide log", "log.event.show": "Show log", - "user.interface": "User interface", "user.interface.appearance":"Appearance", "user.interface.appearance.hint":"Select font size", @@ -62,6 +80,7 @@ "lang.ru": "Russian", "lang.jp": "Japanese", "lang.it": "Italian", + "lang.pl": "Polish", "lang.help": "Sets the language for the user interface", "lang.select": "Select language", diff --git a/public/locales/it-IT/translation.json b/public/locales/it-IT/translation.json index ca722b1..e0a47f0 100644 --- a/public/locales/it-IT/translation.json +++ b/public/locales/it-IT/translation.json @@ -29,13 +29,31 @@ "task.header.value": "Value", "repository.status.initializing": "Initializing repository...", - "repository.event.connection.cancel":"Cancel connection", "repository.status.connected": "Connected to repository", + "repository.event.connection.cancel":"Cancel connection", + "repository.event.connection.disconnect": "Disconnect from repository", + "repository.event.description.update": "Update description", + + "repository.feedback.description.required":"Repository description is required", + "repository.feedback.read.only": "Repository is read-only", + "repository.feedback.eco.disabled":"Disabled", + + "repository.attribute.server.url": "Server URL", + "repository.attribute.config.file": "Config file", + "repository.attribute.provider": "Provider", + "repository.attribute.algorithm.encryption": "Encryption algorithm", + "repository.attribute.algorithm.hash": "Hash algorithm", + "repository.attribute.algorithm.splitter": "Splitter algorithm", + "repository.attribute.algorithm.eco": "Error correction algorithm", + + "repository.attribute.connected.as": "Connected as", + "repository.attribute.compression.internal": "Internal compression", + "repository.attribute.format": "Repository format", + "repository.attribute.eco": "Error correction overhead", "log.event.hide": "Hide log", "log.event.show": "Show log", - "user.interface": "User interface", "user.interface.appearance":"Appearance", "user.interface.appearance.hint":"Select font size", @@ -62,6 +80,7 @@ "lang.ru": "Russian", "lang.jp": "Japanese", "lang.it": "Italian", + "lang.pl": "Polish", "lang.help": "Sets the language for the user interface", "lang.select": "Select language", diff --git a/public/locales/jp-JP/translation.json b/public/locales/jp-JP/translation.json index ca722b1..e0a47f0 100644 --- a/public/locales/jp-JP/translation.json +++ b/public/locales/jp-JP/translation.json @@ -29,13 +29,31 @@ "task.header.value": "Value", "repository.status.initializing": "Initializing repository...", - "repository.event.connection.cancel":"Cancel connection", "repository.status.connected": "Connected to repository", + "repository.event.connection.cancel":"Cancel connection", + "repository.event.connection.disconnect": "Disconnect from repository", + "repository.event.description.update": "Update description", + + "repository.feedback.description.required":"Repository description is required", + "repository.feedback.read.only": "Repository is read-only", + "repository.feedback.eco.disabled":"Disabled", + + "repository.attribute.server.url": "Server URL", + "repository.attribute.config.file": "Config file", + "repository.attribute.provider": "Provider", + "repository.attribute.algorithm.encryption": "Encryption algorithm", + "repository.attribute.algorithm.hash": "Hash algorithm", + "repository.attribute.algorithm.splitter": "Splitter algorithm", + "repository.attribute.algorithm.eco": "Error correction algorithm", + + "repository.attribute.connected.as": "Connected as", + "repository.attribute.compression.internal": "Internal compression", + "repository.attribute.format": "Repository format", + "repository.attribute.eco": "Error correction overhead", "log.event.hide": "Hide log", "log.event.show": "Show log", - "user.interface": "User interface", "user.interface.appearance":"Appearance", "user.interface.appearance.hint":"Select font size", @@ -62,6 +80,7 @@ "lang.ru": "Russian", "lang.jp": "Japanese", "lang.it": "Italian", + "lang.pl": "Polish", "lang.help": "Sets the language for the user interface", "lang.select": "Select language", diff --git a/public/locales/pl-PL/translation.json b/public/locales/pl-PL/translation.json new file mode 100644 index 0000000..e0a47f0 --- /dev/null +++ b/public/locales/pl-PL/translation.json @@ -0,0 +1,96 @@ +{ + "tab.preferences":"Preferences", + "tab.repository":"Repository", + "tab.tasks":"Tasks", + "tab.policies":"Policies", + "tab.snapshots":"Snapshots", + + "task.all":"All", + "task.running":"Running", + "task.failed":"Failed", + "task.loading": "Loading...", + "task.time.start": "Start time", + "task.status": "Status", + "task.kind": "Kind", + "task.description": "Description", + + "task.status.succeed.after": "Task succeeded after", + "task.status.canceled": "Task canceled after", + "task.status.canceling": "Canceling", + "task.status.error": "Task error", + "task.status.running.for": "Task running for", + + "task.status.started": "Started", + "task.status.finished": "Finished", + "task.logs": "Logs", + + "task.event.stop": "Stop", + "task.header.counter": "Counter", + "task.header.value": "Value", + + "repository.status.initializing": "Initializing repository...", + "repository.status.connected": "Connected to repository", + "repository.event.connection.cancel":"Cancel connection", + "repository.event.connection.disconnect": "Disconnect from repository", + "repository.event.description.update": "Update description", + + "repository.feedback.description.required":"Repository description is required", + "repository.feedback.read.only": "Repository is read-only", + "repository.feedback.eco.disabled":"Disabled", + + "repository.attribute.server.url": "Server URL", + "repository.attribute.config.file": "Config file", + "repository.attribute.provider": "Provider", + "repository.attribute.algorithm.encryption": "Encryption algorithm", + "repository.attribute.algorithm.hash": "Hash algorithm", + "repository.attribute.algorithm.splitter": "Splitter algorithm", + "repository.attribute.algorithm.eco": "Error correction algorithm", + + "repository.attribute.connected.as": "Connected as", + "repository.attribute.compression.internal": "Internal compression", + "repository.attribute.format": "Repository format", + "repository.attribute.eco": "Error correction overhead", + + "log.event.hide": "Hide log", + "log.event.show": "Show log", + + "user.interface": "User interface", + "user.interface.appearance":"Appearance", + "user.interface.appearance.hint":"Select font size", + "user.interface.appearance.help": "Specifies the appearance of the user interface", + + "user.interface.appearance.small":"small", + "user.interface.appearance.medium":"medium", + "user.interface.appearance.large":"large", + + "user.interface.pagesize.description": "Page size", + "user.interface.pagesize.help": "Specifies the pagination size in tables", + "user.interface.pagesize.hint": "Page size", + + "user.interface.byte.representation.description":"Select byte representation", + "user.interface.byte.representation.select":"Select byte representation", + "user.interface.byte.representation.help":"Specifies the representation of bytes", + + "user.language":"Language", + + "lang.en": "English", + "lang.de": "German", + "lang.es": "Spanish", + "lang.fr": "French", + "lang.ru": "Russian", + "lang.jp": "Japanese", + "lang.it": "Italian", + "lang.pl": "Polish", + + "lang.help": "Sets the language for the user interface", + "lang.select": "Select language", + "lang.description": "Select the language", + + "theme.description": "Theme", + "theme.select": "Select theme", + "theme.help": "The current active theme", + "theme.dark":"dark", + "theme.light": "light", + "theme.pastel": "pastel", + "theme.ocean":"ocean" +} \ No newline at end of file diff --git a/public/locales/ru-RU/translation.json b/public/locales/ru-RU/translation.json index ca722b1..e0a47f0 100644 --- a/public/locales/ru-RU/translation.json +++ b/public/locales/ru-RU/translation.json @@ -29,13 +29,31 @@ "task.header.value": "Value", "repository.status.initializing": "Initializing repository...", - "repository.event.connection.cancel":"Cancel connection", "repository.status.connected": "Connected to repository", + "repository.event.connection.cancel":"Cancel connection", + "repository.event.connection.disconnect": "Disconnect from repository", + "repository.event.description.update": "Update description", + + "repository.feedback.description.required":"Repository description is required", + "repository.feedback.read.only": "Repository is read-only", + "repository.feedback.eco.disabled":"Disabled", + + "repository.attribute.server.url": "Server URL", + "repository.attribute.config.file": "Config file", + "repository.attribute.provider": "Provider", + "repository.attribute.algorithm.encryption": "Encryption algorithm", + "repository.attribute.algorithm.hash": "Hash algorithm", + "repository.attribute.algorithm.splitter": "Splitter algorithm", + "repository.attribute.algorithm.eco": "Error correction algorithm", + + "repository.attribute.connected.as": "Connected as", + "repository.attribute.compression.internal": "Internal compression", + "repository.attribute.format": "Repository format", + "repository.attribute.eco": "Error correction overhead", "log.event.hide": "Hide log", "log.event.show": "Show log", - "user.interface": "User interface", "user.interface.appearance":"Appearance", "user.interface.appearance.hint":"Select font size", @@ -62,6 +80,7 @@ "lang.ru": "Russian", "lang.jp": "Japanese", "lang.it": "Italian", + "lang.pl": "Polish", "lang.help": "Sets the language for the user interface", "lang.select": "Select language", diff --git a/src/contexts/UIPreferencesContext.tsx b/src/contexts/UIPreferencesContext.tsx index 5d946b2..703a29e 100644 --- a/src/contexts/UIPreferencesContext.tsx +++ b/src/contexts/UIPreferencesContext.tsx @@ -12,7 +12,7 @@ const DEFAULT_PREFERENCES = { pageSize: PAGE_SIZES[0], bytesStringBase2: false, export type Theme = "light" | "dark" | "pastel" | "ocean"; export type PageSize = 10 | 20 | 30 | 40 | 50 | 100; export type FontSize = "fs-6" | "fs-5" | "fs-4"; -export type Language = "en-GB" | "de-DE" | "es-ES" | "fr-FR" | "jp-JP" | "ru-RU" | "it-IT"; +export type Language = "en-GB" | "de-DE" | "es-ES" | "fr-FR" | "jp-JP" | "ru-RU" | "it-IT" | "pl-PL"; export interface UIPreferences { get pageSize(): PageSize diff --git a/src/pages/Preferences.jsx b/src/pages/Preferences.jsx index f718972..c377442 100644 --- a/src/pages/Preferences.jsx +++ b/src/pages/Preferences.jsx @@ -65,6 +65,7 @@ export function Preferences() { + diff --git a/src/pages/Repository.jsx b/src/pages/Repository.jsx index 4e87c45..56a3ca7 100644 --- a/src/pages/Repository.jsx +++ b/src/pages/Repository.jsx @@ -156,13 +156,13 @@ export class Repository extends Component { onChange={this.handleChange} size="sm" />   - + - Description Is Required + {i18n.t('repository.feedback.description.required')} {this.state.status.readonly && - Repository is read-only + {i18n.t('repository.feedback.read.only')} }
@@ -170,68 +170,71 @@ export class Repository extends Component { {this.state.status.apiServerURL ? <> - Server URL + {i18n.t('repository.attribute.server.url')}: : <> - Config File + {i18n.t('repository.attribute.config.file')}: +
- Provider + {i18n.t('repository.attribute.provider')}: - Encryption Algorithm + {i18n.t('repository.attribute.algorithm.encryption')}: - Hash Algorithm + {i18n.t('repository.attribute.algorithm.hash')}: - Splitter Algorithm + {i18n.t('repository.attribute.algorithm.splitter')}: +
- Repository Format + {i18n.t('repository.attribute.format')}: - Error Correction Overhead - 0 ? this.state.status.eccOverheadPercent + "%" : "Disabled"} /> + {i18n.t('repository.attribute.eco')}: + 0 ? this.state.status.eccOverheadPercent + "%" : i18n.t('repository.feedback.eco.disabled')} /> - Error Correction Algorithm + {i18n.t('repository.attribute.algorithm.eco')}: - Internal Compression + {i18n.t('repository.attribute.compression.internal')}: } +
- Connected as: + {i18n.t('repository.attribute.connected.as')}: -   +
- + -   +
@@ -239,7 +242,6 @@ export class Repository extends Component { ; } - return ; } }