Garry's Mod

Garry's Mod

71 ratings
language_setup
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
File Size
Posted
Updated
1.132 KB
7 Jul, 2021 @ 5:18am
7 Jul, 2021 @ 9:30am
4 Change Notes ( view )

Subscribe to download
language_setup

Description
this addon will help you to translate into any language the text that is created by game_text on hammer_editor

how i can do this?
step 1: go on map and run in console 'lua_run save_language()'
step 2: open your gmod file and go to GarrysMod\garrysmod\data
step 3: find setup_language.txt and copy content
step 4 create auto lua_file. Just add in your addon folders lua/autorun/server/anyname.lua (don't use exist name. Good name it's mapname_language~=gm_construct_language)
step 5 paste content and edit

structure:
hook.Add('setup_language','gm_construct',function()--gm_construct~=name of map
if game.GetMap() ==gm_construc'' then--chek map
language_setup({
['hello world']='привет мир' --transforms hello world in привет мир
})
end
end)
3 Comments
огузок 12 Feb, 2022 @ 12:19pm 
+rep
Nelliel Odelschwank 3 Feb, 2022 @ 6:53am 
Неплохая задумка.
+rep by T1NTINY :health:
SpeeBee 22 Aug, 2021 @ 12:46pm 
Ничего не понял, но оч интересно.