Add translators to the credits dialog
- Add tooling at //tools/i18n to generate the file with the information
about the translators: //src/json/i18n-credits.json.
- Change credits.json to remove an entry from a translator, who is now
mentioned in the i18n credits.
- Change Makefile and release.bash to incorporate the i18n credit
generation in the process of building the extension.
- Change options page to accommodate the translators section.
Change-Id: I7f3991f9c456c381832f4a7bebdfc5581ef9e4be
diff --git a/release.bash b/release.bash
index 94ab75a..b29162c 100644
--- a/release.bash
+++ b/release.bash
@@ -15,6 +15,8 @@
-b, --browser indicates the target browser for the release. As of
now it can only be "chromium", which is also the
default value.
+ -f, --fast indicates that the release shouldn't generate the
+ i18n credits JSON file.
END
}
@@ -25,11 +27,12 @@
}
# Get options
-opts=$(getopt -l "help,channel:,browser:" -o "hc:b:" -n "$progname" -- "$@")
+opts=$(getopt -l "help,channel:,browser:,fast" -o "hc:b:f" -n "$progname" -- "$@")
eval set -- "$opts"
channel=stable
browser=chromium
+fast=0
while true; do
case "$1" in
@@ -45,6 +48,10 @@
browser="$2"
shift 2
;;
+ -f | --fast)
+ fast=1
+ shift
+ ;;
*) break ;;
esac
done
@@ -69,6 +76,11 @@
bash generateManifest.bash "${dependencies[@]}"
+# Also, generate the credits for the translators
+if [[ $fast == 0 ]]; then
+ bash generatei18nCredits.bash
+fi
+
# This is the version name which git gives us
version=$(git describe --always --tags --dirty)