'wrong layout' plugin added
This commit is contained in:
34
wrong_layout/po/Makefile
Normal file
34
wrong_layout/po/Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
PYFILES = $(shell find ../ -type f -name "*.py")
|
||||
GLADEFILES = $(wildcard ../*.ui)
|
||||
POFILES = $(wildcard *.po)
|
||||
|
||||
GLADEHFILES := $(GLADEFILES:.ui=.ui.h)
|
||||
|
||||
help:
|
||||
@echo "USAGE:"
|
||||
@echo "make update - updates messages.pot and .po files"
|
||||
@echo "make sr.po - updates sr.po file OR creates new one"
|
||||
@echo " (replace 'sr' with your language code)"
|
||||
|
||||
%.h: %
|
||||
intltool-extract --type="gettext/glade" $*
|
||||
|
||||
|
||||
messages.pot: $(GLADEHFILES) $(PYFILES)
|
||||
xgettext -k_ -kN_ -o WrongLayout.pot $(PYFILES) $(GLADEHFILES) --from-code=utf-8
|
||||
|
||||
%.po: messages.pot
|
||||
@if test -f $@; then \
|
||||
echo -n "Updating '$*' language ";\
|
||||
msgmerge -U $@ WrongLayout.pot;\
|
||||
else \
|
||||
msginit -l $*.UTF8 -o $@; \
|
||||
fi
|
||||
$(RM) $(GLADEHFILES)
|
||||
|
||||
update: $(POFILES)
|
||||
|
||||
clean:
|
||||
$(RM) $(GLADEHFILES)
|
||||
|
||||
.PHONY: update
|
||||
23
wrong_layout/po/WrongLayout.po
Normal file
23
wrong_layout/po/WrongLayout.po
Normal file
@@ -0,0 +1,23 @@
|
||||
# Language WrongLayout translations for PACKAGE package.
|
||||
# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# test <fominde@gmail.com>, 2010.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WrongLayout\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2010-09-04 16:20+0400\n"
|
||||
"PO-Revision-Date: 2010-09-04 16:23+0300\n"
|
||||
"Last-Translator: Fomin Denis <fominde@mail.ru>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: WrongLayout\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-Language: Russian\n"
|
||||
|
||||
#: ../plugin.py:28
|
||||
msgid "Press alt+r to convert chars typed in wrong layout Rus<>Eng"
|
||||
msgstr "При нажатии сочетания клавиш Alt+R в поле ввода текста, весь набранный текст (или выделенный, если таковой имеется) переводится из английской раскладки в русскую или наоборот, в зависимости от того, что написано."
|
||||
|
||||
22
wrong_layout/po/WrongLayout.pot
Normal file
22
wrong_layout/po/WrongLayout.pot
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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-09-04 16:20+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"
|
||||
|
||||
#: ../plugin.py:28
|
||||
msgid "Press alt+r to convert chars typed in wrong layout Rus<>Eng"
|
||||
msgstr ""
|
||||
Reference in New Issue
Block a user