diff options
| author | Juri Linkov <juri@linkov.net> | 2019-03-25 23:32:09 +0200 |
|---|---|---|
| committer | Juri Linkov <juri@linkov.net> | 2019-03-25 23:32:09 +0200 |
| commit | 389475dbcc4fb8ac52367e103306a632ef3fd101 (patch) | |
| tree | 2ea141875aa59f25cb10725aca8547629973959a /lisp/international | |
| parent | 1f8a6b56a5c4342b1fc3ec1d62b9418656a6f953 (diff) | |
| download | emacs-389475dbcc4fb8ac52367e103306a632ef3fd101.tar.gz | |
* lisp/international/mule-cmds.el (ngettext): Move to editfns.c.
* src/editfns.c (Fngettext): Move from mule-cmds.el and use
gettext's ngettext when available.
Diffstat (limited to 'lisp/international')
| -rw-r--r-- | lisp/international/mule-cmds.el | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 035932e395d..dfa9e4e6c8c 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el @@ -2430,7 +2430,7 @@ See `set-language-info-alist' for use in programs." ("ind" . "Latin-1") ; MS-Windows Indonesian ("sme" . "UTF-8") ; MS-Windows Northern Sami (Norway) ("smf" . "UTF-8") ; MS-Windows Northern Sami (Sweden) - ("smg" . "ITF-8") ; MS-Windows Northern Sami (Finland) + ("smg" . "UTF-8") ; MS-Windows Northern Sami (Finland) ("kdi" "Kannada" utf-8) ; MS-Windows Kannada ("mar" "Devanagari" utf-8) ; MS-Windows Marathi ("khm" "Khmer" utf-8) ; MS-Windows Khmer @@ -2798,20 +2798,6 @@ See also `locale-charset-language-names', `locale-language-names', 'a4))))))) nil) -;;; i18n (internationalization) - -(defun ngettext (msgid msgid_plural n) - "Return the plural form of the translation of the string. -This function is similar to the `gettext' function as it finds the message -catalogs in the same way. But it takes two extra arguments. The MSGID -parameter must contain the singular form of the string to be converted. -It is also used as the key for the search in the catalog. -The MSGID_PLURAL parameter is the plural form. The parameter N is used -to determine the plural form. If no message catalog is found MSGID is -returned if N is equal to 1, otherwise MSGID_PLURAL." - (if (= n 1) msgid msgid_plural)) - - ;;; Character property (put 'char-code-property-table 'char-table-extra-slots 5) |
