]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n managegroups
authorBanana <mail@bananas-playground.net>
Tue, 16 Apr 2024 08:59:34 +0000 (10:59 +0200)
committerBanana <mail@bananas-playground.net>
Tue, 16 Apr 2024 08:59:34 +0000 (10:59 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/i18n/eng.ini
webclient/view/98/managegroups/managegroups.html
webclient/view/default/managegroups/managegroups.html

index cb94af8358b734e288a63183173f34187349614c..aab9346e26fe9f2616a8563878f9a5a03eb93d24 100644 (file)
@@ -88,6 +88,15 @@ managefields.addorremove.description = "Just use drag and drop below to add, rem
 managefields.fieldsavailable = "Available fields"
 managefields.fieldsfor = "Manage your fields for:"
 
+managegroups.groupmanagement = "Group management"
+managegroups.addormodify = "Add or modify a group"
+managegroups.input.description = global.description
+managegroups.input.name = global.name
+managegroups.input.delete = global.delete
+managegroups.input.save = global.save
+managegroups.input.delete.howto = "Warning: Content owned by this group will not be deleted and thus only manageable by admin!<br />Right now don't do this. Only if you are sure there is no usage of this group."
+managegroups.availablegroups = "Available groups"
+
 global.add = "Add"
 global.ascending = "Ascending"
 global.clear = "Clear"
index 94f21564dc6fa983c76e7a93da25d357ca20ab2b..64a3e3a81017f7153b57485db42e186d3926e23a 100644 (file)
@@ -1,14 +1,14 @@
-<h3>Group management</h3>
-<h4>Add or modify a group</h4>
+<h3><?php echo $I18n->t('managegroups.groupmanagement'); ?></h3>
+<h4><?php echo $I18n->t('managegroups.addormodify'); ?></h4>
 
 <form class="maxSizeForm" method="post">
        <div class="field-row-stacked">
-               <label for="name">Name *</label>
+               <label for="name"><?php echo $I18n->t('managegroups.input.name'); ?> *</label>
                <input id="name" type="text" autocomplete="off" name="fdata[name]"
                        value="<?php echo $TemplateData['editData']['name'] ?? ''; ?>">
        </div>
        <div class="field-row-stacked">
-               <label for="description">Description *</label>
+               <label for="description"><?php echo $I18n->t('managegroups.input.description'); ?> *</label>
                <input id="description" type="text" autocomplete="off" name="fdata[description]"
                       value="<?php echo $TemplateData['editData']['description'] ?? ''; ?>">
        </div>
        <?php if(isset($TemplateData['editData']['name']) && (($TemplateData['editData']['protected'] ?? '') == '0' ? true : false)) { ?>
        <div class="field-row-stacked">
                <p>
-                       Warning: Content owned by this group will not be deleted and thus only manageable by admin!<br />
-                       Right now don't do this. Only if you are sure there is no usage of this group.
+                       <?php echo $I18n->t('managegroups.input.delete.howto'); ?>
                </p>
        </div>
        <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('managegroups.input.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('managegroups.input.save'); ?>" />
        </div>
 </form>
 
-<h4>Available groups</h4>
+<h4><?php echo $I18n->t('managegroups.availablegroups'); ?></h4>
 <div class="sunken-panel">
        <table width="100%">
                <thead>
                        <tr>
-                               <th width="200px">Name</th>
-                               <th>Created</th>
-                               <th>Description</th>
+                               <th width="200px"><?php echo $I18n->t('global.name'); ?></th>
+                               <th><?php echo $I18n->t('global.created'); ?></th>
+                               <th><?php echo $I18n->t('global.description'); ?></th>
                                <th></th>
                        </tr>
                </thead>
@@ -48,7 +47,7 @@
                                <td><?php echo $v['created']; ?></td>
                                <td><?php echo $v['description']; ?></td>
                                <td>
-                                       <a href="index.php?p=managegroups&m=edit&id=<?php echo $k; ?>">Edit</a>
+                                       <a href="index.php?p=managegroups&m=edit&id=<?php echo $k; ?>"><?php echo $I18n->t('global.edit'); ?></a>
                                </td>
                        </tr>
                        <?php } ?>
index 2443da25c338b5cb468cd9c8ebd530439849840f..69917011988febe0d9e677eec2fb5d44115d7acd 100644 (file)
@@ -1,17 +1,17 @@
-<h3 class="uk-h3">Group management</h3>
+<h3 class="uk-h3"><?php echo $I18n->t('managegroups.groupmanagement'); ?></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 modify a group</h4>
+               <h4 class="uk-h4"><?php echo $I18n->t('managegroups.addormodify'); ?></h4>
                <form class="uk-form-horizontal uk-margin-small" method="post">
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="name">Name *</label>
+                               <label class="uk-form-label" for="name"><?php echo $I18n->t('managegroups.input.name'); ?> *</label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="name" type="text" autocomplete="off" name="fdata[name]"
                                               value="<?php echo $TemplateData['editData']['name'] ?? ''; ?>">
                                </div>
                        </div>
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="description">Description *</label>
+                               <label class="uk-form-label" for="description"><?php echo $I18n->t('managegroups.input.description'); ?> *</label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="description" type="text" autocomplete="off" name="fdata[description]"
                                               value="<?php echo $TemplateData['editData']['description'] ?? ''; ?>">
 
                        <?php if(isset($TemplateData['editData']['name']) && (($TemplateData['editData']['protected'] ?? '') == '0' ? true : false)) { ?>
                        <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('managegroups.input.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">
-                                               Warning: Content owned by this group will not be deleted and thus only manageable by admin!<br />
-                                               Right now don't do this. Only if you are sure there is no usage of this group.
+                                               <?php echo $I18n->t('managegroups.input.delete.howto'); ?>
                                        </label>
                                </div>
                        </div>
                        <?php } ?>
                        <div class="uk-margin">
                                <button class="uk-button uk-button-primary" type="submit" name="submitForm">
-                                       Save
+                                       <?php echo $I18n->t('managegroups.input.save'); ?>
                                </button>
                        </div>
                </form>
        </div>
        <div class="uk-width-1-2">
-               <h4 class="uk-h4">Available groups</h4>
+               <h4 class="uk-h4"><?php echo $I18n->t('managegroups.availablegroups'); ?></h4>
                <table class="uk-table">
                        <thead>
                        <tr>
-                               <th>Name</th>
-                               <th>Description</th>
+                               <th><?php echo $I18n->t('global.name'); ?></th>
+                               <th><?php echo $I18n->t('global.description'); ?></th>
                                <th></th>
                        </tr>
                        </thead>