Page MenuHomeWildfire Games

[gui] rename “History” to “Civilization Overview”
ClosedPublic

Authored by Nescio on May 4 2020, 7:31 PM.

Details

Reviewers
s0600204
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP23671: Rename civinfo page from "History" to "Civilization Overview"
Summary

The civinfo page is currently displayed as “History”, which is a bit of a misnomer, since history strings are also displayed in the structure tree, and what the civinfo page does is not really provide more history, but give an overview of a civilization. This patch therefore changes the name to “Civilization Overview”, which is more accurate.

Test Plan

Check this patch is correct and complete. It shouldn't break anything.

Event Timeline

Nescio created this revision.May 4 2020, 7:31 PM
Owners added a subscriber: Restricted Owners Package.May 4 2020, 7:31 PM
Vulcan added a comment.May 4 2020, 7:38 PM

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (no-trailing-spaces):
|    | Trailing spaces not allowed.
|----|    | /zpool0/trunk/binaries/data/mods/public/gui/reference/structree/structree.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/gui/reference/structree/structree.js
|   4|   4| var g_BuildList = {};
|   5|   5| 
|   6|   6| /**
|   7|    |- * Array of template names that can be trained from a unit, given a civ and unit template name.  
|    |   7|+ * Array of template names that can be trained from a unit, given a civ and unit template name.
|   8|   8|  */
|   9|   9| var g_TrainList = {};
|  10|  10| 
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2073/display/redirect

s0600204 requested changes to this revision.May 9 2020, 1:54 AM
s0600204 added a subscriber: s0600204.

I think my only criticism is that the text no longer properly fits within the button within the structree. Could you explore button sizes to find something that

  1. Fits the new text (with plenty of space for translated strings that might be longer), and
  2. Doesn't look strange/out of place with the rest of the gui?

Also, could you consider changing the text within the banner at the top of the civinfo page?

This revision now requires changes to proceed.May 9 2020, 1:54 AM
Nescio updated this revision to Diff 11856.May 13 2020, 10:24 PM
  • increased button size from 140 to 200 pixels
  • also renamed header

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (no-trailing-spaces):
|    | Trailing spaces not allowed.
|----|    | /zpool0/trunk/binaries/data/mods/public/gui/reference/structree/structree.js
|    |++++| /zpool0/trunk/binaries/data/mods/public/gui/reference/structree/structree.js
|   4|   4| var g_BuildList = {};
|   5|   5| 
|   6|   6| /**
|   7|    |- * Array of template names that can be trained from a unit, given a civ and unit template name.  
|    |   7|+ * Array of template names that can be trained from a unit, given a civ and unit template name.
|   8|   8|  */
|   9|   9| var g_TrainList = {};
|  10|  10| 
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2113/display/redirect

s0600204 accepted this revision as: s0600204.May 15 2020, 1:56 AM

Thanks!

We'll no doubt find out if the button is wide enough for translations when it gets translated.

Apart from the spelling correction - which is small enough to not need another revision - I reckon this is ready to go.

binaries/data/mods/public/gui/civinfo/civinfo.xml
18

(Spelling)

Stan added a subscriber: Stan.May 15 2020, 8:50 AM

Have you tried the longtext language?

This revision was not accepted when it landed; it landed in state Needs Review.May 15 2020, 11:27 PM
This revision was automatically updated to reflect the committed changes.
In D2722#115471, @Stan wrote:

Have you tried the longtext language?

@Stan, the text "Civilization Overview" hasn't been pushed to Transifex, subsequently there's currently no translation of that phrase available to generate a longtext version from.


Ah, Phabricator... it was accepted when landed, you silly goose.

bb added a subscriber: bb.May 15 2020, 11:33 PM

JS gui rejected it once and didn't accept again

Nescio retitled this revision from [gui]: rename “History” to “Civilization Overview” to [gui] rename “History” to “Civilization Overview”.May 18 2020, 10:29 AM