+2002-05-12 Daiki Ueno <ueno@unixuser.org>
+
+ * gettext.el (gettext-default-locale): New variable.
+ (bind-text-domain): Use it.
+
2002-05-07 Daiki Ueno <ueno@unixuser.org>
* gettext.el (gettext-mapcar*): Eliminate recursion.
(defvar gettext-message-domain-to-catalog-alist nil)
(defvar gettext-default-message-domain "emacs")
(defvar gettext-default-mime-charset default-mime-charset)
+(defvar gettext-default-locale "C")
(defconst gettext-msgid-regexp "msgid\\s-*\"")
(defconst gettext-msgstr-regexp "msgstr\\s-*\"")
Here's how the path to message files is constructed under SunOS 5.0:
{pathname}/{LANG}/LC_MESSAGES/{domain}.mo
\[XEmacs I18N level 3 emulating function]"
- (let* ((lang (or (getenv "LC_ALL") (getenv "LC_MESSAGES") (getenv "LANG")))
+ (let* ((lang (or (getenv "LC_ALL") (getenv "LC_MESSAGES") (getenv "LANG")
+ gettext-default-locale))
(language (progn
(string-match "\\([^_.]+\\)\\(_[^.]+\\)?\\(\\.[^@]+\\)?"
lang)