all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* calendar m17n
@ 2006-09-14  7:31 Andreas Roehler
  2006-09-14  8:43 ` Reiner Steib
  2006-09-14  8:52 ` Andreas Schwab
  0 siblings, 2 replies; 11+ messages in thread
From: Andreas Roehler @ 2006-09-14  7:31 UTC (permalink / raw)


Hi,

I'm looking for a way to localize names in calendar.el.

Below an example with German names.

As there will exist several lists already with names in
different languages, seems no need to collect it from
the scratch.

It's just to find and pick the right one. Could someone
give me a hint, where to collect it respecting GPl
questions?

Thanks!

__
Andreas Roehler

(defun calendar-local-names ()
  "Read months and days in your mothers tongue"
  (interactive)
  (let ((lang (getenv "LANG")))
    (cond ((string-match "\\(de\\)\\|\\(DE\\)" lang)
       (message "%s" (format "%s" (match-string 0 lang)))
       (setq calendar-day-name-array
         ["Sonntag" "Montag" "Dienstag" "Mittwoch" "Donnerstag" 
"Freitag" "Samstag"])
       (setq calendar-month-name-array
         ["Januar" "Februar" "März" "April" "Mai" "Juni" "Juli" "August"
          "September" "Oktober" "November" "Dezember"])))))

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-09-24 12:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-14  7:31 calendar m17n Andreas Roehler
2006-09-14  8:43 ` Reiner Steib
2006-09-14  8:52 ` Andreas Schwab
2006-09-14 15:39   ` Kevin Rodgers
2006-09-14 18:56   ` Andreas Roehler
2006-09-15 17:38     ` Glenn Morris
2006-09-15 17:48     ` Kevin Rodgers
2006-09-16  7:21       ` Andreas Roehler
2006-09-16 11:08       ` Eli Zaretskii
2006-09-16 19:05         ` Richard Stallman
2006-09-24 12:53         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.