Changeset 25282

Timestamp:
Apr 17, 2021, 9:47:30 AM (3 years ago)
Author:
Freagarach
Message:

Fix some translations.

  • Idle builder hotkey r25174 / rP25174.
  • "Other hotkey"-catagory.
  • Tooltipless hotkeys.

Patch by: @nwtour
Differential revision: https://code.wildfiregames.com/D3862

Location:
ps/trunk/binaries/data/mods/public/gui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/hotkeys/HotkeyMetadata.js

    r25023 r25282  
    1919        let categories = {
    2020            [this.DEFAULT_CATEGORY]: {
    21                 "name": markForTranslation("Other Hotkeys"),
    22                 "desc": markForTranslation("Other Hotkeys"),
     21                "name": ),
     22                "desc": ),
    2323            }
    2424        };
     
    6666    }
    6767}
     68
     69
  • ps/trunk/binaries/data/mods/public/gui/hotkeys/HotkeysPage.js

    r25175 r25282  
    122122            hotkeyList.tooltip = this.metadata.hotkeys[hotkey]?.desc ?
    123123                        translateWithContext("hotkey metadata", this.metadata.hotkeys[hotkey]?.desc) :
    124                         translate(markForTranslation("No tooltip available"));
     124                        translate();
    125125        }
    126126    }
     
    195195    let hotkeyPage = new HotkeysPage(new HotkeyMetadata());
    196196}
     197
     198
  • ps/trunk/binaries/data/mods/public/gui/hotkeys/spec/selection.json

    r25097 r25282  
    4747                "name": "Select next idle unit",
    4848                "desc": "Select next idle unit."
     49
     50
     51
     52
    4953            },
    5054            "selection.offscreen": {
  • ps/trunk/binaries/data/mods/public/gui/session/trade/BarterButton.js

    r23072 r25282  
    2323        let resourceName = { "resource": resourceNameWithinSentence(resourceCode) };
    2424
    25         this.sellButton.tooltip = sprintf(this.SellTooltip, resourceName);
     25        this.sellButton.tooltip = sprintf(t, resourceName);
    2626        this.sellButton.onPress = () => { barterButtonManager.setSelectedResource(this.resourceCode); };
    2727        this.sellButton.hidden = false;
    2828
    29         this.buyButton.tooltip = sprintf(this.BuyTooltip, resourceName);
     29        this.buyButton.tooltip = sprintf(t, resourceName);
    3030        this.buyButton.onPress = () => { this.buy(); };
    3131
Note: See TracChangeset for help on using the changeset viewer.