Skip to content

Commit

Permalink
Most of the interface data has been translated into Chinese.
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxudong.mxudong committed May 31, 2022
1 parent 09bf348 commit bd0176b
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 67 deletions.
36 changes: 18 additions & 18 deletions bl3_save_edit_core/src/bl3_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ pub struct Bl3Part {

#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd, Display, EnumString)]
pub enum ItemType {
#[strum(serialize = "BPInvPart_Artifact_C", to_string = "Artifact")]
#[strum(serialize = "BPInvPart_Artifact_C", to_string = "神器")]
Artifact,
#[strum(serialize = "BPInvPart_ClassMod_C", to_string = "Class Mod")]
#[strum(serialize = "BPInvPart_ClassMod_C", to_string = "模组")]
ClassMod,
#[strum(serialize = "BPInvPart_GrenadeMod_C", to_string = "Grenade Mod")]
#[strum(serialize = "BPInvPart_GrenadeMod_C", to_string = "手榴弹模组")]
GrenadeMod,
#[strum(serialize = "BPInvPart_Shield_C", to_string = "Shield")]
#[strum(serialize = "BPInvPart_Shield_C", to_string = "护盾")]
Shield,
#[strum(to_string = "Weapon")]
#[strum(to_string = "枪械")]
Weapon,
#[strum(to_string = "Other")]
#[strum(to_string = "其他")]
Other,
}

Expand All @@ -170,26 +170,26 @@ pub enum ItemRarity {
#[strum(
serialize = "01/Common",
serialize = "01/Common (Starting Gear)",
to_string = "Common"
to_string = "一般"
)]
Common,
#[strum(serialize = "02/Uncommon", to_string = "Uncommon")]
#[strum(serialize = "02/Uncommon", to_string = "不一般")]
Uncommon,
#[strum(
serialize = "03/Rare",
serialize = "03/Rare E-Tech",
to_string = "Rare"
to_string = "稀缺"
)]
Rare,
#[strum(
serialize = "04/Very Rare",
serialize = "04/Very Rare E-Tech",
to_string = "Very Rare"
to_string = "非常稀缺"
)]
VeryRare,
#[strum(serialize = "05/Legendary", to_string = "Legendary")]
#[strum(serialize = "05/Legendary", to_string = "传奇")]
Legendary,
#[strum(serialize = "Named Weapon", to_string = "Unique Weapon")]
#[strum(serialize = "Named Weapon", to_string = "专属武器")]
NamedWeapon,
Unknown,
}
Expand All @@ -202,17 +202,17 @@ impl std::default::Default for ItemRarity {

#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Display)]
pub enum WeaponType {
#[strum(to_string = "Pistol")]
#[strum(to_string = "手枪")]
Pistol,
#[strum(to_string = "Shotgun")]
#[strum(to_string = "霰弹枪")]
Shotgun,
#[strum(to_string = "SMG")]
#[strum(to_string = "冲锋枪")]
Smg,
#[strum(to_string = "Assault Rifle")]
#[strum(to_string = "步枪")]
Ar,
#[strum(to_string = "Sniper")]
#[strum(to_string = "狙击枪")]
Sniper,
#[strum(to_string = "Heavy")]
#[strum(to_string = "重型武器")]
Heavy,
}

Expand Down
14 changes: 7 additions & 7 deletions bl3_save_edit_core/src/bl3_save/ammo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,37 @@ pub struct AmmoPoolData {
pub enum AmmoPool {
#[strum(
serialize = "/Game/GameData/Weapons/Ammo/Resource_Ammo_Grenade.Resource_Ammo_Grenade",
to_string = "Grenade"
to_string = "手榴弹"
)]
Grenade,
#[strum(
serialize = "/Game/GameData/Weapons/Ammo/Resource_Ammo_Pistol.Resource_Ammo_Pistol",
to_string = "Pistol"
to_string = "手枪"
)]
Pistol,
#[strum(
serialize = "/Game/GameData/Weapons/Ammo/Resource_Ammo_Shotgun.Resource_Ammo_Shotgun",
to_string = "Shotgun"
to_string = "霰弹枪"
)]
Shotgun,
#[strum(
serialize = "/Game/GameData/Weapons/Ammo/Resource_Ammo_SMG.Resource_Ammo_SMG",
to_string = "SMG"
to_string = "冲锋枪"
)]
Smg,
#[strum(
serialize = "/Game/GameData/Weapons/Ammo/Resource_Ammo_AssaultRifle.Resource_Ammo_AssaultRifle",
to_string = "AR"
to_string = "步枪"
)]
Ar,
#[strum(
serialize = "/Game/GameData/Weapons/Ammo/Resource_Ammo_Sniper.Resource_Ammo_Sniper",
to_string = "Sniper"
to_string = "狙击枪"
)]
Sniper,
#[strum(
serialize = "/Game/GameData/Weapons/Ammo/Resource_Ammo_Heavy.Resource_Ammo_Heavy",
to_string = "Heavy"
to_string = "重型武器"
)]
Heavy,
}
Expand Down
14 changes: 7 additions & 7 deletions bl3_save_edit_core/src/bl3_save/sdu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,39 @@ pub struct SaveSduSlotData {
pub enum SaveSduSlot {
#[strum(
serialize = "/Game/Pickups/SDU/SDU_Backpack.SDU_Backpack",
to_string = "Backpack"
to_string = "背包"
)]
Backpack,
#[strum(
serialize = "/Game/Pickups/SDU/SDU_SniperRifle.SDU_SniperRifle",
to_string = "Sniper"
to_string = "狙击枪"
)]
Sniper,
#[strum(
serialize = "/Game/Pickups/SDU/SDU_Shotgun.SDU_Shotgun",
to_string = "Shotgun"
to_string = "霰弹枪"
)]
Shotgun,
#[strum(
serialize = "/Game/Pickups/SDU/SDU_Pistol.SDU_Pistol",
to_string = "Pistol"
to_string = "手枪"
)]
Pistol,
#[strum(
serialize = "/Game/Pickups/SDU/SDU_Grenade.SDU_Grenade",
to_string = "Grenade"
to_string = "手榴弹"
)]
Grenade,
#[strum(serialize = "/Game/Pickups/SDU/SDU_SMG.SDU_SMG", to_string = "SMG")]
Smg,
#[strum(
serialize = "/Game/Pickups/SDU/SDU_AssaultRifle.SDU_AssaultRifle",
to_string = "AR"
to_string = "步枪"
)]
Ar,
#[strum(
serialize = "/Game/Pickups/SDU/SDU_Heavy.SDU_Heavy",
to_string = "Heavy"
to_string = "重型武器"
)]
Heavy,
}
Expand Down
2 changes: 1 addition & 1 deletion bl3_save_edit_core/src/game_data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2340,7 +2340,7 @@ pub const BALANCE_NAME_MAPPING: [GameDataKv; 774] = [
GameDataKv { ident: "/game/gear/weapons/shotguns/jakobs/_shared/_design/_unique/_legendary/garcia/balance/balance_sg_jak_garcia", name: "The Garcia" },
GameDataKv { ident: "/game/gear/weapons/shotguns/jakobs/_shared/_design/_unique/_legendary/hellwalker/balance/balance_sg_jak_hellwalker", name: "Hellwalker" },
GameDataKv { ident: "/game/gear/weapons/shotguns/jakobs/_shared/_design/_unique/_legendary/nimblejack/balance/balance_sg_jak_nimble", name: "Nimble Jack" },
GameDataKv { ident: "/game/gear/weapons/shotguns/jakobs/_shared/_design/_unique/_legendary/onepunch/balance/balance_sg_jak_onepunch", name: "One Pump Chump" },
GameDataKv { ident: "/game/gear/weapons/shotguns/jakobs/_shared/_design/_unique/_legendary/onepunch/balance/balance_sg_jak_onepunch", name: "单泵笨蛋" },
GameDataKv { ident: "/game/gear/weapons/shotguns/jakobs/_shared/_design/_unique/_legendary/sledge/balance/balance_sg_jak_lgd_sledge", name: "Sledge's Shotgun / Sledge's Super Shotgun" },
GameDataKv { ident: "/game/gear/weapons/shotguns/jakobs/_shared/_design/_unique/fingerbiter/balance/balance_sg_jak_fingerbiter", name: "Fingerbiter" },
GameDataKv { ident: "/game/gear/weapons/shotguns/jakobs/_shared/_design/_unique/thewave/balance/balance_sg_jak_unique_wave", name: "T.K.'s Wave + variants" },
Expand Down
10 changes: 5 additions & 5 deletions bl3_save_edit_ui/src/views/item_editor/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl Editor {
let item_level_editor = Row::new()
.push(
LabelledElement::create(
"Level",
"等级",
Length::Units(60),
Tooltip::new(
NumberInput::new(
Expand All @@ -92,7 +92,7 @@ impl Editor {
.size(17)
.style(Bl3UiStyle)
.into_element(),
format!("Level must be between 1 and {}", MAX_CHARACTER_LEVEL),
format!("等级必须在 1 和 {} 之间", MAX_CHARACTER_LEVEL),
tooltip::Position::Top,
)
.gap(10)
Expand All @@ -117,7 +117,7 @@ impl Editor {
.push(
Container::new(
LabelledElement::create(
"Serial",
"序列号",
Length::Units(85),
TextInput::new(
&mut self.serial_input_state,
Expand Down Expand Up @@ -208,7 +208,7 @@ impl Editor {
.push(
Container::new(
LabelledElement::create(
"Balance",
"平衡器",
Length::Units(130),
SearchablePickList::new(
&mut self.balance_input_state,
Expand Down Expand Up @@ -283,7 +283,7 @@ impl Editor {
.push(
Container::new(
LabelledElement::create(
"Manufacturer",
"制造商",
Length::Units(130),
SearchablePickList::new(
&mut self.manufacturer_input_state,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl ItemEditorListItem {
.push(
Button::new(
&mut self.duplicate_button_state,
Text::new("Duplicate")
Text::new("复制")
.font(ST_HEI_TI_LIGHT)
.size(16)
.horizontal_alignment(Horizontal::Center),
Expand All @@ -78,7 +78,7 @@ impl ItemEditorListItem {
.push(
Button::new(
&mut self.share_button_state,
Text::new("Share")
Text::new("分享")
.font(ST_HEI_TI_LIGHT)
.size(16)
.horizontal_alignment(Horizontal::Center),
Expand All @@ -93,7 +93,7 @@ impl ItemEditorListItem {
.push(
Button::new(
&mut self.delete_button_state,
Text::new("Delete")
Text::new("删除")
.font(ST_HEI_TI_LIGHT)
.size(16)
.horizontal_alignment(Horizontal::Center),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl ItemEditorLootlemonItem {
.push(
Button::new(
&mut self.import_button_state,
Text::new("Import Item")
Text::new("引用")
.font(ST_HEI_TI_LIGHT)
.size(16)
.horizontal_alignment(Horizontal::Center),
Expand All @@ -52,7 +52,7 @@ impl ItemEditorLootlemonItem {
.push(
Button::new(
&mut self.open_lootlemon_button_state,
Text::new("Open on Lootlemon ➜")
Text::new("Lootlemon 打开 ➜")
.font(ST_HEI_TI_LIGHT)
.size(16)
.horizontal_alignment(Horizontal::Center),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn view(item: &Bl3Item) -> Column<InteractionMessage> {
let mut tags_row = Row::new()
.push(
Container::new(
Text::new(format!("Level {}", item.level()))
Text::new(format!("等级 {}", item.level()))
.font(ST_HEI_TI_LIGHT)
.size(15),
)
Expand Down
16 changes: 8 additions & 8 deletions bl3_save_edit_ui/src/views/item_editor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ where
let serial_importer = Row::new()
.push(
LabelledElement::create(
"Import Serial",
"从序列号引用",
Length::Units(120),
Tooltip::new(
TextInputLimited::new(
Expand Down Expand Up @@ -1018,7 +1018,7 @@ where
.push(
Button::new(
&mut item_editor_state.import_serial_button_state,
Text::new("Import").font(ST_HEI_TI_LIGHT).size(17),
Text::new("引用").font(ST_HEI_TI_LIGHT).size(17),
)
.on_press(interaction_message(
ItemEditorInteractionMessage::ImportItemFromSerialPressed,
Expand All @@ -1032,7 +1032,7 @@ where
let create_item_button = Container::new(
Button::new(
&mut item_editor_state.create_item_button_state,
Text::new("Create Item").font(ST_HEI_TI_LIGHT).size(17),
Text::new("创建").font(ST_HEI_TI_LIGHT).size(17),
)
.on_press(interaction_message(
ItemEditorInteractionMessage::CreateItemPressed,
Expand All @@ -1046,7 +1046,7 @@ where
Row::new()
.push(
LabelledElement::create(
"All Levels",
"全部等级",
Length::Units(95),
Tooltip::new(
NumberInput::new(
Expand All @@ -1064,7 +1064,7 @@ where
.size(17)
.style(Bl3UiStyle)
.into_element(),
format!("Level must be between 1 and {}", MAX_CHARACTER_LEVEL),
format!("等级必须在 1 和 {} 之间。", MAX_CHARACTER_LEVEL),
tooltip::Position::Top,
)
.gap(10)
Expand All @@ -1080,7 +1080,7 @@ where
.push(
Button::new(
&mut item_editor_state.all_item_levels_button_state,
Text::new("Set").font(ST_HEI_TI_LIGHT).size(17),
Text::new("设置").font(ST_HEI_TI_LIGHT).size(17),
)
.on_press(interaction_message(
ItemEditorInteractionMessage::SetAllItemLevelsPressed,
Expand Down Expand Up @@ -1208,7 +1208,7 @@ where
{
curr = curr.push(
Container::new(
Text::new(format!("{}s", item_type.to_string()))
Text::new(format!("{}", item_type.to_string()))
.font(ST_HEI_TI_LIGHT)
.size(18)
.color(Color::from_rgb8(242, 203, 5)),
Expand Down Expand Up @@ -1308,7 +1308,7 @@ where
{
curr = curr.push(
Container::new(
Text::new(format!("{}s", item_type.to_string()))
Text::new(format!("{}", item_type.to_string()))
.font(ST_HEI_TI_LIGHT)
.size(18)
.color(Color::from_rgb8(242, 203, 5)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl AvailableParts {
});

let show_all_parts_checkbox =
Checkbox::new(self.show_all_available_parts, "Show All Parts", move |c| {
Checkbox::new(self.show_all_available_parts, "展示所有面板数据", move |c| {
interaction_message(
ItemEditorInteractionMessage::ShowAllAvailablePartsSelected(c),
)
Expand Down Expand Up @@ -346,7 +346,7 @@ impl AvailableParts {
} else {
available_parts_column = available_parts_column.push(
Container::new(
Text::new("No available parts or anointments found.")
Text::new("没有找到可用面板或受福。")
.font(ST_HEI_TI_LIGHT)
.size(17)
.color(Color::from_rgb8(220, 220, 220)),
Expand Down
4 changes: 2 additions & 2 deletions bl3_save_edit_ui/src/views/item_editor/parts/current_parts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ impl CurrentParts {
}
} else {
let msg = match self.parts_tab_type {
CurrentPartType::Parts => "This item has no parts.",
CurrentPartType::Anointments => "This item has no anointments.",
CurrentPartType::Parts => "当前装备没有面板数据。",
CurrentPartType::Anointments => "当前面板没有受福数据",
};

current_parts_content = current_parts_content.push(no_parts_message(msg));
Expand Down
Loading

0 comments on commit bd0176b

Please sign in to comment.