agora inbox for pgsql-hackers@postgresql.org
help / color / mirror / Atom feedFrom: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Subject: [PATCH] Do not treat <literal> words as translatable
Date: Tue, 17 May 2022 17:37:33 +0900
create_help.pl extracts <literal> 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+)[^>]*>(.+?)</\1[^>]*>!)
{
+ if ($1 eq "literal")
+ {
+ $cmdsynopsis =~ s!<(\w+)[^>]*>(.+?)</\1[^>]*>!\2!;
+ next;
+ }
my $match = $2;
$match =~ s/<[^>]+>//g;
$match =~ s/%%/%/g;
--
2.27.0
----Next_Part(Tue_May_17_17_43_42_2022_994)----
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: horikyota.ntt@gmail.com
Subject: Re: [PATCH] Do not treat <literal> words as translatable
In-Reply-To: <no-message-id-649241@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox