twine: update i18n usage

* update to use latest twain crate
* activate feature vor serialization, deserialization (consuming 'serde')
* use (t!) macro from twain crate consuming i18n.rs
* i18n.rs is compiled via build.rs from source
* update docu hint in translation source

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2021-06-11 12:59:59 +02:00
parent 5a21958325
commit dc463df476
3 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
###
# twine style translation source
# All translation keys must define language strings for used keys
###
[err_lang_not_found]
de = Konnte Sprachkode nicht auslesen
en = Couldn't read

View File

@@ -26,7 +26,7 @@
//! WIP: provide a workflow image
//!
// i18n: get the macro (t!) accessing translated strings
// i18n: get twine generated translation strings for macro (t!)
include!(concat!(env!("OUT_DIR"), "/i18n.rs"));
// /// The client specific services