Jump to content

A question about language pack mod


Recommended Posts

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

  • Developer

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!

Link to comment
Share on other sites

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.

×
  • Create New...