[zh]Update other pages for links with '/zh/' prefix, using new prefix '/zh-cn/'
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user