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

Re: [PATCH] proper indentation in merge conflict menu

From: Jens Seidel <jensseidel_at_users.sourceforge.net>
Date: Fri, 6 Jun 2008 15:56:57 +0200

On Fri, Jun 06, 2008 at 03:06:42PM +0200, Stefan Sperling wrote:
> Note that probably not all systems we support have wide chars, so on

I think one such system is cygwin.

> What about maintaining multiple full text menus? The code could use

I do not like text duplication. I have to translate it consistently.

Also formating strings should be factored out, e.g. via a format string
such as "%s (%c) %s" where the first %s is some kind of space, %c could
be a shortcut and %s the menu text. So one would need to translate this
format specification only once and with a minor single change all lines
(and maybe even different menus) can be adjusted at once.

> > > Do you know of any other places in Subversion that have this problem?
> >
> > There are really many strings which need to be tested live (not just by
> > proofreading the PO file).

This mainly affects the help texts.

> This is very unfortunate. Doesn't gettext provide some way to deal
> with these kinds of problems? How do other projects handle this?

No, it doesn't. Using some kind of format string could help. Some
libraries such as Qt use layout classes such as QVBox and QHBox
and align all childrens of these vertically or horizontally,
respectively. Complex layout can now be created by nesting these:
QVBox(QHBox(%s), QHBox(QVBox(%s))).


To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-06-06 16:00:18 CEST

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.