general: Add translation infrastructure

This commit is contained in:
Christopher Davis 2022-08-05 18:54:04 -04:00
parent 58a77ec9fa
commit 1db46013d9
9 changed files with 260 additions and 13 deletions

View file

@ -18,6 +18,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
use crate::deps::*;
use crate::i18n::*;
use adw::subclass::prelude::*;
use glib::clone;
@ -375,8 +376,8 @@ impl LpImageView {
wallpaper::SetOn::Background,
)
.await {
Ok(_) => "Set as wallpaper.",
Err(_) => "Could not set wallpaper.",
Ok(_) => i18n("Set as wallpaper."),
Err(_) => i18n("Could not set wallpaper."),
};
view.activate_action(