From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: org-time-stamp in German or Spanish or....
Date: Sun, 06 Sep 2020 17:58:56 +0200 [thread overview]
Message-ID: <877dt6q4lb.fsf@mat.ucm.es> (raw)
In-Reply-To: m1h7sbkqwg.fsf@nobis-it.eu
[-- Attachment #1: Type: text/plain, Size: 1461 bytes --]
>>> "SN" == Stefan Nobis <stefan-ml@snobis.de> writes:
> Uwe Brauer <oub@mat.ucm.es> writes:
>> But is inserts the name of the days in English
> The format and language of the time-stamps is controlled by the
> function format-time-string (the docstring of this function shows all
> the available placeholders, including "%a" for the locale's
> abbreviated name of the day of week).
> So the name of the days should be controlled by the locale Emacs is
> running in (or the relevant language settings inside Emacs).
> For example I want to enforce English names, so I have in my init.el:
> #+begin_src elisp
> (set-language-environment "English")
> (set-locale-environment "en_US.UTF-8")
> #+end_src
Thanks, so far so good, *but*
(set-language-environment "German")
(set-locale-environment "de_DE.UTF-8")
Does *not* insert a german date it inserts
an English one:
<2020-09-06 Sun>
> You can check what locale Emacs is using by inspecting the variables
> `current-language-environment', and especially `system-time-locale'
> (for the case that LC_TIME is set differently than other locale
> settings).
current-language-environment is a variable defined in ‘mule-cmds.el’.
Its value is "German"
Original value was "English"
system-time-locale is a variable defined in ‘C source code’.
Its value is "de_DE.UTF-8"
But it still inserts <2020-09-06 Sun>
Is this a bug?
Regards
Uwe Brauer
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
next prev parent reply other threads:[~2020-09-06 15:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-06 9:15 org-time-stamp in German or Spanish or Uwe Brauer
2020-09-06 10:50 ` Heinz Tuechler
2020-09-06 12:01 ` Uwe Brauer
2020-09-06 12:31 ` Heinz Tuechler
2020-09-06 15:49 ` [Some progress] (was: org-time-stamp in German or Spanish or....) Uwe Brauer
2020-09-06 22:19 ` [Some progress] Heinz Tuechler
2020-09-07 6:49 ` Uwe Brauer
2020-09-06 12:53 ` org-time-stamp in German or Spanish or Stefan Nobis
2020-09-06 15:58 ` Uwe Brauer [this message]
2020-09-06 16:17 ` Stefan Nobis
2020-09-06 17:43 ` [solved it] (was: org-time-stamp in German or Spanish or....) Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dt6q4lb.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).