@@ -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
582582end
0 commit comments