рассылка русскоязычной группы пользователей и разработчиков 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, 12 Nov 2010 18:34:59 +0300
Message-ID: <201011121834.59866.cas@altlinux.ru> (raw)
In-Reply-To: <20101112181313.107303a6@keeper.home.local>

12 ноября 2010 Yuri Kozlov написал:
> В Fri, 12 Nov 2010 17:37:40 +0300
> 
> Андрей Черепанов <cas@altlinux.ru> пишет:
> > 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
> > > 
> > > Всё это постараюсь сделать, если оно вообще кому-нибудь нужно.
> > 
> > Хорошо было бы:
> > 1. Включать имена файлов и номера строк в комментарии
> 
> Ага.
> 
> > 2. Шерстить сразу несоклько файлов
> 
> Не для этой программы. Либо к ней обёртку, либо через Makefile/Jamfile.
> Или имелось в виду, что нужно из нескольких .desktop-файлов сделать один
> templates.pot? Зачем?
Жаль. msgcat такой кривой!
 
> > 3. Переписать на Python/Perl (чтобы не доустанавливать Lua).
> 
> 150КБ совсем немного, но можно и на Python.
Было бы здорово.

Я ещё протестирую.

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

  reply	other threads:[~2010-11-12 15:34 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 ` Андрей Черепанов
2010-11-12 14:37 ` Андрей Черепанов
2010-11-12 15:13   ` Yuri Kozlov
2010-11-12 15:34     ` Андрей Черепанов [this message]
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=201011121834.59866.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