Locale.ToUpper (Civ5 API)

From Civilization Modding Wiki
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This function is a member of Locale.

This is a static method, invoke it with a dot.


Usage

string Locale.ToUpper(string localizedCityName)


Returned Value

No description available.

Parameters

localizedCityName: No description available.


Source code samples

Redundant occurences have been removed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0147
local convertedKey = Locale.ToUpper(localizedCityName);


CityView.lua

UI/InGame/CityView/CityView.lua
0719
convertedKey = Locale.ToUpper(convertedKey);
0840
szItemName = Locale.ToUpper(szItemName);


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0025
name = Locale.ToUpper(name);
0385
Controls.RangedAttackButtonLabel:SetText(Locale.ToUpper(Locale.ConvertTextKey("TXT_KEY_INTERFACEMODE_RANGE_ATTACK")));


InfoTooltipInclude.lua

UI/InGame/InfoTooltipInclude.lua
0015
strHelpText = strHelpText .. Locale.ToUpper(Locale.ConvertTextKey( pUnitInfo.Description ));
0109
strHelpText = strHelpText .. Locale.ToUpper(Locale.ConvertTextKey( pBuildingInfo.Description ));
0261
strHelpText = strHelpText .. Locale.ToUpper(Locale.ConvertTextKey( pImprovementInfo.Description ));
0302
strHelpText = strHelpText .. Locale.ToUpper(Locale.ConvertTextKey( pProjectInfo.Description ));


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0654
packageID = Locale.ToUpper(packageID);


ResourceTooltipGenerator.lua

UI/InGame/ResourceTooltipGenerator.lua
0019
local strToolTip = "[COLOR_POSITIVE_TEXT]" .. strQuantity .. Locale.ToUpper(Locale.ConvertTextKey(pResourceInfo.Description)) .. "[ENDCOLOR]";


SaveMenu.lua

UI/InGame/Menus/SaveMenu.lua
0024
if(Locale.ToUpper(newSave) == Locale.ToUpper(v.DisplayName)) then


TechHelpInclude.lua

UI/InGame/TechTree/TechHelpInclude.lua
0015
strHelpText = strHelpText .. Locale.ToUpper(Locale.ConvertTextKey( pTechInfo.Description ));


TopPanel.lua

UI/InGame/TopPanel.lua
0018
Controls.MenuButton:SetText(Locale.ToUpper(Locale.ConvertTextKey("TXT_KEY_RETURN")));
0021
Controls.MenuButton:SetText(Locale.ToUpper(Locale.ConvertTextKey("TXT_KEY_MENU")));
0115
strGoldenAgeStr = string.format(Locale.ToUpper(Locale.ConvertTextKey("TXT_KEY_GOLDEN_AGE_ANNOUNCE")) .. " (%i)", pPlayer:GetGoldenAgeTurns());


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
0589
Controls.ProposeButton:SetText( Locale.ToUpper(Locale.ConvertTextKey( "TXT_KEY_DIPLO_DEMAND_BUTTON" )));



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.