From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] latex-date-timestamp-format not adhering #+LANGUAGE Date: Wed, 06 Mar 2013 14:02:53 +0100 Message-ID: <87mwugznnm.fsf@gmail.com> References: <87lia22fd6.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDDzv-0000Fo-8J for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 08:03:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDDzu-0001Me-5V for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 08:03:07 -0500 Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]:41762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDDzt-0001MP-Vq for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 08:03:06 -0500 Received: by mail-we0-f174.google.com with SMTP id r6so7981712wey.19 for ; Wed, 06 Mar 2013 05:03:05 -0800 (PST) In-Reply-To: <87lia22fd6.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Tue, 05 Mar 2013 13:36:05 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-orgmode@gnu.org Hello, Andreas Leha writes: > I'd very much like to see org-latex-timestamp-format adhere to a > possibly present #+LANGUAGE setting. There is no such variable as `org-latex-timestamp-format'. > If I set org-latex-timestamp-format to "%A, %Y-%m-%d" the following org > file produces > "Donnerstag, 2013-03-07" on my system, where I'd prefer > "Thursday, 2013-03-07". > > #+begin_src org > #+TITLE: Some Document > #+DATE: <2013-03-07 Do> > #+LANGUAGE: en > > > * Some test document > With some content > #+end_src > > Would such a change be possible? It is difficult. "%A" depends on a locale built within glibc. Assuming we know the locale associated to the language string, it may or may not be available in glibc. Also, `format-time-string' is a primitive, so even if local is available, you cannot change it locally easily. A proper implementation would, IMO, not rely directly on `format-time-string'. There could be a `org-format-time-string' accepting the same arguments as `format-time-string' but replacing locale related placeholders beforehand, according to a dictionary. Regards, -- Nicolas Goaziou