From 81770afd9df6f073c50f875b2dd540273ecc15fa Mon Sep 17 00:00:00 2001 From: Kyotaro Horiguchi Date: Tue, 17 May 2022 17:37:33 +0900 Subject: [PATCH] Do not treat words as translatable create_help.pl extracts words as translatable but actually they are untranslatable. Exclude such words from translatable words so that translators don't mistakenly translate the words. --- src/bin/psql/create_help.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/psql/create_help.pl b/src/bin/psql/create_help.pl index 1a9836cbcc..9919aaf4e7 100644 --- a/src/bin/psql/create_help.pl +++ b/src/bin/psql/create_help.pl @@ -138,6 +138,11 @@ foreach my $file (sort readdir DIR) while ($cmdsynopsis =~ m!<(\w+)[^>]*>(.+?)]*>!) { + if ($1 eq "literal") + { + $cmdsynopsis =~ s!<(\w+)[^>]*>(.+?)]*>!\2!; + next; + } my $match = $2; $match =~ s/<[^>]+>//g; $match =~ s/%%/%/g; -- 2.27.0