TerraCustom icon indicating copy to clipboard operation
TerraCustom copied to clipboard

Chinese Translation

Open JethroSovr opened this issue 6 years ago • 13 comments

We want to use this software and make easier to users. Translating to other language, but so many labels use English in the CS files, I translate the words, and want to make a new "Terraria.exe" THX very much~~~

JethroSovr avatar Nov 01 '17 10:11 JethroSovr

Making separate exe just for new languages sounds like a bad idea. I can implement something like what we do for tModLoader: https://github.com/blushiemagic/tModLoader/blob/master/patches/tModLoader/Terraria.Localization.Content.zh-Hans.tModLoader.json

Would you be interested in providing a translation? Which language?

JavidPack avatar Nov 01 '17 11:11 JavidPack

e... i want to change this cs file:https://github.com/JavidPack/TerraCustom/blob/master/patches/TerraCustom/Terraria.TerraCustom/Interface.cs Would you help me ?

JethroSovr avatar Nov 01 '17 11:11 JethroSovr

I will make translation files you can populate, as I showed earlier. in a few days maybe.

JavidPack avatar Nov 01 '17 18:11 JavidPack

THX very much~ How to change language to others by using this json file, i didnt find the option, or it can recognize the language of system ? And auto change to my language?

JethroSovr avatar Nov 02 '17 01:11 JethroSovr

I have to write some code, then you'll make a translation file, then I'll release a new version.

Please tell me what language

JavidPack avatar Nov 02 '17 05:11 JavidPack

Hi, we want to translate to simplified Chinese. Could please share me a translation file to work on? Or how can we share the translated text to you? Thanks~

Ray0210 avatar Nov 02 '17 06:11 Ray0210

K, I've hooked up a few translations, please translate the values in this: https://github.com/JavidPack/TerraCustom/blob/master/patches/TerraCustom/Terraria.Localization.Content.en-US.TerraCustom.json

If you are comfortable with github, you can make a pull request with your translations in a file in that folder named "Terraria.Localization.Content.zh-Hans.TerraCustom.json" for Chinese. Otherwise, you can just post here and I'll bring them into the code.

After that, I can post a new release and you can tell me what is left untranslated.

JavidPack avatar Nov 02 '17 21:11 JavidPack

We have finished the translation. I noticed that there are some more details in the main menu to be translated. I think I can help to translate the whole main menu for you. Can you share the json for me to work on? Thank you ~ And the translations are as follows: { "TerraCustom": { // Tips: // use vanilla translations: {$GameUI.Enabled} Disabled, CLI.Yes, etc // use {0} etc to interpolate values

	// Common
	"Reset": "重置",
	// "Settings": "{$LegacyMenu.14}",

	// Main Menu
	"ResetAll": "重置所有设置",
	"ReloadtModLoaderMods": "重新载入插件",
	"Terrain": "地形设置",
	"Ores": "矿物种类",
	"OreAmount": "矿物含量",
	"GraphicStyles": "图形设置",
	"Backgrounds": "地形背景",
	"Miscellaneous": "其他参数",
	"ChallengeOptions": "挑战设置",
	"MicroBiomes": "微生态设置",
	"Traps": "陷阱设置",
	"VariousSpawns": "特殊生成",
	"DownedBossesFoundNPCs": "已击败BOSS/已发现NPC",
	"Chests": "宝箱设置",
	"SaveLoadSettings": "保存/加载设置",
	"Debug": "调试",
	"AreYouSureResetAllSettings": "确定重置所有设置?",


	// Downed Found Menu
	"DownedBosses": "已击败BOSS",
	"FoundNPCs": "已发现NPC",
	"Downed": "已击败",
	"Found": "已发现",

	// Backgrounds Menu
	"SurfaceBackgrounds": "地表环境背景",
	"UndergroundBackgrounds": "地下环境背景",

	// Challenge Option Menu
	"NoTree": "没有树木",
	"NoDungeon": "没有地牢",
	"NoTemple": "没有蜥蜴神庙",
	"NoSpiderCave": "没有蜘蛛洞穴",
	"NoHive": "没有蜂巢",
	"NoSnow": "没有雪地",
	"NoJungle": "没有丛林",
	"NoAnthill": "没有蚁穴",
	"NoBeaches": "没有海洋",
	"NoPot": "没有陶罐",
	"NoChest": "没有宝箱",
	"NoAltar": "没有血腥/恶魔祭坛",
	"NoOrbOrHeart": "没有血腥心脏/暗影球",
	"NoUnderworld": "没有地狱",

	// Not used. Unless we need different order than Reset + noun + Settings?
	//"ResetChallengeOptions": "{$TerraCustom.Reset} {$TerraCustom.ChallengeOptions} {$TerraCustom.Settings}",
	//"ResetChests": "{$TerraCustom.Reset} {$TerraCustom.Chests} {$TerraCustom.Settings}",

	// TODO others
}

}

Ray0210 avatar Nov 03 '17 02:11 Ray0210

TerraCustomDebug.zip

Here is the changes so far. There are a lot of places with text, so it's a lot of work changing things to work with translations. Look at how it is so far and let me know the priority menus that need other translation items.

JavidPack avatar Nov 05 '17 21:11 JavidPack

We have finished the translations, but there is a small problem. I don't know what the "Terraria Leveled mod" in the debug menu refers to. Can you explain that for me? And I'm wondering when can we get the Chinese version? Thank you! And the translations are as blow:

// Choose world size Menu "Keep Previous Custom Size": "保持预设地图大小", "Load Autosaved Config": "载入自动保存的地图配置",

// Terrain Menu "set to 100% for default behavior": "默认设置100%", "Surface Height Variance": "地势起伏", "Surface Upper Limit": "地表上限", "Surface Lower Limit": "地表下限", "Bypass Spawn Area Flatness": "随设置调整出生点地形", "Beach Size": "海洋大小", "Dungeon Size": "地牢大小", "Temple Size": "蜥蜴神庙大小", "Surface Tunnels": "地表隧道", "Lakes": "湖泊数量", "World Width": "地图宽度", "World Height": "地图高度",

// Ores Menu "Also check 'Ore Amount' option to get both hardmode ores": "同时检查'矿物含量'设定获得两种设置下的矿物", "Copper/Tin": "铜矿/锡矿", "Iron/Lead": "铁矿/铅矿", "Silver/Tungsten": "银矿/钨金矿", "Gold/Platinum": "金矿/铂金矿", "Cobalt/Palladium": "钴蓝矿/钯金矿", "Mythril/Orichalcum": "秘银矿/山铜矿", "Adamantite/Titanium": "精金矿/钛金矿",

// OreAmount Menu "setting 100% will generate default amount of ores": "设置100%将会生成默认数量的矿石", "Copper/Tin": "铜矿/锡矿", "Iron/Lead": "铁矿/铅矿", "Silver/Tungsten": "银矿/钨金矿", "Gold/Plainum": "金矿/铂金矿", "Demonite/Crimtane": "魔矿/猩红矿", "Hellstone": "狱石", "Option to generate alternate hardmode ores in the beginning": "在游戏开始时设置新三矿生成含量", "Generate none": "无新三矿生成", "Generate a little": "少量新三矿生成", "Generate medium amount": "中量新三矿生成", "Generate a lot": "大量新三矿生成", "Same amuount as smashing 0 altars": "粉碎血腥/恶魔祭坛数量", "PreSmash Altars generates both sets of ores": "粉碎血腥/恶魔祭坛同时产生两种新矿石", "PreSmash Altars prevent random Corruption/Crimson/Hallow patch spawn": "粉碎血腥/恶魔祭坛是否生成神圣/腐化/血腥之地",

// GraphicStyles Menu "Moon Style": "月球样式", "Tree Style Far Left": "地图最左侧树木样式", "Tree Style Left": "地图左侧树木样式", "Tree Style Right": "地图右侧树木样式", "Tree Style Far Right": "地图最右侧树木样式", "Dungeon Color": "地牢颜色", "Moss Color Left": "地图左侧苔藓颜色", "Moss Color Middle": "地图中部苔藓颜色", "Moss Color Right": "地图右侧苔藓颜色", "Jungle Shrines": "丛林宝箱附近砖块类型", "Random": "随机", "Iridescent Bricks": "荧光砖", "Mudstone Blocks": "泥石砖", "Rich Mahogany": "红木", "Tin Brick": "锡砖", "Gold Brick": "金砖", "Mix": "混合",

// SurfaceBackgrounds Menu "Forest Background": "森林环境背景", "Corrupt Background": "腐化环境背景", "Jungle Background": "丛林环境背景", "Snow Background": "雪地环境背景", "Hallow Background": "神圣环境背景", "Crimson Background": "血腥环境背景", "Desert Background": "沙漠环境背景", "Ocean Background": "海洋环境背景",

// UnderBackgrounds Menu "Ice Background": "冰窟环境背景", "Hell Background": "地狱环境背景", "Jungle Background": "丛林环境背景", "Cave Background Far Left": "地下洞穴最左侧背景", "Cave Background Left": "地下洞穴左侧背景", "Cave Background Right": "地下洞穴右侧背景", "Cave Background Far Right": "地下洞穴最右侧背景",

// Miscellaneous Menu "Corruption/Crimson": "腐化/血腥之地设置", "Force Corruption/Crimson Avoid Jungle Side": "防止腐化/血腥之地和丛林环境同侧", "Force Corruption/Crimson Separate Sides": "腐化/血腥之地不生成在同侧", "Corruption Biomes": "腐化之地数量", "Crimson Biomes": "血腥之地数量", "Dungeon Side": "地牢位置", "Hardmode": "困难模式(击败血肉之墙)", "Spawn Hardmode stripes(if Hardmode is Yes)": "是否生成困难模式地形(如果选择困难模式需选择是)", "Pyramids": "金字塔设置", "Giant Trees": "世界树设置", "Force Enchanted Sword Shrine Real": "强制设置石中剑是真剑",

// MicroBiomes Menu "setting 100% will generate default amount of biomes": "设置100%将生成默认数量的生态环境", "Enchanted Sword": "石中剑数量", "Campsite": "野营地数量", "Thin Ice": "薄冰数量", "Sky Islands": "空岛数量", "Minecart Tracks": "矿道设置", "Spider Caves": "蜘蛛洞数量", "Granite Caves": "花岗岩洞穴数量", "Marble Caves": "大理石洞穴数量", "Underground Cabins": "地下房间数量", "Gemstones(non-cave)": "宝石数量", "Gemstone Caves": "宝石洞穴数量", "Gemstone Cave Size": "宝石洞穴大小", "Hives": "蜂巢数量",

// Traps Menu "Mining Explosive(Detonator)": "采矿炸药(雷管)", "Traps(Dart,Explosive,Boulder)": "陷阱(毒箭、炸弹、落石)总量", "Additional Dart Traps": "额外的毒箭陷阱数量", "Additional Boulder Traps": "额外的落石陷阱数量", "Additional Explosive Traps": "额外的炸弹陷阱数量", "Additional Geyser Traps": "额外的喷泉陷阱数量", "Temple Traps": "蜥蜴神庙陷阱",

// VariousSpawns Menu "setting 100% will generate default amount": "设置100%将生成默认设置", "Crystal Hearts": "生命水晶数量", "Pre-Drop Meteor": "掉落陨石数量", "Tree Lower Bound": "树木最低高度", "Tree Upper Bound": "树木最高高度", "Mushroom Biomes": "夜光蘑菇地数量", "Statues": "雕像数量",

// Cheste Menu "set to 100% for default behavior": "设置100%将生成默认数量", "Esimated 882 chests": "预计有882个宝箱", "Biome Chest Sets": "地牢特殊宝箱套数", "Pots": "陶罐数量", "Jungle Shrines": "丛林宝箱数量", "Living Mahogany Trees": "地下大红木树数量", "Water Chests": "水中宝箱数量", "Surface Chests": "地表宝箱数量", "Temple Chests": "蜥蜴神庙宝箱数量", "Shadow Chests": "暗影宝箱数量",

// SaveLoadSettings Menu "Saved Setings": "保存参数设置", "Enable this List": "启用设置", "Delete this List": "删除设置", "Back": "返回", "Save Current Settings as New": "当前设置另存为",

// Debug Menu "Save World After Each Step": "每次调整时保存", "Save World in tModLoader Folder": "地图保存在插件文件夹", "Save World for the Terraria Leveled mod": "", "Terraria Leveled mod Critical Mode": "",

Ray0210 avatar Nov 06 '17 05:11 Ray0210

K, I'll work on those. " Terraria Leveled mod" is just another mod, you don't need to translate that.

You should have seen Chinese when you opened what I posted earlier if your vanilla Terraria config.json was set to chinese.

image

JavidPack avatar Nov 06 '17 05:11 JavidPack

Sometimes can't create maps, like 5%small dungeons, for what reason?

jieruichen avatar Nov 10 '17 02:11 jieruichen

Alright, I've released 0.5.3 with these translations. Feel free to get back to me on anything missing. I left one of the menus unchanged for now because it is a big pain to fix at the moment.

JavidPack avatar Feb 12 '18 10:02 JavidPack