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"
<%@ 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>
<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));
},