]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n manageentry
authorBanana <mail@bananas-playground.net>
Tue, 16 Apr 2024 08:44:04 +0000 (10:44 +0200)
committerBanana <mail@bananas-playground.net>
Tue, 16 Apr 2024 08:44:04 +0000 (10:44 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
25 files changed:
webclient/i18n/eng.ini
webclient/view/98/entry/field-unknown.html
webclient/view/98/manageentry/field-lookupmultiple.html
webclient/view/98/manageentry/field-number.html
webclient/view/98/manageentry/field-selection.html
webclient/view/98/manageentry/field-text.html
webclient/view/98/manageentry/field-text3.html
webclient/view/98/manageentry/field-textarea.html
webclient/view/98/manageentry/field-unknown.html
webclient/view/98/manageentry/field-upload.html
webclient/view/98/manageentry/field-upload_multiple.html
webclient/view/98/manageentry/field-year.html
webclient/view/98/manageentry/manageentry.html
webclient/view/compact/manageentry/manageentry.html
webclient/view/default/entry/field-unknown.html
webclient/view/default/manageentry/field-lookupmultiple.html
webclient/view/default/manageentry/field-number.html
webclient/view/default/manageentry/field-selection.html
webclient/view/default/manageentry/field-text.html
webclient/view/default/manageentry/field-text3.html
webclient/view/default/manageentry/field-textarea.html
webclient/view/default/manageentry/field-unknown.html
webclient/view/default/manageentry/field-upload.html
webclient/view/default/manageentry/field-year.html
webclient/view/default/manageentry/manageentry.html

index 6631e99f287e7a9a7ace8a388663496868f807e6..cb94af8358b734e288a63183173f34187349614c 100644 (file)
@@ -71,6 +71,18 @@ managecol.input.tools = "Tools"
 managecol.managecol = "Manage your collections"
 managecol.managefields = "Manage your fields for:"
 
+manageentry.select.bulkedit = "Select bulk edit option"
+manageentry.select.bulkedit.add = global.add
+manageentry.select.bulkedit.replace = global.replace
+manageentry.select.bulkedit.clear = global.clear
+manageentry.missingtemplate = "Missing template for:"
+manageentry.updateentry = "Update an entry in:"
+manageentry.viewentry = "View entry"
+manageentry.possibleduplicate = "Possible duplicate"
+manageentry.addentry = "Add an entry to:"
+manageentry.availabletools = "Available tools"
+manageentry.addentrycollection = "Add an entry to your collection"
+
 managefields.addorremove = "Add or remove a field"
 managefields.addorremove.description = "Just use drag and drop below to add, remove or order your fields.<br />Removing a field will <b>remove</b> the stored data from the collection.<br />Make sure at least the <b>title</b>, <b>cover image</b> and <b>description</b> fields are available."
 managefields.fieldsavailable = "Available fields"
@@ -90,7 +102,6 @@ global.descending = "Descending"
 global.description = "Description"
 global.displayresultfor = "Display result for: <b>%s</b>"
 global.edit = "Edit"
-global.field.select.bulkoption = "Select bulk edit option"
 global.field.writeenter = "Write and press enter."
 global.fields = "Fields"
 global.group = "Group"
index fa3ba5426f47ba4ee8d6ad416c0b92d4e4b1c58a..f425fdeb4a2e75c38b55987b0ffb56f61f4c7c0f 100644 (file)
@@ -1 +1 @@
-<p>Missing template for: <?php echo $field['identifier']; ?></p>
+<p><?php echo $I18n->t('manageentry.missingtemplate'); ?> <?php echo $field['identifier']; ?></p>
index 0cea1ff6e357937a27122e7e9abc5af26ef8f231..ac4b8daa9fc783f33fcb9b4003c0eea918d8800d 100644 (file)
@@ -13,7 +13,7 @@ if(isset($TemplateData['editData'][$field['identifier']])) {
                foreach($existingFieldValue as $ev) { ?>
 
                <div class="input-multiple-template" id="<?php echo $field['identifier']; ?>-<?php echo $ev; ?>">
-                       <a onclick="removeTag('<?php echo $ev; ?>','<?php echo $field['identifier']; ?>')" title="click to remove"><span><?php echo $ev; ?></span></a>
+                       <a onclick="removeTag('<?php echo $ev; ?>','<?php echo $field['identifier']; ?>')" title="<?php echo $I18n->t('global.clickremove'); ?>"><span><?php echo $ev; ?></span></a>
                </div>
 
        <?php
@@ -25,14 +25,14 @@ if(isset($TemplateData['editData'][$field['identifier']])) {
                name="<?php echo $field['identifier']; ?>-input"
                list="<?php echo $field['identifier']; ?>-datalist"
                onkeypress="addTag(event,'<?php echo $field['identifier']; ?>','<?php echo $field['inputValidation']; ?>')"
-               placeholder="Write and press enter."
+               placeholder="<?php echo $I18n->t('global.writeenter'); ?>"
        >
        <?php if(isset($field['bulkedit'])) { ?>
        <select name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-               <option value="">Select bulk edit option</option>
-               <option value="add">Add</option>
-               <option value="replace">Replace</option>
-               <option value="empty">Clear</option>
+               <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+               <option value="add"><?php echo $I18n->t('manageentry.select.bulkedit.add'); ?></option>
+               <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+               <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
        </select>
        <?php } ?>
 
@@ -53,5 +53,5 @@ if(isset($TemplateData['editData'][$field['identifier']])) {
 <input type="hidden" name="fdata[<?php echo $field['identifier']; ?>]" id="<?php echo $field['identifier']; ?>-save" value="<?php echo implode(',',$existingFieldValue); ?>" />
 
 <div class="input-multiple-template" id="<?php echo $field['identifier']; ?>-template" style="display: none;">
-       <a onclick="removeTag('','<?php echo $field['identifier']; ?>')" title="click to remove"><span></span></a>
+       <a onclick="removeTag('','<?php echo $field['identifier']; ?>')" title="<?php echo $I18n->t('global.clickremove'); ?>"><span></span></a>
 </div>
index b1e61a82b736b8c8a859fe32f7a09da2519daec5..69669dc111cf4a37297fb46fe75d69f6302ac04d 100644 (file)
@@ -8,9 +8,9 @@
 
        <?php if(isset($field['bulkedit'])) { ?>
        <select name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-               <option value="">Select bulk edit option</option>
-               <option value="replace">Replace</option>
-               <option value="empty">Clear</option>
+               <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+               <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+               <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
        </select>
        <?php } ?>
 </div>
index e2bbc28eb02ab90470ad2e5476553f2892107281..75aee5dc1a8d2cca89ea902a38cc59107d36feae 100644 (file)
@@ -11,9 +11,9 @@
 
        <?php if(isset($field['bulkedit'])) { ?>
        <select name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-               <option value="">Select bulk edit option</option>
-               <option value="replace">Replace</option>
-               <option value="empty">Clear</option>
+               <<option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+               <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+               <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
        </select>
        <?php } ?>
 </div>
index 3f56aa7058624010b1b18babfbfea1fca7190c9d..adaa3e6c1fd49186f5d154aeaf47ef1b927bb552 100644 (file)
 
        <?php if(isset($field['bulkedit'])) { ?>
        <select name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-               <option value="">Select bulk edit option</option>
-               <option value="add">Add</option>
-               <option value="replace">Replace</option>
-               <option value="empty">Clear</option>
+               <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+               <option value="add"><?php echo $I18n->t('manageentry.select.bulkedit.add'); ?></option>
+               <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+               <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
        </select>
        <?php } ?>
 </div>
index 4ce4a3d754c816a212cdc84d34ca71ccecd24065..5871c0f5485e64f0b7d5993382f9e1d16ae8b92b 100644 (file)
 
        <?php if(isset($field['bulkedit'])) { ?>
        <select  name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-               <option value="">Select bulk edit option</option>
-               <option value="add">Add</option>
-               <option value="replace">Replace</option>
-               <option value="empty">Clear</option>
+               <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+               <option value="add"><?php echo $I18n->t('manageentry.select.bulkedit.add'); ?></option>
+               <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+               <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
        </select>
        <?php } ?>
 </div>
index 0623df5f1bf13c3e3f7c64d0d2a1f84aebbe7914..fca0be15f70a2f9774370473ba00efd068e3294e 100644 (file)
@@ -6,10 +6,10 @@
                name="fdata[<?php echo $field['identifier']; ?>]"><?php echo $TemplateData['editData'][$field['identifier']] ?? ''; ?></textarea>
        <?php if(isset($field['bulkedit'])) { ?>
        <select name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-               <option value="">Select bulk edit option</option>
-               <option value="add">Add</option>
-               <option value="replace">Replace</option>
-               <option value="empty">Clear</option>
+               <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+               <option value="add"><?php echo $I18n->t('manageentry.select.bulkedit.add'); ?></option>
+               <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+               <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
        </select>
        <?php } ?>
 </div>
index 8f3488f2e9d1151ccba5e26710c71a54955fc3cc..ff7c3fdabee5a47dc749eb7e1505befbf5023542 100644 (file)
@@ -1,3 +1,3 @@
 <div class="field-row-stacked">
-       <label>Missing template for: <?php echo $field['identifier']; ?></label>
+       <label><?php echo $I18n->t('manageentry.missingtemplate'); ?> <?php echo $field['identifier']; ?></label>
 </div>
index c8a448b47a6a7c5fe8366d2bdcac38ca8bec4e9b..5ad771cdfab65e0b3cafe54533589963904c70cb 100644 (file)
@@ -9,10 +9,10 @@
                <a target="_blank" href="<?php echo $TemplateData['storagePath'].'/'.$TemplateData['editData'][$field['identifier']]; ?>"><?php echo $TemplateData['editData'][$field['identifier']]; ?></a>
                <input type="checkbox" value="<?php echo $TemplateData['editData'][$field['identifier']] ?? ''; ?>"
                           name="fdata[<?php echo $field['identifier']; ?>_delete]"
-                          title="Delete"
+                          title="<?php echo $I18n->t('global.delete'); ?>"
                           id="fdata[<?php echo $field['identifier']; ?>_delete"
                />
-               <label for="fdata[<?php echo $field['identifier']; ?>_delete">Delete</label>
+               <label for="fdata[<?php echo $field['identifier']; ?>_delete"><?php echo $I18n->t('global.delete'); ?></label>
                <?php } ?>
 
 </div>
index 0f05420b510de6b1886ff065592a47a2ea2a3d17..e9bf6998441f1e7557480c99130383743a71889c 100644 (file)
@@ -15,7 +15,7 @@
                                title="Delete"
                                id="<?php echo $field['identifier'].$_i; ?>_delete"
                />
-               <label for="<?php echo $field['identifier'].$_i; ?>_delete">Delete</label>
+               <label for="<?php echo $field['identifier'].$_i; ?>_delete"><?php echo $I18n->t('global.delete'); ?></label>
                <br>
        <?php
                $_i++;
index 5c93dfd74047b19ec7374ef4089d84b5023cf4c8..027ecb6b4cfc37a5e076f9c5d95269baab2c3485 100644 (file)
@@ -8,9 +8,9 @@
 
        <?php if(isset($field['bulkedit'])) { ?>
        <select name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-               <option value="">Select bulk edit option</option>
-               <option value="replace">Replace</option>
-               <option value="empty">Clear</option>
+               <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+               <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+               <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
        </select>
        <?php } ?>
 </div>
index 1724513c1f6eb682b94d87d8cc1f82ddab378c70..f07eec0ea02a8a1c8e1a434605fa5a6dc303b65a 100644 (file)
@@ -4,12 +4,12 @@ if(!empty($TemplateData['editFields'])) {
        if(!empty($TemplateData['editData']) && isset($TemplateData['editData']['id'])) {
                $_entry = $TemplateData['editData']['id'];
 ?>
-               <h3>Update an entry in: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
+               <h3><?php echo $I18n->t('manageentry.updateentry'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
                <p>
-                       <a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $TemplateData['editData']['id']; ?>">View entry</a>
+                       <a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $TemplateData['editData']['id']; ?>"><?php echo $I18n->t('manageentry.viewentry'); ?></a>
                </p>
 <?php if(!empty($TemplateData['possibleDuplicates'])) { ?>
-Possible duplicate
+<?php echo $I18n->t('manageentry.possibleduplicate'); ?>
 <ul>
        <?php
        foreach($TemplateData['possibleDuplicates'] as $key=>$entry) {
@@ -19,11 +19,11 @@ Possible duplicate
 </ul>
 <?php } ?>
 <?php } else { ?>
-               <h3>Add an entry to: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
+               <h3><?php echo $I18n->t('manageentry.addentry'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
 <?php } ?>
 
 <?php if(!empty($TemplateData['availableTools'])) { ?>
-<h4>Available tools</h4>
+<h4><?php echo $I18n->t('manageentry.availabletools'); ?></h4>
 <ul>
        <?php foreach($TemplateData['availableTools'] as $tool) { ?>
        <li><a href="index.php?p=tool&t=<?php echo $tool['action']; ?>&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $_entry; ?>"
@@ -51,14 +51,14 @@ Possible duplicate
        ?>
 
        <div class="field-row-stacked">
-               <label>Rights *</label>
+               <label><?php echo $I18n->t('global.rights'); ?> *</label>
 
                <table>
                        <thead>
                        <tr>
-                               <th>User</th>
-                               <th>Group</th>
-                               <th>Other</th>
+                               <th><?php echo $I18n->t('global.user'); ?></th>
+                               <th><?php echo $I18n->t('global.group'); ?></th>
+                               <th><?php echo $I18n->t('global.other'); ?></th>
                        </tr>
                        </thead>
                        <tbody>
@@ -113,24 +113,24 @@ Possible duplicate
 
        <div class="field-row-stacked">
                <input id="doDelete" type="checkbox" name="fdata[doDelete]" value="1">
-               <label for="doDelete">Delete</label>
+               <label for="doDelete"><?php echo $I18n->t('global.delete'); ?></label>
        </div>
 
        <?php } ?>
 
        <div class="field-row-stacked">
-               <input type="submit" name="submitForm" value="Save">
+               <input type="submit" name="submitForm" value="<?php echo $I18n->t('global.save'); ?>">
        </div>
 </form>
 
 <?php } else { ?>
-<h3>Please select a collection first</h3>
+<h3><?php echo $I18n->t('global.collection.select.notice'); ?></h3>
 <div class="sunken-panel">
        <table width="100%">
                <thead>
                <tr>
-                       <th width="100px">Name</th>
-                       <th>Description</th>
+                       <th width="100px"><?php echo $I18n->t('global.name'); ?></th>
+                       <th><?php echo $I18n->t('global.description'); ?></th>
                </tr>
                </thead>
                <tbody>
index 6dbca3581a163a2b301fb9b055c32e4996b2e0bc..7127f02e09deaffa3dc47193f8350c0c2aaa5cb5 100644 (file)
@@ -4,13 +4,13 @@ if(!empty($TemplateData['editFields'])) {
        if(!empty($TemplateData['editData'])) {
                $_entry = $TemplateData['editData']['id'];
 ?>
-               <h3 class="uk-h3">Update an entry in: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
+               <h3 class="uk-h3"><?php echo $I18n->t('manageentry.updateentry'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
                <p>
                        <span uk-icon="arrow-left"></span>
-                       <a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $TemplateData['editData']['id']; ?>">View entry</a>
+                       <a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $TemplateData['editData']['id']; ?>"><?php echo $I18n->t('manageentry.viewentry'); ?></a>
                </p>
 <?php if(!empty($TemplateData['possibleDuplicates'])) { ?>
-Possible duplicate
+<?php echo $I18n->t('manageentry.possibleduplicate'); ?>
 <ul>
        <?php
        foreach($TemplateData['possibleDuplicates'] as $key=>$entry) {
@@ -20,7 +20,7 @@ Possible duplicate
 </ul>
 <?php } ?>
 <?php } else { ?>
-               <h3 class="uk-h3">Add an entry to: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
+               <h3 class="uk-h3"><?php echo $I18n->t('manageentry.addentry'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
 <?php } ?>
 <div class="uk-grid-small uk-grid-row-small" uk-grid>
        <div class="uk-width-2-3">
@@ -42,13 +42,13 @@ Possible duplicate
 
                        <hr class="uk-margin-medium">
                        <div class="uk-margin">
-                               <div class="uk-form-label">Rights</div>
+                               <div class="uk-form-label"><?php echo $I18n->t('global.rights'); ?></div>
                                <div class="uk-form-controls uk-form-controls-text">
                                        <table class="uk-table uk-table-small">
                                                <tr>
-                                                       <th>User</th>
-                                                       <th>Group</th>
-                                                       <th>Other</th>
+                                                       <th><?php echo $I18n->t('global.user'); ?></th>
+                                                       <th><?php echo $I18n->t('global.group'); ?></th>
+                                                       <th><?php echo $I18n->t('global.other'); ?></th>
                                                </tr>
                                                <tr>
                                                        <td>
@@ -86,7 +86,7 @@ Possible duplicate
 
                        <hr class="uk-margin-medium">
                        <div class="uk-margin">
-                               <div class="uk-form-label">Delete <span uk-icon="warning"></span></div>
+                               <div class="uk-form-label"><?php echo $I18n->t('global.delete'); ?> <span uk-icon="warning"></span></div>
                                <div class="uk-form-controls uk-form-controls-text">
                                        <label>
                                                <input class="uk-checkbox" type="checkbox" name="fdata[doDelete]" value="1">
@@ -98,14 +98,14 @@ Possible duplicate
 
                        <div class="uk-margin">
                                <button class="uk-button uk-button-primary" type="submit" name="submitForm">
-                                       Save
+                                       <?php echo $I18n->t('global.save'); ?>
                                </button>
                        </div>
                </form>
        </div>
        <div class="uk-width-1-3">
                <?php if(!empty($TemplateData['availableTools'])) { ?>
-               <h4>Available tools</h4>
+               <h4><?php echo $I18n->t('manageentry.availabletools'); ?></h4>
                <ul>
                <?php foreach($TemplateData['availableTools'] as $tool) { ?>
                        <li><a href="index.php?p=tool&t=<?php echo $tool['action']; ?>&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $_entry; ?>"
@@ -117,10 +117,10 @@ Possible duplicate
 </div>
 <script type="text/javascript" src="view/default/ui/js/suggest-tag.js"></script>
 <?php } else { ?>
-<h3 class="uk-h3">Add an entry to your collection</h3>
+<h3 class="uk-h3"><?php echo $I18n->t('manageentry.addentrycollection'); ?></h3>
 <div class="uk-grid-small uk-grid-row-small uk-grid-row-small" uk-grid>
        <div class="uk-width-2-3@m uk-width-1-2@xl">
-               <h4 class="uk-heading-divider">Please select a collection first:</h4>
+               <h4 class="uk-heading-divider"><?php echo $I18n->t('global.collection.select.notice'); ?></h4>
                <dl class="uk-description-list">
                        <?php foreach($TemplateData['existingCollections'] as $k=>$v) { ?>
                        <dt><a href="index.php?p=manageentry&collection=<?php echo $k; ?>"><?php echo $v['name']; ?></a></dt>
index fa3ba5426f47ba4ee8d6ad416c0b92d4e4b1c58a..f425fdeb4a2e75c38b55987b0ffb56f61f4c7c0f 100644 (file)
@@ -1 +1 @@
-<p>Missing template for: <?php echo $field['identifier']; ?></p>
+<p><?php echo $I18n->t('manageentry.missingtemplate'); ?> <?php echo $field['identifier']; ?></p>
index 88e86b2d998321bc23224f7436512f0d624da4cb..848d27720d8cbd70bead482f6cac98ffe50494a8 100644 (file)
@@ -13,7 +13,7 @@ if(isset($TemplateData['editData'][$field['identifier']])) {
                        foreach($existingFieldValue as $ev) { ?>
 
                        <div class="input-multiple-template" id="<?php echo $field['identifier']; ?>-<?php echo $ev; ?>">
-                               <a onclick="removeTag('<?php echo $ev; ?>','<?php echo $field['identifier']; ?>')" title="click to remove"><span class="uk-label"><?php echo $ev; ?></span></a>
+                               <a onclick="removeTag('<?php echo $ev; ?>','<?php echo $field['identifier']; ?>')" title="<?php echo $I18n->t('global.clickremove'); ?>"><span class="uk-label"><?php echo $ev; ?></span></a>
                        </div>
 
                <?php
@@ -25,14 +25,14 @@ if(isset($TemplateData['editData'][$field['identifier']])) {
                        name="<?php echo $field['identifier']; ?>-input"
                        list="<?php echo $field['identifier']; ?>-datalist"
                        onkeypress="addTag(event,'<?php echo $field['identifier']; ?>','<?php echo $field['inputValidation']; ?>')"
-                       placeholder="Write and press enter."
+                       placeholder="<?php echo $I18n->t('global.writeenter'); ?>"
                >
                <?php if(isset($field['bulkedit'])) { ?>
                <select class="uk-select" name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-                       <option value="">Select bulk edit option</option>
-                       <option value="add">Add</option>
-                       <option value="replace">Replace</option>
-                       <option value="empty">Clear</option>
+                       <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+                       <option value="add"><?php echo $I18n->t('manageentry.select.bulkedit.add'); ?></option>
+                       <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+                       <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
                </select>
                <?php } ?>
        </div>
@@ -53,5 +53,5 @@ if(isset($TemplateData['editData'][$field['identifier']])) {
 <input type="hidden" name="fdata[<?php echo $field['identifier']; ?>]" id="<?php echo $field['identifier']; ?>-save" value="<?php echo implode(',',$existingFieldValue); ?>" />
 
 <div class="input-multiple-template" id="<?php echo $field['identifier']; ?>-template" style="display: none;">
-       <a onclick="removeTag('','<?php echo $field['identifier']; ?>')" title="click to remove"><span class="uk-label"></span></a>
+       <a onclick="removeTag('','<?php echo $field['identifier']; ?>')" title="<?php echo $I18n->t('global.clickremove'); ?>"><span class="uk-label"></span></a>
 </div>
index cd92132296afc6cdb79a08f313457a71b2820a08..81ddc3c66fe4cee17aca8df8e1ff675f2efc2a0f 100644 (file)
@@ -8,9 +8,9 @@
                >
                <?php if(isset($field['bulkedit'])) { ?>
                <select class="uk-select" name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-                       <option value="">Select bulk edit option</option>
-                       <option value="replace">Replace</option>
-                       <option value="empty">Clear</option>
+                       <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+                       <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+                       <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
                </select>
                <?php } ?>
        </div>
index dde2c7ac921b684bc8032d9957fd3ebf38fa40f9..b1e14474bb8459416c44e99c66dc1f02fd93f74e 100644 (file)
@@ -2,7 +2,7 @@
        <label class="uk-form-label" for="<?php echo $field['identifier']; ?>"><?php echo $field['displayname']; ?></label>
        <div class="uk-form-controls">
                <select class="uk-select" id="<?php echo $field['identifier']; ?>" name="fdata[<?php echo $field['identifier']; ?>]">
-                       <option value="">Please select</option>
+                       <option value=""><?php echo $I18n->t('global.pleaseselect'); ?></option>
                        <?php foreach($field['options'] as $k=>$v) { ?>
                        <option value="<?php echo $v; ?>"
                                <?php echo ($TemplateData['editData'][$field['identifier']] ?? '') == $v ? 'selected' : ''; ?>
@@ -11,9 +11,9 @@
                </select>
                <?php if(isset($field['bulkedit'])) { ?>
                <select class="uk-select" name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-                       <option value="">Select bulk edit option</option>
-                       <option value="replace">Replace</option>
-                       <option value="empty">Clear</option>
+                       <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+                       <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+                       <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
                </select>
                <?php } ?>
        </div>
index db065a013f59f935f86db1e8aec129ae564160ac..58b3a5b5d2c32382f0cffb350f63da4f9c2b1ca0 100644 (file)
@@ -9,10 +9,10 @@
                <small id="<?php echo $field['identifier']; ?>_counter" class="uk-float-right"><?php echo 128-strlen($TemplateData['editData'][$field['identifier']] ?? ''); ?></small>
                <?php if(isset($field['bulkedit'])) { ?>
                <select class="uk-select" name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-                       <option value="">Select bulk edit option</option>
-                       <option value="add">Add</option>
-                       <option value="replace">Replace</option>
-                       <option value="empty">Clear</option>
+                       <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+                       <option value="add"><?php echo $I18n->t('manageentry.select.bulkedit.add'); ?></option>
+                       <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+                       <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
                </select>
                <?php } ?>
        </div>
index 6033a4a674a9906fdece2d879f0f7a639ce9b758..4708c01e58da56473c9ae104e3a73e5dafd9d227 100644 (file)
@@ -8,10 +8,10 @@
                <small id="<?php echo $field['identifier']; ?>_counter" class="uk-float-right"><?php echo 255-strlen($TemplateData['editData'][$field['identifier']] ??  ''); ?></small>
                <?php if(isset($field['bulkedit'])) { ?>
                <select class="uk-select" name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-                       <option value="">Select bulk edit option</option>
-                       <option value="add">Add</option>
-                       <option value="replace">Replace</option>
-                       <option value="empty">Clear</option>
+                       <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+                       <option value="add"><?php echo $I18n->t('manageentry.select.bulkedit.add'); ?></option>
+                       <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+                       <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
                </select>
                <?php } ?>
        </div>
index 8bf7daddb689284c2516ac900de3d2546e88ec74..ba5e1c3153d023c95967a668bd7158b1e515d448 100644 (file)
@@ -7,10 +7,10 @@
                        name="fdata[<?php echo $field['identifier']; ?>]"><?php echo $TemplateData['editData'][$field['identifier']] ?? ''; ?></textarea>
                <?php if(isset($field['bulkedit'])) { ?>
                <select class="uk-select" name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-                       <option value="">Select bulk edit option</option>
-                       <option value="add">Add</option>
-                       <option value="replace">Replace</option>
-                       <option value="empty">Clear</option>
+                       <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+                       <option value="add"><?php echo $I18n->t('manageentry.select.bulkedit.add'); ?></option>
+                       <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+                       <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
                </select>
                <?php } ?>
        </div>
index 568d0f16eb346d5f1a9c8dd67f5f24b9d9c21ce7..7bda67a06788cc41f1911a5c399732fe3c179606 100644 (file)
@@ -1,3 +1,3 @@
 <div class="uk-margin">
-       Missing template for: <?php echo $field['identifier']; ?>
+       <?php echo $I18n->t('manageentry.missingtemplate'); ?> <?php echo $field['identifier']; ?>
 </div>
index 9e6f6e77f21604929c610a3f24316fee36d3c05e..34fb3f3bdfba885f46079028810e30743f14207e 100644 (file)
@@ -9,8 +9,8 @@
                        <a href="<?php echo $TemplateData['storagePath'].'/'.$TemplateData['editData'][$field['identifier']]; ?>" target="_blank"><?php echo $TemplateData['editData'][$field['identifier']]; ?></a>
                        <input type="checkbox" value="<?php echo $TemplateData['editData'][$field['identifier']] ?? ''; ?>"
                                   name="fdata[<?php echo $field['identifier']; ?>_delete]"
-                                  title="Delete"
-                       /> Delete
+                                  title="<?php echo $I18n->t('global.delete'); ?>"
+                       /> <?php echo $I18n->t('global.delete'); ?>
                </div>
                <?php } ?>
        </div>
index 11143f9c5fd9dac78b40f1db3b20b68580aa901f..57e3fb8675127384ab8d9bf1a1d47c8aa81b4f9c 100644 (file)
@@ -8,9 +8,9 @@
                >
                <?php if(isset($field['bulkedit'])) { ?>
                <select class="uk-select" name="fdata[additionalEditOption][<?php echo $field['identifier']; ?>]">
-                       <option value="">Select bulk edit option</option>
-                       <option value="replace">Replace</option>
-                       <option value="empty">Clear</option>
+                       <option value=""><?php echo $I18n->t('manageentry.select.bulkedit'); ?></option>
+                       <option value="replace"><?php echo $I18n->t('manageentry.select.bulkedit.replace'); ?></option>
+                       <option value="empty"><?php echo $I18n->t('manageentry.select.bulkedit.clear'); ?></option>
                </select>
                <?php } ?>
        </div>
index ef0ed0c988279853ad622220c13c6186c6f92b46..915b115fbeb1549887530c803a4190d3e334d99a 100644 (file)
@@ -4,13 +4,13 @@ if(!empty($TemplateData['editFields'])) {
        if(!empty($TemplateData['editData'])) {
                $_entry = $TemplateData['editData']['id'];
 ?>
-               <h3 class="uk-h3">Update an entry in: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
+               <h3 class="uk-h3"><?php echo $I18n->t('manageentry.updateentry'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
                <p>
                        <span uk-icon="arrow-left"></span>
-                       <a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $TemplateData['editData']['id']; ?>">View entry</a>
+                       <a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $TemplateData['editData']['id']; ?>"><?php echo $I18n->t('manageentry.viewentry'); ?></a>
                </p>
 <?php if(!empty($TemplateData['possibleDuplicates'])) { ?>
-Possible duplicate
+<?php echo $I18n->t('manageentry.possibleduplicate'); ?>
 <ul>
        <?php
        foreach($TemplateData['possibleDuplicates'] as $key=>$entry) {
@@ -20,7 +20,7 @@ Possible duplicate
 </ul>
 <?php } ?>
 <?php } else { ?>
-               <h3 class="uk-h3">Add an entry to: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
+               <h3 class="uk-h3"><?php echo $I18n->t('manageentry.addentry'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
 <?php } ?>
 <div class="uk-grid-small uk-grid-row-small" uk-grid>
        <div class="uk-width-2-3">
@@ -42,13 +42,13 @@ Possible duplicate
 
                        <hr class="uk-margin-medium">
                        <div class="uk-margin">
-                               <div class="uk-form-label">Rights</div>
+                               <div class="uk-form-label"><?php echo $I18n->t('global.rights'); ?></div>
                                <div class="uk-form-controls uk-form-controls-text">
                                        <table class="uk-table uk-table-small">
                                                <tr>
-                                                       <th>User</th>
-                                                       <th>Group</th>
-                                                       <th>Other</th>
+                                                       <th><?php echo $I18n->t('global.user'); ?></th>
+                                                       <th><?php echo $I18n->t('global.group'); ?></th>
+                                                       <th><?php echo $I18n->t('global.other'); ?></th>
                                                </tr>
                                                <tr>
                                                        <td>
@@ -86,7 +86,7 @@ Possible duplicate
 
                        <hr class="uk-margin-medium">
                        <div class="uk-margin">
-                               <div class="uk-form-label">Delete <span uk-icon="warning"></span></div>
+                               <div class="uk-form-label"><?php echo $I18n->t('global.delete'); ?> <span uk-icon="warning"></span></div>
                                <div class="uk-form-controls uk-form-controls-text">
                                        <label>
                                                <input class="uk-checkbox" type="checkbox" name="fdata[doDelete]" value="1">
@@ -98,14 +98,14 @@ Possible duplicate
 
                        <div class="uk-margin">
                                <button class="uk-button uk-button-primary" type="submit" name="submitForm">
-                                       Save
+                                       <?php echo $I18n->t('global.save'); ?>
                                </button>
                        </div>
                </form>
        </div>
        <div class="uk-width-1-3">
                <?php if(!empty($TemplateData['availableTools'])) { ?>
-               <h4>Available tools</h4>
+               <h4><?php echo $I18n->t('manageentry.availabletools'); ?></h4>
                <ul>
                <?php foreach($TemplateData['availableTools'] as $tool) { ?>
                        <li><a href="index.php?p=tool&t=<?php echo $tool['action']; ?>&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $_entry; ?>"
@@ -117,10 +117,10 @@ Possible duplicate
 </div>
 <script type="text/javascript" src="view/default/ui/js/suggest-tag.js"></script>
 <?php } else { ?>
-<h3 class="uk-h3">Add an entry to your collection</h3>
+<h3 class="uk-h3"><?php echo $I18n->t('manageentry.addentrycollection'); ?></h3>
 <div class="uk-grid-small uk-grid-row-small uk-grid-row-small" uk-grid>
        <div class="uk-width-1-2">
-               <h4 class="uk-h4">Please select a collection first:</h4>
+               <h4 class="uk-h4"><?php echo $I18n->t('global.collection.select.notice'); ?></h4>
                <dl class="uk-description-list uk-description-list-divider">
                        <?php foreach($TemplateData['existingCollections'] as $k=>$v) { ?>
                        <dt><a href="index.php?p=manageentry&collection=<?php echo $k; ?>"><?php echo $v['name']; ?></a></dt>