Jump to content

Recommended Posts

Hi, I wonder if it is possible to load a language without having to compile the game. For that is beyond my coding skills. I ask this because I noticed some mistakes in the Dutch texts, which I help translating. These were easy to fix if I only had seen them earlier. In Transifex is is possible to miss things because you don't have the context of the game.

Alternatively it might be an idea to do a check at some point before release, maybe between the translation and string freeze. So that at least the typos can be corrected.

Link to post
Share on other sites

Yes, you can create a mod.

Create a folder and add a mod.json file in there. Or you could just download it from an existing mod and make small changes to it. e.g. from the "City Builder" mod on GitHub.

Your mod.json file should look like this, a more detailed explanation can be found here: wiki/Modding_Guide

{
	"name": "dutch_fix",
	"version": "1.0",
	"label": "Dutch typo mod",
	"description": "Fixing typos in the dutch language",
	"dependencies": ["0ad=0.0.24"]
}

Next you will need the .po files, which contain the text that will be displayed in the game. Download the files from here: trac.wildfiregames.com/browser

Create a folder called "l10n" and add all the files in it, that you have made changes to. It should look like this, you don't need all the Dutch files, just the ones you made changes to.

248049592_Screenshot2021-04-11at16_42_22.thumb.jpg.af1746a8f3189c2083a937d837db43a3.jpg

Add this folder to your 0AD mods folder  (see wiki/GameDataPaths) and enable the mod via the 0 A.D. "Mod Selection" page.

 1510927635_Screenshot2021-04-11at16_55_46.thumb.jpg.3d7dbb20d836ea54ac70171f28f774b9.jpg

Now the game will call the contents of your mod before it calls the contents of the game. If you did everything correctly, you should see your changes in the game.

1234.thumb.jpg.22d11b83d2b1f78a4083d70d19b08aa0.jpg

  • Like 1
Link to post
Share on other sites

Thank you. But this is already stretching the limits of my coding capabilities... I did everything correctly (as far as I can tell) but the mod does not show up in the mod selecter. When starting up  0 a.d. there is a Javascript error though. Any thoughts?

1477246709_Schermafbeelding2021-04-11om22_02_02.thumb.png.e62d88bb365723f10ad22d30afcc3454.png

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...