Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] The exe has default setting?

[DiscordArchive] The exe has default setting?

[DiscordArchive] The exe has default setting?

Pages (4): Previous 1 2 3 4
rektbyfaith
Administrator
0
07-16-2024, 11:10 PM
#31
Archived author: Radeghost • Posted: 2024-07-16T23:10:09.842000+00:00
Original source

```lua
function Localize()

local locale = GetLocale()

if locale == "enUS" then
-- enUS localization
DISCORD = "This is English"
elseif locale == "zhTW" then
-- zhTW localization
DISCORD = "This is zhTW "
elseif locale == "esES" then
-- esES localization
DISCORD = "I'm in (s)Pain"
end
end

function LocalizeFrames()
-- Place any locale-specific UI adjustments here
ALLOW_RANDOM_NAME_BUTTON = GetLocale() == "enUS" or GetLocale() == "enGB"
end```
rektbyfaith
07-16-2024, 11:10 PM #31

Archived author: Radeghost • Posted: 2024-07-16T23:10:09.842000+00:00
Original source

```lua
function Localize()

local locale = GetLocale()

if locale == "enUS" then
-- enUS localization
DISCORD = "This is English"
elseif locale == "zhTW" then
-- zhTW localization
DISCORD = "This is zhTW "
elseif locale == "esES" then
-- esES localization
DISCORD = "I'm in (s)Pain"
end
end

function LocalizeFrames()
-- Place any locale-specific UI adjustments here
ALLOW_RANDOM_NAME_BUTTON = GetLocale() == "enUS" or GetLocale() == "enGB"
end```

rektbyfaith
Administrator
0
07-16-2024, 11:37 PM
#32
Archived author: Titi • Posted: 2024-07-16T23:37:24.855000+00:00
Original source

I did some testing with a french client, the .exe is 1:1 identical with enUS, it doesn't have a config file by default.
I renamed the locale folder to check what it does if there's no locale, seems like it's just iterating to find any locale
[Image: image.png?ex=690c8874&is=690b36f4&hm=e7e...7a1fcc1ce&]
rektbyfaith
07-16-2024, 11:37 PM #32

Archived author: Titi • Posted: 2024-07-16T23:37:24.855000+00:00
Original source

I did some testing with a french client, the .exe is 1:1 identical with enUS, it doesn't have a config file by default.
I renamed the locale folder to check what it does if there's no locale, seems like it's just iterating to find any locale
[Image: image.png?ex=690c8874&is=690b36f4&hm=e7e...7a1fcc1ce&]

rektbyfaith
Administrator
0
07-16-2024, 11:40 PM
#33
Archived author: Titi • Posted: 2024-07-16T23:40:50.746000+00:00
Original source

it reads enUS before frFR, so it's probably just iterating the locale enum in order
rektbyfaith
07-16-2024, 11:40 PM #33

Archived author: Titi • Posted: 2024-07-16T23:40:50.746000+00:00
Original source

it reads enUS before frFR, so it's probably just iterating the locale enum in order

Pages (4): Previous 1 2 3 4
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)