]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix add to translation static texts on the api default page
authorMarcin Haba <marcin.haba@bacula.pl>
Wed, 1 Nov 2017 15:35:25 +0000 (16:35 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Wed, 1 Nov 2017 17:15:49 +0000 (18:15 +0100)
gui/baculum/protected/API/Lang/en/messages.po
gui/baculum/protected/API/Lang/pl/messages.po
gui/baculum/protected/API/Pages/Panel/APIHome.page

index 986bc1c487fabb6877a95de7b74a8b9f84aaa46a..64012d700c24963a5fc72628d24e49629e7b35ef 100644 (file)
@@ -379,3 +379,39 @@ msgstr "set all scopes"
 
 msgid "Go to configuration wizard"
 msgstr "Go to configuration wizard"
+
+msgid "Welcome on the Baculum API default page"
+msgstr "Welcome on the Baculum API default page"
+
+msgid "Baculum API Client"
+msgstr "Baculum API Client"
+
+msgid "Here you can try one from API commands"
+msgstr "Here you can try one from API commands"
+
+msgid "Starting..."
+msgstr "Starting..."
+
+msgid "Username"
+msgstr "Username"
+
+msgid "Delete"
+msgstr "Delete"
+
+msgid "Client ID"
+msgstr "Client ID"
+
+msgid "Redirect URI"
+msgstr "Redirect URI"
+
+msgid "Scopes"
+msgstr "Scopes"
+
+msgid "Bconsole Path"
+msgstr "Bconsole Path"
+
+msgid "Access token:"
+msgstr "Access token:"
+
+msgid "Send request"
+msgstr "Send request"
index d9b21cb588f0f791bbce4f22917a522f06d6e88a..be341549d6d10cf143f5c4fd9ae239865c6e3d27 100644 (file)
@@ -379,3 +379,39 @@ msgstr "ustaw wszystkie zakresy"
 
 msgid "Go to configuration wizard"
 msgstr "Idź do przewodnika konfiguracji"
+
+msgid "Welcome on the Baculum API default page"
+msgstr "Witaj na stronie głównej Baculum API"
+
+msgid "Baculum API Client"
+msgstr "Klient API Baculum"
+
+msgid "Here you can try one from API commands"
+msgstr "Tutaj możesz wypróbować jedną z komend API"
+
+msgid "Starting..."
+msgstr "Start..."
+
+msgid "Username"
+msgstr "Użytkownik"
+
+msgid "Delete"
+msgstr "Usuń"
+
+msgid "Client ID"
+msgstr "ID klienta"
+
+msgid "Redirect URI"
+msgstr "Redirect URI"
+
+msgid "Scopes"
+msgstr "Zakresy"
+
+msgid "Bconsole Path"
+msgstr "Lokalizacja Bconsole"
+
+msgid "Access token:"
+msgstr "Żeton dostępu:"
+
+msgid "Send request"
+msgstr "Wyślij żądanie"
index d10089ab25f58cbf75e5d00cd8d55c2b10056083..d52b58a06e0ccb03cd0d50a339b7179714f11b29 100644 (file)
@@ -1,18 +1,18 @@
 <%@ MasterClass="Application.API.Layouts.Main" Theme="Baculum-v1"%>
 <com:TContent ID="Main">
        <com:TClientScript ScriptUrl=<%~ ../../JavaScript/misc.js %> />
-       <h3 style="clear: left">Welcome on the Baculum API default page <input type="button" class="bbutton" onclick="window.location.href='<%=$this->getService()->constructUrl('Panel.APIInstallWizard')%>'" value="<%[ Go to configuration wizard ]%>" style="float: right" /></h3>
+       <h3 style="clear: left"><%[ Welcome on the Baculum API default page ]%> <input type="button" class="bbutton" onclick="window.location.href='<%=$this->getService()->constructUrl('Panel.APIInstallWizard')%>'" value="<%[ Go to configuration wizard ]%>" style="float: right" /></h3>
        <div id="tabs">
                <ul>
-                       <li><a href="#tab1">Baculum API Client</a></li>
+                       <li><a href="#tab1"><%[ Baculum API Client ]%></a></li>
                        <li><a href="#tab2"><%[ List HTTP Basic users ]%></a></li>
                        <li><a href="#tab3"><%[ List OAuth2 clients ]%></a></li>
                </ul>
                <div id="tab1">
-                       <p>Here you can try one from API commands</p>
+                       <p><%[ Here you can try one from API commands ]%></p>
                        <div>
                                <com:TJuiProgressbar ID="Progress" Options.Max="3" Options.Value="false" Width="700px" CssClass="center" Style="float: left">
-                                       <span id="progress_label">Starting...</span>
+                                       <span id="progress_label"><%[ Starting... ]%></span>
                                </com:TJuiProgressbar>
                                <img id="api_refresh" src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/icon_refresh.png" alt="<%[ Refresh token ]%>" title="<%[ Refresh token ]%>" onclick="oAPIHome.init_oauth2_client();" />
                        </div>
@@ -26,7 +26,7 @@
                                        <option value="joblog">joblog</option>
                                        <option value="bvfs">bvfs</option>
                                </select>
-                               <input id="api_command" name="command" onkeydown="if (event.keyCode == 13) { oAPIHome.send_request(); }" /> <input class="api_button" type="button" name="apply" value="Send request" onclick="oAPIHome.send_request();" />
+                               <input id="api_command" name="command" onkeydown="if (event.keyCode == 13) { oAPIHome.send_request(); }" /> <input class="api_button" type="button" name="apply" value="<%[ Send request ]%>" onclick="oAPIHome.send_request();" />
                        </div>
                        <div id="api_output">
                                <pre id="api_result"></pre>
                        >
                                <com:TBoundColumn
                                        ID="BasicUsernameColumn"
-                                       HeaderText="Username"
+                                       HeaderText="<%[ Username ]%>"
                                        DataField="username"
                                />
                                <com:TTemplateColumn
                                        ID="BasicDeleteColumn"
-                                       HeaderText="Delete"
+                                       HeaderText="<%[ Delete ]%>"
                                        ItemStyle.HorizontalAlign="Center"
                                >
                                <prop:ItemTemplate>
                                        <com:TActiveLinkButton
-                                               Text="Delete"
+                                               Text="<%[ Delete ]%>"
                                                OnCommand="SourceTemplateControl.deleteBasicItem"
                                                CommandParameter="<%=$this->getParent()->Data['username']%>"
                                                Attributes.onclick="if(!confirm('<%[ Are you sure? ]%>')) return false;"
                        >
                                <com:TBoundColumn
                                        ID="ClientIDColumn"
-                                       HeaderText="Client ID"
+                                       HeaderText="<%[ Client ID ]%>"
                                        DataField="client_id"
                                />
                                <com:TBoundColumn
-                                       HeaderText="Redirect URI"
+                                       HeaderText="<%[ Redirect URI ]%>"
                                        DataField="redirect_uri"
                                />
                                <com:TBoundColumn
-                                       HeaderText="Scopes"
+                                       HeaderText="<%[ Scopes ]%>"
                                        DataField="scope"
                                />
                                <com:TBoundColumn
-                                       HeaderText="Bconsole Path"
+                                       HeaderText="<%[ Bconsole Path ]%>"
                                        DataField="bconsole_cfg_path"
                                />
                                <com:TTemplateColumn
                                        ID="OAuth2DeleteColumn"
-                                       HeaderText="Delete"
+                                       HeaderText="<%[ Delete ]%>"
                                        ItemStyle.HorizontalAlign="Center"
                                >
                                <prop:ItemTemplate>
                                        <com:TActiveLinkButton
-                                               Text="Delete"
+                                               Text="<%[ Delete ]%>"
                                                OnCommand="SourceTemplateControl.deleteOAuth2Item"
                                                CommandParameter="<%=$this->getParent()->Data['client_id']%>"
                                                Attributes.onclick="if(!confirm('<%[ Are you sure? ]%>')) return false;"
                                request.done(function(data) {
                                        if (typeof(data) == 'object' && data.hasOwnProperty('access_token')) {
                                                this.token = data.access_token;
-                                               this.set_progress(3, 'Access token: ' + this.token);
+                                               this.set_progress(3, '<%[ Access token: ]%> ' + this.token);
                                        }
                                }.bind(this));
                        },