Skip to content

Commit 5d62a66

Browse files
author
Peter McCluskey
committed
Add language code substitution cookie
1 parent b37ec01 commit 5d62a66

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Version Changes for Hypermail
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
Peter McCluskey (Jun 2, 2004)
4+
Add language code substitution cookie patch from Shane Wegner.
35

46
============================
57
HYPERMAIL VERSION 2.2.0:

src/printfile.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
** %S - Subject META TAG - Not valid on index pages
3333
** %A - Author META TAG - Not valid on index pages
3434
** %D - Date META TAG - Not valid on index pages
35+
** %G - Two character language
3536
** \n - newline character
3637
** \t - tab character
3738
**
@@ -126,6 +127,12 @@ int printfile(FILE *fp, char *format, char *label, char *subject,
126127
for (cp = getlocaltime(); *cp; cp++)
127128
putc(*cp, fp);
128129
continue;
130+
case 'G': /* %G - Language code */
131+
if (set_language) {
132+
for (cp = set_language; *cp; cp++)
133+
putc(*cp, fp);
134+
}
135+
continue;
129136
case 'h': /* %h - Hypermail Resource Center */
130137
for (cp = HMURL; *cp; cp++)
131138
putc(*cp, fp);

0 commit comments

Comments
 (0)