diff options
Diffstat (limited to 'src/i18n.rs')
| -rw-r--r-- | src/i18n.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i18n.rs b/src/i18n.rs index 1c574e0..35955a1 100644 --- a/src/i18n.rs +++ b/src/i18n.rs @@ -16,7 +16,7 @@ //! Internationalization support using gettext. -use gettextrs::{bindtextdomain, setlocale, textdomain, LocaleCategory}; +use gettextrs::{LocaleCategory, bindtextdomain, setlocale, textdomain}; /// The gettext domain for the application. pub const GETTEXT_DOMAIN: &str = "systems.tranquil.Map"; @@ -43,7 +43,7 @@ pub fn init() { } } - textdomain(GETTEXT_DOMAIN).expect("Failed to set gettext domain"); + textdomain(GETTEXT_DOMAIN).ok(); } /// Macro for translating strings at runtime. |