[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs i18n
From: |
Eli Zaretskii |
Subject: |
Re: Emacs i18n |
Date: |
Wed, 06 Mar 2019 22:19:11 +0200 |
> Cc: address@hidden, address@hidden
> From: Paul Eggert <address@hidden>
> Date: Wed, 6 Mar 2019 11:47:23 -0800
>
> On 3/6/19 10:15 AM, Eli Zaretskii wrote:
>
> > how do we deal with strings that are computed by concatenation or
> > formatting?
> >
> The same way that other GNU packages deal with them: we redo calls, to
> make the strings easier to translate. For example, instead of this code
> (adapted from todo-mode.el):
>
> (message (concat "The highlighted item" (if (= count 1) " is " "s
> precedes ")
> "the timestamp %s.")
> timestamp)
>
> we do something like this:
>
> (nmessage count
> "The highlighted item is not up to date."
> "The highlighted items are not up to date."
> timestamp)
That's the easy case. This one is a bit tougher:
(message "The program says: " (shell-command-to-string "foo"))
> It's inevitable that we'd need to redo Lisp code this way, as
> translators cannot be expected to be programming experts that understand
> arbitrary Lisp code involving 'concat' and whatnot. This is what other
> GNU packages have done, and Emacs can do something similar.
Except that Emacs is so much larger that doing this "like other
packages" might make the job infeasible.
Which is one reason why I think we should start from doc strings: they
are both easier and much more important.
- Re: Emacs i18n, (continued)
- Re: Emacs i18n (was: bug#34520: delete-matching-lines should report how many lines it deleted), Richard Stallman, 2019/03/03
- Re: Emacs i18n (was: bug#34520: delete-matching-lines should report how many lines it deleted), Eli Zaretskii, 2019/03/04
- Re: Emacs i18n (was: bug#34520: delete-matching-lines should report how many lines it deleted), Paul Eggert, 2019/03/04
- Re: Emacs i18n (was: bug#34520: delete-matching-lines should report how many lines it deleted), Eli Zaretskii, 2019/03/04
- Re: Emacs i18n (was: bug#34520: delete-matching-lines should report how many lines it deleted), Paul Eggert, 2019/03/04
- Re: Emacs i18n, Juri Linkov, 2019/03/05
- Re: Emacs i18n, Richard Stallman, 2019/03/05
- Re: Emacs i18n, Eli Zaretskii, 2019/03/06
- Re: Emacs i18n, Paul Eggert, 2019/03/06
- Re: Emacs i18n,
Eli Zaretskii <=
- Re: Emacs i18n, Paul Eggert, 2019/03/06
- Re: Emacs i18n, Eli Zaretskii, 2019/03/06
- Re: Emacs i18n, Richard Stallman, 2019/03/07
- Re: Emacs i18n, Eli Zaretskii, 2019/03/08
- Re: Emacs i18n, Richard Stallman, 2019/03/07
- Re: Emacs i18n, Elias Mårtenson, 2019/03/07
- Re: Emacs i18n, Eli Zaretskii, 2019/03/08
- Re: Emacs i18n, Richard Stallman, 2019/03/08
- Re: Emacs i18n, Paul Eggert, 2019/03/09
- Re: Emacs i18n, Eli Zaretskii, 2019/03/09