From: Diego Zamboni <diego@zzamboni.org>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Org-mode <emacs-orgmode@gnu.org>, ST <smntov@gmail.com>
Subject: Re: Localized org-mode
Date: Wed, 9 May 2018 13:36:39 +0200 [thread overview]
Message-ID: <CAGY83EdBWp7zKcDeSFrO-gm6b+4xWg3Y+rD5YaSkiBKW5bA7TQ@mail.gmail.com> (raw)
In-Reply-To: <877eodutq2.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 1835 bytes --]
I really don't see the point of trying to localize org keywords. To me,
they are like the keywords in any programming language - part of the
language. Would you consider translating C or LISP keywords?
In addition to the trouble of supporting something like this within Emacs,
think of the growing ecosystem of tools which support org mode - they would
all need to be aware of these localizations. It would be a nightmare to
maintain.
--Diego
On Wed, May 9, 2018 at 10:19 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:
> Hello,
>
> ST <smntov@gmail.com> writes:
>
> > So how do you solve this problem now for English ":PROPERTIES:"?
>
> Simple. Org does not replace anything arbitrarily. This is less
> error-prone.
>
> > Anyway if somebody runs into it he could have at least to options:
> >
> > 1. write local .emacs.d/.org-de-vocabulary which will override the
> > default one (or parts of it) with a synonym, like:
> > PROPERTIES -> ATTRIBUTEN
> > or
> > PROPERTIES -> ORG_EIGENSCHAFTEN
> > and then you can replace blindly before parsing.
>
> Again, I'm not particularly fond of having conditional syntax like this.
>
> > I don't know lisp :(
>
> You may want to look at `org-display-custom-time'.
>
> Basically, you search for the regexp "^[ \t]*:\\(PROPERTIES\\):", and
> use `put-text-property' to change the text between (match-beginning 1)
> and (match-end 1), e.g.,
>
> (defun my-properties-translate ()
> (org-with-point-at 1
> (while (re-search-forward "^[ \t]*:\\(PROPERTIES\\):" nil t)
> (put-text-property (match-beginning 1) (match-end 1) 'display
> "ATTRIBUTEN"))))
>
> You need to add this function to, e.g. `org-mode-hook'. Of course this
> is really basic and can be improved.
>
> Regards,
>
> --
> Nicolas Goaziou 0x80A93738
>
>
[-- Attachment #2: Type: text/html, Size: 2622 bytes --]
next prev parent reply other threads:[~2018-05-09 11:36 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-08 13:02 Localized org-mode ST
2018-05-08 14:10 ` Nicolas Goaziou
2018-05-08 17:37 ` ST
2018-05-08 18:21 ` Nicolas Goaziou
2018-05-09 7:45 ` ST
2018-05-09 8:19 ` Nicolas Goaziou
2018-05-09 11:36 ` Diego Zamboni [this message]
2018-05-09 12:07 ` Kaushal Modi
2018-05-09 12:43 ` Jean-Christophe Helary
2018-05-09 13:25 ` Nicolas Goaziou
2018-05-09 13:48 ` Jean-Christophe Helary
2018-05-09 15:41 ` Diego Zamboni
2018-05-09 23:36 ` Jean-Christophe Helary
2018-05-09 20:28 ` Kaushal Modi
2018-05-11 22:23 ` Göktuğ Kayaalp
2018-05-12 0:29 ` Jean-Christophe Helary
2018-05-12 11:07 ` Göktuğ Kayaalp
2018-05-12 11:58 ` Jean-Christophe Helary
2018-05-12 19:24 ` ST
2018-05-12 22:48 ` Göktuğ Kayaalp
2018-05-12 23:48 ` Jean-Christophe Helary
2018-05-09 12:34 ` ST
2018-05-21 14:44 ` Rasmus
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=CAGY83EdBWp7zKcDeSFrO-gm6b+4xWg3Y+rD5YaSkiBKW5bA7TQ@mail.gmail.com \
--to=diego@zzamboni.org \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
--cc=smntov@gmail.com \
/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).