]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
adding some translations
authorBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 12:30:41 +0000 (14:30 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 12:30:41 +0000 (14:30 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/i18n/eng.ini
webclient/view/98/advancedsearch/advancedsearch.html
webclient/view/98/auth/auth.html
webclient/view/98/main.php
webclient/view/98/manageusers/manageusers.html
webclient/view/98/profile/profile.html
webclient/view/compact/advancedsearch/advancedsearch.html
webclient/view/default/advancedsearch/advancedsearch.html
webclient/view/default/auth/auth.html
webclient/view/default/manageusers/manageusers.html
webclient/view/default/profile/profile.html

index d46a3e43bde21a44da6e2454e9daf3aac41998ff..6f6d6ad1f6c0c257a82909368df8ed89bfb49b30 100644 (file)
@@ -20,9 +20,7 @@
 ;   The value is the keyname without any quotes.
 ;   Use this to create unique translations without changing the template
 
-auth.input.password = "Password"
-auth.input.username = "Username"
-auth.login = "Login"
+
 auth.logout = "Logout"
 
 advsearch.explain.fields = "Available fields in <b>%s</b> are:"
@@ -40,6 +38,7 @@ advsearch.operators.plus = "A leading plus sign indicates that this word must be
 advsearch.operators.quote = 'A phrase that is enclosed within double quote (") characters matches only rows that contain the phrase literally, as it was typed.'
 advsearch.result = "Display result for: <b>%s</b><br>(Max. result of 60)"
 advsearch.submit.bulkedit = "Bulkedit these results"
+advsearch.input.search.label = "Search for"
 
 bulkedit.headline.edit = "Bulkedit these entries in:"
 
@@ -102,6 +101,9 @@ global.field.select.bulkoption = "Select bulk edit option"
 global.add = "Add"
 global.replace = "Replace"
 global.clear = "Clear"
+global.password = "Password"
+global.username = "Username"
+global.login = "Login"
 
 pagination.previous = "previous"
 pagination.gotopage = "Goto page"
index 15d9b86929d94a03a939f08b21a37fa5e475277d..3cd6bc85656fdcdfe5c113d1b33ca532d5102239 100644 (file)
@@ -2,53 +2,47 @@
 
        <form method="post">
                <div class="field-row">
-                       <label for="search">Search for</label>
+                       <label for="search"><?php echo $I18n->t('advsearch.input.search.label'); ?></label>
                        <input id="search" type="text" autocomplete="off" name="fdata[search]"
-                              placeholder="See search syntax for options" size="50" />
+                              placeholder="<?php echo $I18n->t('advsearch.input.search.placeholder'); ?>" size="50" />
                </div>
                <div class="field-row">
-                       <p>This uses the table view as default. Remember to select the fields to show in collection config</p>
+                       <p><?php echo $I18n->t('advsearch.input.description'); ?></p>
                </div>
                <div class="field-row">
-                       <input type="submit" name="submitForm" value="Search" />
+                       <input type="submit" name="submitForm" value="<?php echo $I18n->t('global.search'); ?>" />
                </div>
        </form>
 
-       <h4>Syntax</h4>
-       <p>To search within the collection default search field, like the ordinary search, just type the search term and go.</p>
-       <p>
-               To search within the possible fields of a collection type the field <b>identifier</b> followed by <b>:</b> and then a space. Not every search operator does make sense with tag search fields.
-               If the search is within a field witch is not configured to be displayed in the table view, it will be added.
-       </p>
+       <h4><?php echo $I18n->t('advsearch.headline.syntax'); ?></h4>
+       <p><?php echo $I18n->t('advsearch.help.1'); ?></p>
+       <p><?php echo $I18n->t('advsearch.help.2'); ?></p>
        <pre>title: bourne</pre>
-       <p>Available fields in <b><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></b> are:</p>
+       <p><?php echo $I18n->t('advsearch.explain.fields', $TemplateData['loadedCollection']['name'] ?? ''); ?></p>
        <pre style="white-space: normal">
        <?php foreach($TemplateData['collectionFields'] as $k=>$v) {
                echo $v['identifier']." ";
        } ?>
        </pre>
-       <p>Possible search operators:</p>
+       <p><?php echo $I18n->t('advsearch.operators'); ?></p>
        <dl>
                <dt>&ast;</dt>
-               <dd>
-                       The asterisk serves as the truncation (or wildcard) operator. Unlike the other operators,
-                       it is appended to the word to be affected. Words match if they begin with the word preceding the * operator.
-               </dd>
+               <dd><?php echo $I18n->t('advsearch.operators.asterisk'); ?></dd>
 
                <dt>&plus;</dt>
-               <dd>A leading plus sign indicates that this word must be present in each row that is returned.</dd>
+               <dd><?php echo $I18n->t('advsearch.operators.plus'); ?></dd>
 
                <dt>&minus;</dt>
-               <dd>A leading minus sign indicates that this word must not be present in any of the rows that are returned.</dd>
+               <dd><?php echo $I18n->t('advsearch.operators.minus'); ?></dd>
 
                <dt>&quot;</dt>
-               <dd>A phrase that is enclosed within double quote (") characters matches only rows that contain the phrase literally, as it was typed.</dd>
+               <dd><?php echo $I18n->t('advsearch.operators.quote'); ?></dd>
 
                <dt>&gt;</dt>
-               <dd>A leading greater than sign indicates that rows greater than the number will be returned.</dd>
+               <dd><?php echo $I18n->t('advsearch.operators.greater'); ?></dd>
 
                <dt>&lt;</dt>
-               <dd>A leading less than sign indicates that rows smaller than the number will be returned.</dd>
+               <dd><?php echo $I18n->t('advsearch.operators.less'); ?></dd>
        </dl>
 
        <?php if(!empty($TemplateData['search'])) { ?>
 <?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 f59b7f36966de9460602ec2fb5388a4fd708ef60..735e8d028fa5b5398738248e1fb1debc1974a8d6 100644 (file)
@@ -1,19 +1,19 @@
 <?php if($Doomguy->isSignedIn() === true) { ?>
-<h3>Logout</h3>
+<h3><?php echo $I18n->t('auth.logout'); ?></h3>
 <form method="get" action="index.php">
        <input type="hidden" name="p" value="auth" />
        <input type="hidden" name="m" value="logout" />
        <input type="submit" value="Logout" />
 </form>
 <?php } else { ?>
-<h3>Login</h3>
+<h3><?php echo $I18n->t('global.login'); ?></h3>
 <form method="post">
        <div class="field-row">
-               <label for="username">Username</label>
+               <label for="username"><?php echo $I18n->t('global.username'); ?></label>
                <input id="username" type="text" autocomplete="off" name="fdata[login]">
        </div>
        <div class="field-row">
-               <label for="password">Password</label>
+               <label for="password"><?php echo $I18n->t('global.password'); ?></label>
                <input id="password" type="password" autocomplete="off" name="fdata[password]">
        </div>
        <div class="field-row">
index eaac217db0d2d6f59762efa4586da2b3df3119ce..ed142cf5ca1f8229ca2d32745fb6ad3eaee9a0c5 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="<?php echo $I18n->twoCharLang(); ?>">
 <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
index 0b748f5993b91f41c8c91049548c9ced5546dc11..168fd3d76bc35f945b779266a2158ba2947792e5 100644 (file)
@@ -3,17 +3,17 @@
 
 <form method="post" class="maxSizeForm">
        <div class="field-row-stacked">
-               <label for="username">Username *</label>
+               <label for="username"><?php echo $I18n->t('global.username'); ?> *</label>
                <input id="username" type="text" autocomplete="off" name="fdata[username]"
                        value="<?php echo $TemplateData['editData']['name'] ?? ''; ?>">
        </div>
        <div class="field-row-stacked">
-               <label for="login">Login *</label>
+               <label for="login"><?php echo $I18n->t('global.login'); ?> *</label>
                <input id="login" type="text" autocomplete="off" name="fdata[login]"
                        value="<?php echo $TemplateData['editData']['login'] ?? ''; ?>">
        </div>
        <div class="field-row-stacked">
-               <label for="password">Password *</label>
+               <label for="password"><?php echo $I18n->t('global.password'); ?> *</label>
                <input id="password" type="password" autocomplete="off" name="fdata[password]">
        </div>
        <div class="field-row-stacked">
@@ -71,9 +71,9 @@
        <table width="100%">
                <thead>
                        <tr>
-                               <th>Login</th>
+                               <th><?php echo $I18n->t('global.login'); ?></th>
                                <th>Created</th>
-                               <th>Username</th>
+                               <th><?php echo $I18n->t('global.username'); ?></th>
                                <th>Group(s)</th>
                                <th>Status</th>
                                <th></th>
index 948157895a4381645f0366406d058cd62fdec397..0e501478db8e55db8bf2b80185625750add0d280 100644 (file)
@@ -2,12 +2,12 @@
 
 <form method="post" class="maxSizeForm">
        <div class="field-row-stacked">
-               <label for="username">Username</label>
+               <label for="username"><?php echo $I18n->t('global.username'); ?></label>
                <input id="username" type="text" autocomplete="off" name="fdata[username]"
                       value="<?php echo $TemplateData['editData']['name'] ?? ''; ?>">
        </div>
        <div class="field-row-stacked">
-               <label for="password">Password</label>
+               <label for="password"><?php echo $I18n->t('global.password'); ?></label>
                <input id="password" type="password" autocomplete="off" name="fdata[password]">
        </div>
        <div class="field-row-stacked">
index 53eb09c4195b84348a785d96a6d96bef8af18254..02855e1692780bf6adc1dca162d5905624c7967d 100644 (file)
        <div class="uk-width-1-2@l">
                <form class="uk-form-horizontal uk-margin-small" method="post">
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="search">Search for</label>
+                               <label class="uk-form-label" for="search"><?php echo $I18n->t('advsearch.input.search.label'); ?></label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="search" type="text" autocomplete="off" name="fdata[search]"
-                                              placeholder="See search syntax for options">
+                                              placeholder="<?php echo $I18n->t('advsearch.input.search.placeholder'); ?>">
                                </div>
                        </div>
                        <div class="uk-margin">
 
                        <div class="uk-margin">
                                <button class="uk-button uk-button-primary" type="submit" name="submitForm">
-                                       Search
+                                       <?php echo $I18n->t('global.search'); ?>
                                </button>
                        </div>
                </form>
        </div>
        <div class="uk-width-1-2@l">
-               <h4>Syntax</h4>
-               <p>To search within the collection default search field, like the ordinary search, just type the search term and go.</p>
-               <p>
-                       To search within the possible fields of a collection type the field identifier followed by : and then a space. Not every search operator does make sense with tag search fields.
-                       If the search is within a field witch is not configured to be displayed in the table view, it will be added.
-               </p>
+               <h4><?php echo $I18n->t('advsearch.headline.syntax'); ?></h4>
+               <p><?php echo $I18n->t('advsearch.help.1'); ?></p>
+               <p><?php echo $I18n->t('advsearch.help.2'); ?></p>
                eg.: <code>title: bourne</code>
-               <p>Available fields in <b><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></b> are:</p>
+               <p><?php echo $I18n->t('advsearch.explain.fields', $TemplateData['loadedCollection']['name'] ?? ''); ?></p>
                <pre style="white-space: normal">
                <?php
                foreach($TemplateData['collectionFields'] as $k=>$v) {
                }
                ?>
                </pre>
-               <p>Possible search operators:</p>
-               <p>
-                       * = The asterisk serves as the truncation (or wildcard) operator. Unlike the other operators,
-                       it is appended to the word to be affected. Words match if they begin with the word preceding the * operator.
-               </p>
-               <p>+ = A leading plus sign indicates that this word must be present in each row that is returned.</p>
-               <p>- = A leading minus sign indicates that this word must not be present in any of the rows that are returned.</p>
-               <p>" = A phrase that is enclosed within double quote (") characters matches only rows that contain the phrase literally, as it was typed.</p>
-               <p>&gt; = A leading greater than sign indicates that rows greater than the number will be returned.</p>
-               <p>&lt; = A leading less than sign indicates that rows smaller than the number will be returned.</p>
+               <p><?php echo $I18n->t('advsearch.operators'); ?></p>
+               <p>* = <?php echo $I18n->t('advsearch.operators.asterisk'); ?></p>
+               <p>+ = <?php echo $I18n->t('advsearch.operators.plus'); ?></p>
+               <p>- = <?php echo $I18n->t('advsearch.operators.plus'); ?></p>
+               <p>" = <?php echo $I18n->t('advsearch.operators.quote'); ?></p>
+               <p>&gt; = <?php echo $I18n->t('advsearch.operators.quote'); ?></p>
+               <p>&lt; = <?php echo $I18n->t('advsearch.operators.quote'); ?></p>
        </div>
 </div>
 
 <?php } else { ?>
 <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">
-               <h3 class="uk-heading-divider">Please select a collection first</h3>
+               <h3 class="uk-heading-divider"><?php echo $I18n->t('global.collection.select.notice'); ?></h3>
                <dl class="uk-description-list">
                        <?php foreach($TemplateData['collections'] as $k=>$v) { ?>
                        <dt><a href="index.php?p=advancedsearch&collection=<?php echo $k; ?>"><?php echo $v['name']; ?></a></dt>
index 517a612bb1c34cba000feb2ee7d9bf0b5e4a9f3e..d68f138a4bac44cb2c6945b1adcf01b4bc08199d 100644 (file)
        <div class="uk-width-1-2@l">
                <form class="uk-form-horizontal uk-margin-small" method="post">
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="search">Search for</label>
+                               <label class="uk-form-label" for="search"><?php echo $I18n->t('advsearch.input.search.label'); ?></label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="search" type="text" autocomplete="off" name="fdata[search]"
-                                              placeholder="See search syntax for options">
+                                              placeholder="<?php echo $I18n->t('advsearch.input.search.placeholder'); ?>">
                                </div>
                        </div>
                        <div class="uk-margin">
 
                        <div class="uk-margin">
                                <button class="uk-button uk-button-primary" type="submit" name="submitForm">
-                                       Search
+                                       <?php echo $I18n->t('global.search'); ?>
                                </button>
                        </div>
                </form>
        </div>
        <div class="uk-width-1-2@l">
-               <h4>Syntax</h4>
-               <p>To search within the collection default search field, like the ordinary search, just type the search term and go.</p>
-               <p>
-                       To search within the possible fields of a collection type the field identifier followed by : and then a space. Not every search operator does make sense with tag search fields.
-                       If the search is within a field witch is not configured to be displayed in the table view, it will be added.
-               </p>
+               <h4><?php echo $I18n->t('advsearch.headline.syntax'); ?></h4>
+               <p><?php echo $I18n->t('advsearch.help.1'); ?></p>
+               <p><?php echo $I18n->t('advsearch.help.2'); ?></p>
                eg.: <code>title: bourne</code>
-               <p>Available fields in <b><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></b> are:</p>
+               <p><?php echo $I18n->t('advsearch.explain.fields', $TemplateData['loadedCollection']['name'] ?? ''); ?></p>
                <pre style="white-space: normal">
                <?php
                foreach($TemplateData['collectionFields'] as $k=>$v) {
                }
                ?>
                </pre>
-               <p>Possible search operators:</p>
-               <p>
-                       * = The asterisk serves as the truncation (or wildcard) operator. Unlike the other operators,
-                       it is appended to the word to be affected. Words match if they begin with the word preceding the * operator.
-               </p>
-               <p>+ = A leading plus sign indicates that this word must be present in each row that is returned.</p>
-               <p>- = A leading minus sign indicates that this word must not be present in any of the rows that are returned.</p>
-               <p>" = A phrase that is enclosed within double quote (") characters matches only rows that contain the phrase literally, as it was typed.</p>
-               <p>&gt; = A leading greater than sign indicates that rows greater than the number will be returned.</p>
-               <p>&lt; = A leading less than sign indicates that rows smaller than the number will be returned.</p>
+               <p><?php echo $I18n->t('advsearch.operators'); ?></p>
+               <p>* = <?php echo $I18n->t('advsearch.operators.asterisk'); ?></p>
+               <p>+ = <?php echo $I18n->t('advsearch.operators.plus'); ?></p>
+               <p>- = <?php echo $I18n->t('advsearch.operators.plus'); ?></p>
+               <p>" = <?php echo $I18n->t('advsearch.operators.quote'); ?></p>
+               <p>&gt; = <?php echo $I18n->t('advsearch.operators.quote'); ?></p>
+               <p>&lt; = <?php echo $I18n->t('advsearch.operators.quote'); ?></p>
        </div>
 </div>
 
 <?php } ?>
 
 <?php } else { ?>
-<h3 class="uk-h3">Please select a collection first</h3>
+<h3 class="uk-h3"><?php echo $I18n->t('global.collection.select.notice'); ?></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">
                <dl class="uk-description-list uk-description-list-divider">
index e463ce4ad9b07a0b76a6e90e54c81b99e2efd1d5..671fe41d79fc6e8a5aa513f8ecbb29dc019d2292 100644 (file)
@@ -1,21 +1,21 @@
 <?php if($Doomguy->isSignedIn() === true) { ?>
-<h3 class="uk-h3">Logout</h3>
+<h3 class="uk-h3"><?php echo $I18n->t('auth.logout'); ?></h3>
 <a class="uk-button uk-button-primary" href="index.php?p=auth&m=logout">
        Logout
        <span uk-icon="icon: sign-out"></span>
 </a>
 <?php } else { ?>
-<h3 class="uk-h3">Login</h3>
+<h3 class="uk-h3"><?php echo $I18n->t('global.login'); ?></h3>
 <div class="uk-flex uk-flex-wrap uk-flex-wrap-around">
        <form class="uk-form-horizontal uk-margin-small" method="post">
                <div class="uk-margin">
-                       <label class="uk-form-label" for="username">Username</label>
+                       <label class="uk-form-label" for="username"><?php echo $I18n->t('global.username'); ?></label>
                        <div class="uk-form-controls">
                                <input class="uk-input" id="username" type="text" autocomplete="off" name="fdata[login]">
                        </div>
                </div>
                <div class="uk-margin">
-                       <label class="uk-form-label" for="password">Password</label>
+                       <label class="uk-form-label" for="password"><?php echo $I18n->t('global.password'); ?></label>
                        <div class="uk-form-controls">
                                <input class="uk-input" id="password" type="password" autocomplete="off" name="fdata[password]">
                        </div>
index e345919912ab255dbf67b09c3bd38affaa875d26..5603b2690034beeee10489f7be58927575ce8406 100644 (file)
@@ -4,21 +4,21 @@
                <h4 class="uk-h4">Add or modify a user</h4>
                <form class="uk-form-horizontal uk-margin-small" method="post">
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="username">Username *</label>
+                               <label class="uk-form-label" for="username"><?php echo $I18n->t('global.username'); ?> *</label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="username" type="text" autocomplete="off" name="fdata[username]"
                                                value="<?php echo $TemplateData['editData']['name'] ?? ''; ?>">
                                </div>
                        </div>
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="login">Login *</label>
+                               <label class="uk-form-label" for="login"><?php echo $I18n->t('global.login'); ?> *</label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="login" type="text" autocomplete="off" name="fdata[login]"
                                                value="<?php echo $TemplateData['editData']['login'] ?? ''; ?>">
                                </div>
                        </div>
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="password">Password *</label>
+                               <label class="uk-form-label" for="password"><?php echo $I18n->t('global.password'); ?> *</label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="password" type="password" autocomplete="off" name="fdata[password]">
                                </div>
@@ -93,8 +93,8 @@
                <table class="uk-table">
                        <thead>
                                <tr>
-                                       <th>Login</th>
-                                       <th>Username</th>
+                                       <th><?php echo $I18n->t('global.login'); ?></th>
+                                       <th><?php echo $I18n->t('global.username'); ?></th>
                                        <th>Group(s)</th>
                                        <th>Status</th>
                                        <th></th>
index b96678c2a34b4e53c2e0263b4169685fcce98181..928f2405cee4ea16de23d1023b23ec9c46e6274b 100644 (file)
@@ -3,14 +3,14 @@
        <div class="uk-width-1-2">
                <form class="uk-form-horizontal uk-margin-small" method="post">
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="username">Username</label>
+                               <label class="uk-form-label" for="username"><?php echo $I18n->t('global.username'); ?></label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="username" type="text" autocomplete="off" name="fdata[username]"
                                               value="<?php echo $TemplateData['editData']['name'] ?? ''; ?>">
                                </div>
                        </div>
                        <div class="uk-margin">
-                               <label class="uk-form-label" for="password">Password</label>
+                               <label class="uk-form-label" for="password"><?php echo $I18n->t('global.password'); ?></label>
                                <div class="uk-form-controls">
                                        <input class="uk-input" id="password" type="password" autocomplete="off" name="fdata[password]">
                                </div>