From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.help Subject: Re: how to change language of format-date-string Date: Sat, 21 Mar 2015 08:21:07 +0000 Message-ID: References: <87d243xgoc.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426926086 15358 80.91.229.3 (21 Mar 2015 08:21:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2015 08:21:26 +0000 (UTC) To: Rasmus , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 21 09:21:26 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YZEeo-0003Xf-4n for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2015 09:21:22 +0100 Original-Received: from localhost ([::1]:46994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZEen-000348-2Z for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2015 04:21:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZEec-00033X-CB for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 04:21:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZEeb-0006jY-9D for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 04:21:10 -0400 Original-Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:35842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZEeb-0006jS-1v for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 04:21:09 -0400 Original-Received: by wgra20 with SMTP id a20so107090328wgr.3 for ; Sat, 21 Mar 2015 01:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=kiZ7ptszQb/sKiWMAakom8OCsXyrjxWT7Zn2NAJ+X0o=; b=Qq9JRRxk2TWw+5GKol7TAmzLq6LZ/6zHSaQgbKTsRkQxWLc2Lsr/EI1OZ6bFtfvBAj 1R2R649cNit73t4ehe8+fnZhOjwGT8xmkmc3u5J9xFOGQUeXkhYeYG1dQNFBlJSUlKhq fjXbQxU6qV1jjtCPq33RXmwO/GITQ0rOyqxdBAz0Z+OyT6NWay296CIp+ij4M1loWL/s RycMUdGuIv/qDqpOhyqEEAT8+4UMYWi2Y2rwX7uT5z6D4j+RrNJJwgR8kugQ0HzLQVD5 l0lkyr2miXbn5EffRKMCCEh5jItjZp5O/AQa87TvOWJxe5ICiturAaVmqA4AVzKeQjS1 SzIA== X-Received: by 10.180.187.200 with SMTP id fu8mr2811897wic.2.1426926068008; Sat, 21 Mar 2015 01:21:08 -0700 (PDT) In-Reply-To: <87d243xgoc.fsf@gmx.us> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22a X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103238 Archived-At: Rasmus schrieb am Sa., 21. M=C3=A4rz 2015 um 02:51 Uhr: > Hi, > > I would like to change the language that format-date-string assumes, as m= y > OS is not in English for leaning purposes. I tried to issue > (set-language-environment "English"), but this does not seem to have an > effect. > > You need set-locale-environment, which sets more locale properties: (set-locale-environment "en_US.UTF-8") If you only want to change the language for format-time-string, use the system-time-locale variable: (setq system-time-locale "da_DK.UTF-8")