[haiku-commits] Re: r40476 - haiku/trunk/src/apps/launchbox

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 13 Feb 2011 18:03:00 +0100

zharik@xxxxxx wrote:
> -                     BString name(B_TRANSLATE("Pad "));
> -                     name << i + 1;
> +                     BString name(B_TRANSLATE("Pad"));
> +                     name << " " << i + 1;

While I agree that it shouldn't be done like this (ie. fix the tool 
instead), I would also like to suggest to rewrite the above as (pseudo 
code, unfortunately it's more complex with BString):
        BString name(B_TRANSLATE("Pad %number%"));
        name.Replace("%number", i + 1);

Bye,
   Axel.


Other related posts: