[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] i18n: patch to correct layout in explain_usage
From: |
Matthew Gregan |
Subject: |
Re: [Monotone-devel] i18n: patch to correct layout in explain_usage |
Date: |
Wed, 12 Oct 2005 11:25:11 +1300 |
User-agent: |
Mutt/1.5.10i |
At 2005-10-11T19:12:58+0200, Thomas Moschny wrote:
> The method explain_usage() in commands.cc prints translated strings for
> the command groups, but it uses the untranslated message-ids for computing
> the layout, so the result may look ugly in a non-en_US locale. For
> example:
> The attached patch against d96ca5cc69312da41e303fb8ec1f096ac6970aee fixes
> this. The new method message_width() uses wcswidth() to determine the
> number of columns that are needed to print the translation of a message-id
> within the current locale.
Thanks, a slightly cleaned up version of this has been committed in
1fead0fcebb8d252b733110cd7a1b1e4c8adbd77.
Cheers,
-mjg
--
Matthew Gregan |/
/| address@hidden