Jump to content

language

Closed 2.0.17

NEXT
NEXT

Posted

I would like to have other languages available, not just English.

If you could enter sample code in the cs files,
I will change them.

Please consolidate the language fields for easier editing.

 

I'd like the language fields to be consolidated for easier editing.

Can I put everything in a protected override void LoadDefaultMessages()?

Sorry if we've already gathered together.


protected override void LoadDefaultMessages() { // **英語メッセージ** lang.RegisterMessages(new Dictionary<string, string> { ["Ingredient_MenuDescription"] = "A useful ingredient used to make more complex meals.", ["Woodcutting_Yield_MenuDescription"] = "Increases the amount of wood received by <color=#42f105>{0}%</color> when cutting trees and logs.", ["Mining_Yield_MenuDescription"] = "Increases the amount of ore received by <color=#42f105>{0}%</color> when mining any ore type.", ["Skinning_Yield_MenuDescription"] = "Increases the amount of animal products received by <color=#42f105>{0}%</color> when skinning animals.", ["Heal_Share_MenuDescription"] = "Heals those around you for <color=#42f105>{0}%</color> of the healing you receive.", ["Heal_MenuDescription"] = "Instantly heals you for <color=#42f105>{0}%</color> of your maximum health.", ["Food_Share_MenuDescription"] = "Shares your food with nearby players, providing them with <color=#42f105>{0}%</color> of the calories that you consume." }, this); // **日本語メッセージ** lang.RegisterMessages(new Dictionary<string, string> { ["Ingredient_MenuDescription"] = "より複雑な料理を作るための便利な材料です。", ["Woodcutting_Yield_MenuDescription"] = "木や丸太を切る際に得られる木材の量を <color=#42f105>{0}%</color> 増加させます。", ["Mining_Yield_MenuDescription"] = "鉱石を採掘する際に得られる鉱石の量を <color=#42f105>{0}%</color> 増加させます。", ["Skinning_Yield_MenuDescription"] = "動物の皮を剥ぐ際に得られるアイテムの量を <color=#42f105>{0}%</color> 増加させます。", ["Heal_Share_MenuDescription"] = "受けた回復効果の <color=#42f105>{0}%</color> を周囲のプレイヤーに共有します。", ["Heal_MenuDescription"] = "最大体力の <color=#42f105>{0}%</color> を即座に回復します。", ["Food_Share_MenuDescription"] = "食べたカロリーの <color=#42f105>{0}%</color> を周囲のプレイヤーに共有します。" }, this, "ja"); }

imthenewguy

Posted

10 hours ago, NEXT said:

I would like to have other languages available, not just English.

If you could enter sample code in the cs files,
I will change them.

Please consolidate the language fields for easier editing.

 

I'd like the language fields to be consolidated for easier editing.

Can I put everything in a protected override void LoadDefaultMessages()?

Sorry if we've already gathered together.


protected override void LoadDefaultMessages() { // **英語メッセージ** lang.RegisterMessages(new Dictionary<string, string> { ["Ingredient_MenuDescription"] = "A useful ingredient used to make more complex meals.", ["Woodcutting_Yield_MenuDescription"] = "Increases the amount of wood received by <color=#42f105>{0}%</color> when cutting trees and logs.", ["Mining_Yield_MenuDescription"] = "Increases the amount of ore received by <color=#42f105>{0}%</color> when mining any ore type.", ["Skinning_Yield_MenuDescription"] = "Increases the amount of animal products received by <color=#42f105>{0}%</color> when skinning animals.", ["Heal_Share_MenuDescription"] = "Heals those around you for <color=#42f105>{0}%</color> of the healing you receive.", ["Heal_MenuDescription"] = "Instantly heals you for <color=#42f105>{0}%</color> of your maximum health.", ["Food_Share_MenuDescription"] = "Shares your food with nearby players, providing them with <color=#42f105>{0}%</color> of the calories that you consume." }, this); // **日本語メッセージ** lang.RegisterMessages(new Dictionary<string, string> { ["Ingredient_MenuDescription"] = "より複雑な料理を作るための便利な材料です。", ["Woodcutting_Yield_MenuDescription"] = "木や丸太を切る際に得られる木材の量を <color=#42f105>{0}%</color> 増加させます。", ["Mining_Yield_MenuDescription"] = "鉱石を採掘する際に得られる鉱石の量を <color=#42f105>{0}%</color> 増加させます。", ["Skinning_Yield_MenuDescription"] = "動物の皮を剥ぐ際に得られるアイテムの量を <color=#42f105>{0}%</color> 増加させます。", ["Heal_Share_MenuDescription"] = "受けた回復効果の <color=#42f105>{0}%</color> を周囲のプレイヤーに共有します。", ["Heal_MenuDescription"] = "最大体力の <color=#42f105>{0}%</color> を即座に回復します。", ["Food_Share_MenuDescription"] = "食べたカロリーの <color=#42f105>{0}%</color> を周囲のプレイヤーに共有します。" }, this, "ja"); }

You do not edit language directly in the .cs file.

You edit it via lang.

https://docs.oxidemod.com/guides/owners/localization

NEXT

Posted

thank you

 

imthenewguy

Posted

Changed Status from Pending to Closed

1.7m

Downloads

Total number of downloads.

7.8k

Customers

Total customers served.

117.5k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.