From 2762277c60db7df5ad3214b10a0dd93d4f2f1128 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Fri, 10 Mar 2017 08:53:44 +0000
Subject: [PATCH] #3527 feature - Added more features to angular2 version

---
 securis/src/main/webapp/src/app/common/i18n.ts |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/securis/src/main/webapp/src/app/common/i18n.ts b/securis/src/main/webapp/src/app/common/i18n.ts
index f7ca62c..b8132e1 100644
--- a/securis/src/main/webapp/src/app/common/i18n.ts
+++ b/securis/src/main/webapp/src/app/common/i18n.ts
@@ -79,6 +79,9 @@
      * $L.get('Hello {0}!!', 'John'); // This returns: "Hola John!!" if language is spanish
      */
     get(msg: string) : string {
+        if (msg == null) {
+            return '';
+        }
         msg = msg.trim();
         var trans_msg = msg;
         
@@ -121,6 +124,7 @@
 })
 export class LocaleServiceModule {
     static withConfig(initLang?: string): ModuleWithProviders {
+        console.log('Init lang with ' + initLang);
         return {
             ngModule: LocaleServiceModule,
             providers: [

--
Gitblit v1.3.2