summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Napora <napcok@gmail.com>2013-11-09 15:11:32 +0100
committerDaniel Napora <napcok@gmail.com>2013-11-09 15:11:32 +0100
commitd1c38f1d76b8dcecc46255393867eca13eb62421 (patch)
tree85718cb82efcade8afd6ea27c882565554a83392
parentfceb276dbbeb2fc81fff1006777f2ada32f198b7 (diff)
downloadmageiawelcome-d1c38f1d76b8dcecc46255393867eca13eb62421.tar
mageiawelcome-d1c38f1d76b8dcecc46255393867eca13eb62421.tar.gz
mageiawelcome-d1c38f1d76b8dcecc46255393867eca13eb62421.tar.bz2
mageiawelcome-d1c38f1d76b8dcecc46255393867eca13eb62421.tar.xz
mageiawelcome-d1c38f1d76b8dcecc46255393867eca13eb62421.zip
Initial makefile for .po files
-rw-r--r--Makefile4
-rw-r--r--po/Makefile48
-rw-r--r--po/mageiawelcome.pot142
3 files changed, 123 insertions, 71 deletions
diff --git a/Makefile b/Makefile
index e6c428c..00ddc32 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
PACKAGE = mageiawelcome
VERSION = 0.8.1
+GITPATH = git://git.mageia.org/software/mageiawelcome
TEXT_FILES = makepot \
Makefile
@@ -14,6 +15,9 @@ clean:
cleandist: clean
rm -fr $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.xz
+install:
+ make -C po DESTDIR=$(RPM_BUILD_ROOT)/usr install
+
dir:
mkdir $(PACKAGE)-$(VERSION)
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 0000000..0cc616f
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,48 @@
+LANGUAGES=$(basename $(wildcard *.po))
+PACKAGE_NAME=mageiawelcome
+DESTDIR=$(RPM_BUILD_ROOT)
+
+all: gmo
+
+
+clean:
+ @echo " **CLEAN**"
+ @rm -rf *.mo *~ tmp/
+ @for lang in $(LANGUAGES); do \
+ echo " **CLEANDIR** $$lang"; \
+ rm -rf $$lang;\
+ done
+
+
+pot:
+ xgettext --copyright-holder='Daniel Napora <napcok@gmail.com>' --package-name=mageiawelcome --from-code=UTF-8 \
+-L Python --msgid-bugs-address=http://bugs.mageia.org -o $(PACKAGE_NAME).pot ../usr/share/mageiawelcome/mageiawelcome.py
+
+po:
+ @for lang in $(LANGUAGES); do \
+ echo " Updating po for $$lang"; \
+ if [ ! -f $$lang.po ]; then \
+ msginit --input $(PACKAGE_NAME).pot -o $$lang-old.po;\
+ else \
+ mv $$lang.po $$lang-old.po; \
+ fi ; \
+ msgmerge -o $$lang.po $$lang-old.po $(PACKAGE_NAME).pot; \
+ rm -f $$lang-old.po; \
+ done
+
+gmo:
+ @echo " **COMPILING** languages: $(LANGUAGES)"
+ @for lang in $(LANGUAGES); do \
+ echo " **COMPILEMO** $$lang" ; \
+ mkdir -p $$lang/LC_MESSAGES/; \
+ msgfmt --verbose -o $$lang/LC_MESSAGES/$(PACKAGE_NAME).mo $$lang.po; \
+ done
+
+install:
+ @echo " **INSTALL** languages: $(LANGUAGES)"
+ @for lang in $(LANGUAGES); do \
+ echo " **INSTALLMO** $$lang" ; \
+ mkdir -p $(DESTDIR)/share/locale/$$lang/LC_MESSAGES/; \
+ msgfmt -o $(DESTDIR)/share/locale/$$lang/LC_MESSAGES/$(PACKAGE_NAME).mo -f $$lang.po; \
+ done
+
diff --git a/po/mageiawelcome.pot b/po/mageiawelcome.pot
index addf314..5ff7c9e 100644
--- a/po/mageiawelcome.pot
+++ b/po/mageiawelcome.pot
@@ -1,14 +1,14 @@
# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# Copyright (C) YEAR Daniel Napora <napcok@gmail.com>
# 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: 2013-11-09 13:33+0100\n"
+"Project-Id-Version: mageiawelcome\n"
+"Report-Msgid-Bugs-To: http://bugs.mageia.org\n"
+"POT-Creation-Date: 2013-11-09 14:34+0100\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"
@@ -17,35 +17,35 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
-#: usr/share/mageiawelcome/mageiawelcome.py:65
+#: ../usr/share/mageiawelcome/mageiawelcome.py:65
msgid "Welcome to Mageia!"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:66
+#: ../usr/share/mageiawelcome/mageiawelcome.py:66
msgid "Show this window at startup"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:67
+#: ../usr/share/mageiawelcome/mageiawelcome.py:67
msgid "Close"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:70
+#: ../usr/share/mageiawelcome/mageiawelcome.py:70
msgid "kernel:"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:72
+#: ../usr/share/mageiawelcome/mageiawelcome.py:72
msgid "arch:"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:74
+#: ../usr/share/mageiawelcome/mageiawelcome.py:74
msgid "Desktop:"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:76
+#: ../usr/share/mageiawelcome/mageiawelcome.py:76
msgid "Welcome"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:78
+#: ../usr/share/mageiawelcome/mageiawelcome.py:78
msgid ""
"<p>Thank you for choosing Mageia!</p><p>We have put in a lot of effort to "
"provide you with the best possible system. We hope you will have a good "
@@ -56,151 +56,151 @@ msgid ""
"friends about Mageia.</p>"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:79
+#: ../usr/share/mageiawelcome/mageiawelcome.py:79
msgid "Mageia Control Center"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:80
+#: ../usr/share/mageiawelcome/mageiawelcome.py:80
msgid "Configure media sources and update system"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:81
+#: ../usr/share/mageiawelcome/mageiawelcome.py:81
msgid "Install and remove software"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:82
+#: ../usr/share/mageiawelcome/mageiawelcome.py:82
msgid "Documentation"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:83
+#: ../usr/share/mageiawelcome/mageiawelcome.py:83
msgid "New Features"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:84
+#: ../usr/share/mageiawelcome/mageiawelcome.py:84
msgid "Release Notes"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:85
+#: ../usr/share/mageiawelcome/mageiawelcome.py:85
msgid "Errata"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:86
+#: ../usr/share/mageiawelcome/mageiawelcome.py:86
msgid "Newcomers Howto"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:87
+#: ../usr/share/mageiawelcome/mageiawelcome.py:87
msgid "Support"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:88
+#: ../usr/share/mageiawelcome/mageiawelcome.py:88
msgid "Forums"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:89
+#: ../usr/share/mageiawelcome/mageiawelcome.py:89
msgid "Wiki"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:90
+#: ../usr/share/mageiawelcome/mageiawelcome.py:90
msgid "Chat Room"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:91
+#: ../usr/share/mageiawelcome/mageiawelcome.py:91
msgid "Bugzilla"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:92
+#: ../usr/share/mageiawelcome/mageiawelcome.py:92
msgid "Community"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:93
+#: ../usr/share/mageiawelcome/mageiawelcome.py:93
msgid "Community Center"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:94
+#: ../usr/share/mageiawelcome/mageiawelcome.py:94
msgid "Contribute"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:95
+#: ../usr/share/mageiawelcome/mageiawelcome.py:95
msgid "Donations"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:96
+#: ../usr/share/mageiawelcome/mageiawelcome.py:96
msgid "Join us!"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:97
+#: ../usr/share/mageiawelcome/mageiawelcome.py:97
msgid ""
"Mageia Control Center (aka drakconf) is a set of tools to help you configure "
"your system"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:98
+#: ../usr/share/mageiawelcome/mageiawelcome.py:98
msgid "Software Management"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:99
+#: ../usr/share/mageiawelcome/mageiawelcome.py:99
msgid "Online administration"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:100
+#: ../usr/share/mageiawelcome/mageiawelcome.py:100
msgid "Hardware"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:101
+#: ../usr/share/mageiawelcome/mageiawelcome.py:101
msgid "Network & Internet"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:102
-#: usr/share/mageiawelcome/mageiawelcome.py:131
+#: ../usr/share/mageiawelcome/mageiawelcome.py:102
+#: ../usr/share/mageiawelcome/mageiawelcome.py:131
msgid "System"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:103
+#: ../usr/share/mageiawelcome/mageiawelcome.py:103
msgid "Network Sharing"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:104
+#: ../usr/share/mageiawelcome/mageiawelcome.py:104
msgid "Local Disks"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:105
+#: ../usr/share/mageiawelcome/mageiawelcome.py:105
msgid "Security"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:106
+#: ../usr/share/mageiawelcome/mageiawelcome.py:106
msgid "Boot"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:107
+#: ../usr/share/mageiawelcome/mageiawelcome.py:107
msgid "Administrator password is needed"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:108
+#: ../usr/share/mageiawelcome/mageiawelcome.py:108
msgid "User password is needed"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:109
+#: ../usr/share/mageiawelcome/mageiawelcome.py:109
msgid "Configure media sources ..."
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:110
+#: ../usr/share/mageiawelcome/mageiawelcome.py:110
msgid "Mageia official repositories contain:"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:111
+#: ../usr/share/mageiawelcome/mageiawelcome.py:111
msgid ""
"<span class='label green'>core</span> - the free-open-source packages, i.e. "
"software licensed under a free-open-source license"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:112
+#: ../usr/share/mageiawelcome/mageiawelcome.py:112
msgid ""
"<span class='label red'>non-free</span> - some programs which are not free, "
"or closed source. For example this repository includes nVidia and ATI "
"graphics card proprietary drivers, firmware for various WiFi cards, etc"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:113
+#: ../usr/share/mageiawelcome/mageiawelcome.py:113
msgid ""
"<span class='label red'>tainted</span> - includes packages released under a "
"free license. However, they may infringe on patents and copyright laws in "
@@ -208,97 +208,97 @@ msgid ""
"files; packages needed to play commercial video DVD, etc. "
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:114
+#: ../usr/share/mageiawelcome/mageiawelcome.py:114
msgid "<strong>Note!</strong> non-free and tainted are not enabled by default."
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:115
+#: ../usr/share/mageiawelcome/mageiawelcome.py:115
msgid "Edit software sources"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:116
+#: ../usr/share/mageiawelcome/mageiawelcome.py:116
msgid "... and update system"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:117
+#: ../usr/share/mageiawelcome/mageiawelcome.py:117
msgid "Check system updates"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:118
+#: ../usr/share/mageiawelcome/mageiawelcome.py:118
msgid "GUI - RPMDrake"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:119
+#: ../usr/share/mageiawelcome/mageiawelcome.py:119
msgid ""
"<span class='label green'>Rpmdrake</span> is a program for installing, "
"uninstalling and updating packages. It is the graphical user interface of "
"<span class='label green'>urpmi</span>"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:120
+#: ../usr/share/mageiawelcome/mageiawelcome.py:120
msgid "read more (wiki)"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:121
+#: ../usr/share/mageiawelcome/mageiawelcome.py:121
msgid "RPMdrake"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:122
+#: ../usr/share/mageiawelcome/mageiawelcome.py:122
msgid "URPMI - from command line"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:123
+#: ../usr/share/mageiawelcome/mageiawelcome.py:123
msgid "Terminal"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:124
+#: ../usr/share/mageiawelcome/mageiawelcome.py:124
msgid "This is just small selection of popular packages, for more run"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:125
+#: ../usr/share/mageiawelcome/mageiawelcome.py:125
msgid "Featured"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:126
+#: ../usr/share/mageiawelcome/mageiawelcome.py:126
msgid "Games"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:127
+#: ../usr/share/mageiawelcome/mageiawelcome.py:127
msgid "Internet"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:128
+#: ../usr/share/mageiawelcome/mageiawelcome.py:128
msgid "Video"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:129
+#: ../usr/share/mageiawelcome/mageiawelcome.py:129
msgid "Audio"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:130
+#: ../usr/share/mageiawelcome/mageiawelcome.py:130
msgid "Graphics"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:132
+#: ../usr/share/mageiawelcome/mageiawelcome.py:132
msgid "Programming"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:133
+#: ../usr/share/mageiawelcome/mageiawelcome.py:133
msgid "Selected packages:"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:134
+#: ../usr/share/mageiawelcome/mageiawelcome.py:134
msgid "Install selected"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:135
+#: ../usr/share/mageiawelcome/mageiawelcome.py:135
msgid "You can always launch MageiaWelcome from menu"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:137
+#: ../usr/share/mageiawelcome/mageiawelcome.py:137
msgid "Applications"
msgstr ""
-#: usr/share/mageiawelcome/mageiawelcome.py:151
+#: ../usr/share/mageiawelcome/mageiawelcome.py:151
msgid "About"
msgstr ""