From kde-i18n-doc Fri Aug 23 17:02:34 2002 From: Jacob Sparre Andersen Date: Fri, 23 Aug 2002 17:02:34 +0000 To: kde-i18n-doc Subject: Re: Plural form X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=103012218831689 Malcolm Hunter wrote: > I have "fixed" other instances of this by splitting the strings, ie.: > > i18n("1 item\nAnother line", "%n items\nAnother line", items) into: > i18n("1 item\n, "%n items\n", items) + i18n("Another line") ^^ Isn't that line break misplaced? I suspect that you wanted to write: i18n("1 item\n, "%n items", items) + i18n("\nAnother line") There are two solutions: 1) To use something else than "\n" to mark line breaks. It could for example be "
". 2) Drop the forced line breaks from the strings. In the long run, I think the real solution is to pass an array of strings (or maybe simply two strings) to the plural form version of "i18n()". Jacob -- "It is very easy to get ridiculously confused about the tenses of time travel, but most things can be resolved by a sufficiently large ego."