groff-commit
[Top][All Lists]
Advanced

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

[groff] 04/47: [man]: Internationalize and localize.


From: G. Branden Robinson
Subject: [groff] 04/47: [man]: Internationalize and localize.
Date: Tue, 11 Jan 2022 06:33:13 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit c64fd60dff62f5dbc6271f8fbc538129a28e1fdd
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Jan 4 06:37:34 2022 +1100

    [man]: Internationalize and localize.
    
    * tmac/an.tmac (TH): Indirect predefined manual section titles through
      new strings `an*section[1-9]` so that they can be localized.
    
      (initialization): Give these strings English defaults.
    
      (TH): Move `ss` request from here...
    
    * tmac/en.tmac: ...to here.  It's not the man(7) package's business what
      the inter-word and inter-sentence spacing values are.  Also, having
      the correct[disputed] inter-sentence spacing value for English in its
      localization file restores it for the benefit of multi-lingual
      documents (mainly roff applications other than man(7)).
    
    * tmac/{cs,de,fr,it,sv}.tmac: Supply translations for the manual section
      titles; these were done by a monoglot American employing Google
      Translate, so those scandalized or running into howlingly wrong
      locutions are warmly invited to submit corrections.
    
    * tmac/trans.tmac: Load localized strings.
    
    Fixes <https://savannah.gnu.org/bugs/?61734>.
---
 ChangeLog       | 26 ++++++++++++++++++++++++++
 tmac/an.tmac    | 29 +++++++++++++++++++----------
 tmac/cs.tmac    |  9 +++++++++
 tmac/de.tmac    |  9 +++++++++
 tmac/en.tmac    |  2 ++
 tmac/fr.tmac    |  9 +++++++++
 tmac/it.tmac    |  9 +++++++++
 tmac/sv.tmac    |  9 +++++++++
 tmac/trans.tmac | 13 +++++++++++++
 9 files changed, 105 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1507650a..82b5aae6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,29 @@
+2022-01-04  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [man]: Internationalize and localize.
+
+       * tmac/an.tmac (TH): Indirect predefined manual section titles
+       through new strings `an*section[1-9]` so that they can be
+       localized.
+       (initialization): Give these strings English defaults.
+       (TH): Move `ss` request from here...
+
+       * tmac/en.tmac: ...to here.  It's not the man(7) package's
+       business what the inter-word and inter-sentence spacing values
+       are.  Also, having the correct[disputed] inter-sentence spacing
+       value for English in its localization file restores it for the
+       benefit of multi-lingual documents (mainly roff applications
+       other than man(7)).
+
+       * tmac/{cs,de,fr,it,sv}.tmac: Supply translations for the manual
+       section titles; these were done by a monoglot American employing
+       Google Translate, so those scandalized or running into howlingly
+       wrong locutions are warmly invited to submit corrections.
+
+       * tmac/trans.tmac: Load localized strings.
+
+       Fixes <https://savannah.gnu.org/bugs/?61734>.
+
 2022-01-04  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/utils/grog/grog.pl: Handle auxiliary macro package
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 738dfb51..df09e86a 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -210,7 +210,6 @@
 .  ad \\*[AD]
 .  hy \\n[HY]
 .  ll \\n[LL]u
-.  ss 12
 .
 .  \" We've seen no tbl(1) tables yet in this document.
 .  rr TW
@@ -229,15 +228,15 @@
 .  if \\n[CT] .stringup an-title
 .  ds an-section "\\$2\"
 .  ie (\\n[.$] > 4)    .ds an-extra3 "\\$5\"
