From: "Yuri Chornoivan" <yurchor@ukr.net> To: "KDE russian translation mailing list" <kde-russian@lists.kde.ru> Subject: Re: [kde-russian] kompare Date: Tue, 03 May 2016 11:14:46 +0300 Message-ID: <op.ygvnuxxyl2zvei@mycomp.myhome> (raw) In-Reply-To: <3583441462234852@web19o.yandex.ru> написане Tue, 03 May 2016 03:20:52 +0300, Виктор <victorr2007@ya.ru>: > Доброй ночи! > > Видел, что потом откатили изменения, так как проблема уже была > исправлена ранее. > > Кстати, подсмотрел там возможное решение на будущее, которое уже > пригодилось в > kget, версия frameworks. > > https://quickgit.kde.org/?p=kget.git&a=shortlog&h=689797d9b3bff571da62fd84ce7886da81b06bdb > > Поэтому и пишу. > > Там пока не отображается перевод. > > Сделал такой патч (приложу к сообщению), и перевод начал работать. > > Что порадовало, теперь контекстное меню в диалогах открытия и сохранения > файлов > стало отображать перевод. > > Но вот в kget.cpp > > https://quickgit.kde.org/?p=kget.git&a=blob&h=945ad6e2739ebb6f317fc0e83307f000d1650878&hb=689797d9b3bff571da62fd84ce7886da81b06bdb&f=core%2Fkget.cpp > > строки > > addGroup(i18n("My Downloads")); > > остаются без перевода. > > Правда так было всегда в прошлом. > > Может есть возможность это исправить? Добрый день, Письмо Буркхарда Люка в ответ на изменения в коде Kompare (в результате я откатил их): This should be removed, it is unnecessary, the code already has: ./komparepart/CMakeLists.txt:1:#define TRANSLATION_DOMAIN "kompare" -> this loads the catalog for the library ./main.cpp:74: KLocalizedString::setApplicationDomain("kompare"); -> this loads the catalog for the application Kompare is fully translated in master + 16.04 here. Btw add_definitions(-DTRANSLATION_DOMAIN=\"foo\") is only for libraries, not for applications and breaks translation in rc files. Applications need a setApplicationDomain call in main.cpp early enough. Кроме того, KGet всё ещё остаётся основанным на kde4libs (не KF5). Думаю, в свете вышеизложенного, изменения должны быть несколько иными и в другой ветке (kf5_port). С уважением, Юрий > > 25.04.2016, 09:04, "Yuri Chornoivan" <yurchor@ukr.net>: > > написане Mon, 25 Apr 2016 04:15:43 +0300, Виктор <victorr2007@ya.ru>: > > Доброй ночи! > > В программе kompare-16.04.0 не работает перевод. > > Собрал пока себе пакет с добавлением в CMakeLists.txt строки > > add_definitions(-DTRANSLATION_DOMAIN=\"kompare\") > > С ней перевод работает. > > > Доброго утра, > > Исправлено. Спасибо. > > С уважением, > Ваше Спортлото > _______________________________________________ > kde-russian mailing list > kde-russian@lists.kde.ru > https://lists.kde.ru/mailman/listinfo/kde-russian
next prev parent reply other threads:[~2016-05-03 8:14 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-04-25 6:03 ` Yuri Chornoivan 2016-05-03 8:14 ` Yuri Chornoivan [this message] 2016-05-03 8:44 ` Vadim A. Misbakh-Soloviov 2016-05-03 8:50 ` Yuri Chornoivan
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=op.ygvnuxxyl2zvei@mycomp.myhome \ --to=yurchor@ukr.net \ --cc=kde-russian@lists.kde.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
рассылка русскоязычной группы пользователей и разработчиков KDE This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/kde-russian/0 kde-russian/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 kde-russian kde-russian/ http://lore.altlinux.org/kde-russian \ kde-russian@lists.kde.ru public-inbox-index kde-russian Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.kde-russian AGPL code for this site: git clone https://public-inbox.org/public-inbox.git