[Freeciv-Dev] [bug #17928] Allow pluralised localisation for strings like "Sell %s for %d gold?"

2011-03-31 Thread Jacob Nevins

Update of bug #17928 (project freeciv):

  Status:  Ready For Test => Fixed  
 Open/Closed:Open => Closed 
 Release: => 2.3.0-beta4


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17928] Allow pluralised localisation for strings like "Sell %s for %d gold?"

2011-03-21 Thread Jacob Nevins

Update of bug #17928 (project freeciv):

  Status: In Progress => Ready For Test 

___

Follow-up Comment #1:

This won't go in 2.3.0-beta4 (too late for string freeze), but I'll try to
get it in 2.3.0, assuming no complaints.

(file #12689, file #12690)
___

Additional Item Attachment:

File name: trunk-plural-gold.diff Size:56 KB
File name: S2_3-plural-gold.diff  Size:56 KB


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17928] Allow pluralised localisation for strings like "Sell %s for %d gold?"

2011-03-21 Thread Jacob Nevins

URL:
  

 Summary: Allow pluralised localisation for strings like
"Sell %s for %d gold?"
 Project: Freeciv
Submitted by: jtn
Submitted on: Mon Mar 21 22:25:26 2011
Category: general
Severity: 3 - Normal
Priority: 5 - Normal
  Status: In Progress
 Assigned to: jtn
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: Any
 Planned Release: 2.3.0,2.4.0

___

Details:

It's come up on -i18n that some languages (particularly Slovenian
) could do with
pluralisation marking on strings like "%d gold" (we treat "gold", slightly
unusually, as a continuous noun in English, but this isn't true of other
localisations).

A few strings mentioning gold already have PL_() marking (RT#13901
, r10971
, with Russian
being cited), but the majority do not.

Notes on forthcoming patch:
* Several strings mention two numeric quantities of gold, so I've split these
into two strings which are pasted together, giving translators control over
how the pasting happens. Where possible the split strings are common
(particularly "Treasury contains %d gold.", which previously appeared in many
strings), reducing duplication.
* In a couple of strings, two dimensions of plurality appear where one is not
gold-related (e.g., "%d %s upgraded to %s for %d gold."). In this case I've
generally not split the string; partly because they generally don't split into
whole sentences so it's not clear where it's helpful to split them, partly
because the other quantity is generally of things like units, pluralisation of
which is already problematic (bug #16903) so splitting the string is not worth
the pain.
* Incidental bug fix: in server/diplhand.c, the report "You get %d gold." now
reflects how much gold you actually got, not how much the other side gave
(they differ for non-zero diplcost).
* Changed various "client.conn.playing" to "client_player()".
* I'm afraid I completely punted on the following string in the SDL client:

"We have %d of %s\n"
"(total value is : %d)\n"
"We can sell %d of them for %d gold."





___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev