<li routerLinkActive="active"
class="tc_submenuitem tc_submenuitem_monitoring"
*ngIf="(isAlertmanagerConfigured || isPrometheusConfigured) && 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>
# I18N
npm run i18n:extract
-i18n_lint=`awk '/<source> |<source>$| <\/source>/,/<\/context-group>/ {printf "%-4s ", NR; print}' src/locale/messages.xlf`
-if [[ ! -z $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 "The 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
if [ `uname` != "FreeBSD" ]; then