*.{' '}
+ style="position: relative; top: 0.15em;">
{chrome.i18n.getMessage('auto')}
{' '}
- {' '}
+ {' '}
);
diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/LastUpdateDate.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/LastUpdateDate.js
index 2b2d75c..96a42b6 100644
--- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/LastUpdateDate.js
+++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/LastUpdateDate.js
@@ -22,17 +22,17 @@ export default function getLastUpdateDate(theState) {
getDate(antiCensorRu) {
- let dateForUser = 'никогда';
+ let dateForUser = chrome.i18n.getMessage('never');
if( antiCensorRu.lastPacUpdateStamp ) {
let diff = Date.now() - antiCensorRu.lastPacUpdateStamp;
- let units = 'мс';
+ let units = chrome.i18n.getMessage('ms');
const gauges = [
- [1000, 'с'],
- [60, 'мин'],
- [60, 'ч'],
- [24, 'дн'],
- [7, ' недель'],
- [4, ' месяцев'],
+ [1000, chrome.i18n.getMessage('s')],
+ [60, chrome.i18n.getMessage('min')],
+ [60, chrome.i18n.getMessage('h')],
+ [24, chrome.i18n.getMessage('d')],
+ [7, chrome.i18n.getMessage('w')],
+ [4, chrome.i18n.getMessage('m')],
];
for(const g of gauges) {
const diffy = Math.floor(diff / g[0]);
@@ -41,10 +41,10 @@ export default function getLastUpdateDate(theState) {
diff = diffy;
units = g[1];
}
- dateForUser = diff + units + ' назад';
+ dateForUser = diff + units + ' ' + chrome.i18n.getMessage('ago');
}
return {
- text: `${dateForUser} / ${antiCensorRu.pacUpdatePeriodInMinutes/60}ч`,
+ text: `${dateForUser} / ${antiCensorRu.pacUpdatePeriodInMinutes/60}${chrome.i18n.getMessage('h')}`,
title: new Date(antiCensorRu.lastPacUpdateStamp).toLocaleString('ru-RU'),
};
@@ -53,7 +53,7 @@ export default function getLastUpdateDate(theState) {
render(props) {
const date = this.getDate(props.apis.antiCensorRu);
- return (
Обновлялись: { date.text }
);
+ return (
{chrome.i18n.getMessage('Updated')}: { date.text }
);
}
diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/PacChooser.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/PacChooser.js
index b762fd9..a1cb92b 100644
--- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/PacChooser.js
+++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/PacChooser.js
@@ -62,9 +62,9 @@ export default function getPacChooser(theState) {
this.updatePac = function updatePac(onSuccess) {
props.funs.conduct(
- 'Обновляем...',
+ chrome.i18n.getMessage('UpdatingDDD'),
(cb) => theState.apis.antiCensorRu.syncWithPacProviderAsync(cb),
- 'Обновлено.',
+ chrome.i18n.getMessage('UpdatedD'),
onSuccess
);
};
@@ -101,17 +101,17 @@ export default function getPacChooser(theState) {
}
if (pacKey === 'none') {
this.props.funs.conduct(
- 'Отключение...',
+ chrome.i18n.getMessage('DisablingDDD'),
(cb) => theState.apis.antiCensorRu.clearPacAsync(cb),
- 'Отключено.',
+ chrome.i18n.getMessage('DisabledD'),
() => this.setState({ chosenPacName: 'none' }),
checkChosenProvider
);
} else {
this.props.funs.conduct(
- 'Установка...',
+ chrome.i18n.getMessage('InstallingDDD'),
(cb) => theState.apis.antiCensorRu.installPacAsync(pacKey, cb),
- 'PAC-скрипт установлен.',
+ chrome.i18n.getMessage('PacScriptWasInstalledD'),
checkChosenProvider
);
}
@@ -146,9 +146,9 @@ export default function getPacChooser(theState) {
{
props.flags.ifMini
? (
🏋)
+ title={chrome.i18n.getMessage("FullVersion")}>🏋)
: (
🐌)
+ title={chrome.i18n.getMessage("VersionForSlowMachines")}>🐌)
}