Fixes Patches Creation & More
Working with files / Paths fixed Websocket PingPongs (There is no data behind this just PingPong) Storing User Profiles correctly Added necessary dependencies and initial code support for: - X.509 certificate handling via x509/pkcs8 crates - Key generation and crypto operations via x448/sha2 - Structured hex encoding and base64 encoding
This commit is contained in:
parent
bba3f548ab
commit
0d07ddf851
23 changed files with 887 additions and 266 deletions
58
src/langu/language_creator.rs
Normal file
58
src/langu/language_creator.rs
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
use crate::util::file_util::{self, save_file};
|
||||
use json::{self, JsonValue};
|
||||
|
||||
pub fn create_languages() {
|
||||
let mut frontend_messages = JsonValue::new_object();
|
||||
let mut omikron_messages = JsonValue::new_object();
|
||||
let mut button_texts = JsonValue::new_object();
|
||||
let mut general_texts = JsonValue::new_object();
|
||||
let mut debug_messages = JsonValue::new_object();
|
||||
|
||||
// FRONTEND
|
||||
frontend_messages.insert(
|
||||
"USER_CONTEXT_GET_CONVERSATIONS",
|
||||
"User {} is loading conversations",
|
||||
);
|
||||
frontend_messages.insert(
|
||||
"USER_CONTEXT_GET_COMMUNITIES",
|
||||
"User {} is loading communities",
|
||||
);
|
||||
frontend_messages.insert("ADD_CONVERSATION", "User {} added {}");
|
||||
|
||||
// OMIKRON
|
||||
omikron_messages.insert(
|
||||
"IdentificationResponse",
|
||||
"IOTA identified on Omikron, {} users!",
|
||||
);
|
||||
|
||||
// BUTTONS
|
||||
button_texts.insert("EXIT", "Exit");
|
||||
|
||||
// GENERAL
|
||||
general_texts.insert("IOTA_ID", "IOTA ID: {}-####-####-####-############");
|
||||
general_texts.insert("USER_ID", "USER ID: {}");
|
||||
general_texts.insert("USER_IDS", "USER IDS: {}");
|
||||
|
||||
// DEBUG
|
||||
debug_messages.insert("", "");
|
||||
save_file(
|
||||
"languages/en_INT",
|
||||
"frontend.json",
|
||||
&frontend_messages.to_string(),
|
||||
);
|
||||
save_file(
|
||||
"languages/en_INT",
|
||||
"omikron.json",
|
||||
&omikron_messages.to_string(),
|
||||
);
|
||||
save_file(
|
||||
"languages/en_INT",
|
||||
"buttons.json",
|
||||
&button_texts.to_string(),
|
||||
);
|
||||
save_file(
|
||||
"languages/en_INT",
|
||||
"debug.json",
|
||||
&debug_messages.to_string(),
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue