Translate to en more of exceptions editor tab

This commit is contained in:
ilyaigpetrov 2019-09-07 16:12:54 +00:00
parent 55b4ba385a
commit 85edbf75b2
3 changed files with 35 additions and 5 deletions

View File

@ -121,5 +121,20 @@
}, },
"m": { "m": {
"message": "m" "message": "m"
},
"ProxyTheDomainNameBelowQ": {
"message": "Proxy the domain name below?"
},
"auto": {
"message": "auto"
},
"yes": {
"message": "yes"
},
"no": {
"message": "no"
},
"noOwnProxiesError": {
"message": "Proxying of OWN sites is possible only via OWN proxies. No own proxies found that satisfy your requirements."
} }
} }

View File

@ -121,5 +121,20 @@
}, },
"m": { "m": {
"message": " месяцев" "message": " месяцев"
},
"ProxyTheDomainNameBelowQ": {
"message": "Проксировать указанное доменное имя?"
},
"auto": {
"message": "авто"
},
"yes": {
"message": "да"
},
"no": {
"message": "нет"
},
"noOwnProxiesError": {
"message": "Проксировать СВОИ сайты можно только при наличии СВОИХ прокси. Нет своих прокси, удовлетворяющих вашим требованиям."
} }
} }

View File

@ -137,7 +137,7 @@ export default function getExcEditor(theState) {
case 'this-no': case 'this-no':
if (ifYesClicked && !pacMods.filteredCustomsString) { if (ifYesClicked && !pacMods.filteredCustomsString) {
this.props.funs.showErrors( new TypeError( this.props.funs.showErrors( new TypeError(
'Проксировать СВОИ сайты можно только при наличии СВОИХ прокси. Нет своих прокси, удовлетворяющих вашим требованиям.' chrome.i18n.getMessage('noOwnProxiesError'),
)); ));
return false; return false;
} }
@ -293,7 +293,7 @@ export default function getExcEditor(theState) {
return ( return (
<section style="padding-bottom: 1em;"> <section style="padding-bottom: 1em;">
<div>Проксировать указанный сайт?</div> <div>{chrome.i18n.getMessage('ProxyTheDomainNameBelowQ')}</div>
<div id="exc-address-container"> <div id="exc-address-container">
<div id="exc-address" class={inputProxyingState !== undefined ? ( inputProxyingState === true ? scopedCss.ifYes : scopedCss.ifNo ) : ''}> <div id="exc-address" class={inputProxyingState !== undefined ? ( inputProxyingState === true ? scopedCss.ifYes : scopedCss.ifNo ) : ''}>
<span>*.</span><input placeholder="navalny.com" list="exc-list" id="exc-editor" <span>*.</span><input placeholder="navalny.com" list="exc-list" id="exc-editor"
@ -327,19 +327,19 @@ export default function getExcEditor(theState) {
<li><input id="this-auto" type="radio" checked name="if-proxy-this-site" onClick={this.handleRadioClick}/>{' '} <li><input id="this-auto" type="radio" checked name="if-proxy-this-site" onClick={this.handleRadioClick}/>{' '}
<label for="this-auto">{/*<span class="emoji">🔄(looks fat)</span>*/}<svg <label for="this-auto">{/*<span class="emoji">🔄(looks fat)</span>*/}<svg
class="icon" class="icon"
style="position: relative; top: 0.15em;"><use xlink:href="#iconLoopRound"></use></svg>&nbsp;авто</label> style="position: relative; top: 0.15em;"><use xlink:href="#iconLoopRound"></use></svg>&nbsp;{chrome.i18n.getMessage('auto')}</label>
</li> </li>
<li> <li>
<input id="this-yes" type="radio" name="if-proxy-this-site" checked={inputProxyingState === true} onClick={this.handleRadioClick}/> <input id="this-yes" type="radio" name="if-proxy-this-site" checked={inputProxyingState === true} onClick={this.handleRadioClick}/>
{' '}<label for="this-yes"> {' '}<label for="this-yes">
<span <span
class="emoji____buggy" class="emoji____buggy"
></span>&nbsp;да ></span>&nbsp;{chrome.i18n.getMessage('yes')}
</label> </label>
</li> </li>
<li> <li>
<input id="this-no" type="radio" name="if-proxy-this-site" checked={inputProxyingState === false} onClick={this.handleRadioClick}/> <input id="this-no" type="radio" name="if-proxy-this-site" checked={inputProxyingState === false} onClick={this.handleRadioClick}/>
{' '}<label for="this-no"><span class="emoji"></span>&nbsp;нет</label></li> {' '}<label for="this-no"><span class="emoji"></span>&nbsp;{chrome.i18n.getMessage('no')}</label></li>
</ol> </ol>
</section> </section>
); );