emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Sugesstion for a more fexible org-bbdb-anniversary-description
@ 2020-03-30 18:08 Dieter Faulbaum
  2020-05-23  9:03 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Dieter Faulbaum @ 2020-03-30 18:08 UTC (permalink / raw)
  To: emacs-orgmoe@gnu.org


I think it would be nice if this function would have some (customizable)
variables.

Here (in Germany) e.g. I like this:

(defun org-bbdb-anniversary-description (agenda-date anniv-date)
  (let ((delta (- (calendar-absolute-from-gregorian anniv-date)
                  (calendar-absolute-from-gregorian agenda-date))))
    (cond
     ((= delta 0) "\\&")
     ((= delta 1) " (morgen)\\&")
     ((< delta org-bbdb-general-anniversary-description-after)
      (format " (in %d Tagen)\\&" delta))
     ((pcase-let ((`(,month ,day ,year) anniv-date))
	(format " (am %d.%d.)\\&" day month)))
     )
    )
  )

And I think others would have other preferences.

Just an idea.
I'm sorry but I can't program lisp good enough to implement my idea
(without the shown hack).

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Sugesstion for a more fexible org-bbdb-anniversary-description
  2020-03-30 18:08 Sugesstion for a more fexible org-bbdb-anniversary-description Dieter Faulbaum
@ 2020-05-23  9:03 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2020-05-23  9:03 UTC (permalink / raw)
  To: Dieter Faulbaum; +Cc: emacs-orgmoe@gnu.org

Hi Dieter,

Dieter Faulbaum <mail@faulbaum.in-berlin.de> writes:

> I think it would be nice if this function would have some (customizable)
> variables.

thanks for the suggestion.

Org's interface is in english.  Org supports partial localization for
the exporter (see `org-export-dictionary') and for clock tables.  The
reason we support i18n for the clock tables is that they are often
meant to be part of documents shared with others (e.g. colleagues.)

We can safely assume bbdb anniversaries are for the user only, so Org
will not provide i18n here.

We could imagine an option to let the user refine the UI here but I
don't think that's a good idea because those strings are meant to be
further used as formatting strings, so this would require too much
explanations to the users.

Best,

-- 
 Bastien


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-23  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-30 18:08 Sugesstion for a more fexible org-bbdb-anniversary-description Dieter Faulbaum
2020-05-23  9:03 ` Bastien

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).