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.

SamLogan

A question about language pack mod

Recommended Posts

SamLogan    789

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?

Share this post


Link to post
Share on other sites
SethR    1,229

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.." "..name

and switch it around to something like:

return name.." "..STRINGS.WET_PREFIX.GENERIC

Hope that helps!

Share this post


Link to post
Share on other sites
Hpfm2    44

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!

Share this post


Link to post
Share on other sites