diff --git a/TODO b/TODO
index 140fb427..9884906b 100644
--- a/TODO
+++ b/TODO
@@ -79,7 +79,7 @@ Legend:
/ translations and correct language for summary, description
+ make pisi messages translatable
[pisi mesajlarının çevrilebilir hale getirilmesi] (build.py yi örnek alın)
- - .pot stuff [build sistemine .pot oluşturma vs desteği] (pygettext)
+ / .pot support for dist script
- translate messages mesajların çevirisinin yapılması (pisi tr.po)
/ documentation
/ actionsAPI documentation, unittests (caglar - meren)
diff --git a/pisi.e3p b/pisi.e3p
index 4dd54ce4..de35a8e6 100644
--- a/pisi.e3p
+++ b/pisi.e3p
@@ -1,7 +1,7 @@
-
+
Python
@@ -331,6 +331,15 @@
pisi-cli
+
+ pisi
+ actionsapi
+ perlmodules.py
+
+
+ pisi
+ comariface.py
+
@@ -368,10 +377,10 @@
{'standardLayout': 1}
-
-
+
+
diff --git a/po/messages.pot b/po/messages.pot
new file mode 100644
index 00000000..b04dfbd7
--- /dev/null
+++ b/po/messages.pot
@@ -0,0 +1,765 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# FIRST AUTHOR , YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2005-10-04 16:55+ZONE\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: ENCODING\n"
+
+#: tools/repostats.py:88
+msgid "Source hosts"
+msgstr ""
+
+#: tools/repostats.py:89
+msgid "Packagers"
+msgstr ""
+
+#: tools/repostats.py:90
+msgid "Licenses"
+msgstr ""
+
+#: tools/repostats.py:91
+msgid "Categories"
+msgstr ""
+
+#: tools/repostats.py:92
+msgid "Components"
+msgstr ""
+
+#: tools/repostats.py:93
+msgid "Dependencies"
+msgstr ""
+
+#: tools/repostats.py:94
+msgid "Releases"
+msgstr ""
+
+#: tools/repostats.py:95
+msgid "File types"
+msgstr ""
+
+#: tools/repostats.py:96
+msgid "Top five most patched source"
+msgstr ""
+
+#: tools/repostats.py:97
+msgid "Top five longest action.py scripts"
+msgstr ""
+
+#: tools/repostats.py:167
+msgid "Dependencies
"
+msgstr ""
+
+#: tools/repostats.py:168
+msgid "package name with italics are not available in the repository
"
+msgstr ""
+
+#: pisi/actionsapi/get.py:126
+msgid "Util %s cannot be found"
+msgstr ""
+
+#: pisi/actionsapi/get.py:128
+msgid "Warning: %s does not exist, using plain name %s"
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:50
+msgid " ActionsAPI [echo]: Can't append to file %s..."
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:59
+msgid " ActionsAPI [chmod]: Operation not permitted: %s (mode: %s)"
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:62
+msgid " ActionsAPI [chmod]: File %s doesn't exists."
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:70
+msgid " ActionsAPI [chown]: Operation not permitted: %s (uid: %s, gid: %s)"
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:73
+msgid " ActionsAPI [chown]: File %s doesn't exists."
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:80
+msgid " ActionsAPI [sym]: Permission denied: %s to %s"
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:88
+msgid " ActionsAPI [unlink]: Permission denied: %s."
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:92
+msgid " ActionsAPI [unlink]: File %s doesn't exists."
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:100
+msgid " ActionsAPI [unlinkDir]: Operation not permitted: %s"
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:104
+msgid " ActionsAPI [unlinkDir]: Directory %s doesn't exists."
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:113
+msgid " ActionsAPI [move]: Permission denied: %s to %s"
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:115
+msgid " ActionsAPI [move]: File %s doesn't exists."
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:124
+msgid "ActionsAPI [copy]: Permission denied: %s to %s"
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:128
+msgid "ActionsAPI [copy]: File %s does not exist."
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:136
+msgid " ActionsAPI [copytree]: Permission denied: %s to %s"
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:138
+msgid " ActionsAPI [copytree]: Directory %s doesn't exists."
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:150
+msgid " ActionsAPI [touch]: Permission denied: %s"
+msgstr ""
+
+#: pisi/actionsapi/shelltools.py:198
+msgid "executing %s"
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:36
+msgid ""
+"Please attach the config.log to your bug report:\n"
+"%s/config.log"
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:75 :85
+msgid "Configure failed."
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:77 :87
+msgid "No configure script found."
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:96
+msgid "Make failed."
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:119 :127
+msgid "Install failed."
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:121 :129
+msgid "No Makefile found."
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:134
+msgid "Running aclocal failed."
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:139 :144
+msgid "Running autoconf failed."
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:149
+msgid "Running automake failed."
+msgstr ""
+
+#: pisi/actionsapi/autotools.py:154
+msgid "Running autoheader failed."
+msgstr ""
+
+#: pisi/lockeddbshelve.py:50
+msgid "Flags should be one of 'r', 'w', 'c' or 'n' or use the bsddb.db.DB_* flags"
+msgstr ""
+
+#: pisi/lockeddbshelve.py:61
+msgid "Another instance of PISI is running. Try later!"
+msgstr ""
+
+#: pisi/specfile.py:86
+msgid "AdditionalFile should have file name string"
+msgstr ""
+
+#: pisi/specfile.py:88
+msgid "AdditionalFile should have a target attribute"
+msgstr ""
+
+#: pisi/specfile.py:125
+msgid "Patch should have a filename string"
+msgstr ""
+
+#: pisi/specfile.py:184
+msgid "Path tag should have a name string"
+msgstr ""
+
+#: pisi/specfile.py:206
+msgid "COMAR provide should have something :)"
+msgstr ""
+
+#: pisi/specfile.py:276
+msgid "Source archive URI and type should be given"
+msgstr ""
+
+#: pisi/specfile.py:278
+msgid "Source archive should have a SHA1 sum"
+msgstr ""
+
+#: pisi/specfile.py:280
+msgid "Source needs some education in History :)"
+msgstr ""
+
+#: pisi/specfile.py:356
+msgid "Package should have some files"
+msgstr ""
+
+#: pisi/specfile.py:416
+msgid ""
+"File '%s' has errors:\n"
+"%s"
+msgstr ""
+
+#: pisi/specfile.py:469
+msgid "There should be at least one Package section"
+msgstr ""
+
+#: pisi/package.py:52 pisi/sourcearchive.py:60
+msgid "%s [cached]"
+msgstr ""
+
+#: pisi/package.py:103
+msgid "MetaData format wrong"
+msgstr ""
+
+#: pisi/package.py:108
+msgid "Invalid %s"
+msgstr ""
+
+#: pisi/build.py:74
+msgid "Path %s belongs in multiple packages"
+msgstr ""
+
+#: pisi/build.py:144
+msgid "Building PISI source package: %s"
+msgstr ""
+
+#: pisi/build.py:145
+msgid "Building PISI source package: %s\n"
+msgstr ""
+
+#: pisi/build.py:181
+msgid "Fetching source from: %s"
+msgstr ""
+
+#: pisi/build.py:183
+msgid "Source archive is stored: %s/%s"
+msgstr ""
+
+#: pisi/build.py:187
+msgid "Unpacking archive..."
+msgstr ""
+
+#: pisi/build.py:189
+msgid " unpacked (%s)"
+msgstr ""
+
+#: pisi/build.py:194
+msgid "Setting up source..."
+msgstr ""
+
+#: pisi/build.py:199
+msgid "Building source..."
+msgstr ""
+
+#: pisi/build.py:204
+msgid "Installing..."
+msgstr ""
+
+#: pisi/build.py:223
+msgid "Unable to read Action Script (%s): %s"
+msgstr ""
+
+#: pisi/build.py:226
+msgid "SyntaxError in Action Script (%s): %s"
+msgstr ""
+
+#: pisi/build.py:257
+msgid "unable to call function from actions: %s"
+msgstr ""
+
+#: pisi/build.py:274
+msgid "Patch file is missing: %s\n"
+msgstr ""
+
+#: pisi/build.py:287
+msgid "* Applying patch: %s"
+msgstr ""
+
+#: pisi/build.py:292
+msgid "Stripping files.."
+msgstr ""
+
+#: pisi/build.py:323
+msgid "build number is not available."
+msgstr ""
+
+#: pisi/build.py:417
+msgid "(found old version %s)"
+msgstr ""
+
+#: pisi/build.py:421
+msgid "Skipping %s with wrong pkg name "
+msgstr ""
+
+#: pisi/build.py:428
+msgid "(no previous build found, setting build no to 0.)"
+msgstr ""
+
+#: pisi/build.py:465
+msgid "(old package lacks a build no, setting build no to 0.)"
+msgstr ""
+
+#: pisi/build.py:468
+msgid "There are changes, incrementing build no to %d"
+msgstr ""
+
+#: pisi/build.py:471
+msgid "There is no change from previous build %d "
+msgstr ""
+
+#: pisi/build.py:501
+msgid "** Building package %s"
+msgstr ""
+
+#: pisi/build.py:503 :506
+msgid "Generating %s,"
+msgstr ""
+
+#: pisi/build.py:509
+msgid "Creating PISI package %s."
+msgstr ""
+
+#: pisi/build.py:537
+msgid "Done."
+msgstr ""
+
+#: pisi/xmlfile.py:80
+msgid "LocalText '%s' should have at least one '%s' tag\n"
+msgstr ""
+
+#: pisi/xmlfile.py:87
+msgid "'%s' language of tag '%s' should have some text data\n"
+msgstr ""
+
+#: pisi/xmlfile.py:291
+msgid "gen_tag: unrecognized tag type %s in spec"
+msgstr ""
+
+#: pisi/xmlfile.py:324
+msgid "Mandatory variable %s not available"
+msgstr ""
+
+#: pisi/xmlfile.py:379
+msgid "Type mismatch: read text cannot be decoded"
+msgstr ""
+
+#: pisi/xmlfile.py:383
+msgid "Mandatory token %s not available"
+msgstr ""
+
+#: pisi/xmlfile.py:392 :423 :439 :446 :524 :538 :545
+msgid "Mandatory argument not available"
+msgstr ""
+
+#: pisi/xmlfile.py:420 :521
+msgid "Type mismatch: DOM cannot be decoded"
+msgstr ""
+
+#: pisi/xmlfile.py:436 :535
+msgid "Object cannot be encoded"
+msgstr ""
+
+#: pisi/xmlfile.py:457
+msgid "List type must contain only one element"
+msgstr ""
+
+#: pisi/xmlfile.py:470 :485
+msgid "Mandatory list empty"
+msgstr ""
+
+#: pisi/xmlfile.py:580
+msgid "File '%s' has invalid XML: %s\n"
+msgstr ""
+
+#: pisi/xmlfile.py:591
+msgid "Root tagname %s not identical to %s as expected"
+msgstr ""
+
+#: pisi/packagedb.py:134
+msgid "get_package: package %s not found"
+msgstr ""
+
+#: pisi/index.py:74
+msgid "Adding %s to package index"
+msgstr ""
+
+#: pisi/index.py:100
+msgid "Package %s: metadata corrupt"
+msgstr ""
+
+#: pisi/repodb.py:78
+msgid "Repository %s already exists"
+msgstr ""
+
+#: pisi/util.py:65
+msgid "%s section should have a '%s' tag"
+msgstr ""
+
+#: pisi/util.py:122
+msgid "running "
+msgstr ""
+
+#: pisi/util.py:126
+msgid "return value "
+msgstr ""
+
+#: pisi/util.py:129
+msgid "Failed command: %s"
+msgstr ""
+
+#: pisi/util.py:352
+msgid "ERROR: patch (%s) failed: %s"
+msgstr ""
+
+#: pisi/util.py:385
+msgid "strip command failed for file '%s'!"
+msgstr ""
+
+#: pisi/util.py:412
+msgid "Removing lock %s"
+msgstr ""
+
+#: pisi/dependency.py:54
+msgid "Dependency should have a package string"
+msgstr ""
+
+#: pisi/dependency.py:118
+msgid "Package %s does not satisfy dependency %s"
+msgstr ""
+
+#: pisi/dependency.py:131
+msgid "Package %s is not present in the package database"
+msgstr ""
+
+#: pisi/metadata.py:49
+msgid "SourceInfo should have a Name"
+msgstr ""
+
+#: pisi/metadata.py:95
+msgid "Some error in package metadata"
+msgstr ""
+
+#: pisi/metadata.py:150
+msgid "Metadata should have source"
+msgstr ""
+
+#: pisi/metadata.py:154
+msgid "Metadata should have a package"
+msgstr ""
+
+#: pisi/operations.py:47
+msgid "Not removing non-file, non-link %d"
+msgstr ""
+
+#: pisi/operations.py:66
+msgid "Removing package %s"
+msgstr ""
+
+#: pisi/operations.py:68
+msgid "Trying to remove nonexistent package "
+msgstr ""
+
+#: pisi/operations.py:111
+msgid "Package URI: %s"
+msgstr ""
+
+#: pisi/operations.py:116
+msgid "Package %s not found in any active repository."
+msgstr ""
+
+#: pisi/sourcefetcher.py:81
+msgid "Fetching %s"
+msgstr ""
+
+#: pisi/sourcearchive.py:69
+msgid "unpack: check_file_hash failed"
+msgstr ""
+
+#: pisi/configfile.py:85
+msgid "No section by name '%s'"
+msgstr ""
+
+#: pisi/install.py:51
+msgid "Installing %s, version %s, release %s, build %s"
+msgstr ""
+
+#: pisi/install.py:81
+msgid "Package conflicts %s"
+msgstr ""
+
+#: pisi/install.py:86
+msgid "Dependencies for %s not satisfied"
+msgstr ""
+
+#: pisi/install.py:88
+msgid "Package not installable"
+msgstr ""
+
+#: pisi/install.py:112
+msgid "Re-install same version package?"
+msgstr ""
+
+#: pisi/install.py:113
+msgid "Package re-install declined"
+msgstr ""
+
+#: pisi/install.py:119
+msgid "Upgrading to new upstream version"
+msgstr ""
+
+#: pisi/install.py:122
+msgid "Upgrading to new distribution release"
+msgstr ""
+
+#: pisi/install.py:126
+msgid "Upgrading to new distribution build"
+msgstr ""
+
+#: pisi/install.py:132
+msgid "Downgrade to old upstream version?"
+msgstr ""
+
+#: pisi/install.py:134
+msgid "Downgrade to old distribution release?"
+msgstr ""
+
+#: pisi/install.py:136
+msgid "Downgrade to old distribution build?"
+msgstr ""
+
+#: pisi/install.py:138
+msgid "Package downgrade declined"
+msgstr ""
+
+#: pisi/install.py:148
+msgid "Extracting files"
+msgstr ""
+
+#: pisi/install.py:166
+msgid "Storing %s, "
+msgstr ""
+
+#: pisi/install.py:169
+msgid "Storing %s."
+msgstr ""
+
+#: pisi/install.py:176
+msgid "Storing %s"
+msgstr ""
+
+#: pisi/install.py:186
+msgid "Registering COMAR script %s"
+msgstr ""
+
+#: pisi/install.py:196
+msgid "COMAR.register ERROR!"
+msgstr ""
+
+#: pisi/installdb.py:59
+msgid "installed"
+msgstr ""
+
+#: pisi/installdb.py:59
+msgid "installed-pending"
+msgstr ""
+
+#: pisi/installdb.py:60
+msgid "removed"
+msgstr ""
+
+#: pisi/installdb.py:60
+msgid "purged"
+msgstr ""
+
+#: pisi/installdb.py:63
+msgid ""
+"State: %s\n"
+"Version: %s, Release: %s, Build: %s\n"
+msgstr ""
+
+#: pisi/installdb.py:68
+msgid "Distribution: %s, Install Time: %s\n"
+msgstr ""
+
+#: pisi/installdb.py:139
+msgid "Already installed"
+msgstr ""
+
+#: pisi/constants.py:32
+msgid "Can't rebind constant: %s"
+msgstr ""
+
+#: pisi/constants.py:38
+msgid "Can't unbind constant: %s"
+msgstr ""
+
+#: pisi/fetcher.py:66
+msgid "Filename error"
+msgstr ""
+
+#: pisi/fetcher.py:69
+msgid "Access denied to write to dest dir"
+msgstr ""
+
+#: pisi/fetcher.py:117
+msgid "No such file or no permission to read"
+msgstr ""
+
+#: pisi/archive.py:68
+msgid "Archive type not recognized"
+msgstr ""
+
+#: pisi/api.py:56
+msgid "COMAR: comard not fully installed"
+msgstr ""
+
+#: pisi/api.py:57
+msgid "skipping COMAR connection for now..."
+msgstr ""
+
+#: pisi/api.py:59
+msgid "COMAR: comard not running or defunct"
+msgstr ""
+
+#: pisi/api.py:113
+msgid "Mixing file names and package names not supported YET."
+msgstr ""
+
+#: pisi/api.py:116
+msgid "ignore_dependency"
+msgstr ""
+
+#: pisi/api.py:168 :215
+msgid "No packages to install."
+msgstr ""
+
+#: pisi/api.py:203
+msgid "External dependencies not satisfied"
+msgstr ""
+
+#: pisi/api.py:299
+msgid "Warning: package *name* ends with '.pisi'"
+msgstr ""
+
+#: pisi/api.py:301
+msgid "Package %s is not installed."
+msgstr ""
+
+#: pisi/api.py:319
+msgid "Package %s is already at its latest version %s, release %s, build %s."
+msgstr ""
+
+#: pisi/api.py:325
+msgid "No packages to upgrade."
+msgstr ""
+
+#: pisi/api.py:404
+msgid "Package %s does not exist. Cannot remove."
+msgstr ""
+
+#: pisi/api.py:408
+msgid "No packages to remove."
+msgstr ""
+
+#: pisi/api.py:445
+msgid "Package %s is not installed. Cannot remove."
+msgstr ""
+
+#: pisi/api.py:485
+msgid "File %s not found"
+msgstr ""
+
+#: pisi/api.py:507
+msgid "Package %s not found"
+msgstr ""
+
+#: pisi/api.py:511
+msgid "* Building index of PISI files under %s"
+msgstr ""
+
+#: pisi/api.py:515
+msgid "* Index file written"
+msgstr ""
+
+#: pisi/api.py:526
+msgid "* Repository %s does not exist. Cannot remove."
+msgstr ""
+
+#: pisi/api.py:531
+msgid "* Updating repository: %s"
+msgstr ""
+
+#: pisi/api.py:535
+msgid "* Package database updated."
+msgstr ""
+
+#: pisi/api.py:562
+msgid "Unsatisfied Build Dependencies:"
+msgstr ""
+
+#: pisi/xmlext.py:57
+msgid "getNodeText: Expected text node, got something else!"
+msgstr ""
+
+#: pisi/comariface.py:32
+msgid "Running post-install script for %s"
+msgstr ""
+
+#: pisi/comariface.py:41
+msgid "COMAR.call_package(System.Package.postInstall, %s) failed!: %s"
+msgstr ""
+
+#: pisi/comariface.py:45 :65
+msgid "COMAR.call_package ERROR: %d"
+msgstr ""
+
+#: pisi/comariface.py:52
+msgid "Running pre-remove script for %s"
+msgstr ""
+
+#: pisi/comariface.py:61
+msgid "COMAR.call_package(System.Package.preRemove, %s) failed!: %s"
+msgstr ""
+
+#: pisi/comariface.py:68
+msgid "Unregistering COMAR scripts for %s"
+msgstr ""
+
+#: pisi/uri.py:76
+msgid "setAuthInfo needs a tuple (user, pass)"
+msgstr ""