unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
To: Jean-Christophe Helary <fusion@mx6.tiki.ne.jp>
Cc: emacs-devel@gnu.org
Subject: Re: A system for localizing documentation strings
Date: Thu, 26 Jul 2007 15:50:00 +0100	[thread overview]
Message-ID: <46A8B498.1070502@gnu.org> (raw)
In-Reply-To: <F5AF7EB3-20BE-455D-99AA-0A039A238A30@mx6.tiki.ne.jp>

Jean-Christophe Helary wrote:
> I don't think it is a good idea because it would put a bigger load on
> the coder who would then have to write keys in the code and then
> values in a separate file. That would impair understanding of the code
> too. Besides for the fact that it would be a major departure from the
> current code workflow.

It need not be a major departure. The "keys" can be the function and
variable names (where both exist with the same name, we'd need some way
to differentiate). The "default" docstring (English) could remain with
the function or variable definition, so nothing need change in the lisp
files.

Keeping the translations in separate files makes it easier to update
them separately from the Emacs release cycle. Eventually we will reach a
point where the translations don't change separately from Emacs, but for
at least a few Emacs releases there will be new translations and
corrections to translations appearing much quicker than the Emacs
release cycle, and it would be useful if users could take advantage of them.

If the translated doc string format is a lisp form, then we have a lot
of flexibility in how we arrange the files.  Small lisp extensions
distributed separately from Emacs would have the option to include their
translations in the same file as the code, and larger packages would
have the option of having a file per language.

Eg:

(define-docstring-translation '(:function example-function) 'ja "語例")



The other requirement would be for a lisp file to declare where its
translations are, and for the user to be able to add more later:

(provide-translations 'example-feature '(ja es fr) "example-translations")

where example-feature corresponds to the provide statement in the file,
and translations for Japanese, Spanish and French are in
"example-translations.el"

  reply	other threads:[~2007-07-26 14:50 UTC|newest]

Thread overview: 118+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <795F38F4-7253-47DC-97DD-53BED4F0AB97@mx6.tiki.ne.jp>
2007-07-26  3:29 ` Fwd: A system for localizing documentation strings Jean-Christophe Helary
2007-07-26 11:54   ` Kenichi Handa
2007-07-26 13:28     ` Jean-Christophe Helary
2007-07-27  0:30       ` Kenichi Handa
2007-07-27  1:18         ` Jean-Christophe Helary
2007-07-26 12:13   ` Fwd: " Eli Zaretskii
2007-07-26 13:51     ` Jean-Christophe Helary
2007-07-26 14:50       ` Jason Rumney [this message]
2007-07-26 15:27         ` Jean-Christophe Helary
2007-07-26 15:41           ` Jason Rumney
2007-07-26 15:49             ` Jean-Christophe Helary
2007-07-26 16:15               ` Jason Rumney
2007-07-26 16:25                 ` Jean-Christophe Helary
2007-07-26 16:28                 ` Jean-Christophe Helary
2007-07-26 16:44                   ` Jason Rumney
2007-07-27  5:04                     ` Richard Stallman
2007-07-27  7:22                       ` Jean-Christophe Helary
2007-07-27  7:49                         ` David Kastrup
2007-07-27  7:52                           ` David Kastrup
2007-07-27 11:16                         ` Eli Zaretskii
2007-07-27 12:07                           ` Kenichi Handa
2007-07-27 12:26                             ` David Kastrup
2007-07-27 12:53                               ` Kenichi Handa
2007-07-27 14:43                             ` Jean-Christophe Helary
2007-07-28 14:11                               ` Richard Stallman
2007-07-27 16:03                             ` Henrik Enberg
2007-07-27 14:09                           ` Werner LEMBERG
2007-07-27 18:47                             ` Eli Zaretskii
2007-07-27 11:37                         ` David Kastrup
2007-07-28 14:11                         ` Richard Stallman
2007-07-26 15:10       ` Eli Zaretskii
2007-07-26 15:42         ` Jean-Christophe Helary
2007-07-26 16:03           ` Jason Rumney
2007-07-26 16:23             ` Jean-Christophe Helary
2007-07-27  5:04               ` Richard Stallman
2007-07-26 19:34           ` Eli Zaretskii
2007-07-26 19:54             ` David Kastrup
2007-07-26 15:36     ` Fwd: " Andreas Schwab
2007-07-26 19:09       ` Eli Zaretskii
     [not found]         ` <871weuk228.fsf@uwakimon.sk.tsukuba.ac.jp>
