caccuc Posted June 17 Share Posted June 17 I already have the .po file, then what should I do? Link to comment Share on other sites More sharing options...
YeMzZ Posted June 20 Share Posted June 20 function GetCurrentLocale() local locale = nil if Platform.IsRail() then local lang_id = LANGUAGE.CHINESE_S_RAIL locale = LOC.GetLocale(lang_id) elseif Platform.IsConsole() or Platform.IsSteam() then -- local lang_id = Profile:GetLanguageID() local lang_id = LANGUAGE.CHINESE_S locale = LOC.GetLocale(lang_id) end return locale end Also need change some source code in \Rotwood Playtest\data\scripts\languages\language.lua first comment line: local lang_id = Profile:GetLanguageID() then add new line below: local lang_id = LANGUAGE.CHINESE_S change any language you need. Link to comment Share on other sites More sharing options...
GodIess Posted July 4 Share Posted July 4 add in loc.lua {id = LANGUAGE.ENGLISH, alt_id = nil, strings = "u_po_file.po", code = "en", scale = 1.0, in_steam_menu = true, in_console_menu = true, shrink_to_fit_word = true }, Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.