diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-12 14:29:38 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-12 14:29:38 +0200 |
| commit | 88d45641e8c06936635034cd83c8c7df1bd59439 (patch) | |
| tree | 04bb5c3f83f68edb021b09876242c6493683ebb2 /app/src/main.cpp | |
| parent | 0e2b0878e4c344d1fdbadfb37350bded783789f3 (diff) | |
| download | turns-88d45641e8c06936635034cd83c8c7df1bd59439.tar.xz turns-88d45641e8c06936635034cd83c8c7df1bd59439.zip | |
turns: add basic i18n
Diffstat (limited to 'app/src/main.cpp')
| -rw-r--r-- | app/src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main.cpp b/app/src/main.cpp index dd23c82..d7fadc7 100644 --- a/app/src/main.cpp +++ b/app/src/main.cpp @@ -1,9 +1,15 @@ #include "turns/app/application.hpp" #include <adwaita.h> +#include <glibmm/i18n.h> auto main(int argc, char * argv[]) -> int { + setlocale(LC_ALL, ""); + bindtextdomain("turns", LOCALEDIR); + bind_textdomain_codeset("turns", "UTF-8"); + textdomain("turns"); + adw_init(); auto app = turns::app::application::create(); |
