Skip to content

Commit f4da5d5

Browse files
committed
Language fix.
1 parent 02c8d34 commit f4da5d5

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

nutscript/gamemode/sh_config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end
1313
nut.config = nut.config or {}
1414

1515
// Don't Touch This, This's Version Counter. //
16-
nut.config.frameworkVersion = "0.19";
16+
nut.config.frameworkVersion = "0.18.2";
1717

1818
-- What language Nutscript shall use.
1919
nut.config.language = "korean"

nutscript/plugins/customvendor/derma/cl_vendor.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ local PANEL = {}
141141
icon:SetSize(nut.config.iconSize * 0.8, nut.config.iconSize * 0.8);
142142

143143
local price = itemTable.price or 0
144-
local cost = PLUGIN:GetPluginLanguage("item_price", nut.currency.GetName(price))
144+
local cost = nut.lang.Get("item_price", nut.currency.GetName(price))
145145

146146
if (data[class] and data[class].price and data[class].price >= 0) then
147147
price = data[class].price
148148
if (price == 0) then
149-
cost = PLUGIN:GetPluginLanguage("item_price", "무료");
149+
cost = nut.lang.Get("item_price", "무료");
150150
else
151-
cost = PLUGIN:GetPluginLanguage("item_price", nut.currency.GetName(price))
151+
cost = nut.lang.Get("item_price", nut.currency.GetName(price))
152152
end;
153153
end;
154154

@@ -207,18 +207,18 @@ local PANEL = {}
207207
icon:SetSize(nut.config.iconSize * 0.8, nut.config.iconSize * 0.8);
208208

209209
local price = itemTable.price or 0
210-
local cost = PLUGIN:GetPluginLanguage("item_price", nut.currency.GetName(price))
210+
local cost = nut.lang.Get("item_price", nut.currency.GetName(price))
211211

212212
if (data[class] and data[class].price and data[class].price >= 0) then
213213
price = data[class].price
214214
if (price == 0) then
215-
cost = PLUGIN:GetPluginLanguage("item_price", "무료");
215+
cost = nut.lang.Get("item_price", "무료");
216216
else
217-
cost = PLUGIN:GetPluginLanguage("item_price", nut.currency.GetName(math.Round(price * entity:GetNetVar("buyadjustment", .5))));
217+
cost = nut.lang.Get("item_price", nut.currency.GetName(math.Round(price * entity:GetNetVar("buyadjustment", .5))));
218218
end;
219219
end
220220

221-
icon:SetToolTip(PLUGIN:GetPluginLanguage("item_info",itemTable.name, itemTable:GetDesc()).."\n"..cost)
221+
icon:SetToolTip(nut.lang.Get("item_info",itemTable.name, itemTable:GetDesc()).."\n"..cost)
222222
icon.DoClick = function(panel)
223223
if (icon.disabled) then
224224
return
@@ -412,7 +412,7 @@ local PANEL = {}
412412
self.name = vgui.Create("DTextEntry", self.scroll);
413413
self.name:Dock(TOP)
414414
self.name:DockMargin(3, 3, 3, 3)
415-
self.name:SetText(entity:GetNetVar("name", PLUGIN:GetPluginLanguage("no_desc")));
415+
self.name:SetText(entity:GetNetVar("name", nut.lang.Get("no_desc")));
416416

417417
local action = self.scroll:Add("DLabel")
418418
action:SetText(PLUGIN:GetPluginLanguage("vd_admin_action"))
@@ -575,8 +575,8 @@ function PLUGIN:DrawTargetID(entity, x, y, alpha)
575575
local mainColor = nut.config.mainColor
576576
local color = Color(mainColor.r, mainColor.g, mainColor.b, alpha)
577577

578-
nut.util.DrawText(x, y, entity:GetNetVar("name", PLUGIN:GetPluginLanguage("no_desc")), color, "AdvNut_EntityTitle");
578+
nut.util.DrawText(x, y, entity:GetNetVar("name", nut.lang.Get("no_desc")), color, "AdvNut_EntityTitle");
579579
y = y + nut.config.targetTall
580-
nut.util.DrawText(x, y, entity:GetNetVar("desc", PLUGIN:GetPluginLanguage("no_desc")), Color(255, 255, 255, alpha), "AdvNut_EntityDesc");
580+
nut.util.DrawText(x, y, entity:GetNetVar("desc", nut.lang.Get("no_desc")), Color(255, 255, 255, alpha), "AdvNut_EntityDesc");
581581
end
582582
end

nutscript/plugins/customvendor/entities/entities/nut_vendor.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ else
129129
client:TakeMoney(price);
130130
entity:SetNetVar("money", entity:GetNetVar( "money", 0 ) + price);
131131
netstream.Start(client, "nut_CashUpdate");
132-
nut.util.Notify(PLUGIN:GetPluginLanguage("purchased_for", itemTable.name, nut.currency.GetName(price)), client);
132+
nut.util.Notify(nut.lang.Get("purchased_for", itemTable.name, nut.currency.GetName(price)), client);
133133
end;
134134
else
135-
nut.util.Notify(PLUGIN:GetPluginLanguage("no_afford"), client);
135+
nut.util.Notify(nut.lang.Get("no_afford"), client);
136136
end
137137
end)
138138
---------------------------
@@ -172,15 +172,15 @@ else
172172
client:GiveMoney(price);
173173
entity:SetNetVar("money", entity:GetNetVar( "money", 0 ) - price);
174174
netstream.Start(client, "nut_CashUpdate");
175-
nut.util.Notify(PLUGIN:GetPluginLanguage("sold", itemTable.name, nut.currency.GetName(price)), client);
175+
nut.util.Notify(nut.lang.Get("sold", itemTable.name, nut.currency.GetName(price)), client);
176176

177177
return;
178178
end;
179179
end;
180180

181-
nut.util.Notify(PLUGIN:GetPluginLanguage("notenoughitem", itemTable.name), client);
181+
nut.util.Notify(nut.lang.Get("notenoughitem", itemTable.name), client);
182182
else
183-
nut.util.Notify(PLUGIN:GetPluginLanguage("notenoughitem", itemTable.name), client);
183+
nut.util.Notify(nut.lang.Get("notenoughitem", itemTable.name), client);
184184
end;
185185
end)
186186
end

nutscript/plugins/improvedcooking/items/base/sh_food2.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ end
5656

5757
BASE.functions = {}
5858
BASE.functions.Eat = {
59-
text = PLUGIN:GetPluginLanguage("eat"),
59+
text = nut.lang.Get("eat"),
6060
icon = "icon16/cup.png",
6161
run = function(itemTable, client, data, entity)
6262
if (SERVER) then

0 commit comments

Comments
 (0)