1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//! String representations for the user interface macro_rules! strings { ($($name:ident => $content:expr,)*) => ( $(pub const $name: &str = $content;)* ) } strings! { AUTHENTICATION_ERROR => "Authentication failed", INPUT_PASSWORD => "Password", INPUT_USERNAME => "Username", REQUEST_ERROR => "Failed to send request to server", RESPONSE_ERROR => "Failed to retrieve valid server response", TEXT_CONTENT => "Content", TEXT_LOGIN => "Login", TEXT_LOGOUT => "Logout", }