switch name to i18n-helpers

This commit is contained in:
Marcel Märtens 2022-09-25 22:33:12 +02:00
parent ba260e8419
commit 7f46bc5b78
9 changed files with 21 additions and 21 deletions

24
Cargo.lock generated
View File

@ -6683,8 +6683,8 @@ dependencies = [
"veloren-common-state", "veloren-common-state",
"veloren-common-systems", "veloren-common-systems",
"veloren-network", "veloren-network",
"veloren-voxygen-chat-i18n",
"veloren-voxygen-i18n", "veloren-voxygen-i18n",
"veloren-voxygen-i18n-helpers",
] ]
[[package]] [[package]]
@ -7091,9 +7091,9 @@ dependencies = [
"veloren-common-systems", "veloren-common-systems",
"veloren-server", "veloren-server",
"veloren-voxygen-anim", "veloren-voxygen-anim",
"veloren-voxygen-chat-i18n",
"veloren-voxygen-egui", "veloren-voxygen-egui",
"veloren-voxygen-i18n", "veloren-voxygen-i18n",
"veloren-voxygen-i18n-helpers",
"veloren-world", "veloren-world",
"wgpu", "wgpu",
"wgpu-profiler", "wgpu-profiler",
@ -7114,16 +7114,6 @@ dependencies = [
"veloren-common-dynlib", "veloren-common-dynlib",
] ]
[[package]]
name = "veloren-voxygen-chat-i18n"
version = "0.10.0"
dependencies = [
"tracing",
"veloren-common",
"veloren-common-net",
"veloren-voxygen-i18n",
]
[[package]] [[package]]
name = "veloren-voxygen-egui" name = "veloren-voxygen-egui"
version = "0.9.0" version = "0.9.0"
@ -7154,6 +7144,16 @@ dependencies = [
"veloren-common-assets", "veloren-common-assets",
] ]
[[package]]
name = "veloren-voxygen-i18n-helpers"
version = "0.10.0"
dependencies = [
"tracing",
"veloren-common",
"veloren-common-net",
"veloren-voxygen-i18n",
]
[[package]] [[package]]
name = "veloren-world" name = "veloren-world"
version = "0.10.0" version = "0.10.0"

View File

