mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-17 13:02:42 -05:00
Remove all language and localization from download page, to prevent leaking the sender's locale (fixes #228)
This commit is contained in:
parent
e6e323fc9a
commit
f2389cc602
@ -10,9 +10,6 @@
|
||||
"give_this_url": "Dejte tuto URL osobě, které dané soubory posíláte:",
|
||||
"ctrlc_to_stop": "Stiskněte Ctrl-C pro zastavení serveru",
|
||||
"not_a_file": "{0:s} není soubor.",
|
||||
"download_size": "Download size",
|
||||
"filename": "Jméno souboru",
|
||||
"size": "Velikost",
|
||||
"download_page_loaded": "Download page loaded",
|
||||
"other_page_loaded": "URL loaded",
|
||||
"close_on_finish": "Ukončit sdílení automaticky",
|
||||
|
@ -10,9 +10,6 @@
|
||||
"give_this_url": "Geben Sie diese URL der Person, der Sie die Datei zusenden möchten:",
|
||||
"ctrlc_to_stop": "Drücken Sie Strg+C um den Server anzuhalten",
|
||||
"not_a_file": "{0:s} ist keine Datei.",
|
||||
"download_size": "Dateigrösse",
|
||||
"filename": "Dateiname",
|
||||
"size": "Dateigröße",
|
||||
"download_page_loaded": "Seite geladen",
|
||||
"other_page_loaded": "URL geladen",
|
||||
"close_on_finish": "Den Server automatisch anhalten",
|
||||
|
@ -10,9 +10,6 @@
|
||||
"give_this_url": "Give this URL to the person you're sending the file to:",
|
||||
"ctrlc_to_stop": "Press Ctrl-C to stop server",
|
||||
"not_a_file": "{0:s} is not a file.",
|
||||
"download_size": "Download size",
|
||||
"filename": "Filename",
|
||||
"size": "Size",
|
||||
"download_page_loaded": "Download page loaded",
|
||||
"other_page_loaded": "URL loaded",
|
||||
"close_on_finish": "Stop sharing automatically",
|
||||
|
@ -10,9 +10,6 @@
|
||||
"give_this_url": "Donu ĉi tiun URL al la persono al kiu vi sendas la dosieron:",
|
||||
"ctrlc_to_stop": "Presu Ctrl-C por halti la servilon",
|
||||
"not_a_file": "{0:s} ne estas dosiero.",
|
||||
"download_size": "Elŝuta grandeco",
|
||||
"filename": "Nomo de dosiero",
|
||||
"size": "Grandeco",
|
||||
"download_page_loaded": "Download page loaded",
|
||||
"other_page_loaded": "URL loaded",
|
||||
"close_on_finish": "Halti la kundividadon aŭtomate",
|
||||
|
@ -10,9 +10,6 @@
|
||||
"give_this_url": "Entregue esta URL a la persona a la que está enviando el archivo:",
|
||||
"ctrlc_to_stop": "Pulse Ctrl-C para detener el servidor",
|
||||
"not_a_file": "{0:s} no es un archivo.",
|
||||
"download_size": "Tamaño de la descarga",
|
||||
"filename": "Archivo",
|
||||
"size": "Tamaño",
|
||||
"download_page_loaded": "La página de descarga está lista.",
|
||||
"other_page_loaded": "La URL está lista.",
|
||||
"close_on_finish": "Apagar el servidor automáticamente.",
|
||||
|
@ -10,9 +10,6 @@
|
||||
"give_this_url": "Anna tämä URL-osoite henkilölle, jolle lähetät tiedostot:",
|
||||
"ctrlc_to_stop": "Näppäin Ctrl-C pysäyttää palvelimen",
|
||||
"not_a_file": "{0:s} Ei ole tiedosto.",
|
||||
"download_size": "Download size",
|
||||
"filename": "Filename",
|
||||
"size": "Size",
|
||||
"download_page_loaded": "Lataussivu ladattu",
|
||||
"other_page_loaded": "URL-osoite ladattu",
|
||||
"close_on_finish": "Pysäytä palvelin automaattisesti",
|
||||
|
@ -9,9 +9,6 @@
|
||||
"give_this_url": "Donnez cette URL à la personne qui doit recevoir le fichier :",
|
||||
"ctrlc_to_stop": "Ctrl-C arrête le serveur",
|
||||
"not_a_file": "{0:s} n'est pas un fichier.",
|
||||
"download_size": "Taille de téléchargement",
|
||||
"filename": "Nom du fichier",
|
||||
"size": "Taille",
|
||||
"download_page_loaded": "Page de téléchargement chargée",
|
||||
"other_page_loaded": "URL chargée",
|
||||
"close_on_finish": "Arrêter le serveur automatiquement",
|
||||
|
@ -10,9 +10,6 @@
|
||||
"give_this_url": "Geef deze URL aan de persoon aan wie je dit bestand verzend:",
|
||||
"ctrlc_to_stop": "Druk Ctrl-C om de server te stoppen",
|
||||
"not_a_file": "{0:s} is geen bestand.",
|
||||
"download_size": "Downloadgrootte",
|
||||
"filename": "Bestandsnaam",
|
||||
"size": "Grootte",
|
||||
"download_page_loaded": "Downloadpagina geladen",
|
||||
"other_page_loaded": "URL geladen",
|
||||
"close_on_finish": "Stop server automatisch",
|
||||
|
@ -77,13 +77,8 @@
|
||||
</head>
|
||||
<body>
|
||||
<p><a class="button" href='/{{ slug }}/download'>{{ filename }} ▼</a></p>
|
||||
<p class="download-size">{{strings.download_size}}: <strong title="{{ filesize }} bytes">{{ filesize_human }}</strong></p>
|
||||
<p class="download-size"><strong title="{{ filesize }} bytes">{{ filesize_human }}</strong></p>
|
||||
<table class="file-list">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{strings.filename}}</th>
|
||||
<th>{{strings.size}}</th>
|
||||
</tr>
|
||||
{% for info in file_info.dirs %}
|
||||
<tr>
|
||||
<td><img width="30" height="30" title="" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH3ggbFCQXOpwjbQAAAM5JREFUSMftlksOwyAMRDFCbNjkDL1kz9K75Cq9AZF3kYIM7oqoP/KpcFK1mRUrnsbW2Fbq0N+JiPhZRMS1OZAfzLzocwCAGmC9V2Vhjduarj8CzynGqIwxsDl4SXV267E4uFTN33X8deCxDyV1XXeRYJo1UUDEa9M0pxoRK+b4HiqRcz3nVAJKRK+TSxqaGbrkNKUkBn0oNSK2+T0MA1dau9NzO4QwuvPen1lAxQtEsq/vNpSWhvZ9v/3IRMTWOQezkyuEoKy14tfHoU11A6Mr5AxrpuMVAAAAAElFTkSuQmCC" /></td>
|
||||
|
@ -147,8 +147,7 @@ def index(slug_candidate):
|
||||
file_info=file_info,
|
||||
filename=os.path.basename(zip_filename).decode("utf-8"),
|
||||
filesize=zip_filesize,
|
||||
filesize_human=helpers.human_readable_filesize(zip_filesize),
|
||||
strings=strings.strings
|
||||
filesize_human=helpers.human_readable_filesize(zip_filesize)
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user