Skip to content

Commit 70d8402

Browse files
committed
Merge branch 'develop'
2 parents 04ab950 + 3d49bd4 commit 70d8402

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

ClientGUI/TranslationINIParser.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ public bool ParseINIAttribute(XNAControl control, IniFile iniFile, string key, s
8686
case "Suggestion" when control is XNASuggestionTextBox suggestionTextBox:
8787
suggestionTextBox.Suggestion = Localize(control, key, value.FromIniString());
8888
return true;
89+
case "URL" when control is XNALinkButton button: // need to link localized docs
90+
button.URL = Localize(control, key, value.FromIniString(), notify: false);
91+
return true;
92+
case "UnixURL" when control is XNALinkButton button:
93+
button.UnixURL = Localize(control, key, value.FromIniString(), notify: false);
94+
return true;
8995
}
9096

9197
return false;

DXMainClient/Icons/flags16.png

-21.9 KB
Loading

Docs/Translation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Each key in the `[Values]` section is composed of a few elements, joined using `
8989
- `Text`, `Size`, `Width`, `Height`, `Location`, `X`, `Y`, `DistanceFromRightBorder`, `DistanceFromBottomBorder` for every control;
9090
- `ToolTip` for controls with tooltip;
9191
- `Suggestion` for suggestion text boxes;
92+
- `URL`, `UnixURL` for link buttons;
9293
- `ItemX` (where X) for setting/game options dropdowns;
9394
- `OptionName` for game option dropdowns;
9495
- `$X`, `$Y`, `$Width`, `$Height` for INItializable window system.

0 commit comments

Comments
 (0)