#1092 WIP: Update donate links to my.fsfe.org

Open
max.mehl wants to merge 2 commits from fix/donate-links into master
max.mehl commented 1 month ago

This PR solves #1077.

I run locally the following script for all patterns we know for old donation/supporter links, so $expr is always different:

#!/usr/bin/env bash
root=$(git rev-parse --show-toplevel)
expr="(\"https?://fsfe.org|\")/donate/donate(\.[a-z][a-z]\.|\.)html\""
for file in $(git grep -rEil "$expr"); do
  if "$root"/tools/check-translation-status.sh -f "$file" -q; then
    sed -Ei -e "s;$expr;\"https://my.fsfe.org/donate\";g" $file
  else
    echo "$file is an outdated translation"
  fi
done

Thanks to the pre-commit hook, I also identified a few translations which I either fake-updated or where I had to change the donation link because it was completely different from the pattern.

For each pattern, I will write a comment with the files that have not been changed due to the fact that they are outpdated translations.

This PR solves #1077. I run locally the following script for all patterns we know for old donation/supporter links, so `$expr` is always different: ``` #!/usr/bin/env bash root=$(git rev-parse --show-toplevel) expr="(\"https?://fsfe.org|\")/donate/donate(\.[a-z][a-z]\.|\.)html\"" for file in $(git grep -rEil "$expr"); do if "$root"/tools/check-translation-status.sh -f "$file" -q; then sed -Ei -e "s;$expr;\"https://my.fsfe.org/donate\";g" $file else echo "$file is an outdated translation" fi done ``` Thanks to the pre-commit hook, I also identified a few translations which I either fake-updated or where I had to change the donation link because it was completely different from the pattern. For each pattern, I will write a comment with the files that have not been changed due to the fact that they are outpdated translations.
max.mehl commented 1 month ago
Owner

