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

index 7f76c67f2747d80d196215e4026e6fdde39e2c80..9a5f7de300595eec5a96610ad6955131abb3f212 100644 (file)
@@ -118,6 +118,14 @@ manageuser.availableusers = "Available users"
 manageuser.groups = "Group(s)"
 manageuser.status = "Status"
 manageuser.created = global.created
+manageuser.input.apitoken.current = "Current Token:"
+
+profile.yourprofile = "Manage your profile"
+profile.input.maingroup = "Main group"
+profile.input.addgroups = "Additional groups"
+profile.input.createtoken = "Create API Token"
+profile.input.apitoken.valid = manageuser.input.apitoken.valid
+profile.input.apitoken.current = manageuser.input.apitoken.current
 
 global.add = "Add"
 global.ascending = "Ascending"
index 0e501478db8e55db8bf2b80185625750add0d280..d69a69eed640d00f7d6fb15f072abe41655d20b4 100644 (file)
@@ -1,4 +1,4 @@
-<h3>Manage your profile</h3>
+<h3><?php echo $I18n->t('profile.yourprofile'); ?></h3>
 
 <form method="post" class="maxSizeForm">
        <div class="field-row-stacked">
                <input id="password" type="password" autocomplete="off" name="fdata[password]">
        </div>
        <div class="field-row-stacked">
-               <label for="group">Main group</label>
+               <label for="group"><?php echo $I18n->t('profile.input.maingroup'); ?></label>
                <input  id="group" type="text" name="fdata[group]" disabled
                        value="<?php echo $TemplateData['editData']['baseGroupName'] ?? ''; ?>">
        </div>
        <div class="field-row-stacked">
-               <label for="additionalGroups">Additional groups</label>
+               <label for="additionalGroups"><?php echo $I18n->t('profile.input.addgroups'); ?></label>
                <select multiple="multiple" size="5" id="additionalGroups" name="fdata[additionalGroups]" disabled>
                        <?php
                        foreach($TemplateData['editData']['groups'] as $k=>$v) {
        </div>
        <div class="field-row-stacked">
                <input id="refreshApiToken" type="checkbox" name="fdata[refreshApiToken]" value="1">
-               <label for="refreshApiToken">Create API Token</label>
+               <label for="refreshApiToken"><?php echo $I18n->t('profile.input.createtoken'); ?></label>
        </div>
        <div class="field-row-stacked">
                <label>
-                       Valid until: <?php echo $TemplateData['editData']['apiTokenValidDate'] ?? ''; ?><br />
-                       Token: <?php echo $TemplateData['editData']['apiToken'] ?? ''; ?>
+                       <?php echo $I18n->t('profile.input.apitoken.valid'); ?> <?php echo $TemplateData['editData']['apiTokenValidDate'] ?? ''; ?><br />
+                       <?php echo $I18n->t('profile.input.apitoken.current'); ?> <?php echo $TemplateData['editData']['apiToken'] ?? ''; ?>
                </label>
        </div>
        <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>
index 928f2405cee4ea16de23d1023b23ec9c46e6274b..5fd883a88b83535764ed381f5385cd17e00e40ef 100644 (file)
@@ -1,4 +1,4 @@
-<h3 class="uk-h3">Manage your profile</h3>
+<h3 class="uk-h3"><?php echo $I18n->t('profile.yourprofile'); ?></h3>
 <div class="uk-grid-small uk-grid-row-small uk-grid-row-small" uk-grid>
        <div class="uk-width-1-2">
                <form class="uk-form-horizontal uk-margin-small" method="post">
@@ -16,7 +16,7 @@
                                </div>
                        </div>
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="group">Main group</label>
+                               <label class="uk-form-label" for="group"><?php echo $I18n->t('profile.input.maingroup'); ?></label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="group" type="text" name="fdata[group]" disabled
                                               value="<?php echo $TemplateData['editData']['baseGroupName'] ?? ''; ?>"
@@ -24,7 +24,7 @@
                                </div>
                        </div>
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="additionalGroups">Additional groups</label>
+                               <label class="uk-form-label" for="additionalGroups"><?php echo $I18n->t('profile.input.addgroups'); ?></label>
                                <div class="uk-form-controls">
                                        <select class="uk-select" multiple="multiple" size="5" id="additionalGroups" name="fdata[additionalGroups]" disabled>
                                        <?php
                                </div>
                        </div>
                        <div class="uk-margin">
-                               <div class="uk-form-label">Create API Token</div>
+                               <div class="uk-form-label"><?php echo $I18n->t('profile.input.createtoken'); ?></div>
                                <div class="uk-form-controls uk-form-controls-text">
                                        <label>
                                                <input class="uk-checkbox" type="checkbox" name="fdata[refreshApiToken]" value="1"><br />
-                                               Valid until: <?php echo $TemplateData['editData']['apiTokenValidDate'] ?? ''; ?><br />
-                                               Key: <?php echo $TemplateData['editData']['apiToken'] ?? ''; ?>
+                                               <?php echo $I18n->t('profile.input.apitoken.valid'); ?> <?php echo $TemplateData['editData']['apiTokenValidDate'] ?? ''; ?><br />
+                                               <?php echo $I18n->t('profile.input.apitoken.current'); ?> <?php echo $TemplateData['editData']['apiToken'] ?? ''; ?>
                                        </label>
                                </div>
                        </div>
                        <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>