this.mgrModuleService.updateConfig('telemetry', config).subscribe(
() => {
this.disableModule(
- 'Your settings have been applied successfully. ' +
- 'Due to privacy/legal reasons the Telemetry module is now disabled until you ' +
- 'complete the next step and accept the license.',
+ this.i18n(
+ `Your settings have been applied successfully. \
+Due to privacy/legal reasons the Telemetry module is now disabled until you \
+complete the next step and accept the license.`
+ ),
() => {
this.getReport();
}
disableModule(message: string = null, followUpFunc: Function = null) {
this.telemetryService.enable(false).subscribe(() => {
if (message) {
- this.notificationService.show(NotificationType.success, this.i18n(message));
+ this.notificationService.show(NotificationType.success, message);
}
if (followUpFunc) {
followUpFunc();
let userMessage = '';
if (smartData.smartctl_error_code === -22) {
userMessage = this.i18n(
- 'Smartctl has received an unknown argument (error code ' +
- '{{code}}). You may be using an ' +
- 'incompatible version of smartmontools. Version >= 7.0 of ' +
- 'smartmontools is required to successfully retrieve data.',
+ `Smartctl has received an unknown argument (error code {{code}}). \
+You may be using an incompatible version of smartmontools. Version >= 7.0 of \
+smartmontools is required to successfully retrieve data.`,
{ code: smartData.smartctl_error_code }
);
} else {
<li routerLinkActive="active"
class="tc_submenuitem tc_submenuitem_monitoring"
*ngIf="permissions.prometheus.read">
- <a i18n
- routerLink="/monitoring">
+ <a routerLink="/monitoring">
<ng-container i18n>Monitoring</ng-container>
<small *ngIf="prometheusAlertService.alerts.length > 0"
class="badge badge-danger">{{ prometheusAlertService.alerts.length }}</small>
'Cannot contain any sequential characters e.g. "abc"'
),
pwdPolicyCheckComplexityEnabled: this.i18n(
- 'Must consist of characters from the following groups:\n' +
- ' * Alphabetic a-z, A-Z\n' +
- ' * Numbers 0-9\n' +
- ' * Special chars: !"#$%& \'()*+,-./:;<=>?@[\\]^_`{{|}}~\n' +
- ' * Any other characters (signs)'
+ `Must consist of characters from the following groups:
+ * Alphabetic a-z, A-Z
+ * Numbers 0-9
+ * Special chars: !"#$%& '()*+,-./:;<=>?@[\\]^_\`{{|}}~
+ * Any other characters (signs)`
)
};
helpText = helpText.concat(
# I18N
npm run i18n:extract
-i18n_lint=`awk '/<source> |<source>$| <\/source>/,/<\/context-group>/ {printf "%-4s ", NR; print}' src/locale/messages.xlf`
-if [ "$i18n_lint" ]; then
- echo -e "The following source translations in 'messages.xlf' need to be \
-fixed, please check the I18N suggestions in 'HACKING.rst':\n"
- echo "${i18n_lint}"
+if [ $? -gt 0 ]; then
failed=true
+ echo -e "\nTranslations extraction has failed."
+else
+ i18n_lint=`awk '/<source> |<source>$| <\/source>/,/<\/context-group>/ {printf "%-4s ", NR; print}' src/locale/messages.xlf`
+ if [ "$i18n_lint" ]; then
+ echo -e "\nThe following source translations in 'messages.xlf' need to be \
+ fixed, please check the I18N suggestions in 'HACKING.rst':\n"
+ echo "${i18n_lint}"
+ failed=true
+ fi
fi
# npm resolutions