From: Yuri Kozlov <yuray@komyakino.ru> To: kde-russian@lists.kde.ru Subject: Re: [kde-russian] Локализация файлов .desktop Date: Fri, 8 Oct 2010 15:35:17 +0400 Message-ID: <20101008153517.35bae795@keeper.home.local> (raw) In-Reply-To: <E1P4AUi-000Cpm-1W@ffe11.ukr.net> В Fri, 08 Oct 2010 13:48:08 +0300 "Yuri Chornoivan" <yurchor@ukr.net> пишет: > > В Thu, 7 Oct 2010 19:59:47 +0400 > > Андрей Черепанов <cas@altlinux.ru> пишет: > > > > > Два года назад я столкнулся с проблемой простого вытаскивания > > > переводимых строк из .desktop-файлов. В KDE был для этого > > > полуторотысячестрочная программа на C. Вопрос: есть ли скрипты > > > аналогичные xml2pot/po2xml для .desktop? > > > > Интересный вопрос, как оказалось. intltool для всего. > > А велосипедистов в лес. :) > > http://www.redhat.com/magazine/013nov05/features/freedesktop/ > > Раз уж пошёл оффтоп, то фантастический intltool уже научился извлекать > контекст из файлов desktop? Продолжает лепить одну большую кучу, собрать > которую можна лишь полной сборкой программы (привет, Inkscape)? ;) Попробовал: mkdir test cd test cp /usr/share/applications/htop.desktop htop.desktop.in vi htop.desktop.in (ставим в начало переводимых строк подчёркивания) mkdir po cd po vi POTFILES.in (добавляем строку htop.desktop.in) intltool-update --pot --gettext-package=htop cat htop.pot # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2010-10-08 14:30+0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: ../htop.desktop.in.h:1 msgid "Application" msgstr "" #: ../htop.desktop.in.h:2 msgid "Process Viewer" msgstr "" #: ../htop.desktop.in.h:3 msgid "Show System Processes" msgstr "" Что ещё нужно? > Монстрокомбайны — в топку. :) +1. -- Best Regards, Yuri Kozlov
next prev parent reply other threads:[~2010-10-08 11:35 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-10-07 15:59 Андрей Черепанов 2010-10-07 16:12 ` Yuri Chornoivan 2010-10-07 16:24 ` Yuri Chornoivan 2010-10-07 17:16 ` Андрей Черепанов 2010-10-08 10:32 ` Yuri Kozlov 2010-10-08 10:48 ` Yuri Chornoivan 2010-10-08 11:35 ` Yuri Kozlov [this message] 2010-10-08 11:55 ` Yuri Chornoivan 2010-10-08 12:23 ` Андрей Черепанов 2010-10-08 13:06 ` Yuri Kozlov 2010-10-08 14:37 ` Yuri Chornoivan 2010-10-11 14:46 ` Yuri Kozlov 2010-10-11 14:48 ` Андрей Черепанов 2010-10-11 14:49 ` Yuri Chornoivan 2010-10-11 15:12 ` Yuri Kozlov 2010-10-11 15:54 ` Андрей Черепанов 2010-10-12 17:24 ` Yuri Kozlov 2010-10-12 19:56 ` Andrey Rahmatullin 2010-10-08 12:33 ` 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=20101008153517.35bae795@keeper.home.local \ --to=yuray@komyakino.ru \ --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