[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Allow translation of @emph{See}
From: |
Gavin D. Smith |
Subject: |
branch master updated: Allow translation of @emph{See} |
Date: |
Wed, 27 Sep 2023 17:28:18 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 76b4dbcc01 Allow translation of @emph{See}
76b4dbcc01 is described below
commit 76b4dbcc01404473ecb5f13169e62ed52291be16
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Wed Sep 27 22:28:01 2023 +0100
Allow translation of @emph{See}
* tp/Texinfo/Convert/HTML.pm (_convert_printindex_command):
Change "@emph{See}" in translated string to "@emph{See@:}" in
translated string. This avoids a msgfmt error
---
ChangeLog | 13 +++++++++++++
tp/Texinfo/Convert/HTML.pm | 8 +++++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6f012c796d..25a15a5aec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2023-09-27 Gavin Smith <gavinsmith0123@gmail.com>
+
+ Allow translation of @emph{See}
+
+ * tp/Texinfo/Convert/HTML.pm (_convert_printindex_command):
+ Change "@emph{See}" in translated string to "@emph{See@:}" in
+ translated string. This avoids a msgfmt error
+ "a format specification for argument 'See' doesn't exist in 'msgstr'"
+ due to {See} being seen as a placeholder for a string (with
+ perl-brace-format). Adding the non-alphabetic characters "@:"
+ inside the braces stops this. Report from Petr Pisar for Czech
+ translation.
+
2023-09-21 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/configure.ac: do not reset CPPFLAGS to
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index a9366c367c..13104133dd 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -5666,13 +5666,15 @@ sub _convert_printindex_command($$$$)
if ($in_code) {
$result_tree
# TRANSLATORS: redirect to another index entry
- = $self->gdt('@code{{main_index_entry}}, @emph{See}
@code{{seenentry}}',
+ # TRANSLATORS: @: is discardable and is used to avoid a msgfmt error
+ = $self->gdt('@code{{main_index_entry}}, @emph{See@:}
@code{{seenentry}}',
{'main_index_entry' => $entry_ref_tree,
'seenentry' => $referred_tree});
} else {
$result_tree
- # TRANSLATORS: redirect to another index entry
- = $self->gdt('{main_index_entry}, @emph{See} {seenentry}',
+ # TRANSLATORS: redirect to another index entry
+ # TRANSLATORS: @: is discardable and used to avoid a msgfmt error
+ = $self->gdt('{main_index_entry}, @emph{See@:} {seenentry}',
{'main_index_entry' => $entry_ref_tree,
'seenentry' => $referred_tree});
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Allow translation of @emph{See},
Gavin D. Smith <=