aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gotext.go40
1 files changed, 15 insertions, 25 deletions
diff --git a/src/gotext.go b/src/gotext.go
index b802d86..73190c3 100644
--- a/src/gotext.go
+++ b/src/gotext.go
@@ -249,7 +249,7 @@ msgstr "Project-Id-Version: %s\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
- "Content-Type: text/plain; charset=CHARSET\n"
+ "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
`, opts.PackageName, opts.MsgIDBugsAddress, formatTime())
@@ -445,41 +445,31 @@ func Main() {
writePotFile(out)
}
+// FIXME: are these comments useful
var (
// LcAll is for all of the locale.
- LcAll = uint(C.LC_ALL)
+ LC_ALL = uint(C.LC_ALL)
- // LcCollate is for regular expression matching (it determines the meaning of
+ // LC_Collate is for regular expression matching (it determines the meaning of
// range expressions and equivalence classes) and string collation.
- LcCollate = uint(C.LC_COLLATE)
+ LC_COLLATE = uint(C.LC_COLLATE)
- // LcCtype is for regular expression matching, character classification,
+ // LC_Ctype is for regular expression matching, character classification,
// conversion, case-sensitive comparison, and wide character functions.
- LcCtype = uint(C.LC_CTYPE)
+ LC_CTYPE = uint(C.LC_CTYPE)
- // LcMessages is for localizable natural-language messages.
- LcMessages = uint(C.LC_MESSAGES)
+ // LC_Messages is for localizable natural-language messages.
+ LC_MESSAGES = uint(C.LC_MESSAGES)
- // LcMonetary is for monetary formatting.
- LcMonetary = uint(C.LC_MONETARY)
+ // LC_Monetary is for monetary formatting.
+ LC_MONETARY = uint(C.LC_MONETARY)
- // LcNumeric is for number formatting (such as the decimal point and the
+ // LC_Numeric is for number formatting (such as the decimal point and the
// thousands separator).
- LcNumeric = uint(C.LC_NUMERIC)
+ LC_NUMERIC = uint(C.LC_NUMERIC)
- // LcTime is for time and date formatting.
- LcTime = uint(C.LC_TIME)
-)
-
-// Deprecated but kept for backwards compatibility.
-var (
- LC_ALL = LcAll
- LC_COLLATE = LcCollate
- LC_CTYPE = LcCtype
- LC_MESSAGES = LcMessages
- LC_MONETARY = LcMonetary
- LC_NUMERIC = LcNumeric
- LC_TIME = LcTime
+ // LC_Time is for time and date formatting.
+ LC_TIME = uint(C.LC_TIME)
)
// SetLocale sets the program's current locale.