[][src]Macro rtr::rtr

macro_rules! rtr {
    ($($x:expr)?, $($arg:tt)*) => { ... };
}

Same as rtr but will format the text.
Will translate the first argument and then format with the others.

Example

#[macro_use]
extern crate rtr;
use rtr::*;
 
init("fr");
 
assert_eq!(rtr!("hello {} {}", "cruel".to_string(), "monde".to_string()), String::from("salut cruel monde"));