Emacs: How to change orgmode calender language? - emacs

When I insert timestamp by C-c ., I do not get a day in the English language.
<2019-03-19 tis>
Calendar entries are in English e.g Su Mo Tu We... but when inserted as timestamp they show up in a different language.
Is it possible to change the calendar language in orgmode?

The display depends on the LOCALE settings of your system. If you cannot change that try:
this emacs stack exchange answer
That also links to:
emacs wiki calander-localization
Here is a German language example from the above link:
(setq calendar-week-start-day 1
calendar-day-name-array ["Sonntag" "Montag" "Dienstag" "Mittwoch"
"Donnerstag" "Freitag" "Samstag"]
calendar-month-name-array ["Januar" "Februar" "März" "April" "Mai"
"Juni" "Juli" "August" "September"
"Oktober" "November" "Dezember"])

Related

How to do Ctrl+Shift+[ on a Swiss French / German keyboard?

In vscode or vim it is possible to fold/unfold blocks with Ctrl+Shift+[. However in the swiss french keyboard the [ symbol is done with AltGr+è, so Ctrl+Shift+AltGr+è doesn't work.
Any hint?
You can use ctrl+shift+' and ctrl+shift+^, i.e., the two keys left of backspace.
(Hat tip to http://www.kbdedit.com/, whose author told me.)

Date formatting in Google Sheets is not working according to the instructions

Yes, I know; this question has been asked thousands of times in hundreds of different places, but Google Sheets stubbornly refuses to let me convert a date such as "9/18/2004" to "2004-9-18". I select one or more cells whose date format is "dd/mm/yyyy", click on FORMAT, then NUMBER, then MORE FORMATS, then I select "More date and time formats", and then select the example "1930-08-05", and then nothing happens. Nothing changes. I need help with this. Here is a link to the problem column:
https://docs.google.com/spreadsheets/d/1gYdPcNO-Jq1SFUpdb88o7KKVqG5_ia9NpD_3T98CkEw/edit?usp=sharing
Thanks.
From Google:
Change locale and time zone
When you change the locale and time zone of a spreadsheet, it changes the spreadsheet’s default currency, date, and number formatting.
On your computer, open a spreadsheet in Google Sheets.
Click File and then Spreadsheet settings.
Under "General," click the "Locale" and "Time zone" menus to change your settings.
Click Save settings.
Changing the locale doesn’t change your language settings in Google Sheets. You can set the language in Google Account settings.
Worked for me :)
9/18/2004 is not a date. its text string. if you change it to 18/9/2004 then you have a valid date and you can apply your desired formatting
to quickly reformat it you may use:
=ARRAYFORMULA(TEXT(IF(ISNUMBER(A2:A*1), A2:A, DATE(
REGEXEXTRACT(A2:A, ".{4}$"),
REGEXEXTRACT(A2:A, "^\d+"),
REGEXEXTRACT(A2:A, "/(\d+)/"))), "yyyy-mm-dd"))
So this just worked for me:
Change settings as advised - but THEN:
Insert a new column
Copy all dates from the original column into the new on with "paste special" => "values only".
Then select all dates and format again as date. From there on I could sort according to date etc.

how to lock input language in MS Word

When i switch language between Thai and English i normal use a shortcut key `.
But the in word i have a document which need to all need to be written in Thai but the problem is when i click on different part of the document that has a number or a blank space it switches to English. So how do i make input language to lock to a specific language?
I also don't want to be going in to control panel to add and delete the language setting or keep changing language in region and setting.

Insert date or timestamp in Eclipse Editor

I use different editors in eclipse and I search for a short cut to insert a date or configurable timestamp like the F5-Key in notepad.
Often I wrote text, comments and other textual stuff, where I need the actual date.
If you read my question carefully, you will realize, that templates doesn't solve my problem, because in pure text files a content assist like the Java Content Assist isn't available.
I think there is no such short cut key is given in eclipse. You can try this plugin
Open any editor and press Shift + Ctrl + D to insert current date and time. You can change the format of date and time in Windows > Preferences > Chandrayya Plugins

Org-mode: how to convert date format?

I'm using Emacs org-mode's agenda feature.
When I put a timestamp on an item in my gtd.org file, with C-c . , it will show up in my agenda for the week. The date is in this format: <2011-12-25 Sun>
If I use M-x holidays to get a list of holidays, the dates are in this format:
Sunday, December 25, 2011: Christmas
How can I add holidays to my gtd.org file, in a format that shows up in the agenda?
I've looked through the Emacs manual and the org-mode manual, for either a way to change the date formats in 'holidays', or a way to convert a date into org-mode's format.
You can add them to the calendar by adding the following SEXP to your org file:
%%(org-calendar-holidays)
See: Calendar/Diary Integration
The specifc entry in your org file could be as follows (This works just like this):
* Holidays
:PROPERTIES:
:CATEGORY: Holiday
:END:
%%(org-calendar-holidays)
If you want a different category or different name for the headline, you can do so. But as a generic entry it will provide the information you want. (It matches what my org-file has)