The following is the GNU All-permissive License as recommended in https://www.gnu.org/licenses/license-recommendations.en.html
Copyright (C) 2024 Free Software Foundation sysadmin@fsf.org
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
Contributions are welcome. See https://savannah.gnu.org/maintenance/fsf/.
fix ESD / enc links from Tor to clearnet
on emailselfdefense.fsf.org
, there is a script which gets run on a regular
basis, and creates a Tor version of translated pages by replacing links to the
clearnet.
One of the things the script does for each language is to replace the link to
the Onion service with a link pointing back to the clearnet, including the
visible text part of the link. If you get an error message like missing
language conversion (we have 6 / 8)
, then we need to add or edit translation
strings so they match.
Lines to edit or add in /root/scripts/esd-to-tor.sh
look like:
rewrite_tor_link_to_clearnet "en" "This site's tor onion service" "This site's clearnet URL"
rewrite_tor_link_to_clearnet "es" "El servicio tor onion de este sitio" "La URL de clearnet de este sitio"
The first bit of text that gets replaced on the Tor site must exactly match the string that is in the original translated page.