[zh]Update other pages for links with '/zh/' prefix, using new prefix '/zh-cn/'

This commit is contained in:
howieyuen
2022-06-23 20:07:06 +08:00
parent d16f4daeb1
commit f0ccbff316
13 changed files with 40 additions and 40 deletions
+2 -2
View File
@@ -147,11 +147,11 @@ since a localized version has been committed.
The following example checks a single file:
./scripts/lsync.sh content/zh/docs/concepts/_index.md
./scripts/lsync.sh content/zh-cn/docs/concepts/_index.md
The following command checks a subdirectory:
./scripts/lsync.sh content/zh/docs/concepts/
./scripts/lsync.sh content/zh-cn/docs/concepts/
## check-ctrlcode.py
+2 -2
View File
@@ -4,7 +4,7 @@
#
# If the language to check is not English (`en`), we check if you are actually
# using the localized links. For example, if you checking
# `content/zh/docs/foo/bar`, we check if the English version exists AND if the
# `content/zh-cn/docs/foo/bar`, we check if the English version exists AND if the
# Chinese version exists as well. A checking record is produced if the link
# can use the localized version.
#
@@ -462,7 +462,7 @@ def main():
if len(parts) != 3 or parts[0] != "content":
print("ERROR:\nPlease specify file pattern in the format "
"'content/<lang>/<path-pattern>', for example:\n"
"'content/zh/docs/concepts/**/*.md'\n")
"'content/zh-cn/docs/concepts/**/*.md'\n")
PARSER.print_help()
sys.exit(-1)
+1 -1
View File
@@ -7,7 +7,7 @@ if [ "$#" -ne 1 ] ; then
echo -e "\nThis script checks if the English version of a page has changed since a " >&2
echo -e "localized page has been committed.\n" >&2
echo -e "Usage:\n\t$0 <PATH>\n" >&2
echo -e "Example:\n\t$0 content/zh/docs/concepts/_index.md\n" >&2
echo -e "Example:\n\t$0 content/zh-cn/docs/concepts/_index.md\n" >&2
exit 1
fi