@iobroker/adapter-react-v5 4.4.8 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Components/CustomModal.js +6 -3
- package/Components/CustomModal.js.map +1 -1
- package/Components/FileBrowser.js +4 -2
- package/Components/FileBrowser.js.map +1 -1
- package/Components/FileViewer.d.ts +5 -0
- package/Components/FileViewer.js +34 -7
- package/Components/FileViewer.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAccordion.d.ts +1 -0
- package/Components/JsonConfigComponent/ConfigAccordion.js +3 -1
- package/Components/JsonConfigComponent/ConfigAccordion.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCRON.js +2 -4
- package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCheckLicense.js +29 -12
- package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCustom.js +4 -5
- package/Components/JsonConfigComponent/ConfigCustom.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFile.js +9 -14
- package/Components/JsonConfigComponent/ConfigFile.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigGeneric.d.ts +1 -0
- package/Components/JsonConfigComponent/ConfigGeneric.js +9 -8
- package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigIP.js +5 -0
- package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigNumber.js +42 -31
- package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPanel.js +2 -0
- package/Components/JsonConfigComponent/ConfigPanel.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPort.js +44 -29
- package/Components/JsonConfigComponent/ConfigPort.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelect.js +29 -12
- package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js +11 -21
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSendto.js +16 -20
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.js +18 -19
- package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigStaticText.js +14 -23
- package/Components/JsonConfigComponent/ConfigStaticText.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTable.js +12 -8
- package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTabs.d.ts +1 -0
- package/Components/JsonConfigComponent/ConfigTabs.js +5 -4
- package/Components/JsonConfigComponent/ConfigTabs.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigText.js +3 -7
- package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTextSendTo.js +3 -4
- package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTimePicker.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigUUID.js +5 -6
- package/Components/JsonConfigComponent/ConfigUUID.js.map +1 -1
- package/Components/JsonConfigComponent/index.js +2 -0
- package/Components/JsonConfigComponent/index.js.map +1 -1
- package/Components/ObjectBrowser.d.ts +23 -1
- package/Components/ObjectBrowser.js +460 -50
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/TabContainer.d.ts +3 -0
- package/Components/TabContainer.js +7 -2
- package/Components/TabContainer.js.map +1 -1
- package/Components/TabContent.d.ts +1 -0
- package/Components/TabContent.js +7 -0
- package/Components/TabContent.js.map +1 -1
- package/Components/TableResize.js +7 -4
- package/Components/TableResize.js.map +1 -1
- package/Components/ToggleThemeMenu.js +5 -5
- package/Components/ToggleThemeMenu.js.map +1 -1
- package/Components/UploadImage.js +10 -7
- package/Components/UploadImage.js.map +1 -1
- package/Components/Utils.d.ts +2 -1
- package/Components/Utils.js +105 -98
- package/Components/Utils.js.map +1 -1
- package/Dialogs/TextInput.js +1 -1
- package/Dialogs/TextInput.js.map +1 -1
- package/README.md +6 -0
- package/i18n/de.json +4 -2
- package/i18n/en.json +3 -1
- package/i18n/es.json +4 -2
- package/i18n/fr.json +3 -1
- package/i18n/it.json +3 -1
- package/i18n/nl.json +4 -2
- package/i18n/pl.json +3 -1
- package/i18n/pt.json +4 -2
- package/i18n/ru.json +5 -3
- package/i18n/uk.json +4 -2
- package/i18n/zh-cn.json +4 -2
- package/package.json +1 -1
package/Dialogs/TextInput.js
CHANGED
|
@@ -107,7 +107,7 @@ var TextInput = /*#__PURE__*/function (_React$Component) {
|
|
|
107
107
|
onClick: function onClick() {
|
|
108
108
|
return _this2.props.onClose(null);
|
|
109
109
|
},
|
|
110
|
-
startIcon: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.
|
|
110
|
+
startIcon: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Close, null)
|
|
111
111
|
}, this.props.cancelText || _i18n["default"].t('ra_Cancel'))));
|
|
112
112
|
}
|
|
113
113
|
}]);
|
package/Dialogs/TextInput.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.js","names":["_react","_interopRequireDefault","require","_propTypes","_material","_iconsMaterial","_i18n","_withWidth","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","TextInput","_React$Component","_inherits2","_super","props","_this","_classCallCheck2","state","text","input","value","error","_createClass2","key","render","_this2","createElement","Dialog","open","onClose","fullWidth","undefined","DialogTitle","id","titleText","DialogContent","DialogContentText","promptText","TextField","variant","autoFocus","margin","title","label","labelText","type","onKeyPress","charCode","onChange","verify","target","rule","setState","DialogActions","Button","disabled","onClick","color","startIcon","Check","applyText","I18n","t","Clos","cancelText","React","Component","propTypes","PropTypes","bool","func","isRequired","string","_export","withWidth","_default","exports"],"sources":["TextInput.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport {\n Button,\n TextField,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n} from '@mui/material';\n\nimport { Clos as IconClose, Check as IconCheck } from '@mui/icons-material';\n\nimport I18n from '../i18n';\n\nimport withWidth from '../Components/withWidth';\n\n/**\n * @typedef {object} TextInputProps\n * @property {(text: string | null) => void} onClose The dialog close callback.\n * @property {string} titleText The title text.\n * @property {string} [promptText] Prompt text (default: empty).\n * @property {string} [labelText] Label text (default: empty).\n * @property {string} cancelText The text of the cancel button.\n * @property {string} applyText The text of the apply button.\n * @property {(text: string) => string} [verify] The verification callback. Return a non-empty string if there was an error.\n * @property {(text: string) => string} [rule] The text replacement callback.\n * @property {'text' | 'number' | 'password' | 'email'} [type] The type of the textbox (default: text).\n * @property {string} [input] The input when opening the dialog.\n *\n * @extends {React.Component<TextInputProps>}\n */\nclass TextInput extends React.Component {\n /**\n * @param {Readonly<TextInputProps>} props\n */\n constructor(props) {\n super(props);\n\n this.state = {\n text: this.props.input || this.props.value || '', // input is deprecated\n error: '',\n };\n }\n\n render() {\n return <Dialog\n open={!0}\n onClose={() => this.props.onClose(null)}\n aria-labelledby=\"form-dialog-title\"\n fullWidth={this.props.fullWidth !== undefined ? this.props.fullWidth : false}\n >\n <DialogTitle id=\"form-dialog-title\">{this.props.titleText}</DialogTitle>\n <DialogContent>\n <DialogContentText>\n {this.props.promptText}\n </DialogContentText>\n <TextField\n variant=\"standard\"\n autoFocus\n margin=\"dense\"\n error={!!this.state.error}\n title={this.state.error}\n value={this.state.text}\n label={this.props.labelText || ''}\n type={this.props.type || 'text'}\n onKeyPress={e => e.charCode === 13 && this.state.text && this.props.onClose(this.state.text)}\n onChange={e => {\n let error = '';\n if (this.props.verify) {\n error = !this.props.verify(e.target.value);\n }\n\n if (this.props.rule) {\n this.setState({ text: this.props.rule(e.target.value), error });\n } else {\n this.setState({ text: e.target.value, error });\n }\n }}\n fullWidth\n />\n </DialogContent>\n <DialogActions>\n <Button\n variant=\"contained\"\n disabled={!this.state.text || this.state.error}\n onClick={() => this.props.onClose(this.state.text)}\n color=\"primary\"\n startIcon={<IconCheck />}\n >\n {this.props.applyText || I18n.t('ra_Ok')}\n </Button>\n <Button\n color=\"grey\"\n variant=\"contained\"\n onClick={() => this.props.onClose(null)}\n startIcon={<IconClose />}\n >\n {this.props.cancelText || I18n.t('ra_Cancel')}\n </Button>\n </DialogActions>\n </Dialog>;\n }\n}\n\nTextInput.propTypes = {\n fullWidth: PropTypes.bool,\n onClose: PropTypes.func.isRequired,\n titleText: PropTypes.string.isRequired,\n promptText: PropTypes.string,\n labelText: PropTypes.string,\n cancelText: PropTypes.string,\n applyText: PropTypes.string,\n verify: PropTypes.func,\n type: PropTypes.string, // text, number, password, email\n value: PropTypes.string,\n};\n\n/** @type {typeof TextInput} */\nconst _export = withWidth()(TextInput);\nexport default _export;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AAUA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,UAAA,GAAAN,sBAAA,CAAAC,OAAA;AAAgD,SAAAM,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAA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AAA,CAAA8E,IAAS,MAAE;MAAE,GAExB,IAAI,CAACjD,KAAK,CAACkD,UAAU,IAAIH,gBAAI,CAACC,CAAC,CAAC,WAAW,CACxC,CACG,CACX,CAAC;IACb;EAAC;EAAA,OAAApD,SAAA;AAAA,EAtEmBuD,iBAAK,CAACC,SAAS;AAyEvCxD,SAAS,CAACyD,SAAS,GAAG;EAClBrC,SAAS,EAAEsC,qBAAS,CAACC,IAAI;EACzBxC,OAAO,EAAEuC,qBAAS,CAACE,IAAI,CAACC,UAAU;EAClCrC,SAAS,EAAEkC,qBAAS,CAACI,MAAM,CAACD,UAAU;EACtClC,UAAU,EAAE+B,qBAAS,CAACI,MAAM;EAC5B5B,SAAS,EAAEwB,qBAAS,CAACI,MAAM;EAC3BR,UAAU,EAAEI,qBAAS,CAACI,MAAM;EAC5BZ,SAAS,EAAEQ,qBAAS,CAACI,MAAM;EAC3BvB,MAAM,EAAEmB,qBAAS,CAACE,IAAI;EACtBzB,IAAI,EAAEuB,qBAAS,CAACI,MAAM;EAAE;EACxBpD,KAAK,EAAEgD,qBAAS,CAACI;AACrB,CAAC;;AAED;AACA,IAAMC,OAAO,GAAG,IAAAC,qBAAS,EAAC,CAAC,CAAChE,SAAS,CAAC;AAAC,IAAAiE,QAAA,GACxBF,OAAO;AAAAG,OAAA,cAAAD,QAAA"}
|
|
1
|
+
{"version":3,"file":"TextInput.js","names":["_react","_interopRequireDefault","require","_propTypes","_material","_iconsMaterial","_i18n","_withWidth","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","TextInput","_React$Component","_inherits2","_super","props","_this","_classCallCheck2","state","text","input","value","error","_createClass2","key","render","_this2","createElement","Dialog","open","onClose","fullWidth","undefined","DialogTitle","id","titleText","DialogContent","DialogContentText","promptText","TextField","variant","autoFocus","margin","title","label","labelText","type","onKeyPress","charCode","onChange","verify","target","rule","setState","DialogActions","Button","disabled","onClick","color","startIcon","Check","applyText","I18n","t","Close","cancelText","React","Component","propTypes","PropTypes","bool","func","isRequired","string","_export","withWidth","_default","exports"],"sources":["TextInput.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport {\n Button,\n TextField,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n} from '@mui/material';\n\nimport { Close as IconClose, Check as IconCheck } from '@mui/icons-material';\n\nimport I18n from '../i18n';\n\nimport withWidth from '../Components/withWidth';\n\n/**\n * @typedef {object} TextInputProps\n * @property {(text: string | null) => void} onClose The dialog close callback.\n * @property {string} titleText The title text.\n * @property {string} [promptText] Prompt text (default: empty).\n * @property {string} [labelText] Label text (default: empty).\n * @property {string} cancelText The text of the cancel button.\n * @property {string} applyText The text of the apply button.\n * @property {(text: string) => string} [verify] The verification callback. Return a non-empty string if there was an error.\n * @property {(text: string) => string} [rule] The text replacement callback.\n * @property {'text' | 'number' | 'password' | 'email'} [type] The type of the textbox (default: text).\n * @property {string} [input] The input when opening the dialog.\n *\n * @extends {React.Component<TextInputProps>}\n */\nclass TextInput extends React.Component {\n /**\n * @param {Readonly<TextInputProps>} props\n */\n constructor(props) {\n super(props);\n\n this.state = {\n text: this.props.input || this.props.value || '', // input is deprecated\n error: '',\n };\n }\n\n render() {\n return <Dialog\n open={!0}\n onClose={() => this.props.onClose(null)}\n aria-labelledby=\"form-dialog-title\"\n fullWidth={this.props.fullWidth !== undefined ? this.props.fullWidth : false}\n >\n <DialogTitle id=\"form-dialog-title\">{this.props.titleText}</DialogTitle>\n <DialogContent>\n <DialogContentText>\n {this.props.promptText}\n </DialogContentText>\n <TextField\n variant=\"standard\"\n autoFocus\n margin=\"dense\"\n error={!!this.state.error}\n title={this.state.error}\n value={this.state.text}\n label={this.props.labelText || ''}\n type={this.props.type || 'text'}\n onKeyPress={e => e.charCode === 13 && this.state.text && this.props.onClose(this.state.text)}\n onChange={e => {\n let error = '';\n if (this.props.verify) {\n error = !this.props.verify(e.target.value);\n }\n\n if (this.props.rule) {\n this.setState({ text: this.props.rule(e.target.value), error });\n } else {\n this.setState({ text: e.target.value, error });\n }\n }}\n fullWidth\n />\n </DialogContent>\n <DialogActions>\n <Button\n variant=\"contained\"\n disabled={!this.state.text || this.state.error}\n onClick={() => this.props.onClose(this.state.text)}\n color=\"primary\"\n startIcon={<IconCheck />}\n >\n {this.props.applyText || I18n.t('ra_Ok')}\n </Button>\n <Button\n color=\"grey\"\n variant=\"contained\"\n onClick={() => this.props.onClose(null)}\n startIcon={<IconClose />}\n >\n {this.props.cancelText || I18n.t('ra_Cancel')}\n </Button>\n </DialogActions>\n </Dialog>;\n }\n}\n\nTextInput.propTypes = {\n fullWidth: PropTypes.bool,\n onClose: PropTypes.func.isRequired,\n titleText: PropTypes.string.isRequired,\n promptText: PropTypes.string,\n labelText: PropTypes.string,\n cancelText: PropTypes.string,\n applyText: PropTypes.string,\n verify: PropTypes.func,\n type: PropTypes.string, // text, number, password, email\n value: PropTypes.string,\n};\n\n/** @type {typeof TextInput} */\nconst _export = withWidth()(TextInput);\nexport default _export;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AAUA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,UAAA,GAAAN,sBAAA,CAAAC,OAAA;AAAgD,SAAAM,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAA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A,CAAC;QACxC6B,SAAS,eAAE9E,MAAA,YAAA8C,aAAA,CAACzC,cAAA,CAAA8E,KAAS,MAAE;MAAE,GAExB,IAAI,CAACjD,KAAK,CAACkD,UAAU,IAAIH,gBAAI,CAACC,CAAC,CAAC,WAAW,CACxC,CACG,CACX,CAAC;IACb;EAAC;EAAA,OAAApD,SAAA;AAAA,EAtEmBuD,iBAAK,CAACC,SAAS;AAyEvCxD,SAAS,CAACyD,SAAS,GAAG;EAClBrC,SAAS,EAAEsC,qBAAS,CAACC,IAAI;EACzBxC,OAAO,EAAEuC,qBAAS,CAACE,IAAI,CAACC,UAAU;EAClCrC,SAAS,EAAEkC,qBAAS,CAACI,MAAM,CAACD,UAAU;EACtClC,UAAU,EAAE+B,qBAAS,CAACI,MAAM;EAC5B5B,SAAS,EAAEwB,qBAAS,CAACI,MAAM;EAC3BR,UAAU,EAAEI,qBAAS,CAACI,MAAM;EAC5BZ,SAAS,EAAEQ,qBAAS,CAACI,MAAM;EAC3BvB,MAAM,EAAEmB,qBAAS,CAACE,IAAI;EACtBzB,IAAI,EAAEuB,qBAAS,CAACI,MAAM;EAAE;EACxBpD,KAAK,EAAEgD,qBAAS,CAACI;AACrB,CAAC;;AAED;AACA,IAAMC,OAAO,GAAG,IAAAC,qBAAS,EAAC,CAAC,CAAChE,SAAS,CAAC;AAAC,IAAAiE,QAAA,GACxBF,OAAO;AAAAG,OAAA,cAAAD,QAAA"}
|
package/README.md
CHANGED
|
@@ -667,6 +667,12 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
|
|
|
667
667
|
-->
|
|
668
668
|
|
|
669
669
|
## Changelog
|
|
670
|
+
### 4.5.1 (2023-08-19)
|
|
671
|
+
* (foxriver76) fix dialog TextInput
|
|
672
|
+
|
|
673
|
+
### 4.5.0 (2023-08-18)
|
|
674
|
+
* (bluefox) Synchronize components with admin
|
|
675
|
+
|
|
670
676
|
### 4.4.8 (2023-08-17)
|
|
671
677
|
* (bluefox) Added translations
|
|
672
678
|
|
package/i18n/de.json
CHANGED
|
@@ -404,6 +404,8 @@
|
|
|
404
404
|
"ra_Edit ACL": "ACL bearbeiten",
|
|
405
405
|
"ra_Edit role": "Rolle bearbeiten",
|
|
406
406
|
"ra_Edit function": "Funktion bearbeiten",
|
|
407
|
-
"ra_Edit room": "
|
|
408
|
-
"ra_Edit alias": "Alias bearbeiten"
|
|
407
|
+
"ra_Edit room": "Raum bearbeiten",
|
|
408
|
+
"ra_Edit alias": "Alias bearbeiten",
|
|
409
|
+
"ra_View file": "Datei ansehen",
|
|
410
|
+
"ra_Del": "Entf"
|
|
409
411
|
}
|
package/i18n/en.json
CHANGED
package/i18n/es.json
CHANGED
|
@@ -403,7 +403,9 @@
|
|
|
403
403
|
"ra_Edit value": "Editar valor",
|
|
404
404
|
"ra_Edit ACL": "Editar LCA",
|
|
405
405
|
"ra_Edit role": "Editar rol",
|
|
406
|
-
"ra_Edit function": "
|
|
406
|
+
"ra_Edit function": "Función de edición",
|
|
407
407
|
"ra_Edit room": "Cuarto de edición",
|
|
408
|
-
"ra_Edit alias": "Editar alias"
|
|
408
|
+
"ra_Edit alias": "Editar alias",
|
|
409
|
+
"ra_View file": "Ver archivo",
|
|
410
|
+
"ra_Del": "Delete"
|
|
409
411
|
}
|
package/i18n/fr.json
CHANGED
|
@@ -405,5 +405,7 @@
|
|
|
405
405
|
"ra_Edit role": "Modifier le rôle",
|
|
406
406
|
"ra_Edit function": "Fonction d'édition",
|
|
407
407
|
"ra_Edit room": "Modifier la salle",
|
|
408
|
-
"ra_Edit alias": "Modifier l'alias"
|
|
408
|
+
"ra_Edit alias": "Modifier l'alias",
|
|
409
|
+
"ra_View file": "Voir la fiche",
|
|
410
|
+
"ra_Del": "Delete"
|
|
409
411
|
}
|
package/i18n/it.json
CHANGED
|
@@ -405,5 +405,7 @@
|
|
|
405
405
|
"ra_Edit role": "Modifica ruolo",
|
|
406
406
|
"ra_Edit function": "Funzione di modifica",
|
|
407
407
|
"ra_Edit room": "Modifica stanza",
|
|
408
|
-
"ra_Edit alias": "Modifica alias"
|
|
408
|
+
"ra_Edit alias": "Modifica alias",
|
|
409
|
+
"ra_View file": "Vedi il file",
|
|
410
|
+
"ra_Del": "Delete"
|
|
409
411
|
}
|
package/i18n/nl.json
CHANGED
|
@@ -403,7 +403,9 @@
|
|
|
403
403
|
"ra_Edit value": "Waarde bewerken",
|
|
404
404
|
"ra_Edit ACL": "ACL bewerken",
|
|
405
405
|
"ra_Edit role": "Rol bewerken",
|
|
406
|
-
"ra_Edit function": "
|
|
406
|
+
"ra_Edit function": "Bewerkingsfunctie",
|
|
407
407
|
"ra_Edit room": "Kamer bewerken",
|
|
408
|
-
"ra_Edit alias": "Alias bewerken"
|
|
408
|
+
"ra_Edit alias": "Alias bewerken",
|
|
409
|
+
"ra_View file": "Bestand bekijken",
|
|
410
|
+
"ra_Del": "Delete"
|
|
409
411
|
}
|
package/i18n/pl.json
CHANGED
package/i18n/pt.json
CHANGED
|
@@ -404,6 +404,8 @@
|
|
|
404
404
|
"ra_Edit ACL": "Editar ACL",
|
|
405
405
|
"ra_Edit role": "Editar papel",
|
|
406
406
|
"ra_Edit function": "Função de edição",
|
|
407
|
-
"ra_Edit room": "
|
|
408
|
-
"ra_Edit alias": "Editar alias"
|
|
407
|
+
"ra_Edit room": "Sala de edição",
|
|
408
|
+
"ra_Edit alias": "Editar alias",
|
|
409
|
+
"ra_View file": "Visualizar arquivo",
|
|
410
|
+
"ra_Del": "Delete"
|
|
409
411
|
}
|
package/i18n/ru.json
CHANGED
|
@@ -403,7 +403,9 @@
|
|
|
403
403
|
"ra_Edit value": "Изменить значение",
|
|
404
404
|
"ra_Edit ACL": "Изменить ACL-список",
|
|
405
405
|
"ra_Edit role": "Изменить роль",
|
|
406
|
-
"ra_Edit function": "
|
|
407
|
-
"ra_Edit room": "
|
|
408
|
-
"ra_Edit alias": "Изменить псевдоним"
|
|
406
|
+
"ra_Edit function": "Изменить функцию",
|
|
407
|
+
"ra_Edit room": "Редактировать комнату",
|
|
408
|
+
"ra_Edit alias": "Изменить псевдоним",
|
|
409
|
+
"ra_View file": "Посмотреть файл",
|
|
410
|
+
"ra_Del": "Delete"
|
|
409
411
|
}
|
package/i18n/uk.json
CHANGED
|
@@ -403,7 +403,9 @@
|
|
|
403
403
|
"ra_Edit value": "Редагувати значення",
|
|
404
404
|
"ra_Edit ACL": "Редагувати ACL",
|
|
405
405
|
"ra_Edit role": "Редагувати роль",
|
|
406
|
-
"ra_Edit function": "
|
|
406
|
+
"ra_Edit function": "функція редагування",
|
|
407
407
|
"ra_Edit room": "Редагувати кімнату",
|
|
408
|
-
"ra_Edit alias": "Редагувати псевдонім"
|
|
408
|
+
"ra_Edit alias": "Редагувати псевдонім",
|
|
409
|
+
"ra_View file": "Переглянути файл",
|
|
410
|
+
"ra_Del": "Delete"
|
|
409
411
|
}
|
package/i18n/zh-cn.json
CHANGED
|
@@ -404,6 +404,8 @@
|
|
|
404
404
|
"ra_Edit ACL": "编辑访问控制列表",
|
|
405
405
|
"ra_Edit role": "编辑角色",
|
|
406
406
|
"ra_Edit function": "编辑功能",
|
|
407
|
-
"ra_Edit room": "
|
|
408
|
-
"ra_Edit alias": "编辑别名"
|
|
407
|
+
"ra_Edit room": "编辑室",
|
|
408
|
+
"ra_Edit alias": "编辑别名",
|
|
409
|
+
"ra_View file": "查看文件",
|
|
410
|
+
"ra_Del": "Delete"
|
|
409
411
|
}
|