The 'Ships' dockscreen is accessed by an action which has a varying action description underneath it.
One of the action descriptions is "This station has n ships for sale."
I am currently using this code for the action description:
Code: Select all
(scrSetActionDesc gScreen 'actionShips
(scrTranslate gScreen "actionShips:ShipCount" {
shipCount: (count (@ (logGetBroker) stationID))
})
)
...
<Text id="actionShips:ShipCount">This station has %shipCount% ships for sale.</Text>
It works fine unless there is only one ship for sale. Then the description reads "...1 ships..." instead of "...1 ship...".
I know that the language code can handle plurals so that it shows either "1 ship" or "2 ships" but I don't know how to do it.
Does anyone know the appropriate code for something like this? TIA.