Ticket #4718: patch

File patch, 7.4 KB (added by elexis, 7 years ago)
  • binaries/data/mods/public/gui/common/gamedescription.js

    function getGameDescription(extended = f  
    241241        let isCaptureTheRelic = g_VictoryConditions.Name[victoryIdx] == "capture_the_relic";
    242242        if (isCaptureTheRelic)
    243243            title = sprintf(
    244244                translatePluralWithContext(
    245245                    "victory condition",
    246                     "Capture The Relic (%(min)s minute)",
    247                     "Capture The Relic (%(min)s minutes)",
     246                    "Capture the Relic (%(min)s minute)",
     247                    "Capture the Relic (%(min)s minutes)",
    248248                    g_GameAttributes.settings.VictoryDuration
    249249                ),
    250250                { "min": g_GameAttributes.settings.VictoryDuration }
    251251            );
    252252
  • binaries/data/mods/public/gui/common/settings.js

    function loadAIDifficulties()  
    130130        }
    131131    ];
    132132}
    133133
    134134/**
    135  * Loads available victory times for victory conditions like Wonder and Capture The Relic.
     135 * Loads available victory times for victory conditions like Wonder and Capture the Relic.
    136136 */
    137137function loadVictoryDuration()
    138138{
    139139    var jsonFile = "victory_times.json";
    140140    var json = Engine.ReadJSONFile(g_SettingsDirectory + jsonFile);
  • binaries/data/mods/public/gui/pregame/mainmenu.xml

     
    451451                    style="StoneButtonFancy"
    452452                    type="button"
    453453                    size="4 4 100%-4 32"
    454454                    tooltip_style="pgToolTip"
    455455                >
    456                     <translatableAttribute id="caption">Learn To Play</translatableAttribute>
     456                    <translatableAttribute id="caption">Learn to Play</translatableAttribute>
    457457                    <translatableAttribute id="tooltip">Learn how to play, start the tutorial, discover the technology trees, and the history behind the civilizations</translatableAttribute>
    458458                    <action on="Press">
    459459                        closeMenu();
    460460                        openMenu("submenuLearn", (this.parent.size.top+this.size.top), (this.size.bottom-this.size.top), 4);
    461461                    </action>
     
    534534                    ghost="true"
    535535                >
    536536                    <!-- IMPORTANT: remember to update session/top_panel/label.xml in sync with this: -->
    537537                    <attribute id="caption">
    538538                        <keep>[font="sans-bold-16"]</keep>
    539                         <translate>Alpha XXII: Venustas</translate>
     539                        <translate>Alpha XXIII: Ken Wood</translate>
    540540                        <keep>[/font]\n\n</keep>
    541541                        <translate>WARNING: This is an early development version of the game. Many features have not been added yet.</translate>
    542542                    </attribute>
    543543                </object>
    544544
  • binaries/data/mods/public/gui/session/chat_window.xml

     
    4141
    4242    <!-- Chat input elements -->
    4343    <object name="chatPage" size="0 100%-120 100% 100%">
    4444
    4545        <!-- Message addressee -->
    46         <object size="16 100%-106 50 100%-82" type="text" style="ModernLeftLabelText">
     46        <object size="16 100%-106 70 100%-82" type="text" style="ModernLeftLabelText">
    4747            <translatableAttribute id="caption" context="chat input">To:</translatableAttribute>
    4848        </object>
    4949        <object
    5050            name="chatAddressee"
    5151            type="dropdown"
     
    5555        >
    5656            <translatableAttribute id="tooltip" context="chat input">Select chat addressee.</translatableAttribute>
    5757        </object>
    5858
    5959        <!-- Message text -->
    60         <object type="text" size="16 100%-74 50 100%-50" style="ModernLeftLabelText">
     60        <object type="text" size="16 100%-74 70 100%-50" style="ModernLeftLabelText">
    6161            <translatableAttribute id="caption" context="chat input">Text:</translatableAttribute>
    6262        </object>
    6363        <object
    6464            type="input"
    6565            name="chatInput"
  • binaries/data/mods/public/gui/session/top_panel/label.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    22<object size="50%+20 0 100%-226 100%" name="alphaLabel" type="text" style="ModernLabelText" text_valign="top" ghost="true">
    33    <!-- IMPORTANT: remember to update pregame/mainmenu.xml in sync with this: -->
    4     <translatableAttribute id="caption">ALPHA XXII : Venustas</translatableAttribute>
     4    <translatableAttribute id="caption">ALPHA XXIII : Ken Wood</translatableAttribute>
    55
    66    <!-- Displays build date and revision number-->
    77    <object size="50%-128 0 50%+128 100%-2" name="buildTimeLabel" type="text" style="BuildNameText" ghost="true">
    88        <action on="Load">this.caption = getBuildString()</action>
    99    </object>
  • binaries/data/mods/public/maps/scripts/CaptureTheRelic.js

    Trigger.prototype.StartCaptureTheRelicCo  
    125125    let captureTheRelicDuration = cmpEndGameManager.GetGameTypeSettings().victoryDuration || 0;
    126126
    127127    let isTeam = playerAndAllies.length > 1;
    128128    this.ownRelicsVictoryMessage = cmpGuiInterface.AddTimeNotification({
    129129        "message": isTeam ?
    130             markForTranslation("%(player)s's team has captured all relics and will have won in %(time)s") :
    131             markForTranslation("%(player)s has captured all relics and will have won in %(time)s"),
     130            markForTranslation("%(player)s's team has captured all relics and will win in %(time)s.") :
     131            markForTranslation("%(player)s has captured all relics and will win in %(time)s."),
    132132        "players": others,
    133133        "parameters": {
    134134            "player": cmpPlayer.GetName()
    135135        },
    136136        "translateMessage": true,
    137137        "translateParameters": []
    138138    }, captureTheRelicDuration);
    139139
    140140    this.othersRelicsVictoryMessage = cmpGuiInterface.AddTimeNotification({
    141141        "message": isTeam ?
    142             markForTranslation("Your team has captured all relics and will have won in %(time)s") :
    143             markForTranslation("You have captured all relics and will have won in %(time)s"),
     142            markForTranslation("Your team has captured all relics and will win in %(time)s.") :
     143            markForTranslation("You have captured all relics and will win in %(time)s."),
    144144        "players": playerAndAllies,
    145145        "translateMessage": true
    146146    }, captureTheRelicDuration);
    147147
    148148    this.relicsVictoryTimer = cmpTimer.SetTimeout(SYSTEM_ENTITY, IID_Trigger,
  • binaries/data/mods/public/simulation/data/settings/victory_conditions/capture_the_relic.json

     
    11{
    22    "TranslatedKeys": ["Title", "Description"],
    33    "Data":
    44    {
    5         "Title": "Capture The Relic",
     5        "Title": "Capture the Relic",
    66        "Description": "Capture all relics spread across the map and keep them for a certain time to win the game.",
    77        "Scripts":
    88        [
    99            "scripts/TriggerHelper.js",
    1010            "scripts/ConquestCommon.js",