Re: [O] org-time-stamp, day format

2017-02-12 Thread Uwe Brauer

> On Saturday, 11 Feb 2017 at 22:38, Uwe Brauer wrote:

> It does not strictly speaking correspond to English but to the "default"
> language for each individual application which may, of course, be
> English in many if not most cases.

> Good examples and further explanations can be found in

>   
http://unix.stackexchange.com/questions/87745/what-does-lc-all-c-do#87748
thanks,

Meanwhile I found out that I can switch manually in emacs (and not
touching the shell variables) via,


(set-locale-environment "es_ES.UTF-8")
(set-locale-environment "de_DE.UTF-8") 
(setq system-time-locale "C") 




Re: [O] org-time-stamp, day format

2017-02-12 Thread Eric S Fraga
On Saturday, 11 Feb 2017 at 22:38, Uwe Brauer wrote:
>> Nick Dokos  writes:
>
>> And if you want to fix this in Emacs only:
>
>>   ;; System locale to use for formatting time values.
>>   (setq system-time-locale "C") ; Make sure that the weekdays in 
> the
>> ; time stamps of your Org mode 
> files and
>> ; in the agenda appear in 
> English.
>
> Aha, thanks that looks helpful, however the documentation for that
> variable is nonexistent. How do I know its options and that "C"
> corresponds to English?

It does not strictly speaking correspond to English but to the "default"
language for each individual application which may, of course, be
English in many if not most cases.

Good examples and further explanations can be found in

  http://unix.stackexchange.com/questions/87745/what-does-lc-all-c-do#87748

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8


signature.asc
Description: PGP signature


Re: [O] org-time-stamp, day format

2017-02-11 Thread Uwe Brauer

   > Nick Dokos  writes:

   > And if you want to fix this in Emacs only:

   >   ;; System locale to use for formatting time values.
   >   (setq system-time-locale "C") ; Make sure that the weekdays in 
the
   > ; time stamps of your Org mode 
files and
   > ; in the agenda appear in English.

Aha, thanks that looks helpful, however the documentation for that
variable is nonexistent. How do I know its options and that "C"
corresponds to English?





Re: [O] org-time-stamp, day format

2017-02-09 Thread Sebastien Vauban
Nick Dokos  writes:
> Eric S Fraga  writes:
>> On Monday,  6 Feb 2017 at 22:33, Uwe Brauer wrote:
>>
>> [...]
>>
>>> No idea that is was set up like this do you know by change
>>> how and where can I change that?
>>
>> No idea really but I suggest you look at update-locale and locale
>> commands.  Have a look at /etc/default/locale which should contain the
>> actual defaults created by update-locale.
>>
>> I only have
>>
>> #  File generated by update-locale
>> LANG="en_GB.UTF-8"
>> LANGUAGE="en_GB:en"
>>
>> in my /etc/default/locale file and my environment has no LC_ variables
>> set, interestingly.
>
> If LANG is set, that's enough: all the LC_* default to whatever LANG says,
> but you can override them if you set them explicitly.

And if you want to fix this in Emacs only:

--8<---cut here---start->8---
  ;; System locale to use for formatting time values.
  (setq system-time-locale "C") ; Make sure that the weekdays in the
; time stamps of your Org mode files and
; in the agenda appear in English.
--8<---cut here---end--->8---

-- 
Best regards,
Sebastien Vauban




Re: [O] org-time-stamp, day format

2017-02-07 Thread Nick Dokos
Eric S Fraga  writes:

> On Monday,  6 Feb 2017 at 22:33, Uwe Brauer wrote:
>
> [...]
>
>> No idea that is was set up like this do you know by change
>> how and where can I change that?
>
> No idea really but I suggest you look at update-locale and locale
> commands.  Have a look at /etc/default/locale which should contain the
> actual defaults created by update-locale.
>
> I only have
>
> #  File generated by update-locale
> LANG="en_GB.UTF-8"
> LANGUAGE="en_GB:en"
>
> in my /etc/default/locale file and my environment has no LC_ variables
> set, interestingly.

If LANG is set, that's enough: all the LC_* default to whatever LANG says,
but you can override them if you set them explicitly.

-- 
Nick




Re: [O] org-time-stamp, day format

2017-02-07 Thread Eric S Fraga
On Monday,  6 Feb 2017 at 22:33, Uwe Brauer wrote:

[...]

> No idea that is was set up like this do you know by change
> how and where can I change that?

No idea really but I suggest you look at update-locale and locale
commands.  Have a look at /etc/default/locale which should contain the
actual defaults created by update-locale.

I only have

#  File generated by update-locale
LANG="en_GB.UTF-8"
LANGUAGE="en_GB:en"

in my /etc/default/locale file and my environment has no LC_ variables
set, interestingly.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-262-g5210de


signature.asc
Description: PGP signature


Re: [O] org-time-stamp, day format

2017-02-06 Thread Uwe Brauer

> On Monday,  6 Feb 2017 at 09:35, Uwe Brauer wrote:

> I think you'll find that these come from the standard time format, using
> %a for day of the week.  This will depend on your locale I guess?
Hm

I am on Ubuntu 14.04 with the tcsh shell
and locale gives me

locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=es_ES.UTF-8
LC_TIME=es_ES.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=es_ES.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=es_ES.UTF-8
LC_NAME=es_ES.UTF-8
LC_ADDRESS=es_ES.UTF-8
LC_TELEPHONE=es_ES.UTF-8
LC_MEASUREMENT=es_ES.UTF-8
LC_IDENTIFICATION=es_ES.UTF-8
LC_ALL=

So I presume it is
LC_TIME=es_ES.UTF-8

No idea that is was set up like this do you know by change
how and where can I change that?

Thanks

Uwe 




Re: [O] org-time-stamp, day format

2017-02-06 Thread Eric S Fraga
On Monday,  6 Feb 2017 at 09:35, Uwe Brauer wrote:
> Hello
>
> When I use org-time-stamp. I obtain:
>
>  <2016-11-15 mar>
>
> mar is short for martes, which is the Spanish word for Tuesday. How can
> I can change that format, to any language I desire? I thought it would
> be calendar-day-name-array but this seems not to be the case.

I think you'll find that these come from the standard time format, using
%a for day of the week.  This will depend on your locale I guess?

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8


signature.asc
Description: PGP signature


[O] org-time-stamp, day format

2017-02-06 Thread Uwe Brauer

Hello

When I use org-time-stamp. I obtain:

 <2016-11-15 mar>

mar is short for martes, which is the Spanish word for Tuesday. How can
I can change that format, to any language I desire? I thought it would
be calendar-day-name-array but this seems not to be the case.

Thanks

Uwe Brauer