angular.module("translationLogin", ['pascalprecht.translate'])
  .config(['$translateProvider', function ($translateProvider) {

    $translateProvider.translations('English', {
        "views.main.Username":'Username',
        "passwordTip": "Password Must contains at least one uppercase, one lowercase, one number, and one special character",
        "views.main.Password": 'Password',
        "directives.language-select.Language":'Language',
        "views.main.cancel": "Cancel",
        "en-option": "English",
        "de-option": "German",
        "ch-option": "Chinese",
        "Login": "LOGIN",
        "User-Enter": "Username",
        "Pass-Enter": "Password",
        "UserPassRequired": "Both Username and Password are required.",
        "BadUser": "Invalid Username or Password!",
        "lang":'Language',
        "title": "SUPPLY CHAIN OPERATING NETWORK",
        "forgotPassword": "Forgot Password!",
        "loginBlock": "Login Block",
        "oldPass": "Current Password",
        "newPass": "New Password",
        "changePass": "change Password",
        "gobackLogin": "Go back to login",
        "PASSWORD_TOO_SHORT": "Password must has atleast 8 character",
        "PASSWORD_INSUFFICIENT_LOWERCASE": "Password must contain at least one lowercase",
        "PASSWORD_INSUFFICIENT_UPPERCASE": "Password must contain at least one uppercase",
        "PASSWORD_INSUFFICIENT_DIGIT": "Password must contain at least one digit",
        "PASSWORD_INSUFFICIENT_SPECIAL": "Password must contain at least one special character",
        "New password failed validation.": "New password failed validation.",
        "Username or Password is wrong.": "Username or Password is wrong.",
        "name": "Name",
        "identifier": 'Identifier',
        "idType": "Identifier Type",
        "childCompany": "Child Company",
        "edit": "Edit",
        "findCompany": "Find Company",
        "addCompany": "ADD COMPANY",
        "parentComp": "Parent Company",
        "saveChange": "Save",
        "editComp": "Edit Company",
        "listChildren": "List Children",
        "reset": "Reset",
        "refresh": "Refresh",
        "policy": 'By clicking Login you accept the Elemica',
        "paccept": "Privacy Policy",
        "finduser": "Find User",
        "adduser": "ADD USER",
        "fname": "First Name",
        "lname": "Last Name",
        "email": "Email",
        "phone": "Phone",
        "llogin": "Last Login",
        "locate": "Location",
        "home": "Home",
        "comps": "Companies",
        "users": "Users",
        "products": "Products",
        "edituser": "Edit User",
        'confirmpass': "Confirm Password",
        'itemPerPage': "Items per page",
        'searchName': 'Search for Name',
        'searchCompany': 'Search for Company',
        'searchId': "Search for ID",
        "searchUser": 'Search for User',
        "compId": "Company",
        'rolename': 'Role Name',
        'companyRole': 'Company Roles',
        'userRoles': 'User Roles',
        'addRole': 'Add Role',
        'noRoles': "There is no role for this company",
        'uRole': 'User Roles',
        'add': 'ADD',
        'deleteRole': 'Delete Role',
        'Upload Product XReference': 'Upload Product XReference',
        'Products XReference File': 'Products XReference File',
        'findproduct': 'Find Product',
        'searchProduct': 'Search for Product',
        'addProduct': 'ADD PRODUCT',
        'description': 'Description',
        'editProduct': 'Edit Product',
        'reference': 'Cross References',
        'productId': 'Product Id',
        'productName': 'Product Name',
        'companyProducts': 'Company Products',
        'bi': 'Bi Directional',
        'uni': 'Uni Directional',
        'addRef': 'Add Cross Reference',
        "UserIdRequired": 'User Info Required',
        'logout': 'Logout'

      })
      .translations('German', {
        "views.main.Username":'Benutzername',
        "views.main.Password": 'Passwort',
        "passwordTip": "Das Passwort muss mindestens einen Großbuchstaben , einen Klein, eine Zahl und ein Sonderzeichen",
        "directives.language-select.Language":'Sprache',
        "views.main.cancel": "stornieren",
        "de-option": "deutsch",
        "en-option": "englisch",
        "ch-option": "Chinesisch",
        "Login": "Einloggen",
        "User-Enter": "Benutzername",
        "Pass-Enter": "Passwort",
        "UserPassRequired": "Sowohl Benutzername und Kennwort erforderlich.",
        "BadUser": "Ungültiger Benutzername oder Passwort!",
        "lang": "Sprache",
        "title": "Supply-Chain-Netzwerkbetriebs",
        "forgotPassword": "Passwort vergessen!",
        "loginBlock": "Login Blocken",
        "oldPass": "Aktuelles Passwort",
        "newPass": "Neues Passwort",
        "changePass": "Passwort ändern",
        "gobackLogin": "Zurück zum Login",
        "PASSWORD_TOO_SHORT": "Passwort ist zu kurz",
        "PASSWORD_INSUFFICIENT_LOWERCASE": "Das Passwort muss mindestens einen Klein enthalten",
        "PASSWORD_INSUFFICIENT_UPPERCASE": "Das Passwort muss mindestens einen Groß enthalten",
        "PASSWORD_INSUFFICIENT_DIGIT": "Das Passwort muss mindestens eine Ziffer enthalten",
        "PASSWORD_INSUFFICIENT_SPECIAL": "Das Passwort muss mindestens ein Sonderzeichen enthalten",
        "New password failed validation.": "Neues Passwort Überprüfung fehlgeschlagen.",
        "Username or Password is wrong.": "Benutzername oder Passwort sind falsch.",
        "name": "Name",
        "identifier": "Kennung",
        "idType": "Kennung Typ",
        'childCompany': "Kinder Unternehmen",
        "edit": "redigieren",
        "findCompany": "Finden Sie Unternehmen",
        "addCompany": "Unternehmen hinzufügen",
        "parentComp": "Muttergesellschaft",
        "saveChange": "Sparen",
        "editComp": "Bearbeiten Firma",
        "listChildren": "Liste Kinder",
        "reset":"Zurücksetzen",
        "refresh": "Aktualisieren",
        'policy': 'Durch Klicken auf Anmelden akzeptieren Sie die Elemica',
        "paccept": "Datenschutz-Bestimmungen",
        "finduser": "Nutzer finden",
        "adduser": "Benutzer hinzufügen",
        "fname": "Vorname",
        "lname": "Nachname",
        "email": "Email",
        "phone": "Telefon",
        "llogin": "Letzte Anmeldung",
        "locate": "lokalisieren",
        "home": "Zuhause",
        "comps":"Firmen",
        "users": "Benutzer",
        "products": "Produkte",
        "edituser": "Benutzer bearbeiten",
        "confirmpass": "Passwort bestätigen",
        'itemPerPage': "Artikel pro Seite",
        'searchName': 'Suche nach Namen',
        'searchCompany': 'Suche nach Unternehmen',
        'searchId': "Suche nach ID",
        'searchUser': 'Suche nach Benutzer',
        'compId': 'Unternehmen',
        'rolename': 'Rolle Name',
        'companyRole': 'Firma Rolle',
        'userRoles': 'Benutzerrollen',
        'addRole': 'fügen Rolle',
        'noRoles': 'Es gibt keine Rollen für dieses Unternehmen',
        'uRole': 'Benutzerrollen',
        'add': 'HINZUFÜGEN',
        'deleteRole': 'Rolle löschen',
        'Upload Product XReference': 'Produkt hochladen',
        'Products XReference File': 'Upload Artikel Datei',
        'findproduct': 'Finden Sie Produkt',
        'searchProduct': 'Suche nach Produkt',
        'addProduct': 'Produkt hinzufügen',
        'description': 'Bezeichnung',
        'editProduct': 'Produkt bearbeiten',
        'reference': 'Querverweis',
        'productId': 'Produkt ID',
        'productName': 'Produktname',
        'companyProducts': 'Unternehmen Produkte',
        'bi': 'Richtungs-bi',
        'uni': 'Richtungs-uni',
        'addRef': 'Verweis hinzufügen',
        "UserIdRequired": 'User Info Erforderlich',
        'logout': 'abmelden'
      })
      .translations('Chinese', {
        "views.main.Username":'用户名',
        "views.main.Password": '密码',
        "passwordTip": "密码必须包含至少一个大写，一个小写，一个数字和一个特殊字符",
        "directives.language-select.Language":'语言',
        "views.main.cancel": "取消",
        "en-option": "英语",
        "de-option": "德国",
        "ch-option":"中国",
        "Login": "登录",
        "User-Enter": '输入用户名',
        "Pass-Enter": "输入密码",
        "UserPassRequired": "这两个用户名和密码是必需的.",
        "BadUser": "无效的用户名或密码！",
        "lang":'语言',
        "title": "供应链运营网络",
        "forgotPassword": "忘了密码！",
        "loginBlock": "登录块",
        "oldPass": "当前密码",
        "newPass": "新密码",
        "changePass": "更改密码",
        "gobackLogin": "返回首页",
        "PASSWORD_TOO_SHORT": "密码太短",
        "PASSWORD_INSUFFICIENT_LOWERCASE": "密码必须包含至少一个小写",
        "PASSWORD_INSUFFICIENT_UPPERCASE": "密码必须包含至少一个大写",
        "PASSWORD_INSUFFICIENT_DIGIT": "密码必须包含至少一个数字",
        "PASSWORD_INSUFFICIENT_SPECIAL": "密码必须包含至少一个特殊字符",
        "New password failed validation.": "新密码验证失败。",
        "Username or Password is wrong.": "用户名或密码错误。",
        "name": "名字",
        "identifier": "识别码",
        "idType": "标识符类型",
        "childCompany": "儿童公司",
        'edit': "编辑",
        "findCompany": "查找公司",
        "addCompany": "添加公司",
        "parentComp": "母公司",
        "saveChange": "保存",
        "editComp": "编辑公司",
        "listChildren": "名单儿童",
        "reset": "重置",
        "refresh": "刷新",
        'policy': '点击登录您接受Elemica公司',
        "paccept": "隐私政策",
        "finduser": "查找用户",
        "adduser": "添加用户",
        "fname": "名字",
        "lname": "姓",
        "email": "电子邮件",
        "phone": "电话",
        "llogin": "上次登录",
        "locate": "找到",
        "home": "家",
        "comps": "企业",
        "users": "用户",
        "products": "制品",
        "edituser": "编辑用户",
        'confirmpass': "确认密码",
        'itemPerPage': '每页项目',
        'searchName': '搜索名称',
        'searchCompany': '搜索公司',
        'searchId': "搜索鉴定",
        'searchUser': '搜索用户',
        'compId': '公司标识',
        'rolename': '角色名称',
        'companyRole': '公司角色',
        'userRoles': '用户角色',
        'addRole': '添加角色',
        'noRoles': '目前这家公司的任何角色',
        'uRole': '用户角色',
        'add': '加',
        'deleteRole': '删除角色',
        'Upload Product XReference': '上传产品',
        'Products XReference File': '上传产品文件',
        'findproduct': '查找产品',
        'searchProduct': '搜索产品',
        'addProduct': '添加产品',
        'description': '描写',
        'editProduct': '编辑产品',
        'reference': '交叉参考',
        'productId': '产品编号',
        'productName': '产品名',
        'companyProducts': '公司产品',
        'bi': '双定向',
        'uni': '单向的，',
        'addRef': '添加引用',
        "UserIdRequired": '用户信息要求',
        'logout': '登出'

      });
    //$translateProvider.useLocalStorage();
    $translateProvider.preferredLanguage('English');// is applied on first load
  }]);
