Loading

Paste #pfmzadhgu

  1. The string codes
  2. CARGO_LONG CARGO_SHORT CARGO_TINY
  3. take two parameters:
  4. 1. Cargo type Id
  5. 2. Cargo amount
  6.  
  7. Some languages try to use plural {P} and referencing these string codes:
  8. {CARGO_LONG} {P "" s}
  9. {P 0 "" s} {CARGO_LONG}
  10.  
  11. However, this fails, since the amount is the second sub parameter. Correct would be:
  12. {CARGO_LONG} {P 0:1 "" s}
  13. {P 0:1 "" s} {CARGO_LONG}
  14.  
  15. Solutions to the problem:
  16. A) Eints detects the error. If we find a good error message, translators can fix it by adding ":1" everywhere.
  17. B) Change the order of parameters in OTTD. -> Breaks compatiblity with GS -> no option.
  18. C) Make strgen supply a default sub parameter offset for those string codes.

Comments