-
Notifications
You must be signed in to change notification settings - Fork 135
How to help translate
As of 1.8d, World Downloader supports foreign language translations. However, most languages don't have any translations yet. This article explains how to submit translations.
To get started with translating, you'll need to grab the current translation from this folder. Open one of those files (most likely, you'll want en_US.lang
), then right-click on the "raw" button and select "Save target as".
Rename this file to another one of the valid language file names, and then start translating!
At the top of the language file is an introduction to the syntax used. Basically, %s
or %d
is a piece of text that is later inserted - it will automatically be replaced as needed (either from something you translate later, or with a number, or with something that's already translated in normal Minecraft), and %n
is a new line. If you want to change the order of one of those pieces of text, you'll need to change %s
with %1$s
for the first one, %2$s
for the second, etc. (you can reference the same one twice this way).
It's relatively easy to test a translation, since it's based off of a separate file. You only need to create a resource pack and load that in game.
- Launch Minecraft
- Select options
- Select "Resource packs"
- Select "Open resource pack folder".
- In that folder, create a new folder, named
World Downloader Translation Test
. - In the folder you just created, make a file named
pack.mcmeta
. Open that file and paste in the following:{ "pack":{ "pack_format":1, "description":"World Downloader test translation" } }
- Save and close that file.
- Create a subfolder named
assets
. - Create a subfolder in that folder named
wdl
. - Create a subfolder in that subfolder named
lang
. - Copy your custom translation into the lang folder.
- Back in minecraft, close the resource packs GUI and quit to the title screen. (This step is partially an excuse to refresh this GUI and also to switch to the right language)
- Select the language button (the globe).
- Change to the language you want.
- Close the language screen and reopen the resource packs screen.
- Select the now-visible resource pack you created.
- Join a server. Your translations should now be displayed in-game!
If you make modifications to the translations file while Minecraft is running, you will need to reload the resource pack. You can reload it in-game by pressing F3 and T together. You'll know you did it correctly if you get a brief lag spike while all resource packs are reloaded.
Obviously, if you're more familiar with GitHub or Git in general, there are other ways of doing this. This is just one of the ways you can do this that should be easy if you're unfamiliar.
First off, you'll need to register a free GitHub.com account.
Then, go to the translations folder in the project (where you originally got en_US.lang
) and select "New file". This will automatically "Fork" the code and allow you to create your file. Paste in the contents of your translation file, and then submit a pull request.
Once you've created a pull request, I will review it and then merge it into the main code. The next time the mod is released, your translations will be included. Congratulations!
As a bonus, people who have submitted translations will get a custom cape visible to other users of the mod. The texture for this cape is a bit rough, so if you have any suggestions let me know!
Resources:
- Official forum thread for the World Downloader mod for Minecraft 1.16.1, 1.15.2, 1.14.4, 1.13.2, 1.12.2, 1.11.2, 1.10.2, 1.9.4, and 1.8.9
- Wiki index
- Issue tracker
World Downloader is licensed under the MMPLv2.
Various screens that are used in the mod
- Backup GUI
- Entities GUI
- Generator options GUI
- Messages GUI
- Multiworld GUIs
- Player overrides GUI
- World overrides GUI
Information on how World Downloader achieves various things, both technically and practically