Translate some for #419

This commit is contained in:
the-djmaze 2022-06-02 23:13:20 +02:00
parent be2296185f
commit a6d97a601c
7 changed files with 40 additions and 32 deletions

View file

@ -103,10 +103,10 @@ export class MessageModel extends AbstractModel {
// isJunk: () => this.flags().includes('$junk') && !this.flags().includes('$nonjunk'), // isJunk: () => this.flags().includes('$junk') && !this.flags().includes('$nonjunk'),
// isPhishing: () => this.flags().includes('$phishing'), // isPhishing: () => this.flags().includes('$phishing'),
tags: () => this.flags().map(value => tagsToHTML: () => this.flags().map(value =>
('\\' == value[0] || '$forwarded' == value) ('\\' == value[0] || '$forwarded' == value)
? '' ? ''
: '<span class="msgflag-'+value+'">' + i18n('MESSAGE_TAGS/'+value,0,value) + '</span>' : '<span class="focused msgflag-'+value+'">' + i18n('MESSAGE_TAGS/'+value,0,value) + '</span>'
).join(' ') ).join(' ')
}); });
} }

View file

@ -90,6 +90,14 @@ html.rl-no-preview-pane {
} }
} }
.messageTags {
margin-top: 6px;
}
.messageTags * * {
border: 1px solid #808080;
padding: 2px;
}
.messageItemHeader { .messageItemHeader {
background-color: #f8f8f8; background-color: #f8f8f8;

View file

@ -152,16 +152,16 @@
"LINK_DOWNLOAD_AS_ZIP": "Als ZIP-Datei herunterladen", "LINK_DOWNLOAD_AS_ZIP": "Als ZIP-Datei herunterladen",
"SPAM_SCORE": "Spam-Score", "SPAM_SCORE": "Spam-Score",
"HAS_VIRUS_WARNING": "WARNUNG: Virus erkannt", "HAS_VIRUS_WARNING": "WARNUNG: Virus erkannt",
"TAGS": "Tags" "TAGS": "Stichworte"
}, },
"MESSAGE_TAGS": { "MESSAGE_TAGS": {
"$important": "Important", "$important": "Wichtig",
"$todo": "To Do", "$todo": "Machen",
"$label1": "Important", "$label1": "Wichtig",
"$label2": "Work", "$label2": "Arbeit",
"$label3": "Personal", "$label3": "Persönlich",
"$label4": "To Do", "$label4": "Machen",
"$label5": "Later" "$label5": "Später"
}, },
"READ_RECEIPT": { "READ_RECEIPT": {
"SUBJECT": "Empfangsbestätigung (angezeigt) - %SUBJECT%", "SUBJECT": "Empfangsbestätigung (angezeigt) - %SUBJECT%",

View file

@ -152,16 +152,16 @@
"LINK_DOWNLOAD_AS_ZIP": "Télécharger le zip", "LINK_DOWNLOAD_AS_ZIP": "Télécharger le zip",
"SPAM_SCORE": "Score de spam", "SPAM_SCORE": "Score de spam",
"HAS_VIRUS_WARNING": "ATTENTION : virus détecté", "HAS_VIRUS_WARNING": "ATTENTION : virus détecté",
"TAGS": "Tags" "TAGS": "Balises"
}, },
"MESSAGE_TAGS": { "MESSAGE_TAGS": {
"$important": "Important", "$important": "Important",
"$todo": "To Do", "$todo": "Faire",
"$label1": "Important", "$label1": "Important",
"$label2": "Work", "$label2": "Travailler",
"$label3": "Personal", "$label3": "Personnel",
"$label4": "To Do", "$label4": "Faire",
"$label5": "Later" "$label5": "Plus tard"
}, },
"READ_RECEIPT": { "READ_RECEIPT": {
"SUBJECT": "Accusé de réception (affiché) - %SUBJECT%", "SUBJECT": "Accusé de réception (affiché) - %SUBJECT%",

View file

@ -152,16 +152,16 @@
"LINK_DOWNLOAD_AS_ZIP": "Scarica come archivio ZIP", "LINK_DOWNLOAD_AS_ZIP": "Scarica come archivio ZIP",
"SPAM_SCORE": "Punteggio Spam", "SPAM_SCORE": "Punteggio Spam",
"HAS_VIRUS_WARNING": "AVVISO: rilevato virus", "HAS_VIRUS_WARNING": "AVVISO: rilevato virus",
"TAGS": "Tags" "TAGS": "Tag"
}, },
"MESSAGE_TAGS": { "MESSAGE_TAGS": {
"$important": "Important", "$important": "Importante",
"$todo": "To Do", "$todo": "Da fare",
"$label1": "Important", "$label1": "Importante",
"$label2": "Work", "$label2": "Opera",
"$label3": "Personal", "$label3": "Personale",
"$label4": "To Do", "$label4": "Da fare",
"$label5": "Later" "$label5": "Dopo"
}, },
"READ_RECEIPT": { "READ_RECEIPT": {
"SUBJECT": "Avviso di lettura - %SUBJECT%", "SUBJECT": "Avviso di lettura - %SUBJECT%",

View file

@ -155,12 +155,12 @@
"TAGS": "Tags" "TAGS": "Tags"
}, },
"MESSAGE_TAGS": { "MESSAGE_TAGS": {
"$important": "Important", "$important": "Belangrijk",
"$todo": "To Do", "$todo": "Te doen",
"$label1": "Important", "$label1": "Belangrijk",
"$label2": "Work", "$label2": "Werk",
"$label3": "Personal", "$label3": "Persoonlijk",
"$label4": "To Do", "$label4": "Te doen",
"$label5": "Later" "$label5": "Later"
}, },
"READ_RECEIPT": { "READ_RECEIPT": {

View file

@ -195,9 +195,9 @@
</table> </table>
</div> </div>
<div class="hasVirus" data-bind="visible: message().hasVirus()" data-i18n="MESSAGE/HAS_VIRUS_WARNING"></div> <div class="hasVirus" data-bind="visible: message().hasVirus()" data-i18n="MESSAGE/HAS_VIRUS_WARNING"></div>
<div class="informationShort"> <div class="messageTags">
<span data-i18n="MESSAGE/TAGS"></span>: <span data-i18n="MESSAGE/TAGS"></span>:
<span data-bind="html: message().tags()"></span> <span data-bind="html: message().tagsToHTML()"></span>
</div> </div>
</div> </div>
<div id="messageItem" data-bind="css: message().lineAsCss()"> <div id="messageItem" data-bind="css: message().lineAsCss()">