Commit 2abfe11c authored by echel0n's avatar echel0n
Browse files

Converted more templates to i18n

parent 939e18f6
# Changelog
- * 6bd7005 - 2017-10-14: Extracted more gettext messages
- * b5f38da - 2017-10-14: Converted more templates to i18n
- * 939e18f - 2017-10-14: Extracted more gettext messages
- * d078c67 - 2017-10-13: Surrounded titles with gettext underscore
- * 0a45996 - 2017-10-13: Adding in i18n support for multi-language webui
- * 7d2ff8a - 2017-10-13: Release v9.1.36
......
......@@ -21,16 +21,16 @@
<div class="col-md-12">
<div class="btn-group navbar-btn" data-toggle="buttons">
<label class="btn btn-primary">
<input autocomplete="off" id="option-profile" type="checkbox"/> Profile
<input autocomplete="off" id="option-profile" type="checkbox"/> ${_('Profile')}
</label>
<label class="btn btn-primary">
<input autocomplete="off" id="option-jsonp" type="checkbox"/> JSONP
<input autocomplete="off" id="option-jsonp" type="checkbox"/> ${_('JSONP')}
</label>
</div>
<form class="navbar-form navbar-right">
<div class="form-group">
<input autocomplete="off" class="form-control" id="command-search" placeholder="Command name"
<input autocomplete="off" class="form-control" id="command-search" placeholder="${_('Command name')}"
type="search"/>
</div>
</form>
......@@ -61,18 +61,18 @@
% if help['data']['optionalParameters'] or help['data']['requiredParameters']:
<div class="row">
<div class="col-md-12">
<h4>Parameters</h4>
<h4>${_('Parameters')}</h4>
<div class="horizontal-scroll">
<table class="tablesorter">
<thead>
<tr>
<th>Name</th>
<th>Required</th>
<th>Description</th>
<th>Type</th>
<th>Default value</th>
<th>Allowed values</th>
<th>${_('Name')}</th>
<th>${_('Required')}</th>
<th>${_('Description')}</th>
<th>${_('Type')}</th>
<th>${_('Default value')}</th>
<th>${_('Allowed values')}</th>
</tr>
</thead>
${display_parameters_doc(help['data']['requiredParameters'], True)}
......@@ -84,9 +84,10 @@
% endif
<div class="row">
<div class="col-md-12">
<h4>Playground</h4>
<h4>${_('Playground')}</h4>
<span>
URL: <kbd id="command-${command_id}-base-url">/api/${apikey}/?cmd=${command}</kbd>
${_('URL:')} <kbd id="command-${command_id}-base-url">/api/${apikey}
/?cmd=${command}</kbd>
</span>
</div>
</div>
......@@ -94,7 +95,7 @@
<br/>
<div class="row">
<div class="col-md-12">
<label>Required parameters</label>
<label>${_('Required parameters')}</label>
${display_parameters_playground(help['data']['requiredParameters'], True, command_id)}
</div>
</div>
......@@ -103,7 +104,7 @@
<br/>
<div class="row">
<div class="col-md-12">
<label>Optional parameters</label>
<label>${_('Optional parameters')}</label>
${display_parameters_playground(help['data']['optionalParameters'], False, command_id)}
</div>
</div>
......@@ -115,7 +116,7 @@
data-base-url="command-${command_id}-base-url"
data-target="#command-${command_id}-response"
data-time="#command-${command_id}-time" data-url="#command-${command_id}-url">
Call API
${_('Call API')}
</button>
</div>
</div>
......@@ -123,12 +124,12 @@
<div class="result-wrapper hidden">
<div class="clearfix">
<span class="pull-left">
Response: <strong id="command-${command_id}-time"></strong><br>
URL: <kbd id="command-${command_id}-url"></kbd>
${_('Response:')} <strong id="command-${command_id}-time"></strong><br>
${_('URL:')} <kbd id="command-${command_id}-url"></kbd>
</span>
<span class="pull-right">
<button class="btn btn-default" data-action="clear-result"
data-target="#command-${command_id}-response">Clear</button>
data-target="#command-${command_id}-response">${_('Clear')}</button>
</span>
</div>
......@@ -155,9 +156,9 @@
</td>
<td class="text-center">
% if required:
<span class="glyphicon glyphicon-ok text-success" title="Yes"></span>
<span class="glyphicon glyphicon-ok text-success" title="${_('Yes')}"></span>
% else:
<span class="glyphicon glyphicon-remove text-muted" title="No"></span>
<span class="glyphicon glyphicon-remove text-muted" title="${_('No')}"></span>
% endif
</td>
<td>${parameter_help.get('desc', '')}</td>
......@@ -184,8 +185,8 @@
<option>${parameter}</option>
% if allowed_values == [0, 1]:
<option value="0">No</option>
<option value="1">Yes</option>
<option value="0">${_('No')}</option>
<option value="1">${_('Yes')}</option>
% else:
% for allowed_value in allowed_values:
<option value="${allowed_value}">${allowed_value}</option>
......@@ -204,13 +205,13 @@
% if 'season' in parameters:
<select class="form-control hidden" name="season" data-action="update-episodes"
data-command="${command}">
<option>season</option>
<option>${_('season')}</option>
</select>
% endif
% if 'episode' in parameters:
<select class="form-control hidden" name="episode" data-command="${command}">
<option>episode</option>
<option>${_('episode')}</option>
</select>
% endif
% elif parameter == 'tvdbid':
......
......@@ -6,15 +6,15 @@
%>
<%block name="tabs">
<li class="active"><a data-toggle="tab" href="#core-tab-pane1">AnimeDB Settings</a></li>
<li><a data-toggle="tab" href="#core-tab-pane2">${_('Look &amp; Feel')}</a></li>
<li class="active"><a data-toggle="tab" href="#core-tab-pane1">${_('AnimeDB Settings')}</a></li>
<li><a data-toggle="tab" href="#core-tab-pane2">${_('Look and Feel')}</a></li>
</%block>
<%block name="pages">
<div id="core-tab-pane1" class="tab-pane fade in active">
<div class="row tab-pane">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12 tab-pane-desc">
<img class="notifier-icon" src="${srWebRoot}/images/anidb24.png" alt="AniDB" title="AniDB"
<img class="notifier-icon" src="${srWebRoot}/images/anidb24.png" alt="AniDB" title="${_('AniDB')}"
width="24" height="24"/>
<h3><a href="${anon_url('http://anidb.info')}"
onclick="window.open(this.href, '_blank'); return false;">AniDB</a></h3>
......@@ -47,7 +47,7 @@
</div>
<input type="text" name="anidb_username" id="anidb_username"
value="${sickrage.srCore.srConfig.ANIDB_USERNAME}"
title="AniDB username"
title="${_('AniDB username')}"
class="form-control"
autocapitalize="off"/>
</div>
......@@ -64,7 +64,7 @@
</div>
<input type="password" name="anidb_password" id="anidb_password"
value="${sickrage.srCore.srConfig.ANIDB_PASSWORD}"
title="AniDB password"
title="${_('AniDB password')}"
class="form-control"
autocapitalize="off"/>
</div>
......@@ -85,7 +85,7 @@
</div>
<div class="row">
<div class="col-md-12">
<input type="submit" class="btn config_submitter" value="Save Changes"/>
<input type="submit" class="btn config_submitter" value="${_('Save Changes')}"/>
</div>
</div>
</fieldset>
......@@ -112,7 +112,7 @@
</div>
<div class="row">
<div class="col-md-12">
<input type="submit" class="btn config_submitter" value="Save Changes"/>
<input type="submit" class="btn config_submitter" value="${_('Save Changes')}"/>
</div>
</div>
</fieldset>
......
<%inherit file="../layouts/config.mako"/>
<%def name='formaction()'><% return 'backuprestore' %></%def>
<%block name="tabs">
<li class="active"><a data-toggle="tab" href="#core-tab-pane1">Backup</a></li>
<li><a data-toggle="tab" href="#core-tab-pane2">Restore</a></li>
<li class="active"><a data-toggle="tab" href="#core-tab-pane1">${_('Backup')}</a></li>
<li><a data-toggle="tab" href="#core-tab-pane2">${_('Restore')}</a></li>
</%block>
<%block name="pages">
<div id="core-tab-pane1" class="tab-pane fade in active clearfix">
......@@ -16,10 +16,10 @@
<div class="col-md-12 component-desc">
<div class="input-group input350">
<input name="backupDir" id="backupDir" class="form-control"
placeholder="Select the folder you wish to save your backup file to"
placeholder="${_('Select the folder you wish to save your backup file to')}"
autocapitalize="off"/>
<div class="input-group-addon">
<a href="#" class="fa fa-download" title="Backup" id="Backup"></a>
<a href="#" class="fa fa-download" title="${_('Backup')}" id="Backup"></a>
</div>
</div>
</div>
......@@ -42,10 +42,10 @@
<div class="col-md-12 component-desc">
<div class="input-group input350">
<input name="backupFile" id="backupFile"
placeholder="Select the backup file you wish to restore"
placeholder="${_('Select the backup file you wish to restore')}"
class="form-control" autocapitalize="off"/>
<div class="input-group-addon">
<a href="#" class="fa fa-upload" title="Restore" id="Restore"></a>
<a href="#" class="fa fa-upload" title="${_('Restore')}" id="Restore"></a>
</div>
</div>
</div>
......
......@@ -21,7 +21,7 @@
<div class="panel-body">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<i class="icons-sickrage icons-sickrage-version"></i> ${_('SR Version')}:
<i class="icons-sickrage icons-sickrage-version"></i> ${_('SR Version:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${sickrage.srCore.VERSIONUPDATER.updater.version}
......@@ -30,7 +30,7 @@
<br/>
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<i class="icons-sickrage icons-sickrage-type"></i> ${_('SR Type')}:
<i class="icons-sickrage icons-sickrage-type"></i> ${_('SR Type:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${sickrage.srCore.VERSIONUPDATER.updater.type}
......@@ -40,7 +40,7 @@
% if sr_user:
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<i class="icons-sickrage icons-sickrage-user"></i> ${_('SR User')}:
<i class="icons-sickrage icons-sickrage-user"></i> ${_('SR User:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${sr_user}
......@@ -50,14 +50,14 @@
% endif
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12"><i
class="icons-sickrage icons-sickrage-locale"></i> ${_('SR Locale')}:
class="icons-sickrage icons-sickrage-locale"></i> ${_('SR Locale:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">${sickrage.srCore.SYS_ENCODING}</div>
</div>
<br/>
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<i class="icons-sickrage icons-sickrage-cfg"></i> ${_('SR Config')}:
<i class="icons-sickrage icons-sickrage-cfg"></i> ${_('SR Config:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${sickrage.CONFIG_FILE}
......@@ -66,7 +66,7 @@
<br/>
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<i class="icons-sickrage icons-sickrage-cache"></i> ${_('SR Cache Dir')}:
<i class="icons-sickrage icons-sickrage-cache"></i> ${_('SR Cache Dir:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${sickrage.CACHE_DIR}
......@@ -75,7 +75,7 @@
<br/>
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<i class="icons-sickrage icons-sickrage-log"></i> ${_('SR Log Dir')}:
<i class="icons-sickrage icons-sickrage-log"></i> ${_('SR Log Dir:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${sickrage.srCore.srConfig.LOG_DIR}
......@@ -84,7 +84,7 @@
<br/>
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<i class="icons-sickrage icons-sickrage-console"></i> ${_('SR Arguments')}:
<i class="icons-sickrage icons-sickrage-console"></i> ${_('SR Arguments:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${sys.argv[1:]}
......@@ -94,7 +94,7 @@
% if sickrage.srCore.srConfig.WEB_ROOT:
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
${_('SR Web Root')}:
${_('SR Web Root:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${sickrage.srCore.srConfig.WEB_ROOT}
......@@ -104,7 +104,7 @@
% endif
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<i class="icons-sickrage icons-sickrage-tornado"></i> ${_('Tornado Version')}:
<i class="icons-sickrage icons-sickrage-tornado"></i> ${_('Tornado Version:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${tornado.version}
......@@ -113,7 +113,7 @@
<br/>
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<i class="icons-sickrage icons-sickrage-python"></i> ${_('Python Version')}:
<i class="icons-sickrage icons-sickrage-python"></i> ${_('Python Version:')}
</div>
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
${sys.version}
......
......@@ -5,7 +5,7 @@
%>
<%block name="tabs">
<li class="active"><a data-toggle="tab" href="#core-tab-pane1">Quality Sizes</a></li>
<li class="active"><a data-toggle="tab" href="#core-tab-pane1">${_('Quality Sizes')}</a></li>
</%block>
<%block name="pages">
......@@ -13,10 +13,12 @@
<div id="core-tab-pane1" class="tab-pane fade in active">
<div class="row tab-pane">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12 tab-pane-desc">
<h3>Quality Sizes</h3>
<p>Use default qualitiy sizes or specify custom ones per quality definition.</p>
<h3>${_('Quality Sizes')}</h3>
<p>${_('Use default qualitiy sizes or specify custom ones per quality definition.')}</p>
<div>
<p class="note"> Settings represent maximum size allowed per episode video file.</p>
<p class="note">
${_('Settings represent maximum size allowed per episode video file.')}
</p>
</div>
</div>
<fieldset class="col-lg-9 col-md-8 col-sm-8 col-xs-12 tab-pane-list">
......@@ -24,7 +26,7 @@
% if qsize:
<div class="row field-pair">
<div class="col-lg-3 col-md-4 col-sm-5 col-xs-12">
<label class="component-title">${_('${renderQualityPill(qtype)}')}</label>
<label class="component-title">${renderQualityPill(qtype)}</label>
</div>
<div class="col-lg-9 col-md-8 col-sm-7 col-xs-12 component-desc">
<div class="input-group input350">
......@@ -49,7 +51,7 @@
<div class="row">
<div class="col-md-12">
<input type="submit" class="btn config_submitter" value="Save Changes"/>
<input type="submit" class="btn config_submitter" value="${_('Save Changes')}"/>
</div>
</div>
......
......@@ -6,9 +6,9 @@
from sickrage.core.helpers import anon_url
%>
<%block name="tabs">
<li class="active"><a data-toggle="tab" href="#core-tab-pane1">Subtitles Search</a></li>
<li><a data-toggle="tab" href="#core-tab-pane2">Subtitles Plugin</a></li>
<li><a data-toggle="tab" href="#core-tab-pane3">Plugin Settings</a></li>
<li class="active"><a data-toggle="tab" href="#core-tab-pane1">${_('Subtitles Search')}</a></li>
<li><a data-toggle="tab" href="#core-tab-pane2">${_('Subtitles Plugin')}</a></li>
<li><a data-toggle="tab" href="#core-tab-pane3">${_('Plugin Settings')}</a></li>
</%block>
<%block name="pages">
<%
......@@ -20,8 +20,8 @@
<div id="core-tab-pane1" class="tab-pane fade in active">
<div class="row tab-pane">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12 tab-pane-desc">
<h3>Subtitles Search</h3>
<p>Settings that dictate how SickRage handles subtitles search results.</p>
<h3>${_('Subtitles Search')}</h3>
<p>${_('Settings that dictate how SickRage handles subtitles search results.')}</p>
</div>
<fieldset class="col-lg-9 col-md-8 col-sm-8 col-xs-12 tab-pane-list">
......@@ -33,7 +33,7 @@
<input type="checkbox"
class="enabler" ${('', ' checked="checked"')[bool(sickrage.srCore.srConfig.USE_SUBTITLES)]}
id="use_subtitles" name="use_subtitles">
<label for="use_subtitles">Search Subtitles</label>
<label for="use_subtitles">${_('Search Subtitles')}</label>
</div>
</div>
......@@ -62,7 +62,9 @@
<div class="col-lg-9 col-md-8 col-sm-7 col-xs-12 component-desc">
<input type="checkbox" name="subtitles_history"
id="subtitles_history" ${('', 'checked')[bool(sickrage.srCore.srConfig.SUBTITLES_HISTORY)]}/>
<label for="subtitles_history"><p>Log downloaded Subtitle on History page?</p></label>
<label for="subtitles_history">
<p>${_('Log downloaded Subtitle on History page?')}</p>
</label>
</div>
</div>
<div class="row field-pair">
......@@ -72,7 +74,9 @@
<div class="col-lg-9 col-md-8 col-sm-7 col-xs-12 component-desc">
<input type="checkbox" name="subtitles_multi"
id="subtitles_multi" ${('', 'checked')[bool(sickrage.srCore.srConfig.SUBTITLES_MULTI)]}/>
<label for="subtitles_multi"><p>Append language codes to subtitle filenames?</p></label>
<label for="subtitles_multi">
<p>${_('Append language codes to subtitle filenames?')}</p>
</label>
</div>
</div>
<div class="row field-pair">
......@@ -83,8 +87,8 @@
<input type="checkbox" name="embedded_subtitles_all"
id="embedded_subtitles_all" ${('', 'checked')[bool(sickrage.srCore.srConfig.EMBEDDED_SUBTITLES_ALL)]}/>
<label for="embedded_subtitles_all">
Ignore subtitles embedded inside video file?<br/>
<b>Warning: </b>this will ignore <u>all</u> embedded subtitles for every video file!
${_('Ignore subtitles embedded inside video file?')}<br/>
<b>${_('Warning:')}</b> ${_('this will ignore <u>all</u> embedded subtitles for every video file!')}
</label>
</div>
</div>
......@@ -95,7 +99,8 @@
<div class="col-lg-9 col-md-8 col-sm-7 col-xs-12 component-desc">
<input type="checkbox" name="subtitles_hearing_impaired"
id="subtitles_hearing_impaired" ${('', 'checked')[bool(sickrage.srCore.srConfig.SUBTITLES_HEARING_IMPAIRED)]}/>
<label for="subtitles_hearing_impaired"><p>Download hearing impaired style subtitles?</p>
<label for="subtitles_hearing_impaired">
<p>${_('Download hearing impaired style subtitles?')}</p>
</label>
</div>
</div>
......@@ -114,8 +119,9 @@
autocapitalize="off"/>
</div>
<label for="subtitles_dir">
The directory where SickRage should store your <i>Subtitles</i> files.<br/>
<b>NOTE:</b> Leave empty if you want store subtitle in episode path.
${_('The directory where SickRage should store your')}
<i>${_('Subtitles')}</i> ${_('files.')}<br/>
<b>${_('NOTE:')}</b> ${_('Leave empty if you want store subtitle in episode path.')}
</label>
</div>
</div>
......@@ -130,7 +136,7 @@
</div>
<input type="number" name="subtitles_finder_frequency"
value="${sickrage.srCore.srConfig.SUBTITLE_SEARCHER_FREQ}" hours="1"
placeholder="1"
placeholder="${_('1')}"
title="time in hours between scans"
class="form-control"/>
<div class="input-group-addon">
......@@ -152,29 +158,32 @@
value="<% '|'.join(sickrage.srCore.srConfig.SUBTITLES_EXTRA_SCRIPTS) %>"
class="form-control" autocapitalize="off"/>
</div>
<label for="subtitles_extra_scripts"><b>NOTE:</b>
<label for="subtitles_extra_scripts">
<b>${_('NOTE:')}</b>
<ul>
<li>
See <a
href="https://git.sickrage.ca/SiCKRAGE/sickrage/wikis/Subtitle%20Scripts">
<span style="color: red; "><b>Wiki</b></span></a> for a script arguments
description.
${_('See')}
<a href="https://git.sickrage.ca/SiCKRAGE/sickrage/wikis/Subtitle%20Scripts">
<span style="color: red; "><b>${_('Wiki')}</b></span>
</a>
${_('for a script arguments description.')}
</li>
<li>Additional scripts separated by <b>|</b>.</li>
<li>Scripts are called after each episode has searched and downloaded subtitles.
<li>
${_('Additional scripts separated by')} <b>|</b>.
</li>
<li>For any scripted languages, include the interpreter executable before the
script.
See
the following example:
<li>
${_('Scripts are called after each episode has searched and downloaded subtitles.')}
</li>
<li>
${_('For any scripted languages, include the interpreter executable before the script. See the following example:')}
</li>
<ul>
<li>
For Windows:
${_('For Windows:')}
<pre>C:\Python27\pythonw.exe C:\Script\test.py</pre>
</li>
<li>
For Linux:
${_('For Linux:')}
<pre>python /Script/test.py</pre>
</li>
</ul>
......@@ -185,7 +194,7 @@
<div class="row">
<div class="col-md-12">
<input type="submit" class="btn config_submitter" value="Save Changes"/>
<input type="submit" class="btn config_submitter" value="${_('Save Changes')}"/>
</div>
</div>
</div>
......@@ -196,10 +205,10 @@
<div id="core-tab-pane2" class="tab-pane fade">
<div class="row tab-pane">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12 tab-pane-desc">
<h3>Subtitle Plugins</h3>
<p>Check off and drag the plugins into the order you want them to be used.</p>
<p class="note">At least one plugin is required.</p>
<p class="note"><span style="font-size: 16px;">*</span> Web-scraping plugin</p>
<h3>${_('Subtitle Plugins')}</h3>
<p>${_('Check off and drag the plugins into the order you want them to be used.')}</p>
<p class="note">${_('At least one plugin is required.')}</p>
<p class="note"><span style="font-size: 16px;">*</span> ${_('Web-scraping plugin')}</p>
</div>
<fieldset class="col-lg-9 col-md-8 col-sm-8 col-xs-12 tab-pane-list">
......@@ -233,7 +242,7 @@
<div class="row">
<div class="col-md-12">
<input type="submit" class="btn config_submitter" value="Save Changes"/>
<input type="submit" class="btn config_submitter" value="${_('Save Changes')}"/>
</div>
</div>
</fieldset>
......@@ -243,15 +252,13 @@
<div id="core-tab-pane3" class="tab-pane fade">
<div class="row tab-pane">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12 tab-pane-desc">
<h3>Subtitle Settings</h3>
<p>Set user and password for each provider</p>
</div><!-- /tab-pane-desc //-->
<h3>${_('Subtitle Settings')}</h3>
<p>${_('Set user and password for each provider')}</p>
</div>
<fieldset class="col-lg-9 col-md-8 col-sm-8 col-xs-12 tab-pane-list">
% for curService in sickrage.subtitles.sortedServiceList():
% if curService['name'] in providerLoginDict.keys():
##<div class="field-pair${(' hidden', '')[curService['enabled']}"> ## Need js to show/hide on save
<div class="row field-pair">
<div class="col-lg-3 col-md-4 col-sm-5 col-xs-12">
<label class="component-title">${curService['name'].capitalize()} ${_('User Name')}</label>
......@@ -290,7 +297,7 @@
% endfor
<div class="row">
<div class="col-md-12">
<input type="submit" class="btn config_submitter" value="Save Changes"/>
<input type="submit" class="btn config_submitter" value="${_('Save Changes')}"/>
</div>
</div>
</fieldset>
......
<%inherit file="../layouts/main.mako"/>
<%block name="content">
<span>
You have reached this page by accident, please check the url.
${_('You have reached this page by accident, please check the url.')}
</span>
</%block>
\ No newline at end of file
<%inherit file="../layouts/main.mako"/>
<%block name="content">
<p>
A mako error has occured.<br>
If this happened during an update a simple page refresh may be the solution.<br>
Mako errors that happen during updates may be a one time error if there were significant ui changes.
${_('A mako error has occured.')}<br>
${_('If this happened during an update a simple page refresh may be the solution.')}<br>
${_('Mako errors that happen during updates may be a one time error if there were significant ui changes.')}
</p>
<hr>
<a href="#mako-error" class="btn btn-default" data-toggle="collapse">Show/Hide Error</a>
<a href="#mako-error" class="btn btn-default" data-toggle="collapse">${_('Show/Hide Error')}</a>
<div id="mako-error" class="collapse">
<br>
<div class="align-center">
<% filename, lineno, function, line = backtrace.traceback[-1] %>
<pre>
File ${filename}:${lineno}, in ${function}:
${_('File')} ${filename}:${lineno}, ${_('in')} ${function}:
% if line:
${line}
% endif
......
......@@ -15,28 +15,28 @@
<%namespace file="/includes/quality_defaults.mako" import="renderQualityPill"/>
<div class="row">
<div class="col-xs-12 text-center">
<label for="history_limit" class="badge">Limit:
<label for="history_limit" class="badge">${_('Limit:')}
<select name="history_limit" id="history_limit" class="form-control form-control-inline input-sm">
<option value="10" ${('', 'selected="selected"')[limit == 10]}>10</option>
<option value="25" ${('', 'selected="selected"')[limit == 25]}>25</option>
<option value="50" ${('', 'selected="selected"')[limit == 50]}>50</option>
<option value="100" ${('', 'selected="selected"')[limit == 100]}>100</option>
<option value="250" ${('', 'selected="selected"')[limit == 250]}>250</option>
<option value="500" ${('', 'selected="selected"')[limit == 500]}>500</option>
<option value="750" ${('', 'selected="selected"')[limit == 750]}>750</option>