-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: Texinfo: Translate partial menu node names.
Fixes <https://issues.guix.gnu.org/64881>. * lib/Locale/Po4a/Texinfo.pm (translate_buffer_menuentry): Refine regexp, so that it matches menu entries lacking a description. Only call 'translate_buffer' on the description if it was provided. * t/fmt/texinfo/partialmenus.trans: New file. * t/fmt/texinfo/partialmenus.texi: Likewise. * t/fmt/texinfo/partialmenus.pot: Likewise. * t/fmt/texinfo/partialmenus.po: Likewise. * t/fmt/texinfo/partialmenus.norm: Likewise. * t/fmt-texinfo.t: Register the new 'partialmenus' test.
- Loading branch information
Showing
7 changed files
with
141 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
\input texinfo | ||
@c =========================================================================== | ||
@c | ||
@c This file was generated with po4a. Translate the source file. | ||
@c | ||
@c =========================================================================== | ||
|
||
|
||
@c These menus do not contain a description, which used to cause a | ||
@c Texinfo menu entry to not be translated. | ||
@menu | ||
* A menu entry without any description:: A menu entry without any | ||
description | ||
* Optional menu name: The menu node:: Optional menu name: The menu node | ||
@end menu | ||
|
||
@node A menu entry without any description | ||
@chapter A menu entry without any description | ||
|
||
@node The menu node | ||
@chapter Optional menu name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# SOME DESCRIPTIVE TITLE | ||
# Copyright (C) YEAR Free Software Foundation, Inc. | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2023-07-27 17:29-0400\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#. type: chapter | ||
#: partialmenus.texi:8 partialmenus.texi:10 partialmenus.texi:11 | ||
#, no-wrap | ||
msgid "A menu entry without any description" | ||
msgstr "A MENU ENTRY WITHOUT ANY DESCRIPTION" | ||
|
||
#. type: menuentry | ||
#: partialmenus.texi:8 | ||
msgid "Optional menu name: The menu node" | ||
msgstr "OPTIONAL MENU NAME: THE MENU NODE" | ||
|
||
#. type: node | ||
#: partialmenus.texi:13 | ||
#, no-wrap | ||
msgid "The menu node" | ||
msgstr "THE MENU NODE" | ||
|
||
#. type: chapter | ||
#: partialmenus.texi:14 | ||
#, no-wrap | ||
msgid "Optional menu name" | ||
msgstr "OPTIONAL MENU NAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# SOME DESCRIPTIVE TITLE | ||
# Copyright (C) YEAR Free Software Foundation, Inc. | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2023-08-16 09:47-0400\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#. type: chapter | ||
#: partialmenus.texi:8 partialmenus.texi:10 partialmenus.texi:11 | ||
#, no-wrap | ||
msgid "A menu entry without any description" | ||
msgstr "" | ||
|
||
#. type: menuentry | ||
#: partialmenus.texi:8 | ||
msgid "Optional menu name: The menu node" | ||
msgstr "" | ||
|
||
#. type: node | ||
#: partialmenus.texi:13 | ||
#, no-wrap | ||
msgid "The menu node" | ||
msgstr "" | ||
|
||
#. type: chapter | ||
#: partialmenus.texi:14 | ||
#, no-wrap | ||
msgid "Optional menu name" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
\input texinfo | ||
|
||
@c These menus do not contain a description, which used to cause a | ||
@c Texinfo menu entry to not be translated. | ||
@menu | ||
* A menu entry without any description:: | ||
* Optional menu name: The menu node:: | ||
@end menu | ||
|
||
@node A menu entry without any description | ||
@chapter A menu entry without any description | ||
|
||
@node The menu node | ||
@chapter Optional menu name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
\input texinfo | ||
@c =========================================================================== | ||
@c | ||
@c This file was generated with po4a. Translate the source file. | ||
@c | ||
@c =========================================================================== | ||
|
||
|
||
@c These menus do not contain a description, which used to cause a | ||
@c Texinfo menu entry to not be translated. | ||
@menu | ||
* A MENU ENTRY WITHOUT ANY DESCRIPTION:: A MENU ENTRY WITHOUT ANY | ||
DESCRIPTION | ||
* OPTIONAL MENU NAME: THE MENU NODE:: OPTIONAL MENU NAME: THE MENU NODE | ||
@end menu | ||
|
||
@node A MENU ENTRY WITHOUT ANY DESCRIPTION | ||
@chapter A MENU ENTRY WITHOUT ANY DESCRIPTION | ||
|
||
@node THE MENU NODE | ||
@chapter OPTIONAL MENU NAME |