Arthur Bogaart pushed to branch master at cms-community / 
hippo-addon-channel-manager


Commits:
705daff1 by Bert Leunis at 2018-03-15T16:05:05+01:00
CHANNELMGR-1758 Add translation keys for document fields in CC step 1

They are all placeholder texts. All words with capitals (in English)
since they work like titles for the fields.

- - - - -


4 changed files:

- 
frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/documentLocation/documentLocationField.html
- 
frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/nameUrlFields/nameUrlFields.html
- 
frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/step1/step1.html
- frontend-ng/src/i18n/en.json


Changes:

=====================================
frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/documentLocation/documentLocationField.html
=====================================
--- 
a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/documentLocation/documentLocationField.html
+++ 
b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/documentLocation/documentLocationField.html
@@ -20,17 +20,17 @@
     <md-input-container class="create-content-field qa-document-location">
       <div class="input-overlay"
            tabindex="-1"
-           ng-click="$ctrl.openPicker()" 
+           ng-click="$ctrl.openPicker()"
            title="{{ $ctrl.pathLabel }}">
         <div>
-          <span ng-repeat="folder in $ctrl.folders track by folder.path" 
+          <span ng-repeat="folder in $ctrl.folders track by folder.path"
                 ng-class="{ 'highlight': folder.exists 
}"><span>/</span>{{::folder.displayName }}</span>
         </div>
         <md-icon class="material-icons">search</md-icon>
       </div>
       <input ng-model="$ctrl.path"
              name="path"
-             placeholder="Document location"
+             placeholder="{{ ::'PLACEHOLDER_DOCUMENT_LOCATION' | translate }}"
              disabled
              required>
       <div ng-messages="form.controls.path && form.controls.path.touched">


=====================================
frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/nameUrlFields/nameUrlFields.html
=====================================
--- 
a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/nameUrlFields/nameUrlFields.html
+++ 
b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/nameUrlFields/nameUrlFields.html
@@ -19,7 +19,7 @@
   <md-input-container class="create-content-field qa-name-field">
     <input class="name-input-element"
            name="nameField"
-           placeholder="Document name"
+           placeholder="{{ ::'PLACEHOLDER_DOCUMENT_NAME' | translate }}"
            ng-model="$ctrl.nameField"
            ng-change="$ctrl.onNameChange($event)"
            type="text"
@@ -36,10 +36,10 @@
     <md-input-container class="create-content-field qa-url-field">
       <input class="url-input-element"
              name="url"
-             placeholder="URL"
+             placeholder="{{ ::'PLACEHOLDER_DOCUMENT_URL' | translate }}"
              type="text"
              ng-model="$ctrl.urlField"
-             ng-disabled="!$ctrl.isManualUrlMode" 
+             ng-disabled="!$ctrl.isManualUrlMode"
              autocomplete="off"
              required>
 


=====================================
frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/step1/step1.html
=====================================
--- 
a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/step1/step1.html
+++ 
b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/createContent/step1/step1.html
@@ -28,7 +28,7 @@
     <md-select ng-model="$ctrl.documentType"
                name="documentType"
                required
-               placeholder="Document type"
+               placeholder="{{ ::'PLACEHOLDER_DOCUMENT_TYPE' | translate }}"
                ng-disabled="$ctrl.documentTypes.length === 1"
                class="input-document-type create-content-field 
qa-document-type-select"
                ng-class="{ 'hide-select-arrow': $ctrl.documentTypes.length === 
1 }">


=====================================
frontend-ng/src/i18n/en.json
=====================================
--- a/frontend-ng/src/i18n/en.json
+++ b/frontend-ng/src/i18n/en.json
@@ -155,6 +155,10 @@
   "PICKER_TITLE": "Select internal link",
   "PICKER_TYPE_DOCUMENTS": "Documents",
   "PICKER_TYPE_SITEMAP_ITEMS": "Pages (Sitemap Items)",
+  "PLACEHOLDER_DOCUMENT_LOCATION": "Document Location",
+  "PLACEHOLDER_DOCUMENT_NAME": "Document Name",
+  "PLACEHOLDER_DOCUMENT_TYPE": "Document Type",
+  "PLACEHOLDER_DOCUMENT_URL": "URL",
   "PUBLISH": "Publish",
   "PUBLISH_ALL": "Publish all",
   "REMOVE": "Remove",



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/705daff144224ab4bcfb6f28df35388a797173e8

---
View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/705daff144224ab4bcfb6f28df35388a797173e8
You're receiving this email because of your account on code.onehippo.org.
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to