Site: notices name the city too; the privacy line says cities are counted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0305b3b04b
commit
a1403d04b0
11 changed files with 15 additions and 14 deletions
|
|
@ -85,7 +85,8 @@ the user checks by hand.
|
|||
## Telegram
|
||||
|
||||
With `TELEGRAM_TOKEN` (the owner's bot) and `TELEGRAM_CHAT` (the owner's chat id) in
|
||||
`.env`, the site writes to the owner (with the country only): «⬇️ Скачали …» for a
|
||||
`.env`, the site writes to the owner (with the country and city of the address, which
|
||||
is not kept): «⬇️ Скачали …» for a
|
||||
person's download (not crawlers, the owner or the local network; once a day per file and
|
||||
visitor), «🆕 Новая установка №N» for an installation's
|
||||
first run, «⬆️ Обновилась …» when it runs a new version, «▶️ Запуск …» when it runs on a
|
||||
|
|
|
|||
|
|
@ -620,7 +620,7 @@ async fn api_update(
|
|||
if let (Some(install), Some(version), Some(platform)) = (install, version, platform) {
|
||||
let ip = client_ip(&state.config, peer, &headers);
|
||||
if !is_local(ip) {
|
||||
let (country, _, _) = locate(&state, ip);
|
||||
let (country, region, city) = locate(&state, ip);
|
||||
let day = chrono::Local::now().format("%Y-%m-%d").to_string();
|
||||
// A few new installations a day per address (a family, a classroom); more is
|
||||
// someone making ids up, and is not counted.
|
||||
|
|
@ -673,8 +673,8 @@ async fn api_update(
|
|||
}
|
||||
};
|
||||
let label = platform_label(&platform);
|
||||
// The country only: what the texts about the update check promise.
|
||||
let place = telegram::place(country.as_deref(), None, None);
|
||||
// The city is not kept (the table has the country), only shown here.
|
||||
let place = telegram::place(country.as_deref(), region.as_deref(), city.as_deref());
|
||||
let place = if place.is_empty() { String::new() } else { format!("\n{place}") };
|
||||
match before {
|
||||
_ if known.is_none() => {
|
||||
|
|
@ -782,7 +782,7 @@ async fn download(
|
|||
)
|
||||
.unwrap_or(false);
|
||||
if kind == "human" && asset.platform != "checksums" && !again {
|
||||
let place = telegram::place(c.country.as_deref(), None, None);
|
||||
let place = telegram::place(c.country.as_deref(), c.region.as_deref(), c.city.as_deref());
|
||||
let from = referrer.as_deref().map(|r| format!(" · с {r}")).unwrap_or_default();
|
||||
let line = [place, from.trim_start_matches(" · ").to_owned()]
|
||||
.into_iter()
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"support_issues": "Sie können auch ein Issue auf GitHub eröffnen:",
|
||||
"support_hint": "Geben Sie bei einem Problem bitte Ihre ChessPenguin-Version und Ihr System an und hängen Sie die PGN-Datei an, wenn es um eine Partie geht.",
|
||||
"footer_license": "Freie Software unter GPL-3.0-or-later",
|
||||
"footer_privacy": "Keine Cookies, keine Tracker. Besuche, Downloads und Länder werden nur auf dem Server gezählt, ohne IP-Adressen zu speichern. Die Update-Prüfung des Programms wird ebenso gezählt, über eine Zufallsnummer der Installation.",
|
||||
"footer_privacy": "Keine Cookies, keine Tracker. Besuche, Downloads, Länder und Städte werden nur auf dem Server gezählt, ohne IP-Adressen zu speichern. Die Update-Prüfung des Programms wird ebenso gezählt, über eine Zufallsnummer der Installation.",
|
||||
"footer_geo": "IP-Geolokalisierung von",
|
||||
"nf_title": "Seite nicht gefunden",
|
||||
"nf_text": "Die gesuchte Seite oder Datei gibt es hier nicht.",
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"support_issues": "You can also open an issue on GitHub:",
|
||||
"support_hint": "When reporting a problem, please mention your ChessPenguin version and system, and attach the PGN file if the problem is with a game.",
|
||||
"footer_license": "Free software under GPL-3.0-or-later",
|
||||
"footer_privacy": "No cookies, no trackers. Visits, downloads and countries are counted on the server only, without storing IP addresses. The program's update check is counted the same way, by a random number of the installation.",
|
||||
"footer_privacy": "No cookies, no trackers. Visits, downloads, countries and cities are counted on the server only, without storing IP addresses. The program's update check is counted the same way, by a random number of the installation.",
|
||||
"footer_geo": "IP geolocation by",
|
||||
"nf_title": "Page not found",
|
||||
"nf_text": "The page or file you were looking for isn't here.",
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"support_issues": "También puedes abrir una incidencia en GitHub:",
|
||||
"support_hint": "Al informar de un problema, indica tu versión de ChessPenguin y tu sistema, y adjunta el archivo PGN si el problema es con una partida.",
|
||||
"footer_license": "Software libre bajo GPL-3.0-or-later",
|
||||
"footer_privacy": "Sin cookies ni rastreadores. Las visitas, descargas y países se cuentan solo en el servidor, sin guardar direcciones IP. La comprobación de actualizaciones del programa se cuenta igual, mediante un número aleatorio de la instalación.",
|
||||
"footer_privacy": "Sin cookies ni rastreadores. Las visitas, descargas, países y ciudades se cuentan solo en el servidor, sin guardar direcciones IP. La comprobación de actualizaciones del programa se cuenta igual, mediante un número aleatorio de la instalación.",
|
||||
"footer_geo": "Geolocalización IP por",
|
||||
"nf_title": "Página no encontrada",
|
||||
"nf_text": "La página o el archivo que buscabas no está aquí.",
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"support_issues": "Vous pouvez aussi ouvrir un ticket sur GitHub :",
|
||||
"support_hint": "Pour signaler un problème, indiquez votre version de ChessPenguin et votre système, et joignez le fichier PGN si le problème concerne une partie.",
|
||||
"footer_license": "Logiciel libre sous GPL-3.0-or-later",
|
||||
"footer_privacy": "Sans cookies ni traceurs. Les visites, téléchargements et pays sont comptés uniquement sur le serveur, sans conserver les adresses IP. La vérification des mises à jour du programme est comptée de la même façon, par un numéro aléatoire de l’installation.",
|
||||
"footer_privacy": "Sans cookies ni traceurs. Les visites, téléchargements, pays et villes sont comptés uniquement sur le serveur, sans conserver les adresses IP. La vérification des mises à jour du programme est comptée de la même façon, par un numéro aléatoire de l’installation.",
|
||||
"footer_geo": "Géolocalisation IP par",
|
||||
"nf_title": "Page introuvable",
|
||||
"nf_text": "La page ou le fichier que vous cherchiez n'est pas ici.",
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"support_issues": "Puoi anche aprire una segnalazione su GitHub:",
|
||||
"support_hint": "Quando segnali un problema, indica la versione di ChessPenguin e il sistema, e allega il file PGN se il problema riguarda una partita.",
|
||||
"footer_license": "Software libero sotto GPL-3.0-or-later",
|
||||
"footer_privacy": "Niente cookie né tracker. Visite, download e paesi sono contati solo sul server, senza conservare gli indirizzi IP. Il controllo degli aggiornamenti del programma è contato allo stesso modo, con un numero casuale dell’installazione.",
|
||||
"footer_privacy": "Niente cookie né tracker. Visite, download, paesi e città sono contati solo sul server, senza conservare gli indirizzi IP. Il controllo degli aggiornamenti del programma è contato allo stesso modo, con un numero casuale dell’installazione.",
|
||||
"footer_geo": "Geolocalizzazione IP di",
|
||||
"nf_title": "Pagina non trovata",
|
||||
"nf_text": "La pagina o il file che cercavi non è qui.",
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"support_issues": "Сондай-ақ GitHub-та issue ашуға болады:",
|
||||
"support_hint": "Мәселе туралы хабарлағанда ChessPenguin нұсқасы мен жүйеңізді көрсетіңіз, ал мәселе партияға қатысты болса, PGN файлын тіркеңіз.",
|
||||
"footer_license": "GPL-3.0-or-later лицензиясымен таратылатын еркін бағдарлама",
|
||||
"footer_privacy": "Cookie де, трекер де жоқ. Кірулер, жүктеулер мен елдер тек серверде, IP мекенжайлары сақталмай есептеледі. Бағдарламадағы жаңартуларды тексеру де солай — орнатудың кездейсоқ нөмірі бойынша саналады.",
|
||||
"footer_privacy": "Cookie де, трекер де жоқ. Кірулер, жүктеулер, елдер мен қалалар тек серверде, IP мекенжайлары сақталмай есептеледі. Бағдарламадағы жаңартуларды тексеру де солай — орнатудың кездейсоқ нөмірі бойынша саналады.",
|
||||
"footer_geo": "IP геолокациясын ұсынған:",
|
||||
"nf_title": "Бет табылмады",
|
||||
"nf_text": "Сіз іздеген бет немесе файл бұл жерде жоқ.",
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"support_issues": "Você também pode abrir uma issue no GitHub:",
|
||||
"support_hint": "Ao relatar um problema, informe sua versão do ChessPenguin e seu sistema, e anexe o arquivo PGN se o problema for com uma partida.",
|
||||
"footer_license": "Software livre sob GPL-3.0-or-later",
|
||||
"footer_privacy": "Sem cookies, sem rastreadores. Visitas, downloads e países são contados apenas no servidor, sem guardar endereços IP. A verificação de atualizações do programa é contada da mesma forma, por um número aleatório da instalação.",
|
||||
"footer_privacy": "Sem cookies, sem rastreadores. Visitas, downloads, países e cidades são contados apenas no servidor, sem guardar endereços IP. A verificação de atualizações do programa é contada da mesma forma, por um número aleatório da instalação.",
|
||||
"footer_geo": "Geolocalização de IP por",
|
||||
"nf_title": "Página não encontrada",
|
||||
"nf_text": "A página ou o arquivo que você procurava não está aqui.",
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"support_issues": "Можно также открыть задачу на GitHub:",
|
||||
"support_hint": "Сообщая о проблеме, укажите версию ChessPenguin и систему, а если проблема с партией — приложите файл PGN.",
|
||||
"footer_license": "Свободная программа под GPL-3.0-or-later",
|
||||
"footer_privacy": "Без cookie и трекеров. Посещения, загрузки и страны считаются только на сервере, IP-адреса не хранятся. Проверка обновлений в программе считается так же — по случайному номеру установки.",
|
||||
"footer_privacy": "Без cookie и трекеров. Посещения, загрузки, страны и города считаются только на сервере, IP-адреса не хранятся. Проверка обновлений в программе считается так же — по случайному номеру установки.",
|
||||
"footer_geo": "Геолокация по IP —",
|
||||
"nf_title": "Страница не найдена",
|
||||
"nf_text": "Страницы или файла, который вы искали, здесь нет.",
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"support_issues": "GitHubda issue ochishingiz ham mumkin:",
|
||||
"support_hint": "Muammo haqida xabar berganda ChessPenguin versiyasi va tizimingizni yozing, muammo partiya bilan boʻlsa, PGN faylni ilova qiling.",
|
||||
"footer_license": "GPL-3.0-or-later litsenziyasidagi erkin dastur",
|
||||
"footer_privacy": "Cookie ham, kuzatuvchilar ham yoʻq. Tashriflar, yuklab olishlar va mamlakatlar faqat serverda, IP manzillarni saqlamasdan hisoblanadi. Dasturdagi yangilanishlarni tekshirish ham xuddi shunday — oʻrnatmaning tasodifiy raqami boʻyicha sanaladi.",
|
||||
"footer_privacy": "Cookie ham, kuzatuvchilar ham yoʻq. Tashriflar, yuklab olishlar, mamlakatlar va shaharlar faqat serverda, IP manzillarni saqlamasdan hisoblanadi. Dasturdagi yangilanishlarni tekshirish ham xuddi shunday — oʻrnatmaning tasodifiy raqami boʻyicha sanaladi.",
|
||||
"footer_geo": "IP geolokatsiyasi:",
|
||||
"nf_title": "Sahifa topilmadi",
|
||||
"nf_text": "Siz qidirgan sahifa yoki fayl bu yerda yoʻq.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue