Change language of items?
Hello, I was wondering what is the other language codes and can I edit it ? when I try it it says like;
Unable to load ClearRepair. ClearRepair.cs(96,62): error CS1061: Type `Translate.Phrase' does not contain a definition for `spanish' and no extension method `spanish' of type `Translate.Phrase' could be found. Are you missing an assembly reference?​

I tried to edit the .cs file "english" to "spanish" and I couldn't figure it out, because when I use it even though I edit lang file, items are English. Is it possible ? what's the code ? thank you very much!
5e13a8d5b2bc5.jpg Wulf
You would edit as directed here: https://umod.org/plugins/clear-repair#localization

Items are client-side I believe, so not something you can translate.
Unfortunately doesnt work;

I have tried;

delete the en clearrepair.json and add into the tr file, unload and load the plugin, reload the plugin  didnt work. (created the default in en)
added the default config to en+tr and did all, didnt work.

maybe tr is not the answer,
Items aren't something you can change that I am aware of.
5e13a8d5b2bc5.jpg Wulf
Items aren't something you can change that I am aware of.
oh thanks for answer, I tried my best then :D
Which specifc things are you trying to translate?
5e13a8d5b2bc5.jpg Wulf
Which specifc things are you trying to translate?
For example

High quality metal
Metal Fragments

I want to translate these things, the objects.
That would require a few changes to handle that, as you'd have to create your own list based on itemAmount.itemDef.displayName.translated, and then use the translation instead of that.
5e13a8d5b2bc5.jpg Wulf
That would require a few changes to handle that, as you'd have to create your own list based on itemAmount.itemDef.displayName.translated, and then use the translation instead of that.

then I must define all the items required, its kind of a long shot. doesn't it have a code like = 

  itemName = ent.repair.itemTarget.displayName.english;

#to

  itemName = ent.repair.itemTarget.displayName.spanish;

how can I define another language ? im a newbie in c# :(
That isn't valid, the Rust server only has English natively.
5e13a8d5b2bc5.jpg Wulf
That isn't valid, the Rust server only has English natively.

oh, that's why its impossible :D I just can teach to plugin High Quality Metal text is "hello my friend" and when the plugin says you need high quality metal it will type down on the chat "hello my friend" :( so glad to hear answers from you!

 

It's not really intended for translations but you might be able to achieve this with the new customNames config option I recently added. Use the shortname without ".prefab" from https://www.corrosionhour.com/rust-prefab-list/ for the item you want to change.

 "customNames": {
    "minicopter.entity": "Minicopter",
    "rowboat": "Row Boat",
    "rhib": "RHIB",
    "scraptransporthelicopter": "Scrap Transport Helicopter"
  }​