[Aptitude-devel] Gettext and split phrases (Re: Remove dead code, document one method and ...)
mandyke at gmail.com
Sun Feb 2 03:17:35 UTC 2014
On 1 February 2014 22:55, Manuel A. Fernandez Montecelo
<manuel.montezelo at gmail.com> wrote:
> 2014-01-31 Daniel Hartwig <mandyke at gmail.com>:
>> Hi Manuel
>> [commit 6ae2d97 on master]
>>> - const std::string short_description =
>>> - (boost::format("Changelog of %s") % ver.ParentPkg().Name()).str();
>>> + const std::string short_description = _("Changelog of") + std::string(" ") + info->get_display_name();
>> Nice catch, that this was not being translated before.
>> Note that for proper translation, the string passed to gettext must
>> contain as much of a complete sentence or phrase as possible. In this
>> case, it should be _("Changelog of %s"), to allow for changes to word
>> order or punctuation etc. as may be appropriate for each language.
> Thanks for the pointers, I think that it's OK now.
More information about the Aptitude-devel