[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Proposed] Split very long messages by paragraph for easy translate

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: Sat, 13 Nov 2010 12:19:33 -0500

On Sat, 2010-11-13 at 10:31 -0500, Daniel Shahaf wrote:
> Sounds reasonable.
> What changes to the source code would be required?
> Do we just change
> N_("three\n\nparagraphs\n\nhere\n")
> to
> N_("three\n") N_("paragraphs\n") N_("here\n")

No, that would just result in evaluating gettext on the combined string,
same as before. I can see two options for help strings in particular:

1. Rev svn_opt_subcommand_desc2_t to include an array of help strings
which are translated and displayed in sequence.

2. Change print_command_info2 to look at the help string and break it up
at certain boundaries (such as blank lines or numbered list entries)
before translating it.

(Mercurial is written in Python, so it has different constraints.)
Received on 2010-11-13 18:20:18 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.