From f1a373dea8c3c64afefa7da204f676f59cc17ecc Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Fri, 26 Jun 2020 03:52:31 +0300 Subject: [PATCH] constant interface strings marked as localized --- ServerExt/Classes/Ext_PerkBase.uc | 2 +- ServerExt/Classes/Ext_TGroupBase.uc | 3 +-- ServerExt/Classes/Ext_TraitBase.uc | 2 +- ServerExt/Classes/KFExtendedHUD.uc | 4 +--- ServerExt/Classes/VSZombie.uc | 3 +-- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/ServerExt/Classes/Ext_PerkBase.uc b/ServerExt/Classes/Ext_PerkBase.uc index ebdfdfd..b67507b 100644 --- a/ServerExt/Classes/Ext_PerkBase.uc +++ b/ServerExt/Classes/Ext_PerkBase.uc @@ -10,7 +10,7 @@ var array WebConfigs; var ExtPerkManager PerkManager; var Controller PlayerOwner; -var() string PerkName; +var() localized string PerkName; var() Texture2D PerkIcon; var() class BasePerk; // KF perk that this perk is based on. var() class PrimaryMelee,PrimaryWeapon; diff --git a/ServerExt/Classes/Ext_TGroupBase.uc b/ServerExt/Classes/Ext_TGroupBase.uc index 58e3055..76eeffe 100644 --- a/ServerExt/Classes/Ext_TGroupBase.uc +++ b/ServerExt/Classes/Ext_TGroupBase.uc @@ -2,7 +2,7 @@ Class Ext_TGroupBase extends Object abstract; -var() string GroupInfo; +var() localized string GroupInfo; var() bool bLimitToOne; // Limit to only one trait for this group. static function string GetUIInfo( Ext_PerkBase Perk ) @@ -30,5 +30,4 @@ static function bool GroupLimited( Ext_PerkBase Perk, class Trait defaultproperties { - GroupInfo="Group" } \ No newline at end of file diff --git a/ServerExt/Classes/Ext_TraitBase.uc b/ServerExt/Classes/Ext_TraitBase.uc index 7c9b281..9192fd0 100644 --- a/ServerExt/Classes/Ext_TraitBase.uc +++ b/ServerExt/Classes/Ext_TraitBase.uc @@ -6,7 +6,7 @@ Class Ext_TraitBase extends Object var array WebConfigs; var() class TraitGroup; // With groups you can prevent player from buying multiple traits of same group. -var() string TraitName,Description; // UI name. +var() localized string TraitName,Description; // UI name. var() byte NumLevels; // Maximum number of levels. var config array LevelCosts; var() array DefLevelCosts; // Point price tag for each level. diff --git a/ServerExt/Classes/KFExtendedHUD.uc b/ServerExt/Classes/KFExtendedHUD.uc index 971452b..77fc5aa 100644 --- a/ServerExt/Classes/KFExtendedHUD.uc +++ b/ServerExt/Classes/KFExtendedHUD.uc @@ -61,7 +61,7 @@ var color BlackBGColor,RedBGColor,HUDTextColor; var transient array WasNewlyAdded; var transient OnlineSubsystem OnlineSub; -var string BadConnectionStr; +var localized string BadConnectionStr; var transient bool bShowProgress,bProgressDC,bConfirmDisconnect,bMeAdmin,bLoadedInitItems; @@ -1196,6 +1196,4 @@ defaultproperties HealthBarFullVisDist=350 HealthBarCutoffDist=3500 DamagePopupFadeOutTime=3.000000 - - BadConnectionStr="Warning: Connection problem!" } diff --git a/ServerExt/Classes/VSZombie.uc b/ServerExt/Classes/VSZombie.uc index 5c3d837..b4d6d31 100644 --- a/ServerExt/Classes/VSZombie.uc +++ b/ServerExt/Classes/VSZombie.uc @@ -2,7 +2,7 @@ Class VSZombie extends KFPawn_Monster abstract; var() class MeleeHitDT; -var() string ZombieName; +var() localized string ZombieName; var transient VSFPZedHands FPHandModel; var() int MeleeDamage,HitsPerAttack; var() float PropDamageScale; @@ -455,7 +455,6 @@ defaultproperties HPScaler=1 InventoryManagerClass=None // No weapons for bots! - ZombieName="Zombie" PropDamageScale=0.65 HitZones(0)=(ZoneName="head",BoneName="head",GoreHealth=20,Limb=BP_Head,DmgScale=2)