aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-10-16 08:31:35 +0000
committerQMK Bot <hello@qmk.fm>2021-10-16 08:31:35 +0000
commit82bff2d80c151bfafdd15d47c7b1431240117bd5 (patch)
treebb67779787bbb73164407c4213fd218238834fde
parentfbdaf8ed3228fdeca965401ae4f4a5f93af8b2dd (diff)
parenteddb206369e78ee0c34fab8ce64f5d3bab9e1b13 (diff)
downloadqmk_firmware-82bff2d80c151bfafdd15d47c7b1431240117bd5.tar.gz
qmk_firmware-82bff2d80c151bfafdd15d47c7b1431240117bd5.zip
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--docs/ja/ja_doc_status.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/ja/ja_doc_status.sh b/docs/ja/ja_doc_status.sh
new file mode 100644
index 000000000..3dfbbd2bc
--- /dev/null
+++ b/docs/ja/ja_doc_status.sh
@@ -0,0 +1,34 @@
1#! /bin/sh
2#
3# Script to display the Japanese translation status of documents
4#
5if [ ! -d docs/ja ]; then
6 echo "'docs/ja' not found."
7 echo "do:"
8 echo " cd \$(QMK_TOP)"
9 echo " ./docs/ja/ja_doc_status.sh"
10 exit 1
11fi
12
13en_docs=`cd docs;ls -1 [a-z]*.md`
14ja_docs=`cd docs/ja;ls -1 [a-z]*.md`
15en_count=`echo $en_docs | wc -w`
16ja_count=`echo $ja_docs | wc -w`
17echo "English documents $en_count files."
18echo "Japanese documents $ja_count files."
19
20echo "Files that have not been translated yet:"
21for docfile in $en_docs
22do
23 if [ ! -f docs/ja/$docfile ]; then
24 wc docs/$docfile
25 fi
26done | sort
27echo "Files that have not been updated yet:"
28grep --no-filename "^[ ]*git diff" docs/ja/*.md | while read cmd
29do
30 cline=`echo $cmd | sh | wc -l`
31 if [ $cline -gt 0 ]; then
32 echo "$cline $cmd"
33 fi
34done | sort