texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Move month names translation strings


From: Gavin D. Smith
Subject: branch master updated: Move month names translation strings
Date: Tue, 15 Aug 2023 06:31:24 -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 1c7650e36c Move month names translation strings
1c7650e36c is described below

commit 1c7650e36cf67e93ad9c3d5db8ce18c676ffffb7
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Aug 15 11:31:14 2023 +0100

    Move month names translation strings
    
    * tp/Texinfo/Convert/Converter.pm,
    * tp/Texinfo/Convert/Utils.pm: move appearance of month names
    in gdt to Utils.pm, in order to be next to the @MONTH_NAMES
    array that these strings are used with.
---
 ChangeLog                       |  9 +++++++++
 tp/Texinfo/Convert/Converter.pm | 20 --------------------
 tp/Texinfo/Convert/Utils.pm     | 20 ++++++++++++++++++++
 3 files changed, 29 insertions(+), 20 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 66a89b9691..033d9a6ceb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2023-08-15  Gavin Smith <gavinsmith0123@gmail.com>
+
+       Move month names translation strings
+
+       * tp/Texinfo/Convert/Converter.pm,
+       * tp/Texinfo/Convert/Utils.pm: move appearance of month names
+       in gdt to Utils.pm, in order to be next to the @MONTH_NAMES
+       array that these strings are used with.
+
 2023-08-15  Gavin Smith <gavinsmith0123@gmail.com>
 
        * ChangeLog, texindex/ChangeLog: Move texindex ChangeLog entries
diff --git a/tp/Texinfo/Convert/Converter.pm b/tp/Texinfo/Convert/Converter.pm
index a78136a042..87916a08ca 100644
--- a/tp/Texinfo/Convert/Converter.pm
+++ b/tp/Texinfo/Convert/Converter.pm
@@ -111,26 +111,6 @@ if (0) {
   $self->gdt('error@arrow{}');
 }
 
-# This is not used as code, but used to mark months as strings to be
-# translated
-if (0) {
-  my $self;
-  my @mark_month_for_translation = (
-   $self->gdt('January'),
-   $self->gdt('February'),
-   $self->gdt('March'),
-   $self->gdt('April'),
-   $self->gdt('May'),
-   $self->gdt('June'),
-   $self->gdt('July'),
-   $self->gdt('August'),
-   $self->gdt('September'),
-   $self->gdt('October'),
-   $self->gdt('November'),
-   $self->gdt('December')
-  );
-}
-
 our %default_args_code_style = (
   'email' => [1],
   'anchor' => [1],
diff --git a/tp/Texinfo/Convert/Utils.pm b/tp/Texinfo/Convert/Utils.pm
index e1f2358512..578ffbfe36 100644
--- a/tp/Texinfo/Convert/Utils.pm
+++ b/tp/Texinfo/Convert/Utils.pm
@@ -68,6 +68,26 @@ our @MONTH_NAMES =
      'November', 'December'
     );
 
+# This is not used as code, but used to mark months as strings to be
+# translated
+if (0) {
+  my $self;
+  my @mark_month_for_translation = (
+   $self->gdt('January'),
+   $self->gdt('February'),
+   $self->gdt('March'),
+   $self->gdt('April'),
+   $self->gdt('May'),
+   $self->gdt('June'),
+   $self->gdt('July'),
+   $self->gdt('August'),
+   $self->gdt('September'),
+   $self->gdt('October'),
+   $self->gdt('November'),
+   $self->gdt('December')
+  );
+}
+
 # this method requires a converter.
 sub expand_today($)
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]