@ -20,7 +20,7 @@ members = [
"server-cli", "server-cli",
"voxygen", "voxygen",
"voxygen/anim", "voxygen/anim",
"voxygen/chat-i18n", "voxygen/i18n-helpers",
"voxygen/i18n", "voxygen/i18n",
"voxygen/egui", "voxygen/egui",
"world", "world",

View File

@ -7,7 +7,7 @@ edition = "2021"
[features] [features]
simd = ["vek/platform_intrinsics"] simd = ["vek/platform_intrinsics"]
plugins = ["common-state/plugins"] plugins = ["common-state/plugins"]
bin_bot = ["common-ecs", "serde", "ron", "clap", "structopt", "rustyline", "common-frontend", "async-channel", "voxygen-chat-i18n", "voxygen-i18n"] bin_bot = ["common-ecs", "serde", "ron", "clap", "structopt", "rustyline", "common-frontend", "async-channel", "voxygen-i18n-helpers", "voxygen-i18n"]
tracy = ["common-base/tracy"] tracy = ["common-base/tracy"]
tick_network = [] tick_network = []
@ -37,7 +37,7 @@ authc = { git = "https://gitlab.com/veloren/auth.git", rev = "fb3dcbc4962b367253
#bot only #bot only
async-channel = { version = "1.6", optional = true } async-channel = { version = "1.6", optional = true }
common-ecs = { package = "veloren-common-ecs", path = "../common/ecs", optional = true } common-ecs = { package = "veloren-common-ecs", path = "../common/ecs", optional = true }
voxygen-chat-i18n = { package = "veloren-voxygen-chat-i18n", path = "../voxygen/chat-i18n", optional = true } voxygen-i18n-helpers = { package = "veloren-voxygen-i18n-helpers", path = "../voxygen/i18n-helpers", optional = true }
voxygen-i18n = { package = "veloren-voxygen-i18n", path = "../voxygen/i18n", optional = true } voxygen-i18n = { package = "veloren-voxygen-i18n", path = "../voxygen/i18n", optional = true }
serde = { version = "1.0", features = [ "rc", "derive" ], optional = true } serde = { version = "1.0", features = [ "rc", "derive" ], optional = true }
ron = { version = "0.8", default-features = false, optional = true } ron = { version = "0.8", default-features = false, optional = true }
@ -49,7 +49,7 @@ termcolor = { version = "1.1", optional = true }
common-frontend = { package = "veloren-common-frontend", path = "../common/frontend", optional = true } common-frontend = { package = "veloren-common-frontend", path = "../common/frontend", optional = true }
[dev-dependencies] [dev-dependencies]
voxygen-chat-i18n = { package = "veloren-voxygen-chat-i18n", path = "../voxygen/chat-i18n" } voxygen-i18n-helpers = { package = "veloren-voxygen-i18n-helpers", path = "../voxygen/i18n-helpers" }
voxygen-i18n = { package = "veloren-voxygen-i18n", path = "../voxygen/i18n" } voxygen-i18n = { package = "veloren-voxygen-i18n", path = "../voxygen/i18n" }
[[example]] [[example]]

View File

@ -11,7 +11,7 @@ use std::{
use tokio::runtime::Runtime; use tokio::runtime::Runtime;
use tracing::{error, info}; use tracing::{error, info};
use veloren_client::{addr::ConnectionArgs, Client, Event}; use veloren_client::{addr::ConnectionArgs, Client, Event};
use voxygen_chat_i18n::internationalisate_chat_message; use voxygen_i18n_helpers::internationalisate_chat_message;
const TPS: u64 = 10; // Low value is okay, just reading messages. const TPS: u64 = 10; // Low value is okay, just reading messages.

View File

@ -2825,7 +2825,7 @@ mod tests {
/// CONTACT @Core Developer BEFORE MERGING CHANGES TO THIS TEST /// CONTACT @Core Developer BEFORE MERGING CHANGES TO THIS TEST
fn constant_api_test() { fn constant_api_test() {
use common::clock::Clock; use common::clock::Clock;
use voxygen_chat_i18n::internationalisate_chat_message; use voxygen_i18n_helpers::internationalisate_chat_message;
const SPT: f64 = 1.0 / 60.0; const SPT: f64 = 1.0 / 60.0;

View File

@ -50,7 +50,7 @@ common-state = {package = "veloren-common-state", path = "../common/state"}
anim = {package = "veloren-voxygen-anim", path = "anim"} anim = {package = "veloren-voxygen-anim", path = "anim"}
i18n = {package = "veloren-voxygen-i18n", path = "i18n"} i18n = {package = "veloren-voxygen-i18n", path = "i18n"}
chat-i18n = {package = "veloren-voxygen-chat-i18n", path = "chat-i18n"} i18n-helpers = {package = "veloren-voxygen-i18n-helpers", path = "i18n-helpers"}
voxygen-egui = {package = "veloren-voxygen-egui", path = "egui", optional = true } voxygen-egui = {package = "veloren-voxygen-egui", path = "egui", optional = true }
# Graphics # Graphics

View File

@ -1,7 +1,7 @@
[package] [package]
authors = ["juliancoffee <lightdarkdaughter@gmail.com>"] authors = ["juliancoffee <lightdarkdaughter@gmail.com>"]
edition = "2021" edition = "2021"
name = "veloren-voxygen-chat-i18n" name = "veloren-voxygen-i18n-helpers"
description = "Crate for internalization and diagnostic of existing localizations." description = "Crate for internalization and diagnostic of existing localizations."
version = "0.10.0" version = "0.10.0"

View File

@ -3,7 +3,6 @@ use super::{
OFFLINE_COLOR, ONLINE_COLOR, REGION_COLOR, SAY_COLOR, TELL_COLOR, TEXT_COLOR, WORLD_COLOR, OFFLINE_COLOR, ONLINE_COLOR, REGION_COLOR, SAY_COLOR, TELL_COLOR, TEXT_COLOR, WORLD_COLOR,
}; };
use crate::{cmd::complete, settings::chat::MAX_CHAT_TABS, ui::fonts::Fonts, GlobalState}; use crate::{cmd::complete, settings::chat::MAX_CHAT_TABS, ui::fonts::Fonts, GlobalState};
use chat_i18n::internationalisate_chat_message;
use client::Client; use client::Client;
use common::comp::{group::Role, ChatMode, ChatMsg, ChatType}; use common::comp::{group::Role, ChatMode, ChatMsg, ChatType};
use conrod_core::{ use conrod_core::{
@ -19,6 +18,7 @@ use conrod_core::{
WidgetCommon, WidgetCommon,
}; };
use i18n::Localization; use i18n::Localization;
use i18n_helpers::internationalisate_chat_message;
use std::collections::{HashSet, VecDeque}; use std::collections::{HashSet, VecDeque};
widget_ids! { widget_ids! {