-.  el \{ .ie '\\$2'1'  .ds an-extra3 General Commands Manual\"
-.  el \{ .ie '\\$2'2'  .ds an-extra3 System Calls Manual\"
-.  el \{ .ie '\\$2'3'  .ds an-extra3 Library Functions Manual\"
-.  el \{ .ie '\\$2'4'  .ds an-extra3 Kernel Interfaces Manual\"
-.  el \{ .ie '\\$2'5'  .ds an-extra3 File Formats Manual\"
-.  el \{ .ie '\\$2'6'  .ds an-extra3 Games Manual\"
-.  el \{ .ie '\\$2'7'  .ds an-extra3 Miscellaneous Information Manual\"
-.  el \{ .ie '\\$2'8'  .ds an-extra3 System Manager's Manual\"
-.  el \{ .ie '\\$2'9'  .ds an-extra3 Kernel Developer's Manual\"
+.  el \{ .ie '\\$2'1'  .ds an-extra3 \\*[an*section1]\"
+.  el \{ .ie '\\$2'2'  .ds an-extra3 \\*[an*section2]\"
+.  el \{ .ie '\\$2'3'  .ds an-extra3 \\*[an*section3]\"
+.  el \{ .ie '\\$2'4'  .ds an-extra3 \\*[an*section4]\"
+.  el \{ .ie '\\$2'5'  .ds an-extra3 \\*[an*section5]\"
+.  el \{ .ie '\\$2'6'  .ds an-extra3 \\*[an*section6]\"
+.  el \{ .ie '\\$2'7'  .ds an-extra3 \\*[an*section7]\"
+.  el \{ .ie '\\$2'8'  .ds an-extra3 \\*[an*section8]\"
+.  el \{ .ie '\\$2'9'  .ds an-extra3 \\*[an*section9]\"
 .  el                  .ds an-extra3 \" empty
 .  \}\}\}\}\}\}\}\}\}
 .
@@ -983,6 +982,16 @@
 .
 .\" === Initialize. ===
 .
+.ds an*section1 General Commands Manual\"
+.ds an*section2 System Calls Manual\"
+.ds an*section3 Library Functions Manual\"
+.ds an*section4 Kernel Interfaces Manual\"
+.ds an*section5 File Formats Manual\"
+.ds an*section6 Games Manual\"
+.ds an*section7 Miscellaneous Information Manual\"
+.ds an*section8 System Manager's Manual\"
+.ds an*section9 Kernel Developer's Manual\"
+.
 .mso devtag.tmac
 .nr an-devtag-needs-end-of-heading 0
 .nr an-devtag-needs-second-column 0
diff --git a/tmac/cs.tmac b/tmac/cs.tmac
index eb02aeef..69a7c3a3 100644
--- a/tmac/cs.tmac
+++ b/tmac/cs.tmac
@@ -80,6 +80,15 @@
 .ds \*[locale]-litb Tabulka\"
 .ds \*[locale]-lt REJST��K TABULEK\"
 .ds \*[locale]-lx REJST��K DOKUMENT�\"
+.ds \*[locale]-man-section1 Manu�l u�ivatelsk�ch p��kaz�\"
+.ds \*[locale]-man-section2 Manu�l syst�mov�ch vol�n�\"
+.ds \*[locale]-man-section3 Manu�l funkc� knihovny\"
+.ds \*[locale]-man-section4 Manu�l rozhran� j�dra\"
+.ds \*[locale]-man-section5 Manu�l pro form�ty soubor�\"
+.ds \*[locale]-man-section6 Hern� manu�l\"
+.ds \*[locale]-man-section7 R�zn� informa�n� manu�l\"
+.ds \*[locale]-man-section8 Manu�l spr�vce syst�mu\"
+.ds \*[locale]-man-section9 Manu�l v�voj��e j�dra\"
 .ds \*[locale]-march B�ezen\"
 .ds \*[locale]-may Kv�ten\"
 .ds \*[locale]-monday Pond�l�\"
diff --git a/tmac/de.tmac b/tmac/de.tmac
index a6ad9086..398b920a 100644
--- a/tmac/de.tmac
+++ b/tmac/de.tmac
@@ -80,6 +80,15 @@
 .ds \*[locale]-litb Tabelle\"
 .ds \*[locale]-lt Verzeichnis der Tabellen\"
 .ds \*[locale]-lx Verzeichnis der Belege\"
+.ds \*[locale]-man-section1 Handbuch f�r allgemeine Befehle\"
+.ds \*[locale]-man-section2 Handbuch f�r Systemaufrufe\"
+.ds \*[locale]-man-section3 Handbuch zu Bibliotheksfunktionen\"
+.ds \*[locale]-man-section4 Handbuch zu Kernel-Schnittstellen\"
+.ds \*[locale]-man-section5 Handbuch zu Dateiformaten\"
+.ds \*[locale]-man-section6 Spielehandbuch\"
+.ds \*[locale]-man-section7 Sonstiges Informationshandbuch\"
+.ds \*[locale]-man-section8 Handbuch des Systemmanagers\"
+.ds \*[locale]-man-section9 Handbuch f�r Kernel-Entwickler\"
 .ds \*[locale]-march M�rz\"
 .ds \*[locale]-may Mai\"
 .ds \*[locale]-monday Montag\"
diff --git a/tmac/en.tmac b/tmac/en.tmac
index 502dc13c..6f0784fb 100644
--- a/tmac/en.tmac
+++ b/tmac/en.tmac
@@ -26,6 +26,8 @@
 .
 .ds locale english\"
 .
+.ss 12
+.
 .\" Set the minimum hyphenation mode that works with the patterns.
 .hy 4
 .
diff --git a/tmac/fr.tmac b/tmac/fr.tmac
index 21e242bf..6043d9ee 100644
--- a/tmac/fr.tmac
+++ b/tmac/fr.tmac
@@ -80,6 +80,15 @@
 .ds \*[locale]-litb Tableau\"
 .ds \*[locale]-lt LISTE DES TABLEAUX\"
 .ds \*[locale]-lx LISTE DES DOCUMENTS\"
+.ds \*[locale]-man-section1 Manuel des commandes g�n�rales\"
+.ds \*[locale]-man-section2 Manuel des appels syst�me\"
+.ds \*[locale]-man-section3 Manuel des fonctions de la biblioth�que\"
+.ds \*[locale]-man-section4 Manuel des interfaces du noyau\"
+.ds \*[locale]-man-section5 Manuel des formats de fichiers\"
+.ds \*[locale]-man-section6 Manuel des jeux\"
+.ds \*[locale]-man-section7 Manuel d'informations diverses\"
+.ds \*[locale]-man-section8 Manuel du gestionnaire de syst�me\"
+.ds \*[locale]-man-section9 Manuel du d�veloppeur de noyau\"
 .ds \*[locale]-march Mars\"
 .ds \*[locale]-may Mai\"
 .ds \*[locale]-monday Lundi\"
diff --git a/tmac/it.tmac b/tmac/it.tmac
index 47edf737..539aef2f 100644
--- a/tmac/it.tmac
+++ b/tmac/it.tmac
@@ -80,6 +80,15 @@
 .ds \*[locale]-litb Tabella\"
 .ds \*[locale]-lt ELENCO DEI TABELLE\"
 .ds \*[locale]-lx ELENCO DEI DOCUMENTI\"
+.ds \*[locale]-man-section1 Manuale dei comandi generali\"
+.ds \*[locale]-man-section2 Manuale delle chiamate di sistema\"
+.ds \*[locale]-man-section3 Manuale delle funzioni di libreria\"
+.ds \*[locale]-man-section4 Manuale delle interfacce del kernel\"
+.ds \*[locale]-man-section5 Manuale dei formati di file\"
+.ds \*[locale]-man-section6 Manuale dei giochi\"
+.ds \*[locale]-man-section7 Manuale di informazioni varie\"
+.ds \*[locale]-man-section8 Manuale del gestore di sistema\"
+.ds \*[locale]-man-section9 Manuale dello sviluppatore del kernel\"
 .ds \*[locale]-march Marzo\"
 .ds \*[locale]-may Maggio\"
 .ds \*[locale]-monday Luned\[i `]\"
diff --git a/tmac/sv.tmac b/tmac/sv.tmac
index 0b8b7cdd..d41e4d5e 100644
--- a/tmac/sv.tmac
+++ b/tmac/sv.tmac
@@ -80,6 +80,15 @@
 .ds \*[locale]-litb Tabell\"
 .ds \*[locale]-lt Tabeller\"
 .ds \*[locale]-lx Uppst\[a :]llningar\"
+.ds \*[locale]-man-section1 Handbok f�r allm�nna kommandon\"
+.ds \*[locale]-man-section2 Handbok f�r systemsamtal\"
+.ds \*[locale]-man-section3 Handbok f�r biblioteksfunktioner\"
+.ds \*[locale]-man-section4 Handbok f�r k�rngr�nssnitt\"
+.ds \*[locale]-man-section5 Handbok f�r filformat\"
+.ds \*[locale]-man-section6 Spelhandbok\"
+.ds \*[locale]-man-section7 Handbok f�r diverse information\"
+.ds \*[locale]-man-section8 Systemchefens handbok\"
+.ds \*[locale]-man-section9 Handbok f�r k�rnutvecklare\"
 .ds \*[locale]-march mars\"
 .ds \*[locale]-may maj\"
 .ds \*[locale]-monday m\[a ao]ndag\"
diff --git a/tmac/trans.tmac b/tmac/trans.tmac
index cab86624..d5257f52 100644
--- a/tmac/trans.tmac
+++ b/tmac/trans.tmac
@@ -30,6 +30,19 @@
 .\"
 .\" trans.tmac should stay locale-independent.
 .
+.\" man package
+.if d an \{\
+.      als an*section1 \*[locale]-man-section1
+.      als an*section2 \*[locale]-man-section2
+.      als an*section3 \*[locale]-man-section3
+.      als an*section4 \*[locale]-man-section4
+.      als an*section5 \*[locale]-man-section5
+.      als an*section6 \*[locale]-man-section6
+.      als an*section7 \*[locale]-man-section7
+.      als an*section8 \*[locale]-man-section8
+.      als an*section9 \*[locale]-man-section9
+.\}
+.
 .\" ms package
 .if r GS \{\
 .      als ABSTRACT \*[locale]-abstract



reply via email to

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