--- wl-gammactl/src/main.c0 2025-07-23 17:44:28.509197242 +0300 +++ wl-gammactl/src/main.c 2025-07-23 17:42:17.352642420 +0300 @@ -1,5 +1,11 @@ #define _POSIX_C_SOURCE 200809L + +#include +#include // Должен быть самым первым (для корректной работы setlocale) +#include + + #include "wlr-gamma-control-unstable-v1-client-protocol.h" #include #include @@ -282,6 +288,13 @@ } int main(int argc, char *argv[]) { + // 1. Инициализация локализации (должна быть ДО gtk_init) + setlocale(LC_ALL, ""); + bindtextdomain("wl-gammactl", "/usr/share/locale"); + bind_textdomain_codeset("wl-gammactl", "UTF-8"); // Важно для корректного отображения + textdomain("wl-gammactl"); + + // init the list of outputs wl_list_init(&outputs);