SamLogan Posted March 10, 2014 Share Posted March 10, 2014 Hello, I'm working on the french language pack mod but I have a problem. I've found how translate the status of the items (Withered, Smoldering, Wet, Collapsed) but I'd like to change the order of the word. In english it's like that : Adjective - Name In french, the sentence must be like that : Name - Adjective How can I reverse this display order? Link to comment Share on other sites More sharing options...
Developer SethR Posted March 10, 2014 Developer Share Posted March 10, 2014 Hey SamLogan. The code that constructs those strings lives in EntityScript.lua (in the base scripts folder of the DLC folder). On line 332, there's a function called GetDisplayName(). Your mod would have to redefine that function so that it constructed the strings in the order that is appropriate for your language. Specifically, you would want to take the lines like:return STRINGS.WET_PREFIX.GENERIC.." "..nameand switch it around to something like:return name.." "..STRINGS.WET_PREFIX.GENERICHope that helps! Link to comment Share on other sites More sharing options...
Hpfm2 Posted March 10, 2014 Share Posted March 10, 2014 Oh! That0s how you do it! Thanks a lot! I've had the same issue with the Portuguese pack, I just assumed it was impossible to change! Link to comment Share on other sites More sharing options...
ekokepe Posted June 6, 2014 Share Posted June 6, 2014 I can't find the GetDisplayName() On line 332, how's with that? 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.