forked from ForrestMarkX/KF-ClassicHUD
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from GenZmeY/default_lang
Default lang + more localization (BoxPainterLib)
- Loading branch information
Showing
20 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
class YAS_LocalMessage extends Object | ||
abstract; | ||
|
||
var const String PlayersDefault; | ||
var private localized String Players; | ||
|
||
var const String SpectatorsDefault; | ||
var private localized String Spectators; | ||
|
||
enum E_YAS_LocalMessageType | ||
{ | ||
YAS_Players, | ||
YAS_Spectators | ||
}; | ||
|
||
public static function String GetLocalizedString(E_YAS_LocalMessageType LMT) | ||
{ | ||
switch (LMT) | ||
{ | ||
case YAS_Players: | ||
return (default.Players != "" ? default.Players : default.PlayersDefault); | ||
case YAS_Spectators: | ||
return (default.Spectators != "" ? default.Spectators : default.SpectatorsDefault); | ||
} | ||
|
||
return ""; | ||
} | ||
|
||
defaultproperties | ||
{ | ||
PlayersDefault = "Players" | ||
SpectatorsDefault = "Spectators" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters