summaryrefslogtreecommitdiff
path: root/tmac/trans.tmac
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2021-12-27 18:16:26 +1100
committerG. Branden Robinson <g.branden.robinson@gmail.com>2021-12-27 19:27:30 +1100
commitfc4363b5d722a37ae540cb89b9aa434d7a5e46a0 (patch)
tree631dfc72e4f55902f6a6c0d628208b3640b461eb /tmac/trans.tmac
parent67e944be21be3cf5ab6f7ad0b4c1c255505a3301 (diff)
downloadgroff-git-fc4363b5d722a37ae540cb89b9aa434d7a5e46a0.tar.gz
[me]: Internationalize strings.
* tmac/e.tmac (initialization): Introduce internal `_mo1`..`_mo12`, `_dw1`..`_dw7`, and `_td_format` strings (with English defaults). Define them outside of the new `ld` macro so that they can be overriden by localization packages. (ld) <dw, mo, td>: Populate via the above new strings. * tmac/trans.tmac: Stop defining `mo` and `dw`. Instead, make them aliases of the new strings above. Handle `wa` and `wc` similarly. This commit provokes a warning when the `meintro_fr.me` is processed: warning: macro 'french-appendix_string' not defined (It causes no changes to the rendered output because chapter and appendix headings are not used, nor is the `td` string.) This will be fixed in the next commit.
Diffstat (limited to 'tmac/trans.tmac')
-rw-r--r--tmac/trans.tmac40
1 files changed, 21 insertions, 19 deletions
diff --git a/tmac/trans.tmac b/tmac/trans.tmac
index f79d7ed57..cab86624d 100644
--- a/tmac/trans.tmac
+++ b/tmac/trans.tmac
@@ -105,25 +105,27 @@
.
.\" me package
.if d @R \{\
-. if \n[dw]=1 .als dw \*[locale]-sunday
-. if \n[dw]=2 .als dw \*[locale]-monday
-. if \n[dw]=3 .als dw \*[locale]-tuesday
-. if \n[dw]=4 .als dw \*[locale]-wednesday
-. if \n[dw]=5 .als dw \*[locale]-thursday
-. if \n[dw]=6 .als dw \*[locale]-friday
-. if \n[dw]=7 .als dw \*[locale]-saturday
-. if \n[mo]=1 .als mo \*[locale]-january
-. if \n[mo]=2 .als mo \*[locale]-february
-. if \n[mo]=3 .als mo \*[locale]-march
-. if \n[mo]=4 .als mo \*[locale]-april
-. if \n[mo]=5 .als mo \*[locale]-may
-. if \n[mo]=6 .als mo \*[locale]-june
-. if \n[mo]=7 .als mo \*[locale]-july
-. if \n[mo]=8 .als mo \*[locale]-august
-. if \n[mo]=9 .als mo \*[locale]-september
-. if \n[mo]=10 .als mo \*[locale]-october
-. if \n[mo]=11 .als mo \*[locale]-november
-. if \n[mo]=12 .als mo \*[locale]-december
+. als wa \*[locale]-appendix_string
+. als wc \*[locale]-chapter_string
+. als _dw1 \*[locale]-sunday
+. als _dw2 \*[locale]-monday
+. als _dw3 \*[locale]-tuesday
+. als _dw4 \*[locale]-wednesday
+. als _dw5 \*[locale]-thursday
+. als _dw6 \*[locale]-friday
+. als _dw7 \*[locale]-saturday
+. als _mo1 \*[locale]-january
+. als _mo2 \*[locale]-february
+. als _mo3 \*[locale]-march
+. als _mo4 \*[locale]-april
+. als _mo5 \*[locale]-may
+. als _mo6 \*[locale]-june
+. als _mo7 \*[locale]-july
+. als _mo8 \*[locale]-august
+. als _mo9 \*[locale]-september
+. als _mo10 \*[locale]-october
+. als _mo11 \*[locale]-november
+. als _mo12 \*[locale]-december
.\}
.
.\" mom package