mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 02:13:43 +03:00
Pac choosing tab is fully translated to en
This commit is contained in:
parent
426793e700
commit
55b4ba385a
|
@ -17,9 +17,33 @@
|
||||||
"update": {
|
"update": {
|
||||||
"message": "update"
|
"message": "update"
|
||||||
},
|
},
|
||||||
|
"UpdatingDDD": {
|
||||||
|
"message": "Updating..."
|
||||||
|
},
|
||||||
|
"UpdatedD": {
|
||||||
|
"message": "Updated."
|
||||||
|
},
|
||||||
|
"DisablingDDD": {
|
||||||
|
"message": "Disabling..."
|
||||||
|
},
|
||||||
|
"DisabledD": {
|
||||||
|
"message": "Disabled."
|
||||||
|
},
|
||||||
|
"InstallingDDD": {
|
||||||
|
"message": "Installing..."
|
||||||
|
},
|
||||||
|
"PacScriptWasInstalledD": {
|
||||||
|
"message": "PAC-script was installed."
|
||||||
|
},
|
||||||
"Version": {
|
"Version": {
|
||||||
"message": "Version"
|
"message": "Version"
|
||||||
},
|
},
|
||||||
|
"FullVersion": {
|
||||||
|
"message": "Full version"
|
||||||
|
},
|
||||||
|
"VersionForSlowMachines": {
|
||||||
|
"message": "Version for slow machines"
|
||||||
|
},
|
||||||
"FailedToDownloadPacScriptFromAddresses": {
|
"FailedToDownloadPacScriptFromAddresses": {
|
||||||
"message": "Failed to download PAC-script from addresses"
|
"message": "Failed to download PAC-script from addresses"
|
||||||
},
|
},
|
||||||
|
|
|
@ -17,9 +17,33 @@
|
||||||
"update": {
|
"update": {
|
||||||
"message": "обновить"
|
"message": "обновить"
|
||||||
},
|
},
|
||||||
|
"UpdatingDDD": {
|
||||||
|
"message": "Обновляем..."
|
||||||
|
},
|
||||||
|
"UpdatedD": {
|
||||||
|
"message": "Обновлено."
|
||||||
|
},
|
||||||
|
"DisablingDDD": {
|
||||||
|
"message": "Отключение..."
|
||||||
|
},
|
||||||
|
"DisabledD": {
|
||||||
|
"message": "Отключено."
|
||||||
|
},
|
||||||
|
"InstallingDDD": {
|
||||||
|
"message": "Установка..."
|
||||||
|
},
|
||||||
|
"PacScriptWasInstalledD": {
|
||||||
|
"message": "PAC-скрипт установлен."
|
||||||
|
},
|
||||||
"Version": {
|
"Version": {
|
||||||
"message": "Версия"
|
"message": "Версия"
|
||||||
},
|
},
|
||||||
|
"FullVersion": {
|
||||||
|
"message": "Полная версия"
|
||||||
|
},
|
||||||
|
"VersionForSlowMachines": {
|
||||||
|
"message": "Версия для слабых машин"
|
||||||
|
},
|
||||||
"FailedToDownloadPacScriptFromAddresses": {
|
"FailedToDownloadPacScriptFromAddresses": {
|
||||||
"message": "Не удалось скачать PAC-скрипт с адресов"
|
"message": "Не удалось скачать PAC-скрипт с адресов"
|
||||||
},
|
},
|
||||||
|
|
|
@ -62,9 +62,9 @@ export default function getPacChooser(theState) {
|
||||||
|
|
||||||
this.updatePac = function updatePac(onSuccess) {
|
this.updatePac = function updatePac(onSuccess) {
|
||||||
props.funs.conduct(
|
props.funs.conduct(
|
||||||
'Обновляем...',
|
chrome.i18n.getMessage('UpdatingDDD'),
|
||||||
(cb) => theState.apis.antiCensorRu.syncWithPacProviderAsync(cb),
|
(cb) => theState.apis.antiCensorRu.syncWithPacProviderAsync(cb),
|
||||||
'Обновлено.',
|
chrome.i18n.getMessage('UpdatedD'),
|
||||||
onSuccess
|
onSuccess
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -101,17 +101,17 @@ export default function getPacChooser(theState) {
|
||||||
}
|
}
|
||||||
if (pacKey === 'none') {
|
if (pacKey === 'none') {
|
||||||
this.props.funs.conduct(
|
this.props.funs.conduct(
|
||||||
'Отключение...',
|
chrome.i18n.getMessage('DisablingDDD'),
|
||||||
(cb) => theState.apis.antiCensorRu.clearPacAsync(cb),
|
(cb) => theState.apis.antiCensorRu.clearPacAsync(cb),
|
||||||
'Отключено.',
|
chrome.i18n.getMessage('DisabledD'),
|
||||||
() => this.setState({ chosenPacName: 'none' }),
|
() => this.setState({ chosenPacName: 'none' }),
|
||||||
checkChosenProvider
|
checkChosenProvider
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
this.props.funs.conduct(
|
this.props.funs.conduct(
|
||||||
'Установка...',
|
chrome.i18n.getMessage('InstallingDDD'),
|
||||||
(cb) => theState.apis.antiCensorRu.installPacAsync(pacKey, cb),
|
(cb) => theState.apis.antiCensorRu.installPacAsync(pacKey, cb),
|
||||||
'PAC-скрипт установлен.',
|
chrome.i18n.getMessage('PacScriptWasInstalledD'),
|
||||||
checkChosenProvider
|
checkChosenProvider
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -146,9 +146,9 @@ export default function getPacChooser(theState) {
|
||||||
{
|
{
|
||||||
props.flags.ifMini
|
props.flags.ifMini
|
||||||
? (<a class={scopedCss.otherVersion + ' emoji'} href="https://rebrand.ly/ac-versions"
|
? (<a class={scopedCss.otherVersion + ' emoji'} href="https://rebrand.ly/ac-versions"
|
||||||
title="Полная версия">🏋</a>)
|
title={chrome.i18n.getMessage("FullVersion")}>🏋</a>)
|
||||||
: (<a class={scopedCss.otherVersion + ' emoji'} href="https://rebrand.ly/ac-versions"
|
: (<a class={scopedCss.otherVersion + ' emoji'} href="https://rebrand.ly/ac-versions"
|
||||||
title="Версия для слабых машин">🐌</a>)
|
title={chrome.i18n.getMessage("VersionForSlowMachines")}>🐌</a>)
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -32,9 +32,11 @@ export default function append(document, { flags }) {
|
||||||
a:hover {
|
a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
label {
|
label {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
div, section, header, ul, ol {
|
div, section, header, ul, ol {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user