* Re: [kde-russian] Fwd: automatic translator for dolphin service menu .desktop files
@ 2015-02-27 16:19 ` Yuri Chornoivan
0 siblings, 0 replies; 3+ messages in thread
From: Yuri Chornoivan @ 2015-02-27 16:19 UTC (permalink / raw)
To: KDE russian translation mailing list
написане Fri, 27 Feb 2015 18:09:14 +0200, Juliette Tux
<juliette.tux@gmail.com>:
>> People in kde-i18n-doc will probably help you with the tools to
>> extract messages from .desktop files to a Gettext translation template
>> (a .pot file).
>
> Добрый день всем! А можно поподробнее о том, как это сделать, и, главное,
> как потом снова распихать строки по desktop-файлам? У нас есть старый
> баг с
> кучей непереведённых desktop-файлов, на который я каждый раз смотрю со
> вздохом ( http://bugs.rosalinux.ru/show_bug.cgi?id=273 ) .
Привет,
Ну, вот можно таким скриптом:
http://gitweb.mageia.org/software/i18n/tools/tree/desktop
Работает в один проход. Предназначен для простого тыканья мышкой. Легко
допопняется массовым git commit && git push.
(Ногами не бить — я не программист на Python.)
С уважением,
Юрий
> ---------- Forwarded message ----------
> From: Alexander Potashev <aspotashev@gmail.com>
> Date: 27 February 2015 at 18:50
> Subject: Re: automatic translator for dolphin service menu .desktop files
> To: kde-devel@kde.org, KDE i18n-doc <kde-i18n-doc@kde.org>
>
>
>> People in kde-i18n-doc will probably help you with the tools to
>> extract messages from .desktop files to a Gettext translation template
>> (a .pot file).
>
> --
> Alexander Potashev
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [kde-russian] Fwd: automatic translator for dolphin service menu .desktop files
@ 2015-02-28 0:40 ` Alexander Potashev
2015-02-28 7:02 ` Yuri Chornoivan
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Potashev @ 2015-02-28 0:40 UTC (permalink / raw)
To: KDE russian translation mailing list
Юра,
А почему нельзя было скрипты из Scripty использовать?
--
Alexander Potashev
---------- Forwarded message ----------
From: Albert Astals Cid <aacid@kde.org>
Date: 2015-02-28 2:14 GMT+03:00
Subject: Re: automatic translator for dolphin service menu .desktop files
To: kde-devel@kde.org
El Divendres, 27 de febrer de 2015, a les 14:58:03, Helmy va escriure:
> Hello,
> i have been looking before writing one if there was a tool out there that
> would automatically translate user text keys in Dolphin service menus or
> .desktop files in general to other languages using something like google
> translate API
You're aware that the tems of Google Translate most probably don't let
you release that translation under a Free License, right?
> or preferably a good offline translation, to help anyone
> writing a new service menu to offer multiple translations effortlessly
> especially when there are a lot of menu items
>
> i have searched for a while and couldn't find any
> in the case if there was none i would like to write one, can someone direct
> me to where i can find a full list of all the user text keys used by KDE
> inside .desktop files so they would only be translated
> so far what i have gathered by running grep -Er --include "*.desktop"
> "\[[a-zA-Z]+*\]=" on my system are the following keys
http://websvn.kde.org/trunk/l10n-kf5/scripts/createdesktopcontext.pl?view=markup
Creates a .po from a .desktop
http://websvn.kde.org/trunk/l10n-kf5/scripts/applycontext.cpp?view=markup
Merges it back
There's also a few helpers for those in the scripts folder.
Cheers,
Albert
>
> name
> GenericName
> Comment
> Description
> DateFormat
> DateFormatShort
> TimeFormat
> X-KDE-Submenu
> X-KDE-Keywords
> Keywords
> X-GNOME-FullName
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [kde-russian] Fwd: automatic translator for dolphin service menu .desktop files
2015-02-28 0:40 ` Alexander Potashev
@ 2015-02-28 7:02 ` Yuri Chornoivan
0 siblings, 0 replies; 3+ messages in thread
From: Yuri Chornoivan @ 2015-02-28 7:02 UTC (permalink / raw)
To: KDE russian translation mailing list
написане Sat, 28 Feb 2015 02:40:20 +0200, Alexander Potashev
<aspotashev@gmail.com>:
> Юра,
>
> А почему нельзя было скрипты из Scripty использовать?
>
Потому, что решение нишевое — оно отлично работает на месте, но адаптации
требует значительных усилий. Мы уже обсуждали это несколько лет назад с
г-ном Черепановым.
Достаточно посмотреть на /scripts/update_translations, чтобы понять, что
выпилить кусочек для обновления именно переводов desktop-файлов будет
довольно непростой задачей.
С уважением,
Юрий
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-28 7:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-27 16:19 ` [kde-russian] Fwd: automatic translator for dolphin service menu .desktop files Yuri Chornoivan
2015-02-28 0:40 ` Alexander Potashev
2015-02-28 7:02 ` Yuri Chornoivan
рассылка русскоязычной группы пользователей и разработчиков 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