2007-07-27  9:53           ` Andreas Schwab
2007-07-27 11:14             ` Eli Zaretskii
2007-07-27 11:43               ` Andreas Schwab
2007-07-27 11:59                 ` Eli Zaretskii
2007-07-27 12:17                   ` Andreas Schwab
2007-07-27 18:36                     ` Eli Zaretskii
2007-07-27 14:56                   ` Jan Djärv
2007-07-27 15:18                     ` Jason Rumney
2007-07-27 15:28                       ` Jan Djärv
2007-07-27 15:59                         ` Jean-Christophe Helary
2007-07-27 16:09                         ` Fwd: " Jason Rumney
2007-07-27 17:53                           ` Jan Djärv
2007-07-28  3:13                           ` Jean-Christophe Helary
2007-07-27 16:14                         ` Fwd: " David Kastrup
2007-07-27 16:55                           ` Jason Rumney
2007-07-27 12:27             ` Kenichi Handa
2007-07-27 15:00             ` Jan Djärv
2007-07-27 11:12           ` Eli Zaretskii
2007-07-27 11:45             ` Andreas Schwab
2007-07-27 12:18             ` Stephen J. Turnbull
2007-07-27 12:08               ` Eli Zaretskii
2007-07-27 16:24         ` Richard Stallman
2007-07-27  2:16   ` Summary (Re: A system for localizing documentation strings) Jean-Christophe Helary
2007-07-27  5:44     ` Stefan Monnier
2007-07-27  7:24       ` David Reitter
2007-07-27  7:45         ` Stefan Monnier
2007-07-27  8:03     ` Jan Djärv
2007-07-27  8:18       ` Jason Rumney
2007-07-27  9:04         ` Jan Djärv
2007-07-27  9:22           ` David Kastrup
2007-07-27  9:39             ` Jan Djärv
2007-07-27  9:46               ` David Kastrup
2007-07-27 11:49               ` Eli Zaretskii
2007-07-27 15:11                 ` Jan Djärv
2007-07-27 11:20           ` Eli Zaretskii
2007-07-27 14:52             ` Jan Djärv
2007-07-27 12:13           ` Jean-Christophe Helary
2007-07-27 15:16             ` Jan Djärv
2007-07-27 15:55               ` Jean-Christophe Helary
2007-07-27  8:21       ` David Kastrup
2007-07-27  9:08         ` Jan Djärv
2007-07-27  9:33           ` David Kastrup
2007-07-27  9:38             ` Jan Djärv
2007-07-27 11:05           ` Jean-Christophe Helary
2007-07-27 11:19             ` Lennart Borgman (gmail)
2007-07-27 11:23           ` Eli Zaretskii
2007-07-28 14:11         ` Richard Stallman
2007-07-27 11:08       ` Andreas Schwab
2007-07-27 11:15       ` Jean-Christophe Helary
2007-07-27 11:54         ` Eli Zaretskii
2007-07-27 11:59         ` Jason Rumney
2007-07-27 13:13           ` Jean-Christophe Helary
2007-07-27 13:42             ` David Kastrup
2007-07-27 14:12               ` Jean-Christophe Helary
2007-07-28 14:11               ` Richard Stallman
2007-07-28 22:49                 ` David Kastrup
2007-07-27 15:07         ` Jan Djärv
2007-07-27 15:41           ` Jean-Christophe Helary
2007-07-27 16:11             ` Andreas Schwab
2007-07-28  2:57               ` Jean-Christophe Helary
2007-07-28 14:11       ` Richard Stallman
2007-07-27 16:24     ` Richard Stallman
2007-07-28  2:53       ` Jean-Christophe Helary
2007-07-29  2:22         ` Richard Stallman
2007-07-29  4:46           ` Jean-Christophe Helary
2007-07-29 16:55             ` M Jared Finder
2007-07-30  0:57               ` Jean-Christophe Helary
2007-07-30 16:43             ` Richard Stallman
2007-07-30 17:04               ` Jean-Christophe Helary
2007-07-31  3:38                 ` Richard Stallman
2007-07-31  4:16                   ` Jean-Christophe Helary
2007-07-31  6:05                     ` Jan Djärv
2007-08-02  0:32                       ` Jean-Christophe Helary
2007-08-02 23:43                         ` Richard Stallman
2007-08-01 18:11                     ` Davis Herring
2007-08-02  0:25                       ` Jean-Christophe Helary
2007-08-02  5:47                         ` Miles Bader
2007-07-27  5:04   ` Fwd: A system for localizing documentation strings Richard Stallman
2007-07-27  8:29     ` Jean-Christophe Helary

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46A8B498.1070502@gnu.org \
    --to=jasonr@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=fusion@mx6.tiki.ne.jp \
    /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.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).