Fixing i18n for deprecated attachments

stable
Alejandro Alonso 2015-05-19 13:04:05 +02:00
parent d66bb4c326
commit 47d4e719d6
3 changed files with 4 additions and 3 deletions

View File

@ -243,12 +243,13 @@
"SECTION_NAME": "attachments",
"TITLE": "{{ fileName }} uploaded on {{ date }}",
"DESCRIPTION": "Type a short description",
"DEPRECATED": "(deprecated)",
"DEPRECATED_FILE": "Deprecated?",
"ADD": "Add new attachment. <%- maxFileSizeMsg %>",
"MAX_FILE_SIZE": "[Max. size: {{maxFileSize}}]",
"SHOW_DEPRECATED": "+ show deprecated atachments",
"HIDE_DEPRECATED": "- hide deprecated atachments",
"COUNT_DEPRECATED": "({{ctrl.deprecatedAttachmentsCount }} deprecated)",
"COUNT_DEPRECATED": "({{ counter }} deprecated)",
"MAX_UPLOAD_SIZE": "Maximum upload size is {{maxFileSize}}",
"DATE": "DD MMM YYYY [at] hh:mm",
"ERROR_UPLOAD_ATTACHMENT": "We have not been able to upload '{{fileName}}'. {{errorMessage}}",

View File

@ -7,7 +7,7 @@
.attachment-comments
<% if (isDeprecated){ %>
span.deprecated-file {{ 'ATTACHMENT.DEPRECATED' | translate}}
span.deprecated-file {{'ATTACHMENT.DEPRECATED' | translate}}
<% } %>
span <%- description %>

View File

@ -25,4 +25,4 @@ section.attachments
a.more-attachments(href="", title="{{'ATTACHMENT.SHOW_DEPRECATED' | translate}}", ng-if="ctrl.deprecatedAttachmentsCount > 0")
span.text(data-type="show", translate="ATTACHMENT.SHOW_DEPRECATED")
span.text.hidden(data-type="hide", translate="ATTACHMENT.HIDE_DEPRECATED")
span.more-attachments-num(translate="ATTACHMENT.COUNT_DEPRECATED")
span.more-attachments-num(translate="ATTACHMENT.COUNT_DEPRECATED", translate-values="{counter: '{{ctrl.deprecatedAttachmentsCount}}'}")