Pattern: /donate/donate.html with regex (\"https?://fsfe.org|\")/donate/donate(\.[a-z][a-z]\.|\.)html\"

Changed files: 230

Outdated translations:

about/about.da.xhtml is an outdated translation
about/about.el.xhtml is an outdated translation
about/about.es.xhtml is an outdated translation
about/about.fi.xhtml is an outdated translation
about/about.fr.xhtml is an outdated translation
about/about.pt.xhtml is an outdated translation
about/about.ru.xhtml is an outdated translation
about/about.sq.xhtml is an outdated translation
about/about.sv.xhtml is an outdated translation
about/about.tr.xhtml is an outdated translation
campaigns/pdfreaders/pdfreaders.es.xhtml is an outdated translation
campaigns/pdfreaders/pdfreaders.fr.xhtml is an outdated translation
campaigns/pdfreaders/pdfreaders.hr.xhtml is an outdated translation
campaigns/valentine/2010/valentine-2010.cs.xhtml is an outdated translation
donate/thankgnus-2001.cs.xhtml is an outdated translation
donate/thankgnus-2001.el.xhtml is an outdated translation
donate/thankgnus-2001.ru.xhtml is an outdated translation
donate/thankgnus-2002.cs.xhtml is an outdated translation
donate/thankgnus-2002.el.xhtml is an outdated translation
donate/thankgnus-2002.ru.xhtml is an outdated translation
donate/thankgnus-2003.cs.xhtml is an outdated translation
donate/thankgnus-2003.el.xhtml is an outdated translation
donate/thankgnus-2003.ru.xhtml is an outdated translation
donate/thankgnus-2004.cs.xhtml is an outdated translation
donate/thankgnus-2004.el.xhtml is an outdated translation
donate/thankgnus-2004.ru.xhtml is an outdated translation
donate/thankgnus-2005.cs.xhtml is an outdated translation
donate/thankgnus-2005.el.xhtml is an outdated translation
donate/thankgnus-2005.ru.xhtml is an outdated translation
donate/thankgnus-2006.cs.xhtml is an outdated translation
donate/thankgnus-2006.el.xhtml is an outdated translation
donate/thankgnus-2006.ru.xhtml is an outdated translation
donate/thankgnus-2007.cs.xhtml is an outdated translation
donate/thankgnus-2007.el.xhtml is an outdated translation
donate/thankgnus-2007.ru.xhtml is an outdated translation
donate/thankgnus-2008.cs.xhtml is an outdated translation
donate/thankgnus-2008.el.xhtml is an outdated translation
donate/thankgnus-2008.ru.xhtml is an outdated translation
donate/thankgnus-2009.cs.xhtml is an outdated translation
donate/thankgnus-2009.el.xhtml is an outdated translation
donate/thankgnus-2009.ru.xhtml is an outdated translation
donate/thankgnus-2010.cs.xhtml is an outdated translation
donate/thankgnus-2010.el.xhtml is an outdated translation
donate/thankgnus-2010.ru.xhtml is an outdated translation
donate/thankgnus-2011.el.xhtml is an outdated translation
donate/thankgnus-2011.ru.xhtml is an outdated translation
donate/thankgnus-2012.de.xhtml is an outdated translation
donate/thankgnus-2012.el.xhtml is an outdated translation
donate/thankgnus-2012.ru.xhtml is an outdated translation
donate/thankgnus-2013.fr.xhtml is an outdated translation
donate/thankgnus-2014.fr.xhtml is an outdated translation
donate/thankgnus-2015.fr.xhtml is an outdated translation
donate/thankgnus-2016.fr.xhtml is an outdated translation
donate/thankgnus-2017.de.xhtml is an outdated translation
donate/thankgnus-2017.fr.xhtml is an outdated translation
donate/thankgnus-2017.it.xhtml is an outdated translation
donate/thankgnus.bs.xhtml is an outdated translation
donate/thankgnus.el.xhtml is an outdated translation
donate/thankgnus.fi.xhtml is an outdated translation
donate/thankgnus.fr.xhtml is an outdated translation
donate/thankgnus.sq.xhtml is an outdated translation
Pattern: /donate/donate.html with regex `(\"https?://fsfe.org|\")/donate/donate(\.[a-z][a-z]\.|\.)html\"` Changed files: 230 Outdated translations: ```txt about/about.da.xhtml is an outdated translation about/about.el.xhtml is an outdated translation about/about.es.xhtml is an outdated translation about/about.fi.xhtml is an outdated translation about/about.fr.xhtml is an outdated translation about/about.pt.xhtml is an outdated translation about/about.ru.xhtml is an outdated translation about/about.sq.xhtml is an outdated translation about/about.sv.xhtml is an outdated translation about/about.tr.xhtml is an outdated translation campaigns/pdfreaders/pdfreaders.es.xhtml is an outdated translation campaigns/pdfreaders/pdfreaders.fr.xhtml is an outdated translation campaigns/pdfreaders/pdfreaders.hr.xhtml is an outdated translation campaigns/valentine/2010/valentine-2010.cs.xhtml is an outdated translation donate/thankgnus-2001.cs.xhtml is an outdated translation donate/thankgnus-2001.el.xhtml is an outdated translation donate/thankgnus-2001.ru.xhtml is an outdated translation donate/thankgnus-2002.cs.xhtml is an outdated translation donate/thankgnus-2002.el.xhtml is an outdated translation donate/thankgnus-2002.ru.xhtml is an outdated translation donate/thankgnus-2003.cs.xhtml is an outdated translation donate/thankgnus-2003.el.xhtml is an outdated translation donate/thankgnus-2003.ru.xhtml is an outdated translation donate/thankgnus-2004.cs.xhtml is an outdated translation donate/thankgnus-2004.el.xhtml is an outdated translation donate/thankgnus-2004.ru.xhtml is an outdated translation donate/thankgnus-2005.cs.xhtml is an outdated translation donate/thankgnus-2005.el.xhtml is an outdated translation donate/thankgnus-2005.ru.xhtml is an outdated translation donate/thankgnus-2006.cs.xhtml is an outdated translation donate/thankgnus-2006.el.xhtml is an outdated translation donate/thankgnus-2006.ru.xhtml is an outdated translation donate/thankgnus-2007.cs.xhtml is an outdated translation donate/thankgnus-2007.el.xhtml is an outdated translation donate/thankgnus-2007.ru.xhtml is an outdated translation donate/thankgnus-2008.cs.xhtml is an outdated translation donate/thankgnus-2008.el.xhtml is an outdated translation donate/thankgnus-2008.ru.xhtml is an outdated translation donate/thankgnus-2009.cs.xhtml is an outdated translation donate/thankgnus-2009.el.xhtml is an outdated translation donate/thankgnus-2009.ru.xhtml is an outdated translation donate/thankgnus-2010.cs.xhtml is an outdated translation donate/thankgnus-2010.el.xhtml is an outdated translation donate/thankgnus-2010.ru.xhtml is an outdated translation donate/thankgnus-2011.el.xhtml is an outdated translation donate/thankgnus-2011.ru.xhtml is an outdated translation donate/thankgnus-2012.de.xhtml is an outdated translation donate/thankgnus-2012.el.xhtml is an outdated translation donate/thankgnus-2012.ru.xhtml is an outdated translation donate/thankgnus-2013.fr.xhtml is an outdated translation donate/thankgnus-2014.fr.xhtml is an outdated translation donate/thankgnus-2015.fr.xhtml is an outdated translation donate/thankgnus-2016.fr.xhtml is an outdated translation donate/thankgnus-2017.de.xhtml is an outdated translation donate/thankgnus-2017.fr.xhtml is an outdated translation donate/thankgnus-2017.it.xhtml is an outdated translation donate/thankgnus.bs.xhtml is an outdated translation donate/thankgnus.el.xhtml is an outdated translation donate/thankgnus.fi.xhtml is an outdated translation donate/thankgnus.fr.xhtml is an outdated translation donate/thankgnus.sq.xhtml is an outdated translation ```
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
This pull request is marked as a work in progress. Remove the WIP: prefix from the title when it's ready
Sign in to join this conversation.
Loading…
Cancel
Save
There is no content yet.