#2485 closed defect (fixed)
javascript sprintf error since translation update
Reported by: | mimo | Owned by: | sanderd17 |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Alpha 16 |
Component: | UI & Simulation | Keywords: | |
Cc: | Patch: |
Description
When changing perspective to an AI player, I've quite often the error ERROR: JavaScript error: uncaught exception: [sprintf] property "name" does not exist
this message happens only after changing perspective and taking an AI player. The string involved is due to BuildRestriction.js, for example markForTranslation("%(name)s cannot be built on another building or resource") when the AI tries several positions to place its building. Putting some printouts in BuildRestriction.js, the variable name is well defined.
To reproduce it easily, it is best to take a map with limited room to build, for example the cyclades skirmish map.
Change History (2)
comment:1 by , 10 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 10 years ago
Milestone: | Backlog → Alpha 16 |
---|
Note:
See TracTickets
for help on using tickets.
In 15090: