]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n manage collection fields
authorBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 13:40:02 +0000 (15:40 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 13:40:02 +0000 (15:40 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/i18n/eng.ini
webclient/view/98/managecollectionfields/managecollectionfields.html
webclient/view/default/managecollectionfields/managecollectionfields.html

index 06da82494cb68a78ae5454586852843529728dcd..3cc9bbe909a696a8cea3ae20c93261c5fdd515eb 100644 (file)
@@ -71,6 +71,11 @@ managecol.input.tools = "Tools"
 managecol.managecol = "Manage your collections"
 managecol.managefields = "Manage your fields for:"
 
+managefields.fieldsfor = "Manage your fields for:"
+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"
+
 global.ascending = "Ascending"
 global.collection = "Collection"
 global.collection.select.notice = "Please select a collection first"
index 886be3092e8799760ee25314988db8baca08149c..78c41bbd23438d2a8ddfbeb1ff38bad88ff155ab 100644 (file)
@@ -1,11 +1,7 @@
-<h3 >Manage your fields for: <a href="index.php?p=managecolletions&m=edit&id=<?php echo $TemplateData['editData']['id']; ?>"><?php echo $TemplateData['editData']['name']; ?></a></h3>
+<h3><?php echo $I18n->t('managefields.fieldsfor'); ?> <a href="index.php?p=managecolletions&m=edit&id=<?php echo $TemplateData['editData']['id']; ?>"><?php echo $TemplateData['editData']['name']; ?></a></h3>
 
-<h4 >Add or remove a field</h4>
-<p>
-       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.
-</p>
+<h4><?php echo $I18n->t('managefields.addorremove'); ?></h4>
+<p><?php echo $I18n->t('managefields.addorremove.description'); ?></p>
 
 <div id="sortableContainer">
        <div class="window">
@@ -24,7 +20,7 @@
        </div>
        <div class="window">
                <div class="title-bar">
-                       <div class="title-bar-text">Available fields</div>
+                       <div class="title-bar-text"><?php echo $I18n->t('managefields.fieldsavailable'); ?></div>
                </div>
                <div class="window-body">
                        <div id="availableFields">
@@ -41,7 +37,7 @@
 <form method="post" onsubmit="return saveOrderAndSubmit()">
        <input type="hidden" name="fdata[fieldSortString]" id="fieldSort"
           value="<?php echo $TemplateData['editData']['fieldSortString'] ?? ''; ?>">
-       <input type="submit" name="submitForm" value="Save">
+       <input type="submit" name="submitForm" value="<?php echo $I18n->t('global.save'); ?>">
 </form>
 
 
index 237e9eb2da988dd06413013726393dc9db89b157..5139fff6af57bc55632f84e0a185a9121418b21b 100644 (file)
@@ -1,15 +1,9 @@
-<h3 class="uk-h3">Manage your fields for: <a href="index.php?p=managecolletions&m=edit&id=<?php echo $TemplateData['editData']['id']; ?>"><?php echo $TemplateData['editData']['name']; ?></a></h3>
+<h3 class="uk-h3"><?php echo $I18n->t('managefields.fieldsfor'); ?> <a href="index.php?p=managecolletions&m=edit&id=<?php echo $TemplateData['editData']['id']; ?>"><?php echo $TemplateData['editData']['name']; ?></a></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">Add or remove a field</h4>
-               <p>
-                       Just use drag and drop below to add, remove or order your fields.<br />
-                       <span class="" uk-icon="icon: warning"></span> Removing a field will <span class="uk-text-danger">remove</span>
-                       the stored data from the collection.<br />
-                       <span class="" uk-icon="icon: warning"></span> Make sure at least the <b>title</b>, <b>cover image</b>
-                       and <b>description</b> fields are available.
-               </p>
+               <h4 class="uk-h4"><?php echo $I18n->t('managefields.addorremove'); ?></h4>
+               <p><?php echo $I18n->t('managefields.addorremove.description'); ?></p>
                <div id="collectionFields" uk-sortable="group: sortable-group" class="uk-padding-small uk-padding-remove-left uk-padding-remove-right uk-background-muted">
                        <?php foreach($TemplateData['existingFields'] as $k=>$v) { ?>
                        <div data-field-id="<?php echo $k; ?>">
                           value="<?php echo $TemplateData['editData']['fieldSortString'] ?? ''; ?>">
                        <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-2">
-               <h4 class="uk-h4">Available fields</h4>
+               <h4 class="uk-h4"><?php echo $I18n->t('managefields.fieldsavailable'); ?></h4>
                <div uk-sortable="group: sortable-group">
                        <?php foreach($TemplateData['availableFields'] as $k=>$v) { ?>
                        <div data-field-id="<?php echo $k; ?>">