Re: [Tails-dev] language_statistics.sh script broken?

Üzenet törlése

Válasz az üzenetre
Szerző: Cyril Brulebois
Dátum:  
Címzett: The Tails public development discussion list
Tárgy: Re: [Tails-dev] language_statistics.sh script broken?
Hi Muri & list,

Muri Nicanor <muri@???> (2017-12-11):
> thanks! if i comment out the line the script works with the current
> commit, but if i go back to --before="December 1" (8d60cc4596) in only
> get the first part of the output of the script (## All the website) but
> for the core pages it breaks with:
> > msgcat: error while opening
> "wiki/src/./misc/unsafe_browser_warning.de.po" for reading: No such file
> or directory


Yeah, it seems you might need to adjust a few files to let you compute
stats for the past. See this commit, which brought the list of core
files in line with recent changes:
| commit 791437c88902e65b5425036cc119a3baf2d059f2
| Author: sajolida <sajolida@???>
| Date:   Thu Nov 16 18:13:54 2017 +0000
| 
|     Update core pages and .htaccess to moved and removed files for the new download page


That includes getting rid of “./misc/unsafe_browser_warning” in this
file: wiki/src/contribute/l10n_tricks/core_po_files.txt

I'm attaching the full diff (trap commented out in addition to the
change mentioned above) that lets me compute stats for the commit you
mentioned (8d60cc4596).

Cheers,
--
Cyril Brulebois -- Debian Consultant @ DEBAMAX -- https://debamax.com/
diff --git a/refresh-translations b/refresh-translations
index 740e9fe671..df781b038e 100755
--- a/refresh-translations
+++ b/refresh-translations
@@ -135,7 +135,7 @@ intltool_merge_xml () {
### Main

# Schedule clean up
-trap "rm -fr tmp/pot po/*.new po/*.orig" EXIT
+# trap "rm -fr tmp/pot po/*.new po/*.orig" EXIT

FORCE=no
while [ -n "${@:-}" ]; do
diff --git a/wiki/src/contribute/l10n_tricks/core_po_files.txt b/wiki/src/contribute/l10n_tricks/core_po_files.txt
index b1000eb354..915d0b6144 100644
--- a/wiki/src/contribute/l10n_tricks/core_po_files.txt
+++ b/wiki/src/contribute/l10n_tricks/core_po_files.txt
@@ -86,7 +86,6 @@
./install/win
./install/win/usb
./install/win/usb/overview
-./misc/unsafe_browser_warning
./sidebar
./support
./upgrade