Translation
You can translate everything in ItemsAdder, it's really easy.

Translate items

Translate ItemsAdder default items

If you want to translate IA default items you can, you just have to copy my dictionary and create your own.
  • open folder plugins\ItemsAdder\data\items_packs\dictionaries\ia_default_items
  • copy and paste the file en.yml
  • change dictionary-lang from en to your language identifier (example fr)
  • translate everything you want
  • open config.yml and set dictionaries-lang to your language identifier (example fr)
  • reload the plugin or restart the server

Create your own translation for your new items

To create your own translations for your own items (you won't likely need this, but if you want to share your items online in the future it would be better to make them translatable) you just have to create a new file wherever you want (I'd put it inside the dictionariesfolder for easier organization, but you can put anywhere inside items_packs).
This is how it looks like:
1
info:
2
namespace: special_items_lang
3
dictionary-lang: "fr"
4
dictionary:
5
display-name-my_sword: รฉpรฉe de saletรฉ
6
display-name-my_item: j'aime la baguette
Copied!
And this is how my items file looks like:
1
info:
2
namespace: special_items
3
items:
4
my_sword:
5
display_name: display-name-my_sword
6
permission: my_sword
7
resource:
8
material: DIAMOND_SWORD
9
generate: true
10
textures:
11
- item/my_sword.png
12
durability:
13
max_custom_durability: 1324
Copied!
As you can see I set the display_nameto "display-name-my_sword", this will tell IA to replace the text with text from the dictionary, so sword would be named "รฉpรฉe de saletรฉ".
You can skip the translation part and do this directly, but this won't allow you to easily translate items in the future if you need to.
1
info:
2
namespace: special_items
3
items:
4
my_sword:
5
display_name: "รฉpรฉe de saletรฉ"
6
permission: my_sword
7
resource:
8
material: DIAMOND_SWORD
9
generate: true
10
textures:
11
- item/my_sword.png
12
durability:
13
max_custom_durability: 1324
Copied!

Translate commands and messages

You just have to open lang folder and copy and paste en.yml, then translate it and change the lang setting in config.yml to your file name.
Last modified 2mo ago