mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-27 15:14:40 +00:00
add polyglot 'daemon_is_obsolete'
This commit is contained in:
parent
214ec3f3c7
commit
3c629129d6
@ -915,8 +915,8 @@ function openRequestShortURIForm(event) {
|
|||||||
if (parseInt(twisterVersion) < 93500) {
|
if (parseInt(twisterVersion) < 93500) {
|
||||||
alertPopup({
|
alertPopup({
|
||||||
//txtTitle: polyglot.t(''), add some title (not 'error', please) or just KISS
|
//txtTitle: polyglot.t(''), add some title (not 'error', please) or just KISS
|
||||||
txtMessage: 'You can\'t shorten links because twister daemon is obsolete!\n'
|
txtMessage: 'You can\'t shorten links —\n'
|
||||||
+ 'Version 0.9.35 or higher is required. Please keep your twister up to date.'
|
+ polyglot.t('daemon_is_obsolete', {versionReq: '0.9.35'})
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,7 @@ if(preferredLanguage == "en"){
|
|||||||
"Configure block generation": "Configure block generation",
|
"Configure block generation": "Configure block generation",
|
||||||
"Connections:": "Connections: ", // to network
|
"Connections:": "Connections: ", // to network
|
||||||
"Connection lost.": "Connection lost.",
|
"Connection lost.": "Connection lost.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} day |||| %{smart_count} days",
|
"days": "%{smart_count} day |||| %{smart_count} days",
|
||||||
"Detailed information": "Detailed information",
|
"Detailed information": "Detailed information",
|
||||||
"DHT network down.": "DHT network down.",
|
"DHT network down.": "DHT network down.",
|
||||||
@ -410,6 +411,7 @@ if(preferredLanguage == "es"){
|
|||||||
"Configure block generation": "Configure la generación de bloques",
|
"Configure block generation": "Configure la generación de bloques",
|
||||||
"Connections:": "Conexiones: ", // to network
|
"Connections:": "Conexiones: ", // to network
|
||||||
"Connection lost.": "Conexión perdida.",
|
"Connection lost.": "Conexión perdida.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} día |||| %{smart_count} días",
|
"days": "%{smart_count} día |||| %{smart_count} días",
|
||||||
"Detailed information": "Información detallada",
|
"Detailed information": "Información detallada",
|
||||||
"DHT network down.": "Red DHT caida.",
|
"DHT network down.": "Red DHT caida.",
|
||||||
@ -755,6 +757,7 @@ if(preferredLanguage == "uk"){
|
|||||||
"Configure block generation": "Налаштувати генерацію блоку",
|
"Configure block generation": "Налаштувати генерацію блоку",
|
||||||
"Connections:": "З’єднання: ", // to network
|
"Connections:": "З’єднання: ", // to network
|
||||||
"Connection lost.": "З’єднання втрачено.",
|
"Connection lost.": "З’єднання втрачено.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} день |||| %{smart_count} днів",
|
"days": "%{smart_count} день |||| %{smart_count} днів",
|
||||||
"Detailed information": "Детальна інформація",
|
"Detailed information": "Детальна інформація",
|
||||||
"DHT network down.": "Мережа DHT недоступна.",
|
"DHT network down.": "Мережа DHT недоступна.",
|
||||||
@ -1098,6 +1101,7 @@ if(preferredLanguage == "zh-CN"){
|
|||||||
"Configure block generation": "配置区块生成器",
|
"Configure block generation": "配置区块生成器",
|
||||||
"Connections:": "连接数:", // to network
|
"Connections:": "连接数:", // to network
|
||||||
"Connection lost.": "连接中断。",
|
"Connection lost.": "连接中断。",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} 天",
|
"days": "%{smart_count} 天",
|
||||||
"Detailed information": "详细信息",
|
"Detailed information": "详细信息",
|
||||||
"DHT network down.": "DHT网络中断。",
|
"DHT network down.": "DHT网络中断。",
|
||||||
@ -1446,6 +1450,7 @@ if(preferredLanguage == "nl"){
|
|||||||
"Configure block generation": "Block productie configureren",
|
"Configure block generation": "Block productie configureren",
|
||||||
"Connections:": "Connecties: ", // to network
|
"Connections:": "Connecties: ", // to network
|
||||||
"Connection lost.": "Verbinding kwijt.",
|
"Connection lost.": "Verbinding kwijt.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} dag |||| %{smart_count} dagen",
|
"days": "%{smart_count} dag |||| %{smart_count} dagen",
|
||||||
"Detailed information": "Gedetailleerde informatie",
|
"Detailed information": "Gedetailleerde informatie",
|
||||||
"DHT network down.": "DHT netwerk down.",
|
"DHT network down.": "DHT netwerk down.",
|
||||||
@ -1791,6 +1796,7 @@ if(preferredLanguage == "it"){
|
|||||||
"Configure block generation": "Configura generatore di blocchi",
|
"Configure block generation": "Configura generatore di blocchi",
|
||||||
"Connections:": "Connessioni: ", // to network
|
"Connections:": "Connessioni: ", // to network
|
||||||
"Connection lost.": "Connessione interrotta.",
|
"Connection lost.": "Connessione interrotta.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} giorno |||| %{smart_count} giorni",
|
"days": "%{smart_count} giorno |||| %{smart_count} giorni",
|
||||||
"Detailed information": "Informazioni dettagliate",
|
"Detailed information": "Informazioni dettagliate",
|
||||||
"DHT network down.": "DHT network inaccessibile.",
|
"DHT network down.": "DHT network inaccessibile.",
|
||||||
@ -2134,6 +2140,7 @@ if(preferredLanguage == "fr"){
|
|||||||
"Configure block generation": "Configuration de la production de blocs",
|
"Configure block generation": "Configuration de la production de blocs",
|
||||||
"Connections:": "Connexions: ", // to network
|
"Connections:": "Connexions: ", // to network
|
||||||
"Connection lost.": "Connexion perdue.",
|
"Connection lost.": "Connexion perdue.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} jour |||| %{smart_count} jours",
|
"days": "%{smart_count} jour |||| %{smart_count} jours",
|
||||||
"Detailed information": "Informations détaillées",
|
"Detailed information": "Informations détaillées",
|
||||||
"DHT network down.": "Panne du réseau DHT.",
|
"DHT network down.": "Panne du réseau DHT.",
|
||||||
@ -2480,6 +2487,7 @@ if(preferredLanguage == "ru"){
|
|||||||
"Configure block generation": "Настройка майнинга",
|
"Configure block generation": "Настройка майнинга",
|
||||||
"Connections:": "Соединений: ",
|
"Connections:": "Соединений: ",
|
||||||
"Connection lost.": "Соединение с сетью было потеряно.",
|
"Connection lost.": "Соединение с сетью было потеряно.",
|
||||||
|
"daemon_is_obsolete": "твистер демон устарел, необходима версия %{versionReq} или выше",
|
||||||
"days": "%{smart_count} день |||| %{smart_count} дней",
|
"days": "%{smart_count} день |||| %{smart_count} дней",
|
||||||
"Detailed information": "Подробная информация",
|
"Detailed information": "Подробная информация",
|
||||||
"DHT network down.": "Недоступна DHT сеть.",
|
"DHT network down.": "Недоступна DHT сеть.",
|
||||||
@ -2829,6 +2837,7 @@ if(preferredLanguage == "de"){
|
|||||||
"Configure block generation": "Block-Generierung einstellen",
|
"Configure block generation": "Block-Generierung einstellen",
|
||||||
"Connections:": "Verbindungen: ", // to network
|
"Connections:": "Verbindungen: ", // to network
|
||||||
"Connection lost.": "Verbindung verloren.",
|
"Connection lost.": "Verbindung verloren.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} Tag |||| %{smart_count} Tage",
|
"days": "%{smart_count} Tag |||| %{smart_count} Tage",
|
||||||
"Detailed information": "Detaillierte Informationen",
|
"Detailed information": "Detaillierte Informationen",
|
||||||
"DHT network down.": "DHT-Netzwerk nicht verfügbar.",
|
"DHT network down.": "DHT-Netzwerk nicht verfügbar.",
|
||||||
@ -3176,6 +3185,7 @@ if(preferredLanguage == "ja"){
|
|||||||
"Configure block generation": "ブロック生成の設定",
|
"Configure block generation": "ブロック生成の設定",
|
||||||
"Connections:": "接続数: ", // to network
|
"Connections:": "接続数: ", // to network
|
||||||
"Connection lost.": "切断されました。",
|
"Connection lost.": "切断されました。",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count}日 |||| %{smart_count}日",
|
"days": "%{smart_count}日 |||| %{smart_count}日",
|
||||||
"Detailed information": "詳細",
|
"Detailed information": "詳細",
|
||||||
"DHT network down.": "DHTネットワークがダウンしています",
|
"DHT network down.": "DHTネットワークがダウンしています",
|
||||||
@ -3519,6 +3529,7 @@ if(preferredLanguage == "pt-BR"){
|
|||||||
"Configure block generation": "Configurar a geração de blocos",
|
"Configure block generation": "Configurar a geração de blocos",
|
||||||
"Connections:": "Conexões: ", // to network
|
"Connections:": "Conexões: ", // to network
|
||||||
"Connection lost.": "Conexão perdida.",
|
"Connection lost.": "Conexão perdida.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} dia |||| %{smart_count} dias",
|
"days": "%{smart_count} dia |||| %{smart_count} dias",
|
||||||
"Detailed information": "Informações detalhadas",
|
"Detailed information": "Informações detalhadas",
|
||||||
"DHT network down.": "Falha na rede DHT",
|
"DHT network down.": "Falha na rede DHT",
|
||||||
@ -3866,6 +3877,7 @@ if(preferredLanguage == "tr"){
|
|||||||
"Configure block generation": "Blok üretim ayarları",
|
"Configure block generation": "Blok üretim ayarları",
|
||||||
"Connections:": "Bağlantılar: ", // to network
|
"Connections:": "Bağlantılar: ", // to network
|
||||||
"Connection lost.": "Bağlantı koptu.",
|
"Connection lost.": "Bağlantı koptu.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} gün |||| %{smart_count} gün",
|
"days": "%{smart_count} gün |||| %{smart_count} gün",
|
||||||
"Detailed information": "Detaylı bilgi",
|
"Detailed information": "Detaylı bilgi",
|
||||||
"DHT network down.": "DHT ağı çalışmıyor.",
|
"DHT network down.": "DHT ağı çalışmıyor.",
|
||||||
@ -4210,6 +4222,7 @@ if(preferredLanguage == "cs"){
|
|||||||
"Configure block generation": "Nastavení generace bloků",
|
"Configure block generation": "Nastavení generace bloků",
|
||||||
"Connections:": "Připojení: ", // to network
|
"Connections:": "Připojení: ", // to network
|
||||||
"Connection lost.": "Žádné připojení do sítě.",
|
"Connection lost.": "Žádné připojení do sítě.",
|
||||||
|
"daemon_is_obsolete": "twister daemon is obsolete, version %{versionReq} or higher is required",
|
||||||
"days": "%{smart_count} dnem |||| %{smart_count} dny |||| %{smart_count} dny",
|
"days": "%{smart_count} dnem |||| %{smart_count} dny |||| %{smart_count} dny",
|
||||||
"Detailed information": "Podrobné informace",
|
"Detailed information": "Podrobné informace",
|
||||||
"DHT network down.": "Síť DHT je nedostupná.",
|
"DHT network down.": "Síť DHT je nedostupná.",
|
||||||
|
@ -271,10 +271,11 @@ function newRtMsg(postData, msg) {
|
|||||||
|
|
||||||
if (userpost.rt) {
|
if (userpost.rt) {
|
||||||
if (parseInt(twisterVersion) <= 93000) {
|
if (parseInt(twisterVersion) <= 93000) {
|
||||||
alert(polyglot.t('error',
|
alertPopup({
|
||||||
{error: 'can\'t handle retwisting of commented retwisted twists with daemon version '
|
//txtTitle: polyglot.t(''), add some title (not 'error', please) or just KISS
|
||||||
+ twisterDisplayVersion + ' and below of that. Please upgrade it.'}
|
txtMessage: 'Can\'t handle retwisting of commented retwisted twists —\n'
|
||||||
));
|
+ polyglot.t('daemon_is_obsolete', {versionReq: '0.9.3+'})
|
||||||
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
@ -355,7 +356,8 @@ function newFavMsg(postData, priv, msg) {
|
|||||||
function newShortURI(uri, cbFunc, cbReq) {
|
function newShortURI(uri, cbFunc, cbReq) {
|
||||||
if (!uri || !defaultScreenName) return;
|
if (!uri || !defaultScreenName) return;
|
||||||
if (parseInt(twisterVersion) < 93500) {
|
if (parseInt(twisterVersion) < 93500) {
|
||||||
console.warn('can\'t shorten URI "' + uri + '": daemon is obsolete, version 0.9.35 or higher is required');
|
console.warn('can\'t shorten URI "' + uri + '" — '
|
||||||
|
+ polyglot.t('daemon_is_obsolete', {versionReq: '0.9.35'}));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -387,8 +387,8 @@ function groupMsgImportKey(key) {
|
|||||||
if (parseInt(twisterVersion) < 93800) {
|
if (parseInt(twisterVersion) < 93800) {
|
||||||
alertPopup({
|
alertPopup({
|
||||||
//txtTitle: polyglot.t(''), add some title (not 'error', please) or just KISS
|
//txtTitle: polyglot.t(''), add some title (not 'error', please) or just KISS
|
||||||
txtMessage: polyglot.t('group_key_cant_import')
|
txtMessage: polyglot.t('group_key_cant_import') + ' —\n'
|
||||||
+ ' —\ndaemon is obsolete, version 0.9.38 or higher is required'
|
+ polyglot.t('daemon_is_obsolete', {versionReq: '0.9.38'})
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,8 @@ function dhtget(peerAlias, resource, multi, cbFunc, cbReq, timeoutArgs) {
|
|||||||
function decodeShortURI(locator, cbFunc, cbReq, timeoutArgs) {
|
function decodeShortURI(locator, cbFunc, cbReq, timeoutArgs) {
|
||||||
if (!locator) return;
|
if (!locator) return;
|
||||||
if (parseInt(twisterVersion) < 93500) {
|
if (parseInt(twisterVersion) < 93500) {
|
||||||
console.warn('can\'t fetch URI "' + req + '": daemon is obsolete, version 0.9.35 or higher is required');
|
console.warn('can\'t fetch URI "' + req + '" — '
|
||||||
|
+ polyglot.t('daemon_is_obsolete', {versionReq: '0.9.35'}));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user