Opened 7 years ago

Last modified 5 years ago

#4597 new defect

Allow AI chat messages to be pluralized

Reported by: Itms Owned by:
Priority: Should Have Milestone: Backlog
Component: Internationalization & Localization Keywords:
Cc: Patch:

Description

We should add pluralization support to formatChatCommand in gui/session/messages.js and use that for AI messages (specifically, the ones that ask for some amount of resources).

Change History (6)

comment:1 by elexis, 7 years ago

Component: UI & SimulationI18n & L10n

Closely related to #3665

It's not only formatChatCommand but the fact that we don't have translateObjectKeys for plural variants.

comment:2 by elexis, 7 years ago

This was reported at transifex: https://www.transifex.com/wildfire-games/0ad/translate/#gd/public-simulation-other/105312256

Since markForTranslation returns a string and markForPluralTranslation returns an object, we could probably catch that difference in the GUI without adding terrible code.

Last edited 7 years ago by elexis (previous) (diff)

comment:3 by Adrián Chaves, 6 years ago

Milestone: BacklogAlpha 23
Owner: set to Adrián Chaves
Patch: Phab:D1265

comment:4 by elexis, 6 years ago

Milestone: Alpha 23Work In Progress

The diff needs an update

comment:5 by Adrián Chaves, 6 years ago

Milestone: Work In ProgressAlpha 24
Owner: Adrián Chaves removed
Patch: Phab:D1265

I’ve abandoned the work on this, at least for the time being.

comment:6 by elexis, 5 years ago

Milestone: Alpha 24Backlog
Note: See TracTickets for help on using tickets.