рассылка русскоязычной группы пользователей и разработчиков KDE
 help / color / mirror / Atom feed
From: "Андрей Черепанов" <cas@altlinux.ru>
To: KDE russian translation mailing list <kde-russian@lists.kde.ru>
Subject: Re: [kde-russian] конвертер .desktop<->po
Date: Fri, 15 Oct 2010 21:42:31 +0400
Message-ID: <201010152142.31612.cas@altlinux.ru> (raw)
In-Reply-To: <20101015182156.72cc4611@keeper.home.local>

15 октября 2010 Yuri Kozlov написал:
> Здравствуйте.
> 
> Накидал программку для конвертирования файлов .desktop в .pot и обратно.
> Порядок работы.
> 1. Создаём .pot
> ./desktop2po.lua .desktop-файл (или из стандартного ввода) > templates.pot
> 2. Создаём ru.po из templates.pot и переводим
> 3. Вставляем переводы обратно в .desktop
> ./po2desktop.lua ru.po .desktop-файл ru > результат.desktop
> 
> Минусы:
> не ловит ошибки
> не проверяет корректность формата входящих данных
> Что доделать:
> более правильная организация интерфейса командной строки?
> библиотека разбора .desktop и привязка lua к gettext
> 
> Всё это постараюсь сделать, если оно вообще кому-нибудь нужно.
Вот спасибо! Крайне желательно сделать возможность правки "по месту" (аналог 
sed -i). Протестирую и обязательно отпишусь. Я проверю, опакечу в ALT Linux и 
дам ссылку на Git.

-- 
Андрей Черепанов
ALT Linux
cas@altlinux.ru

  reply	other threads:[~2010-10-15 17:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-15 14:21 Yuri Kozlov
2010-10-15 17:42 ` Андрей Черепанов [this message]
2010-11-12 14:37 ` Андрей Черепанов
2010-11-12 15:13   ` Yuri Kozlov
2010-11-12 15:34     ` Андрей Черепанов
2010-11-12 18:07       ` Yuri Kozlov
2010-11-13 10:15         ` Андрей Черепанов
2010-11-13 10:30           ` Yuri Chornoivan
2010-11-13 11:10             ` Андрей Черепанов
2010-11-13 13:11               ` Yuri Chornoivan
2010-11-14 11:27                 ` Alexander Potashev

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=201010152142.31612.cas@altlinux.ru \
    --to=cas@altlinux.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