Ver Fonte

Translate identity states

Danilo Bargen há 5 anos atrás
pai
commit
b4c1c2d51b

+ 4 - 1
public/i18n/cs.json

@@ -207,7 +207,10 @@
         "PINNED_CONVERSATION_ERROR": "Konverzace nemůže být připnuta",
         "UNPINNED_CONVERSATION_OK": "Konverzace odepnuta",
         "UNPINNED_CONVERSATION_ERROR": "Konverzace nemůže být odepnuta",
-        "ME": "Já"
+        "ME": "Já",
+        "CONTACT_STATE_INACTIVE": "Neaktivní",
+        "CONTACT_STATE_INVALID": "Chybný",
+        "CONTACT_STATE_REVOKED": "Odvolaná"
     },
     "messageStates": {
         "WE_ACK": "Poslali jste \"palec nahoru\"",

+ 4 - 1
public/i18n/de.json

@@ -207,7 +207,10 @@
         "PINNED_CONVERSATION_ERROR": "Unterhaltung konnte nicht angepinnt werden",
         "UNPINNED_CONVERSATION_OK": "Unterhaltung entpinnt",
         "UNPINNED_CONVERSATION_ERROR": "Unterhaltung konnte nicht entpinnt werden",
-        "ME": "Ich"
+        "ME": "Ich",
+        "CONTACT_STATE_INACTIVE": "Inaktiv",
+        "CONTACT_STATE_INVALID": "Ungültig",
+        "CONTACT_STATE_REVOKED": "Widerrufen"
     },
     "messageStates": {
         "WE_ACK": "Sie haben ein Daumen-Hoch gesendet",

+ 4 - 1
public/i18n/en.json

@@ -207,7 +207,10 @@
         "PINNED_CONVERSATION_ERROR": "Conversation could not be pinned",
         "UNPINNED_CONVERSATION_OK": "Conversation unpinned",
         "UNPINNED_CONVERSATION_ERROR": "Conversation could not be unpinned",
-        "ME": "Me"
+        "ME": "Me",
+        "CONTACT_STATE_INACTIVE": "Inactive",
+        "CONTACT_STATE_INVALID": "Invalid",
+        "CONTACT_STATE_REVOKED": "Revoked"
     },
     "messageStates": {
         "WE_ACK": "You sent thumbs-up",

+ 4 - 1
public/i18n/es.json

@@ -207,7 +207,10 @@
         "PINNED_CONVERSATION_ERROR": "La conversación no se pudo anclar",
         "UNPINNED_CONVERSATION_OK": "Conversación desanclada",
         "UNPINNED_CONVERSATION_ERROR": "La conversación no se pudo desanclar",
-        "ME": "Yo"
+        "ME": "Yo",
+        "CONTACT_STATE_INACTIVE": "Inactivo",
+        "CONTACT_STATE_INVALID": "No válido",
+        "CONTACT_STATE_REVOKED": "Borrado"
     },
     "messageStates": {
         "WE_ACK": "Enviaste un pulgar hacia arriba",

+ 4 - 1
public/i18n/fr.json

@@ -207,7 +207,10 @@
         "PINNED_CONVERSATION_ERROR": "Les conversations n'ont pas pu être épinglées",
         "UNPINNED_CONVERSATION_OK": "Les conversations non épinglées",
         "UNPINNED_CONVERSATION_ERROR": "La conversation n'a pas pu être désépinglé",
-        "ME": "Moi"
+        "ME": "Moi",
+        "CONTACT_STATE_INACTIVE": "Inactif",
+        "CONTACT_STATE_INVALID": "Erroné",
+        "CONTACT_STATE_REVOKED": "Supprimé"
     },
     "messageStates": {
         "WE_ACK": "Vous avez envoyé un pouce levé",

+ 4 - 1
public/i18n/nl.json

@@ -206,7 +206,10 @@
         "PINNED_CONVERSATION_ERROR": "Conversatie kon niet worden vastgepind",
         "UNPINNED_CONVERSATION_OK": "Conversatie losgemaakt",
         "UNPINNED_CONVERSATION_ERROR": "Conversatie kon niet worden losgemaakt",
-        "ME": "Me"
+        "ME": "Me",
+        "CONTACT_STATE_INACTIVE": "Inactief",
+        "CONTACT_STATE_INVALID": "Ongeldig",
+        "CONTACT_STATE_REVOKED": "Verwijderde"
     },
     "messageStates": {
         "WE_ACK": "Je hebt een duim omhoog gestuurd",

+ 3 - 1
public/i18n/pl.json

@@ -207,7 +207,9 @@
         "PINNED_CONVERSATION_ERROR": "Konwersacja nie mogła zostać przypięta",
         "UNPINNED_CONVERSATION_OK": "Konwersacja odpięta",
         "UNPINNED_CONVERSATION_ERROR": "Konwersacja nie mogła zostać odpięta",
-        "ME": "Ja"
+        "ME": "Ja",
+        "CONTACT_STATE_INACTIVE": "Nieaktywny",
+        "CONTACT_STATE_INVALID": "Nieprawidłowy"
     },
     "messageStates": {
         "WE_ACK": "Wysłałeś kciuk w górę",

+ 3 - 1
public/i18n/pt.json

@@ -192,7 +192,9 @@
         "PINNED_CONVERSATION_ERROR": "Conversation could not be pinned",
         "UNPINNED_CONVERSATION_OK": "Conversation unpinned",
         "UNPINNED_CONVERSATION_ERROR": "Conversation could not be unpinned",
-        "ME": "Eu"
+        "ME": "Eu",
+        "CONTACT_STATE_INACTIVE": "Inativa",
+        "CONTACT_STATE_INVALID": "Inválida"
     },
     "messageStates": {
         "WE_ACK": "You sent thumbs-up",

+ 2 - 1
src/partials/messenger.receiver/contact.html

@@ -11,7 +11,8 @@
 				<dd>
 					<span class="complex-values">
 						<span>{{ ctrl.receiver.id }}</span>
-						<span ng-if="ctrl.receiver.state !== 'ACTIVE'">({{ ctrl.receiver.state }})</span>
+                        <span ng-if="ctrl.receiver.state == 'INVALID'">({{ 'messenger.CONTACT_STATE_INVALID' | translate }}/{{ 'messenger.CONTACT_STATE_REVOKED' | translate }})</span>
+                        <span ng-if="ctrl.receiver.state == 'INACTIVE'">({{ 'messenger.CONTACT_STATE_INACTIVE' | translate }})</span>
 						<span class="indicator-icon" ng-if="ctrl.showBlocked()"
 							  translate-attr="{'aria-label': 'messenger.THREEMA_BLOCKED_RECEIVER'}">
 								(<span translate>messenger.THREEMA_BLOCKED_RECEIVER</span>)