parent
8bc56cdcbd
commit
38e4ae812c
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = cxg.de
|
basename = cxg.de
|
||||||
regexp = http://cxg.de
|
regexp = "http://cxg.de"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
user = desc
|
user = desc
|
||||||
|
@ -10,5 +10,5 @@ page = page
|
||||||
regexp = regexp
|
regexp = regexp
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
page = /paste.php
|
page = "/paste.php"
|
||||||
regexp = href="http://cxg.de/(.*)"
|
regexp = 'href="http://cxg.de/(.*)"'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = fpaste.org
|
basename = fpaste.org
|
||||||
regexp = http://fpaste.org
|
regexp = "http://fpaste.org"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
user = author
|
user = author
|
||||||
|
@ -10,5 +10,5 @@ submit = submit
|
||||||
expire_options = expire_options
|
expire_options = expire_options
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
submit = paste it!
|
submit = "paste it!"
|
||||||
expire_options = 86400
|
expire_options = 86400
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = p.defau.lt
|
basename = p.defau.lt
|
||||||
regexp = http://p.defau.lt
|
regexp = "http://p.defau.lt"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
content = code
|
content = code
|
||||||
page = page
|
page = page
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
page = /submit.php
|
page = '/submit.php'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = paste.debian.net
|
basename = paste.debian.net
|
||||||
regexp = http://paste.debian.net
|
regexp = "http://paste.debian.net"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
user = poster
|
user = poster
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = paste.drizzle.org
|
basename = paste.drizzle.org
|
||||||
regexp = http://paste.drizzle.org
|
regexp = "http://paste.drizzle.org"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
lang = language
|
lang = language
|
||||||
|
@ -11,8 +11,8 @@ regexp = regexp
|
||||||
target_url = target_url
|
target_url = target_url
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
page = /json/?method=pastes.newPaste
|
page = "/json/?method=pastes.newPaste"
|
||||||
post_format = json
|
post_format = "json"
|
||||||
lang =
|
lang = ""
|
||||||
regexp = \"data\": \"([^"]*)
|
regexp = "\"data\": \"([^"]*)"
|
||||||
target_url = http://paste.drizzle.org/show/
|
target_url = "http://paste.drizzle.org/show/"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = paste.kde.org
|
basename = paste.kde.org
|
||||||
regexp = http://paste.kde.org
|
regexp = "http://paste.kde.org"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
user = paste_user
|
user = paste_user
|
||||||
|
@ -15,8 +15,8 @@ regexp = regexp
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
private = 0
|
private = 0
|
||||||
format = text
|
format = "text"
|
||||||
expire = 86400
|
expire = 86400
|
||||||
api = 1
|
api = 1
|
||||||
mode = xml
|
mode = xml
|
||||||
regexp = <id>(.*)</id>
|
regexp = "<id>(.*)</id>"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = paste.openstack.org
|
basename = paste.openstack.org
|
||||||
regexp = http://paste.openstack.org
|
regexp = "http://paste.openstack.org"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
lang = language
|
lang = language
|
||||||
|
@ -11,8 +11,8 @@ regexp = regexp
|
||||||
target_url = target_url
|
target_url = target_url
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
page = /json/?method=pastes.newPaste
|
page = "/json/?method=pastes.newPaste"
|
||||||
post_format = json
|
post_format = "json"
|
||||||
lang =
|
lang = ""
|
||||||
regexp = \"data\": \"([^"]*)
|
regexp = "\"data\": \"([^"]*)"
|
||||||
target_url = http://paste.openstack.org/show/
|
target_url = "http://paste.openstack.org/show/"
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
[pastebin]
|
||||||
|
basename = paste.pocoo.org
|
||||||
|
regexp = "http://paste.pocoo.org"
|
||||||
|
|
||||||
|
[format]
|
||||||
|
content = code
|
||||||
|
format = language
|
||||||
|
|
||||||
|
[defaults]
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = paste.pound-python.org
|
basename = paste.pound-python.org
|
||||||
regexp = http://paste.pound-python.org
|
regexp = "http://paste.pound-python.org"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
content = code
|
content = code
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = paste.ubuntu.com
|
basename = paste.ubuntu.com
|
||||||
regexp = http://paste.ubuntu.com
|
regexp = "http://paste.ubuntu.com"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
user = poster
|
user = poster
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = paste.ubuntu.org.cn
|
basename = paste.ubuntu.org.cn
|
||||||
regexp = http://paste.ubuntu.org.cn
|
regexp = "http://paste.ubuntu.org.cn"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
user = poster
|
user = poster
|
||||||
|
@ -9,4 +9,4 @@ format = class
|
||||||
paste = paste
|
paste = paste
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
paste = 发送
|
paste = "发送"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = paste2.org
|
basename = paste2.org
|
||||||
regexp = http://paste2.org
|
regexp = "http://paste2.org"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
title = description
|
title = description
|
||||||
|
@ -10,5 +10,5 @@ page = page
|
||||||
parent = parent
|
parent = parent
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
page = new-paste
|
page = 'new-paste'
|
||||||
parent = 0
|
parent = 0
|
||||||
|
|
|
@ -1,29 +1,25 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = pastebin.com
|
basename = pastebin.com
|
||||||
regexp = http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))
|
regexp = "http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
content = api_paste_code
|
content = paste_code
|
||||||
user = api_paste_name
|
user = paste_name
|
||||||
subdomain = api_paste_subdomain
|
subdomain = paste_subdomain
|
||||||
private = api_paste_private
|
private = paste_private
|
||||||
expiry = api_paste_expire_date
|
expiry = paste_expire_date
|
||||||
format = api_paste_format
|
format = paste_format
|
||||||
email = api_paste_email
|
email = paste_email
|
||||||
page = page
|
page = page
|
||||||
submit = submit
|
submit = submit
|
||||||
regexp = regexp
|
regexp = regexp
|
||||||
api_dev_key = api_dev_key
|
|
||||||
api_option = api_option
|
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
submit = submit
|
submit = submit
|
||||||
format = text
|
format = text
|
||||||
private = 0
|
private = 0
|
||||||
expiry = 1M
|
expiry = 1M
|
||||||
subdomain =
|
subdomain = ""
|
||||||
email =
|
email = ""
|
||||||
api_dev_key = 253ce2f0a45140ee0a44ca99aa492260
|
page = "/api_public.php"
|
||||||
api_option = paste
|
regexp = "(.*)"
|
||||||
page = /api/api_post.php
|
|
||||||
regexp = (.*)
|
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
[pastebin]
|
||||||
|
basename = pastie.org
|
||||||
|
regexp = "http://pastie\.org"
|
||||||
|
sizelimit = 100000
|
||||||
|
|
||||||
|
[format]
|
||||||
|
page = page
|
||||||
|
params_format = paste[parser_id]
|
||||||
|
params_restricted = paste[restricted]
|
||||||
|
content = paste[body]
|
||||||
|
params_authorization = paste[authorization]
|
||||||
|
params_key = key
|
||||||
|
params_commit = commit
|
||||||
|
|
||||||
|
[defaults]
|
||||||
|
page = "/pastes"
|
||||||
|
params_format = "6"
|
||||||
|
params_restricted = "0"
|
||||||
|
params_authorization = "burger"
|
||||||
|
params_key = ""
|
||||||
|
params_commit = "Paste"
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = pb.daviey.com
|
basename = pb.daviey.com
|
||||||
regexp = http://pb.daviey.com
|
regexp = "http://pb.daviey.com"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
user = author
|
user = author
|
||||||
|
@ -10,7 +10,7 @@ expire_options = expires
|
||||||
title = title
|
title = title
|
||||||
regexp = regexp
|
regexp = regexp
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
page = api/?_call=new
|
page = "api/?_call=new"
|
||||||
regexp = "/(.*/)".*
|
regexp = ""/(.*/)".*"
|
||||||
expire_options = 7889232
|
expire_options = 7889232
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = slexy.org
|
basename = slexy.org
|
||||||
regexp = http://slexy.org
|
regexp = "http://slexy.org"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
user = author
|
user = author
|
||||||
|
@ -15,10 +15,10 @@ submit = submit
|
||||||
expire = expire
|
expire = expire
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
submit = Submit Paste
|
submit = "Submit Paste"
|
||||||
page = /index.php/submit
|
page = "/index.php/submit"
|
||||||
language = text
|
language = "text"
|
||||||
permissions = 0
|
permissions = 0
|
||||||
comment =
|
comment = ""
|
||||||
linenumbers = 0
|
linenumbers = 0
|
||||||
expire = 604800
|
expire = 604800
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[pastebin]
|
[pastebin]
|
||||||
basename = sprunge.us
|
basename = sprunge.us
|
||||||
regexp = http://sprunge.us
|
regexp = "http://sprunge.us"
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
content = sprunge
|
content = sprunge
|
||||||
|
@ -8,4 +8,4 @@ format = lang
|
||||||
regexp = regexp
|
regexp = regexp
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
regexp=http://sprunge.us/(.*)$
|
regexp="http://sprunge.us/(.*)$"
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
[pastebin]
|
||||||
|
basename = yourpaste.net
|
||||||
|
regexp = "http://yourpaste.net"
|
||||||
|
|
||||||
|
[format]
|
||||||
|
format = syntax
|
||||||
|
user = name
|
||||||
|
title = desc
|
||||||
|
expire = expire
|
||||||
|
content = code
|
||||||
|
private = private
|
||||||
|
remember = remember
|
||||||
|
page = page
|
||||||
|
regexp = regexp
|
||||||
|
|
||||||
|
[defaults]
|
||||||
|
expire = 604800
|
||||||
|
private = 0
|
||||||
|
remember = 0
|
||||||
|
page = '/paste'
|
||||||
|
regexp = '">http://yourpaste.net/(.*)</a>'
|
179
pastebinit
179
pastebinit
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python
|
||||||
# Written by Stephane Graber <stgraber@stgraber.org>
|
# Written by Stephane Graber <stgraber@stgraber.org>
|
||||||
# Daniel Bartlett <dan@f-box.org>
|
# Daniel Bartlett <dan@f-box.org>
|
||||||
# Last modification : Mon Jan 28 22:33:23 CET 2008
|
# Last modification : Mon Jan 28 22:33:23 CET 2008
|
||||||
|
@ -17,14 +17,7 @@
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
from configparser import SafeConfigParser
|
defaultPB = "http://pastebin.com" #Default pastebin
|
||||||
from urllib.parse import urlencode
|
|
||||||
from urllib.request import FancyURLopener
|
|
||||||
|
|
||||||
# Set the default pastebin
|
|
||||||
defaultPB = "http://pastebin.com"
|
|
||||||
|
|
||||||
# Now try to override it with a distributor pastebin
|
|
||||||
try:
|
try:
|
||||||
import lsb_release
|
import lsb_release
|
||||||
release = lsb_release.get_distro_information()['ID'].lower()
|
release = lsb_release.get_distro_information()['ID'].lower()
|
||||||
|
@ -38,27 +31,24 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import getopt
|
import urllib, os, sys, re, getopt, xml.dom.minidom, gettext
|
||||||
import gettext
|
|
||||||
import os
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
import xml.dom.minidom
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import json
|
import json # For python 2.6 and newer
|
||||||
except ImportError:
|
except ImportError:
|
||||||
json = None
|
try:
|
||||||
|
import simplejson as json
|
||||||
|
except ImportError:
|
||||||
|
json = None
|
||||||
|
from gettext import gettext as _
|
||||||
|
import configobj
|
||||||
|
|
||||||
_ = gettext
|
|
||||||
gettext.textdomain("pastebinit")
|
gettext.textdomain("pastebinit")
|
||||||
|
|
||||||
# Version number to show in the usage
|
version = "1.3" #Version number to show in the usage
|
||||||
version = "1.3.1"
|
|
||||||
configfile = os.path.expanduser("~/.pastebinit.xml")
|
configfile = os.path.expanduser("~/.pastebinit.xml")
|
||||||
|
|
||||||
# Custom urlopener to handle 401's
|
# Custom urlopener to handle 401's
|
||||||
class pasteURLopener(FancyURLopener):
|
class pasteURLopener(urllib.FancyURLopener):
|
||||||
def http_error_401(self, url, fp, errcode, errmsg, headers, data=None):
|
def http_error_401(self, url, fp, errcode, errmsg, headers, data=None):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -69,8 +59,7 @@ try:
|
||||||
# - user's overrides in ~/.pastebin.d
|
# - user's overrides in ~/.pastebin.d
|
||||||
# Files found later override files found earlier.
|
# Files found later override files found earlier.
|
||||||
pastebind = {}
|
pastebind = {}
|
||||||
for confdir in ['/usr/share/pastebin.d', '/etc/pastebin.d',
|
for confdir in ['/usr/share/pastebin.d','/etc/pastebin.d','/usr/local/etc/pastebin.d',
|
||||||
'/usr/local/etc/pastebin.d',
|
|
||||||
os.path.expanduser('~/.pastebin.d'),
|
os.path.expanduser('~/.pastebin.d'),
|
||||||
os.path.join(os.path.dirname(__file__), 'pastebin.d')]:
|
os.path.join(os.path.dirname(__file__), 'pastebin.d')]:
|
||||||
try:
|
try:
|
||||||
|
@ -83,20 +72,25 @@ try:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
filename = os.path.join(confdir, fileitem)
|
filename = os.path.join(confdir, fileitem)
|
||||||
instance = SafeConfigParser()
|
try:
|
||||||
instance.read(filename)
|
bininstance = configobj.ConfigObj(filename)
|
||||||
|
except configobj.ConfigObjError, e:
|
||||||
if not instance.has_section('pastebin'):
|
print >> sys.stderr, '%s: %s' % (filename, e)
|
||||||
print(_('%s: no section [pastebin]') % filename,
|
|
||||||
file=sys.stderr)
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not instance.has_option('pastebin', 'basename'):
|
try:
|
||||||
print(_("%s: no 'basename' in [pastebin]") % filename,
|
section = bininstance['pastebin']
|
||||||
file=sys.stderr)
|
except KeyError:
|
||||||
|
print >> sys.stderr, _('%s: no section [pastebin]') % filename
|
||||||
continue
|
continue
|
||||||
|
|
||||||
pastebind[instance.get('pastebin', 'basename')] = instance
|
try:
|
||||||
|
basename = section['basename']
|
||||||
|
except KeyError:
|
||||||
|
print >> sys.stderr, _("%s: no 'basename' in [pastebin]") % filename
|
||||||
|
continue
|
||||||
|
|
||||||
|
pastebind[basename] = bininstance
|
||||||
return pastebind
|
return pastebind
|
||||||
|
|
||||||
# pastey.net obfuscates parent ids for replies. Rather than taking the
|
# pastey.net obfuscates parent ids for replies. Rather than taking the
|
||||||
|
@ -108,8 +102,7 @@ try:
|
||||||
return ""
|
return ""
|
||||||
url_opener = pasteURLopener()
|
url_opener = pasteURLopener()
|
||||||
page = url_opener.open(website + '/' + parentid, None)
|
page = url_opener.open(website + '/' + parentid, None)
|
||||||
matches = re.split('<input.*?name="' + paramname + '".*?value="(.*?)"',
|
matches = re.split('<input.*?name="' + paramname + '".*?value="(.*?)"', page.read())
|
||||||
page.read())
|
|
||||||
if len(matches) <= 1 or re.match(parentid, matches[1]) == None:
|
if len(matches) <= 1 or re.match(parentid, matches[1]) == None:
|
||||||
# The obfuscated version didn't begin with the partial version,
|
# The obfuscated version didn't begin with the partial version,
|
||||||
# or unable to find the obfuscated version for some reason!
|
# or unable to find the obfuscated version for some reason!
|
||||||
|
@ -118,21 +111,16 @@ try:
|
||||||
return matches[1]
|
return matches[1]
|
||||||
|
|
||||||
#Return the parameters depending of the pastebin used
|
#Return the parameters depending of the pastebin used
|
||||||
def getParameters(website, pastebind, content, user, jabberid, version,
|
def getParameters(website, pastebind, content, user, jabberid, version, format, parentpid, permatag, title, username, password):
|
||||||
format, parentpid, permatag, title, username,
|
|
||||||
password):
|
|
||||||
"Return the parameters array for the selected pastebin"
|
"Return the parameters array for the selected pastebin"
|
||||||
params = {}
|
params = {}
|
||||||
for pastebin in pastebind:
|
for pastebin in pastebind:
|
||||||
if re.search(pastebind[pastebin].get('pastebin', 'regexp'),
|
if re.search(pastebind[pastebin]['pastebin']['regexp'], website):
|
||||||
website):
|
if "sizelimit" in pastebind[pastebin]['pastebin']:
|
||||||
|
params['sizelimit'] = pastebind[pastebin]['pastebin']['sizelimit']
|
||||||
|
|
||||||
if pastebind[pastebin].has_option('pastebin', 'sizelimit'):
|
for param in pastebind[pastebin]['format'].keys():
|
||||||
params['sizelimit'] = pastebind[pastebin].get('pastebin',
|
paramname = pastebind[pastebin]['format'][param]
|
||||||
'sizelimit')
|
|
||||||
|
|
||||||
for param in pastebind[pastebin].options('format'):
|
|
||||||
paramname = pastebind[pastebin].get('format', param)
|
|
||||||
if param == 'user':
|
if param == 'user':
|
||||||
params[paramname] = user
|
params[paramname] = user
|
||||||
elif param == 'content':
|
elif param == 'content':
|
||||||
|
@ -144,8 +132,7 @@ try:
|
||||||
elif param == 'format':
|
elif param == 'format':
|
||||||
params[paramname] = format
|
params[paramname] = format
|
||||||
elif param == 'parentpid':
|
elif param == 'parentpid':
|
||||||
params[paramname] = doParentFixup(website, paramname,
|
params[paramname] = doParentFixup(website, paramname, parentpid)
|
||||||
parentpid)
|
|
||||||
elif param == 'permatag':
|
elif param == 'permatag':
|
||||||
params[paramname] = permatag
|
params[paramname] = permatag
|
||||||
elif param == 'username':
|
elif param == 'username':
|
||||||
|
@ -155,13 +142,11 @@ try:
|
||||||
elif param == 'jabberid':
|
elif param == 'jabberid':
|
||||||
params[paramname] = jabberid
|
params[paramname] = jabberid
|
||||||
else:
|
else:
|
||||||
params[paramname] = pastebind[pastebin].get('defaults',
|
params[paramname] = pastebind[pastebin]['defaults'][param]
|
||||||
param)
|
|
||||||
if params:
|
if params:
|
||||||
return params
|
return params
|
||||||
else:
|
else:
|
||||||
sys.exit(_("Unknown website, please post a bugreport to request "
|
sys.exit(_("Unknown website, please post a bugreport to request this pastebin to be added (%s)") % website)
|
||||||
"this pastebin to be added (%s)") % website)
|
|
||||||
|
|
||||||
#XML Handling methods
|
#XML Handling methods
|
||||||
def getText(nodelist):
|
def getText(nodelist):
|
||||||
|
@ -182,22 +167,20 @@ try:
|
||||||
|
|
||||||
# Display usage instructions
|
# Display usage instructions
|
||||||
def Usage():
|
def Usage():
|
||||||
print("pastebinit v" + version)
|
print "pastebinit v" + version
|
||||||
print(_(
|
print _("Reads on stdin for input or takes a filename as first parameter")
|
||||||
"Reads on stdin for input or takes a filename as first parameter"))
|
print _("Optional arguments (not supported by all pastebins):")
|
||||||
print(_("Optional arguments (not supported by all pastebins):"))
|
print _("\t-a <author:default is '%s'>") % user
|
||||||
print(_("\t-a <author:default is '%s'>") % user)
|
print _("\t-b <pastebin url:default is '%s'>") % website
|
||||||
print(_("\t-b <pastebin url:default is '%s'>") % website)
|
print _("\t-f <format of paste:default is '%s'>") % format
|
||||||
print(_("\t-f <format of paste:default is '%s'>") % format)
|
print _("\t-h This help screen")
|
||||||
print(_("\t-h This help screen"))
|
print _("\t-i <input file>")
|
||||||
print(_("\t-i <input file>"))
|
print _("\t-l List all supported pastebins")
|
||||||
print(_("\t-l List all supported pastebins"))
|
print _("\t-j <jabberid for notifications:default is '%s'>") % jabberid
|
||||||
print(_("\t-j <jabberid for notifications:default is '%s'>") %
|
print _("\t-m <permatag for all versions of a post:default is blank>")
|
||||||
jabberid)
|
print _("\t-r <parent posts ID:defaults to none>")
|
||||||
print(_("\t-m <permatag for all versions of a post:default is blank>"))
|
print _("\t-t <title of paste:default is blank>")
|
||||||
print(_("\t-r <parent posts ID:defaults to none>"))
|
print _("\t-u <username> -p <password>")
|
||||||
print(_("\t-t <title of paste:default is blank>"))
|
|
||||||
print(_("\t-u <username> -p <password>"))
|
|
||||||
|
|
||||||
# Set defaults
|
# Set defaults
|
||||||
website = defaultPB
|
website = defaultPB
|
||||||
|
@ -237,21 +220,18 @@ try:
|
||||||
if gotconfigxml:
|
if gotconfigxml:
|
||||||
try:
|
try:
|
||||||
configxml = xml.dom.minidom.parseString(configtext)
|
configxml = xml.dom.minidom.parseString(configtext)
|
||||||
for variable, key in (('pastebin', 'website'), ('author', 'user'),
|
for variable,key in (('pastebin','website'),('author','user'),('format','format'),('jabberid','jabberid')):
|
||||||
('format', 'format'),
|
|
||||||
('jabberid', 'jabberid')):
|
|
||||||
try:
|
try:
|
||||||
value = getFirstNodeText(configxml, variable)
|
value = getFirstNodeText(configxml, variable)
|
||||||
vars()[key] = value
|
vars()[key]=value
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
sys.exit(_("KeyboardInterrupt caught."))
|
sys.exit(_("KeyboardInterrupt caught."))
|
||||||
except:
|
except:
|
||||||
print(_("Error parsing configuration file!"))
|
print _("Error parsing configuration file!")
|
||||||
print(_(
|
print _("Please ensure that your configuration file looks similar to the following:")
|
||||||
"Please ensure that your configuration file looks similar to the following:"))
|
print configexample
|
||||||
print(configexample)
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Get options
|
# Get options
|
||||||
|
@ -260,13 +240,11 @@ try:
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
sys.exit(_("KeyboardInterrupt caught."))
|
sys.exit(_("KeyboardInterrupt caught."))
|
||||||
except getopt.GetoptError:
|
except getopt.GetoptError:
|
||||||
print(_("Invalid arguments!\n"))
|
print _("Invalid arguments!\n")
|
||||||
Usage()
|
Usage()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Get the config
|
pastebind = preloadPastebins() #get the config from /etc/pastebin.d/
|
||||||
pastebind = preloadPastebins()
|
|
||||||
|
|
||||||
# Iterate through options
|
# Iterate through options
|
||||||
for opt in optlist:
|
for opt in optlist:
|
||||||
if opt[0] == "-h":
|
if opt[0] == "-h":
|
||||||
|
@ -285,9 +263,9 @@ try:
|
||||||
elif opt[0] == "-j":
|
elif opt[0] == "-j":
|
||||||
jabberid = opt[1]
|
jabberid = opt[1]
|
||||||
elif opt[0] == "-l":
|
elif opt[0] == "-l":
|
||||||
print(_("Supported pastebins:"))
|
print _("Supported pastebins:")
|
||||||
for pastebin in sorted(pastebind):
|
for pastebin in sorted(pastebind):
|
||||||
print("- %s" % pastebin)
|
print "- %s" % pastebin
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
elif opt[0] == "-t":
|
elif opt[0] == "-t":
|
||||||
title = opt[1]
|
title = opt[1]
|
||||||
|
@ -301,8 +279,7 @@ try:
|
||||||
if filename == "" and len(list) >= 1:
|
if filename == "" and len(list) >= 1:
|
||||||
filename = list[0]
|
filename = list[0]
|
||||||
|
|
||||||
# If - is specified as a filename read from stdin
|
#If - is specified as a filename read from stdin, otherwise load the specified file.
|
||||||
# otherwise load the specified file.
|
|
||||||
if (filename == "" or filename == "-") and content == "":
|
if (filename == "" or filename == "-") and content == "":
|
||||||
content = sys.stdin.read()
|
content = sys.stdin.read()
|
||||||
elif content == "":
|
elif content == "":
|
||||||
|
@ -317,18 +294,14 @@ try:
|
||||||
if not content:
|
if not content:
|
||||||
sys.exit(_("You are trying to send an empty document, exiting."))
|
sys.exit(_("You are trying to send an empty document, exiting."))
|
||||||
|
|
||||||
# Get the parameter array
|
params = getParameters(website, pastebind, content, user, jabberid, version, format, parentpid, permatag, title, username, password) #Get the parameters array
|
||||||
params = getParameters(website, pastebind, content, user, jabberid,
|
|
||||||
version, format, parentpid, permatag, title,
|
|
||||||
username, password)
|
|
||||||
|
|
||||||
if not website.endswith("/"):
|
if not website.endswith("/"):
|
||||||
website += "/"
|
website += "/"
|
||||||
|
|
||||||
if "sizelimit" in params:
|
if "sizelimit" in params:
|
||||||
if len(content) > int(params['sizelimit']):
|
if len(content) > int(params['sizelimit']):
|
||||||
sys.exit(_(
|
sys.exit(_("The content you are trying to send exceeds the pastebin's size limit."))
|
||||||
"The content you are trying to send exceeds the pastebin's size limit."))
|
|
||||||
else:
|
else:
|
||||||
del params['sizelimit']
|
del params['sizelimit']
|
||||||
|
|
||||||
|
@ -357,39 +330,31 @@ try:
|
||||||
if post_format == 'json':
|
if post_format == 'json':
|
||||||
if json:
|
if json:
|
||||||
params = json.dumps(params)
|
params = json.dumps(params)
|
||||||
url_opener.addheader('Content-type', 'text/json')
|
url_opener.addheader('Content-type: text/json')
|
||||||
else:
|
else:
|
||||||
sys.exit(_("Could not find any json library."))
|
sys.exit(_("Could not find any json library."))
|
||||||
else:
|
else:
|
||||||
# Convert to a format usable with the HTML POST
|
params = urllib.urlencode(params) #Convert to a format usable with the HTML POST
|
||||||
params = urlencode(params)
|
|
||||||
|
|
||||||
# Send the informations and be redirected to the final page
|
page = url_opener.open(website, params) #Send the informations and be redirected to the final page
|
||||||
page = url_opener.open(website, params)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Check if we have to apply a regexp
|
if reLink: #Check if we have to apply a regexp
|
||||||
if reLink:
|
|
||||||
if target_url:
|
if target_url:
|
||||||
website = target_url
|
website = target_url
|
||||||
else:
|
else:
|
||||||
website = website.replace(tmp_page, "")
|
website = website.replace(tmp_page, "")
|
||||||
|
|
||||||
if reLink == '(.*)':
|
if reLink == '(.*)':
|
||||||
print(page.read().decode('utf-8').strip())
|
print page.read().strip()
|
||||||
else:
|
else:
|
||||||
# Print the result of the regexp
|
print website + re.split(reLink, page.read())[1] #Print the result of the Regexp
|
||||||
print(website + re.split(reLink,
|
|
||||||
page.read().decode('utf-8'))[1])
|
|
||||||
else:
|
else:
|
||||||
# Get the final page and show the url
|
print page.url #Get the final page and show the ur
|
||||||
print(page.url)
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
sys.exit(_("KeyboardInterrupt caught."))
|
sys.exit(_("KeyboardInterrupt caught."))
|
||||||
except:
|
except:
|
||||||
sys.exit(_("Unable to read or parse the result page, it could be a "
|
sys.exit(_("Unable to read or parse the result page, it could be a server timeout or a change server side, try with another pastebin."))
|
||||||
"server timeout or a change server side, "
|
|
||||||
"try with another pastebin."))
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
sys.exit(_("KeyboardInterrupt caught."))
|
sys.exit(_("KeyboardInterrupt caught."))
|
||||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
||||||
"Project-Id-Version: pastebinit\n"
|
"Project-Id-Version: pastebinit\n"
|
||||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||||
"PO-Revision-Date: 2012-10-23 12:24+0000\n"
|
"PO-Revision-Date: 2009-12-27 02:37+0000\n"
|
||||||
"Last-Translator: Dawid de Jager <dawid.dejager@gmail.com>\n"
|
"Last-Translator: Marius Bock <marius@henriska.co.za>\n"
|
||||||
"Language-Team: Afrikaans <af@li.org>\n"
|
"Language-Team: Afrikaans <af@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-10-24 04:30+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 16179)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
msgid "%s: no section [pastebin]"
|
msgid "%s: no section [pastebin]"
|
||||||
|
@ -119,7 +119,7 @@ msgstr "Kan nie van %s lees nie"
|
||||||
|
|
||||||
#: ../pastebinit:295
|
#: ../pastebinit:295
|
||||||
msgid "You are trying to send an empty document, exiting."
|
msgid "You are trying to send an empty document, exiting."
|
||||||
msgstr "U probeer 'n leë dokument stuur, word uitgegaan."
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:304
|
#: ../pastebinit:304
|
||||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||||
|
|
|
@ -8,18 +8,18 @@ msgstr ""
|
||||||
"Project-Id-Version: pastebinit 0.8.1\n"
|
"Project-Id-Version: pastebinit 0.8.1\n"
|
||||||
"Report-Msgid-Bugs-To: pastebinit@packages.debian.org\n"
|
"Report-Msgid-Bugs-To: pastebinit@packages.debian.org\n"
|
||||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||||
"PO-Revision-Date: 2012-02-17 11:36+0000\n"
|
"PO-Revision-Date: 2012-02-13 16:22+0000\n"
|
||||||
"Last-Translator: Hendrik Knackstedt <Unknown>\n"
|
"Last-Translator: Rolf Leggewie <Unknown>\n"
|
||||||
"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
|
"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-02-18 04:33+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 14814)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
msgid "%s: no section [pastebin]"
|
msgid "%s: no section [pastebin]"
|
||||||
msgstr "%s: Kein [pastebin]-Abschnitt"
|
msgstr "%s: Keine [pastebin] Sektion"
|
||||||
|
|
||||||
#: ../pastebinit:90
|
#: ../pastebinit:90
|
||||||
msgid "%s: no 'basename' in [pastebin]"
|
msgid "%s: no 'basename' in [pastebin]"
|
||||||
|
@ -35,12 +35,12 @@ msgid ""
|
||||||
"Unknown website, please post a bugreport to request this pastebin to be "
|
"Unknown website, please post a bugreport to request this pastebin to be "
|
||||||
"added (%s)"
|
"added (%s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Unbekannte Webseite. Bitte senden Sie einen Fehlerbericht, damit dieser "
|
"Unbekannte Webseite. Bitte sende einen Fehlerbericht, damit dieser Pastebin "
|
||||||
"Pastebin hinzugefügt werden kann (%s)"
|
"hinzugefügt werden kann (%s)"
|
||||||
|
|
||||||
#: ../pastebinit:171
|
#: ../pastebinit:171
|
||||||
msgid "Reads on stdin for input or takes a filename as first parameter"
|
msgid "Reads on stdin for input or takes a filename as first parameter"
|
||||||
msgstr "Standardeingabe oder von Datei als erstem Parameter auslesen"
|
msgstr "Liest Standardeingabe oder von Datei als erstem Parameter"
|
||||||
|
|
||||||
#: ../pastebinit:172
|
#: ../pastebinit:172
|
||||||
msgid "Optional arguments (not supported by all pastebins):"
|
msgid "Optional arguments (not supported by all pastebins):"
|
||||||
|
@ -106,7 +106,7 @@ msgstr "Fehler beim Auslesen der Konfigurationsdatei!"
|
||||||
msgid ""
|
msgid ""
|
||||||
"Please ensure that your configuration file looks similar to the following:"
|
"Please ensure that your configuration file looks similar to the following:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Bitte stellen Sie sicher, dass Ihre Konfigurationsdatei der folgenden ähnelt:"
|
"Bitte stelle sicher, dass Deine Konfigurationsdatei der folgenden ähnelt:"
|
||||||
|
|
||||||
#: ../pastebinit:243
|
#: ../pastebinit:243
|
||||||
msgid "Invalid arguments!\n"
|
msgid "Invalid arguments!\n"
|
||||||
|
@ -118,11 +118,11 @@ msgstr "Unterstützte Pastebins:"
|
||||||
|
|
||||||
#: ../pastebinit:293
|
#: ../pastebinit:293
|
||||||
msgid "Unable to read from: %s"
|
msgid "Unable to read from: %s"
|
||||||
msgstr "Lesen nicht möglich von: %s"
|
msgstr "Kann nicht lesen von: %s"
|
||||||
|
|
||||||
#: ../pastebinit:295
|
#: ../pastebinit:295
|
||||||
msgid "You are trying to send an empty document, exiting."
|
msgid "You are trying to send an empty document, exiting."
|
||||||
msgstr "Sie versuchen ein leeres Dokument zu senden, Abbruch."
|
msgstr "Du versuchst ein leeres Dokument ab zu senden, beende."
|
||||||
|
|
||||||
#: ../pastebinit:304
|
#: ../pastebinit:304
|
||||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||||
|
@ -132,13 +132,13 @@ msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:335
|
#: ../pastebinit:335
|
||||||
msgid "Could not find any json library."
|
msgid "Could not find any json library."
|
||||||
msgstr "Es konnte keine JSON-Bibliothek gefunden werden."
|
msgstr "Konnte keine JSON-Bibliothek finden."
|
||||||
|
|
||||||
#: ../pastebinit:357
|
#: ../pastebinit:357
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unable to read or parse the result page, it could be a server timeout or a "
|
"Unable to read or parse the result page, it could be a server timeout or a "
|
||||||
"change server side, try with another pastebin."
|
"change server side, try with another pastebin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Die Ergebnisseite kann nicht gelesen oder ausgewertet werden, dies könnte "
|
"Kann die Ergebnis-Seite nicht lesen oder auswerten, es könnte eine "
|
||||||
"durch eine Zeitüberschreitung des Servers oder eine Server-seitige "
|
"Zeitüberschreitung des Servers oder eine serverseitige Veränderung sein. "
|
||||||
"Veränderung verursacht worden sein. Versuchen Sie einen anderen Pastebin."
|
"Versuchen Sie einen anderen Pastebin."
|
||||||
|
|
|
@ -14,7 +14,7 @@ msgstr ""
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-02-16 04:44+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 14781)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
||||||
"Project-Id-Version: pastebinit\n"
|
"Project-Id-Version: pastebinit\n"
|
||||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||||
"PO-Revision-Date: 2012-02-16 00:01+0000\n"
|
"PO-Revision-Date: 2012-02-14 21:24+0000\n"
|
||||||
"Last-Translator: Fitoschido <fitoschido@gmail.com>\n"
|
"Last-Translator: Fitoschido <fitoschido@gmail.com>\n"
|
||||||
"Language-Team: Spanish <es@li.org>\n"
|
"Language-Team: Spanish <es@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-02-17 04:41+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 14814)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
msgid "%s: no section [pastebin]"
|
msgid "%s: no section [pastebin]"
|
||||||
|
@ -132,7 +132,7 @@ msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:335
|
#: ../pastebinit:335
|
||||||
msgid "Could not find any json library."
|
msgid "Could not find any json library."
|
||||||
msgstr "No se pudo encontrar ninguna biblioteca json."
|
msgstr "No se pudo encontrar ninguna biblioteca json"
|
||||||
|
|
||||||
#: ../pastebinit:357
|
#: ../pastebinit:357
|
||||||
msgid ""
|
msgid ""
|
||||||
|
|
|
@ -8,113 +8,107 @@ msgstr ""
|
||||||
"Project-Id-Version: pastebinit\n"
|
"Project-Id-Version: pastebinit\n"
|
||||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||||
"PO-Revision-Date: 2012-08-13 11:11+0000\n"
|
"PO-Revision-Date: 2009-12-26 19:36+0000\n"
|
||||||
"Last-Translator: Mei Hua Song <Unknown>\n"
|
"Last-Translator: karina dwityaning <k_29convenience@yahoo.co.uk>\n"
|
||||||
"Language-Team: Indonesian <id@li.org>\n"
|
"Language-Team: Indonesian <id@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-08-14 04:31+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 15791)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
msgid "%s: no section [pastebin]"
|
msgid "%s: no section [pastebin]"
|
||||||
msgstr "%s: tidak ada bagian [pastebin]"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:90
|
#: ../pastebinit:90
|
||||||
msgid "%s: no 'basename' in [pastebin]"
|
msgid "%s: no 'basename' in [pastebin]"
|
||||||
msgstr "%s: tidak ada 'nama dasar' di [pastebin]"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:115
|
#: ../pastebinit:115
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid "Return the parameters array for the selected pastebin"
|
msgid "Return the parameters array for the selected pastebin"
|
||||||
msgstr "Kembalikan urutan parameter untuk pastebin yang terpilih"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:149
|
#: ../pastebinit:149
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unknown website, please post a bugreport to request this pastebin to be "
|
"Unknown website, please post a bugreport to request this pastebin to be "
|
||||||
"added (%s)"
|
"added (%s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Situs jaringan tidak diketahui, harap kirimkan laporan bug agar pastebin ini "
|
|
||||||
"dapat ditambahkan (%s)"
|
|
||||||
|
|
||||||
#: ../pastebinit:171
|
#: ../pastebinit:171
|
||||||
msgid "Reads on stdin for input or takes a filename as first parameter"
|
msgid "Reads on stdin for input or takes a filename as first parameter"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Baca di stdin untuk data masuk atau ambil nama berkas sebagai parameter awal"
|
|
||||||
|
|
||||||
#: ../pastebinit:172
|
#: ../pastebinit:172
|
||||||
msgid "Optional arguments (not supported by all pastebins):"
|
msgid "Optional arguments (not supported by all pastebins):"
|
||||||
msgstr "Argumen pilihan (tidak didukung oleh semua pastebin):"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:173
|
#: ../pastebinit:173
|
||||||
msgid "\t-a <author:default is '%s'>"
|
msgid "\t-a <author:default is '%s'>"
|
||||||
msgstr "\t-a <penulis:default adalah '%s'>"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:174
|
#: ../pastebinit:174
|
||||||
msgid "\t-b <pastebin url:default is '%s'>"
|
msgid "\t-b <pastebin url:default is '%s'>"
|
||||||
msgstr "\t-b <pastebin url:default adalah '%s'>"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:175
|
#: ../pastebinit:175
|
||||||
msgid "\t-f <format of paste:default is '%s'>"
|
msgid "\t-f <format of paste:default is '%s'>"
|
||||||
msgstr "\t-f <format dari penempatan:default adalah '%s'>"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:176
|
#: ../pastebinit:176
|
||||||
msgid "\t-h This help screen"
|
msgid "\t-h This help screen"
|
||||||
msgstr "\t-h Ini akan membantu layar"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:177
|
#: ../pastebinit:177
|
||||||
msgid "\t-i <input file>"
|
msgid "\t-i <input file>"
|
||||||
msgstr "\t-i <berkas masukan>"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:178
|
#: ../pastebinit:178
|
||||||
msgid "\t-l List all supported pastebins"
|
msgid "\t-l List all supported pastebins"
|
||||||
msgstr "\t-l Daftar semua pastebin yang didukung"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:179
|
#: ../pastebinit:179
|
||||||
msgid "\t-j <jabberid for notifications:default is '%s'>"
|
msgid "\t-j <jabberid for notifications:default is '%s'>"
|
||||||
msgstr "\t-j <jabberid untuk pemberitahuan:default adalah '%s'>"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:180
|
#: ../pastebinit:180
|
||||||
msgid "\t-m <permatag for all versions of a post:default is blank>"
|
msgid "\t-m <permatag for all versions of a post:default is blank>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"\t-m <permatag untuk semua versi dari kiriman:default bernilai kosong>"
|
|
||||||
|
|
||||||
#: ../pastebinit:181
|
#: ../pastebinit:181
|
||||||
msgid "\t-r <parent posts ID:defaults to none>"
|
msgid "\t-r <parent posts ID:defaults to none>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"\t-r <Tanda pengenal kiriman utama:defaults hingga bernilai tidak ada>"
|
|
||||||
|
|
||||||
#: ../pastebinit:182
|
#: ../pastebinit:182
|
||||||
msgid "\t-t <title of paste:default is blank>"
|
msgid "\t-t <title of paste:default is blank>"
|
||||||
msgstr "\t-t <nama penempatan:default bernilai kosong>"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:183
|
#: ../pastebinit:183
|
||||||
msgid "\t-u <username> -p <password>"
|
msgid "\t-u <username> -p <password>"
|
||||||
msgstr "\t-u <nama pengguna> -p <kata kunci>"
|
msgstr "\t-u <username> -p <password>"
|
||||||
|
|
||||||
#: ../pastebinit:215 ../pastebinit:230 ../pastebinit:241 ../pastebinit:291
|
#: ../pastebinit:215 ../pastebinit:230 ../pastebinit:241 ../pastebinit:291
|
||||||
#: ../pastebinit:355 ../pastebinit:360
|
#: ../pastebinit:355 ../pastebinit:360
|
||||||
msgid "KeyboardInterrupt caught."
|
msgid "KeyboardInterrupt caught."
|
||||||
msgstr "GangguanKeyboard ditemukan."
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:232
|
#: ../pastebinit:232
|
||||||
msgid "Error parsing configuration file!"
|
msgid "Error parsing configuration file!"
|
||||||
msgstr "Galat memeriksa berkas pengaturan!"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:233
|
#: ../pastebinit:233
|
||||||
msgid ""
|
msgid ""
|
||||||
"Please ensure that your configuration file looks similar to the following:"
|
"Please ensure that your configuration file looks similar to the following:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Harap periksa berkas pengaturan Anda apakah sama dengan yang berikut ini:"
|
|
||||||
|
|
||||||
#: ../pastebinit:243
|
#: ../pastebinit:243
|
||||||
msgid "Invalid arguments!\n"
|
msgid "Invalid arguments!\n"
|
||||||
msgstr "Argumentasi tidak sah!\n"
|
msgstr "Argumen tidak valid!\n"
|
||||||
|
|
||||||
#: ../pastebinit:266
|
#: ../pastebinit:266
|
||||||
msgid "Supported pastebins:"
|
msgid "Supported pastebins:"
|
||||||
msgstr "Pastebin yang didukung:"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:293
|
#: ../pastebinit:293
|
||||||
msgid "Unable to read from: %s"
|
msgid "Unable to read from: %s"
|
||||||
|
@ -122,21 +116,18 @@ msgstr "Tidak dapat membaca dari: %s"
|
||||||
|
|
||||||
#: ../pastebinit:295
|
#: ../pastebinit:295
|
||||||
msgid "You are trying to send an empty document, exiting."
|
msgid "You are trying to send an empty document, exiting."
|
||||||
msgstr "Anda sedang mencoba mengirim dokumen kosong, keluar."
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:304
|
#: ../pastebinit:304
|
||||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||||
msgstr "Isi yang sedang Anda coba kirimkan melebihi batas ukuran pastebin."
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:335
|
#: ../pastebinit:335
|
||||||
msgid "Could not find any json library."
|
msgid "Could not find any json library."
|
||||||
msgstr "Tidak dapat menemukan pustaka json."
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:357
|
#: ../pastebinit:357
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unable to read or parse the result page, it could be a server timeout or a "
|
"Unable to read or parse the result page, it could be a server timeout or a "
|
||||||
"change server side, try with another pastebin."
|
"change server side, try with another pastebin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Tidak dapat membaca maupun memeriksa halaman hasil. Hal ini dapat "
|
|
||||||
"diakibatkan oleh kehabisan waktu penyedia atau sisi perubahan penyedia, "
|
|
||||||
"cobalah dengan pastebin lainnya."
|
|
||||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
||||||
"Project-Id-Version: pastebinit\n"
|
"Project-Id-Version: pastebinit\n"
|
||||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||||
"PO-Revision-Date: 2012-09-20 18:21+0000\n"
|
"PO-Revision-Date: 2011-02-06 22:59+0000\n"
|
||||||
"Last-Translator: Rolf Leggewie <Unknown>\n"
|
"Last-Translator: Nobuto MURATA <nobuto@nobuto-murata.org>\n"
|
||||||
"Language-Team: Japanese <ja@li.org>\n"
|
"Language-Team: Japanese <ja@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-09-21 04:32+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 15985)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
msgid "%s: no section [pastebin]"
|
msgid "%s: no section [pastebin]"
|
||||||
|
@ -124,7 +124,7 @@ msgstr "送信しようとしたコンテンツはpastebinの上限サイズを
|
||||||
|
|
||||||
#: ../pastebinit:335
|
#: ../pastebinit:335
|
||||||
msgid "Could not find any json library."
|
msgid "Could not find any json library."
|
||||||
msgstr "JSONライブラリーが見つかりません。"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:357
|
#: ../pastebinit:357
|
||||||
msgid ""
|
msgid ""
|
||||||
|
|
|
@ -14,7 +14,7 @@ msgstr ""
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-02-16 04:44+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 14781)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
||||||
"Project-Id-Version: pastebinit\n"
|
"Project-Id-Version: pastebinit\n"
|
||||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||||
"PO-Revision-Date: 2012-10-14 17:26+0000\n"
|
"PO-Revision-Date: 2011-01-24 16:45+0000\n"
|
||||||
"Last-Translator: Luís Sintra <lsintra93@gmail.com>\n"
|
"Last-Translator: Marco Rodrigues <Unknown>\n"
|
||||||
"Language-Team: Portuguese <pt@li.org>\n"
|
"Language-Team: Portuguese <pt@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-10-15 05:04+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 16137)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
msgid "%s: no section [pastebin]"
|
msgid "%s: no section [pastebin]"
|
||||||
|
@ -23,25 +23,24 @@ msgstr "%s: nenhuma secção [pastebin]"
|
||||||
|
|
||||||
#: ../pastebinit:90
|
#: ../pastebinit:90
|
||||||
msgid "%s: no 'basename' in [pastebin]"
|
msgid "%s: no 'basename' in [pastebin]"
|
||||||
msgstr "%s: sem 'basename' no [pastebin]"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:115
|
#: ../pastebinit:115
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid "Return the parameters array for the selected pastebin"
|
msgid "Return the parameters array for the selected pastebin"
|
||||||
msgstr "Retorna a lista de parâmetros para o pastebin selecionado"
|
msgstr "Retorna o array de parametros para o pastebin selecionado"
|
||||||
|
|
||||||
#: ../pastebinit:149
|
#: ../pastebinit:149
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unknown website, please post a bugreport to request this pastebin to be "
|
"Unknown website, please post a bugreport to request this pastebin to be "
|
||||||
"added (%s)"
|
"added (%s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Website desconhecido, por favor reporte um bug a solicitar que este pastebin "
|
"Website desconhecido, por favor reportar um pedido a requisitar que este "
|
||||||
"seja adicionado (%s)"
|
"serviço de pastebin seja adcicionado."
|
||||||
|
|
||||||
#: ../pastebinit:171
|
#: ../pastebinit:171
|
||||||
msgid "Reads on stdin for input or takes a filename as first parameter"
|
msgid "Reads on stdin for input or takes a filename as first parameter"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Lê o stdin como input ou leva um nome de ficheiro como primeiro parâmetro"
|
|
||||||
|
|
||||||
#: ../pastebinit:172
|
#: ../pastebinit:172
|
||||||
msgid "Optional arguments (not supported by all pastebins):"
|
msgid "Optional arguments (not supported by all pastebins):"
|
||||||
|
@ -49,15 +48,15 @@ msgstr "Argumentos opcionais (não é suportado por todos os pastebins):"
|
||||||
|
|
||||||
#: ../pastebinit:173
|
#: ../pastebinit:173
|
||||||
msgid "\t-a <author:default is '%s'>"
|
msgid "\t-a <author:default is '%s'>"
|
||||||
msgstr "\t-a <autor:por omissão é '%s'>"
|
msgstr "\t-a <autor:default é '%s'>"
|
||||||
|
|
||||||
#: ../pastebinit:174
|
#: ../pastebinit:174
|
||||||
msgid "\t-b <pastebin url:default is '%s'>"
|
msgid "\t-b <pastebin url:default is '%s'>"
|
||||||
msgstr "\t-b <pastebin url:por omissão é '%s'>"
|
msgstr "\t-b <pastebin url:default é '%s'>"
|
||||||
|
|
||||||
#: ../pastebinit:175
|
#: ../pastebinit:175
|
||||||
msgid "\t-f <format of paste:default is '%s'>"
|
msgid "\t-f <format of paste:default is '%s'>"
|
||||||
msgstr "\t-f <formato da colagem:por omissão é '%s'>"
|
msgstr "\t-f <formado do paste:defeito é '%s'>"
|
||||||
|
|
||||||
#: ../pastebinit:176
|
#: ../pastebinit:176
|
||||||
msgid "\t-h This help screen"
|
msgid "\t-h This help screen"
|
||||||
|
@ -69,24 +68,23 @@ msgstr "\t-i <ficheiro de entrada>"
|
||||||
|
|
||||||
#: ../pastebinit:178
|
#: ../pastebinit:178
|
||||||
msgid "\t-l List all supported pastebins"
|
msgid "\t-l List all supported pastebins"
|
||||||
msgstr "\t-l Listar todos os pastebins suportados"
|
msgstr "\t-l Listar os pastebins suportados"
|
||||||
|
|
||||||
#: ../pastebinit:179
|
#: ../pastebinit:179
|
||||||
msgid "\t-j <jabberid for notifications:default is '%s'>"
|
msgid "\t-j <jabberid for notifications:default is '%s'>"
|
||||||
msgstr "\t-j <jabberid para notificações:por omissão é '%s'>"
|
msgstr "\t-j <jabberid para notificações:o padrão é '%s'>"
|
||||||
|
|
||||||
#: ../pastebinit:180
|
#: ../pastebinit:180
|
||||||
msgid "\t-m <permatag for all versions of a post:default is blank>"
|
msgid "\t-m <permatag for all versions of a post:default is blank>"
|
||||||
msgstr ""
|
msgstr "\t-m <permatag para todas versões de um post:o padrão é vazio>"
|
||||||
"\t-m <permatag para todas as versões de um post:por omissão está em branco>"
|
|
||||||
|
|
||||||
#: ../pastebinit:181
|
#: ../pastebinit:181
|
||||||
msgid "\t-r <parent posts ID:defaults to none>"
|
msgid "\t-r <parent posts ID:defaults to none>"
|
||||||
msgstr "\t-r <ID das postagens pais:por omissão não há nenhum>"
|
msgstr "\t-r <ID das postagens pais:o padrão é nenhum>"
|
||||||
|
|
||||||
#: ../pastebinit:182
|
#: ../pastebinit:182
|
||||||
msgid "\t-t <title of paste:default is blank>"
|
msgid "\t-t <title of paste:default is blank>"
|
||||||
msgstr "\t-t <título da colagem:por omissão está em branco>"
|
msgstr "\t-t <título da colagem:o padrão é vazio>"
|
||||||
|
|
||||||
#: ../pastebinit:183
|
#: ../pastebinit:183
|
||||||
msgid "\t-u <username> -p <password>"
|
msgid "\t-u <username> -p <password>"
|
||||||
|
@ -118,26 +116,26 @@ msgstr "Pastebins suportados:"
|
||||||
|
|
||||||
#: ../pastebinit:293
|
#: ../pastebinit:293
|
||||||
msgid "Unable to read from: %s"
|
msgid "Unable to read from: %s"
|
||||||
msgstr "Incapaz de ler a partir de: %s"
|
msgstr "Impossível ler de: %s"
|
||||||
|
|
||||||
#: ../pastebinit:295
|
#: ../pastebinit:295
|
||||||
msgid "You are trying to send an empty document, exiting."
|
msgid "You are trying to send an empty document, exiting."
|
||||||
msgstr "Está a tentar enviar um documento vazio... a sair."
|
msgstr "Você está tentando enviar um documento vazio, saindo."
|
||||||
|
|
||||||
#: ../pastebinit:304
|
#: ../pastebinit:304
|
||||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"O conteúdo que está a tentar enviar excede o tamanho limite do pastebin."
|
"O conteúdo que está a tentar enviar, excede o tamanho limite do pastebin."
|
||||||
|
|
||||||
#: ../pastebinit:335
|
#: ../pastebinit:335
|
||||||
msgid "Could not find any json library."
|
msgid "Could not find any json library."
|
||||||
msgstr "Não foi possível encontrar qualquer biblioteca json."
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:357
|
#: ../pastebinit:357
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unable to read or parse the result page, it could be a server timeout or a "
|
"Unable to read or parse the result page, it could be a server timeout or a "
|
||||||
"change server side, try with another pastebin."
|
"change server side, try with another pastebin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Incapaz de ler ou interpretar a página de resultados. Isto pode dever-se ao "
|
"Não foi possível ler ou interpretar a página de resultados, isto pode-se "
|
||||||
"esgotamento do tempo ou a uma mudança do servidor. Por favor tente outro "
|
"dever a um \"time out\" do servidor ou a uma mudança do servidor, por favor "
|
||||||
"pastebin."
|
"tente outro pastebin."
|
||||||
|
|
|
@ -8,22 +8,22 @@ msgstr ""
|
||||||
"Project-Id-Version: pastebinit\n"
|
"Project-Id-Version: pastebinit\n"
|
||||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||||
"PO-Revision-Date: 2012-03-19 21:30+0000\n"
|
"PO-Revision-Date: 2010-02-18 02:39+0000\n"
|
||||||
"Last-Translator: Daniel Nylander <yeager@ubuntu.com>\n"
|
"Last-Translator: Stéphane Graber <stgraber@stgraber.org>\n"
|
||||||
"Language-Team: Swedish <sv@li.org>\n"
|
"Language-Team: Swedish <sv@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-03-20 04:31+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 14969)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
msgid "%s: no section [pastebin]"
|
msgid "%s: no section [pastebin]"
|
||||||
msgstr "%s: inget avsnitt [pastebin]"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:90
|
#: ../pastebinit:90
|
||||||
msgid "%s: no 'basename' in [pastebin]"
|
msgid "%s: no 'basename' in [pastebin]"
|
||||||
msgstr "%s: ingen \"basename\" i [pastebin]"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:115
|
#: ../pastebinit:115
|
||||||
#, docstring
|
#, docstring
|
||||||
|
@ -35,56 +35,56 @@ msgid ""
|
||||||
"Unknown website, please post a bugreport to request this pastebin to be "
|
"Unknown website, please post a bugreport to request this pastebin to be "
|
||||||
"added (%s)"
|
"added (%s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Okänd webbplats, posta gärna en felrapport för att lägga till den begärda "
|
"Okänd webbsida, var snäll och posta en bugrapport för att lägga till den "
|
||||||
"pastebin (%s)"
|
"begärda pastebin (%s)"
|
||||||
|
|
||||||
#: ../pastebinit:171
|
#: ../pastebinit:171
|
||||||
msgid "Reads on stdin for input or takes a filename as first parameter"
|
msgid "Reads on stdin for input or takes a filename as first parameter"
|
||||||
msgstr "Läser på standard in eller tar ett filnamn som första parameter"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:172
|
#: ../pastebinit:172
|
||||||
msgid "Optional arguments (not supported by all pastebins):"
|
msgid "Optional arguments (not supported by all pastebins):"
|
||||||
msgstr "Valfria argument (stöds inte av alla pastebin):"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:173
|
#: ../pastebinit:173
|
||||||
msgid "\t-a <author:default is '%s'>"
|
msgid "\t-a <author:default is '%s'>"
|
||||||
msgstr "\t-a <författare:standard är \"%s\">"
|
msgstr "\t-a <författare:standard är '%s'>"
|
||||||
|
|
||||||
#: ../pastebinit:174
|
#: ../pastebinit:174
|
||||||
msgid "\t-b <pastebin url:default is '%s'>"
|
msgid "\t-b <pastebin url:default is '%s'>"
|
||||||
msgstr "\t-b <pastebin url:standard är \"%s\">"
|
msgstr "\t-b <pastebin url:standard är '%s'>"
|
||||||
|
|
||||||
#: ../pastebinit:175
|
#: ../pastebinit:175
|
||||||
msgid "\t-f <format of paste:default is '%s'>"
|
msgid "\t-f <format of paste:default is '%s'>"
|
||||||
msgstr "\t-f <format för paste:standard är \"%s\">"
|
msgstr "\t-f <format för paste:standard är '%s'>"
|
||||||
|
|
||||||
#: ../pastebinit:176
|
#: ../pastebinit:176
|
||||||
msgid "\t-h This help screen"
|
msgid "\t-h This help screen"
|
||||||
msgstr "\t-h Denna hjälpskärmen"
|
msgstr "\t-h Den här hjälpen"
|
||||||
|
|
||||||
#: ../pastebinit:177
|
#: ../pastebinit:177
|
||||||
msgid "\t-i <input file>"
|
msgid "\t-i <input file>"
|
||||||
msgstr "\t-i <inmatningsfil>"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:178
|
#: ../pastebinit:178
|
||||||
msgid "\t-l List all supported pastebins"
|
msgid "\t-l List all supported pastebins"
|
||||||
msgstr "\t-l Lista alla pastebins som stöds"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:179
|
#: ../pastebinit:179
|
||||||
msgid "\t-j <jabberid for notifications:default is '%s'>"
|
msgid "\t-j <jabberid for notifications:default is '%s'>"
|
||||||
msgstr "\t-j <jabberid för notifieringar:standard är \"%s\">"
|
msgstr "\t-j <jabberid för notifieringar:standard är '%s'>"
|
||||||
|
|
||||||
#: ../pastebinit:180
|
#: ../pastebinit:180
|
||||||
msgid "\t-m <permatag for all versions of a post:default is blank>"
|
msgid "\t-m <permatag for all versions of a post:default is blank>"
|
||||||
msgstr "\t-m <permatagg för alla versioner av en post:standard är blank>"
|
msgstr "\t-m <permatag för alla versioner av en post:standard är blank>"
|
||||||
|
|
||||||
#: ../pastebinit:181
|
#: ../pastebinit:181
|
||||||
msgid "\t-r <parent posts ID:defaults to none>"
|
msgid "\t-r <parent posts ID:defaults to none>"
|
||||||
msgstr "\t-r <föräldraposters ID:standardvärde är ingen>"
|
msgstr "\t-r <förälder posts ID:standard är tom>"
|
||||||
|
|
||||||
#: ../pastebinit:182
|
#: ../pastebinit:182
|
||||||
msgid "\t-t <title of paste:default is blank>"
|
msgid "\t-t <title of paste:default is blank>"
|
||||||
msgstr "\t-t <titel för paste:standard är tom>"
|
msgstr "\t-t <paste titel:standard är blank>"
|
||||||
|
|
||||||
#: ../pastebinit:183
|
#: ../pastebinit:183
|
||||||
msgid "\t-u <username> -p <password>"
|
msgid "\t-u <username> -p <password>"
|
||||||
|
@ -97,12 +97,12 @@ msgstr "KeyboardInterrupt fångat."
|
||||||
|
|
||||||
#: ../pastebinit:232
|
#: ../pastebinit:232
|
||||||
msgid "Error parsing configuration file!"
|
msgid "Error parsing configuration file!"
|
||||||
msgstr "Fel vid tolkning av konfigurationsfilen!"
|
msgstr "Fel vid parsning av konfigurationsfil!"
|
||||||
|
|
||||||
#: ../pastebinit:233
|
#: ../pastebinit:233
|
||||||
msgid ""
|
msgid ""
|
||||||
"Please ensure that your configuration file looks similar to the following:"
|
"Please ensure that your configuration file looks similar to the following:"
|
||||||
msgstr "Försäkra dig om att din konfigurationsfil liknar följande:"
|
msgstr "Se till att konfigurationsfilen liknar följande:"
|
||||||
|
|
||||||
#: ../pastebinit:243
|
#: ../pastebinit:243
|
||||||
msgid "Invalid arguments!\n"
|
msgid "Invalid arguments!\n"
|
||||||
|
@ -110,7 +110,7 @@ msgstr "Ogiltiga argument!\n"
|
||||||
|
|
||||||
#: ../pastebinit:266
|
#: ../pastebinit:266
|
||||||
msgid "Supported pastebins:"
|
msgid "Supported pastebins:"
|
||||||
msgstr "Pastebins som stöds:"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:293
|
#: ../pastebinit:293
|
||||||
msgid "Unable to read from: %s"
|
msgid "Unable to read from: %s"
|
||||||
|
@ -123,17 +123,15 @@ msgstr "Du försöker skicka ett tomt dokument, avslutar."
|
||||||
#: ../pastebinit:304
|
#: ../pastebinit:304
|
||||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Innehållet som du försöker att skicka överstiger storleksgränsen för denna "
|
|
||||||
"pastebin."
|
|
||||||
|
|
||||||
#: ../pastebinit:335
|
#: ../pastebinit:335
|
||||||
msgid "Could not find any json library."
|
msgid "Could not find any json library."
|
||||||
msgstr "Kunde inte hitta något json-bibliotek."
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:357
|
#: ../pastebinit:357
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unable to read or parse the result page, it could be a server timeout or a "
|
"Unable to read or parse the result page, it could be a server timeout or a "
|
||||||
"change server side, try with another pastebin."
|
"change server side, try with another pastebin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Kan inte läsa eller tolka resultatsidan. Det kan bero på att tidsgränsen för "
|
"Kan inte läsa eller tolka resultatsidan. Det kan bero på en server timeout "
|
||||||
"servern överstegs eller en ändring på servern. Försök med en annan pastebin."
|
"eller en ändring på servern. Försök med en annan pastebin."
|
||||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
||||||
"Project-Id-Version: pastebinit\n"
|
"Project-Id-Version: pastebinit\n"
|
||||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||||
"PO-Revision-Date: 2012-06-01 17:12+0000\n"
|
"PO-Revision-Date: 2009-12-27 02:37+0000\n"
|
||||||
"Last-Translator: Şâkir Aşçı <Unknown>\n"
|
"Last-Translator: Stéphane Graber <stgraber@stgraber.org>\n"
|
||||||
"Language-Team: Turkish <tr@li.org>\n"
|
"Language-Team: Turkish <tr@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-06-02 05:11+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 15342)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
"X-Poedit-Country: TURKEY\n"
|
"X-Poedit-Country: TURKEY\n"
|
||||||
"X-Poedit-Language: Turkish\n"
|
"X-Poedit-Language: Turkish\n"
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ msgstr "Geçersiz argümanlar!\n"
|
||||||
|
|
||||||
#: ../pastebinit:266
|
#: ../pastebinit:266
|
||||||
msgid "Supported pastebins:"
|
msgid "Supported pastebins:"
|
||||||
msgstr "Desteklenen pastebinler:"
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:293
|
#: ../pastebinit:293
|
||||||
msgid "Unable to read from: %s"
|
msgid "Unable to read from: %s"
|
||||||
|
@ -125,11 +125,10 @@ msgstr "Boş bir belge göndermeye çalışıyordunuz, çıkılıyor."
|
||||||
#: ../pastebinit:304
|
#: ../pastebinit:304
|
||||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Göndermeye çalıştığınız içerik yapıştırmakutusu'nun boyut sınırını aşıyor."
|
|
||||||
|
|
||||||
#: ../pastebinit:335
|
#: ../pastebinit:335
|
||||||
msgid "Could not find any json library."
|
msgid "Could not find any json library."
|
||||||
msgstr "Herhangi bir json kitaplığı bulunamadı."
|
msgstr ""
|
||||||
|
|
||||||
#: ../pastebinit:357
|
#: ../pastebinit:357
|
||||||
msgid ""
|
msgid ""
|
||||||
|
|
|
@ -14,7 +14,7 @@ msgstr ""
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2012-02-16 04:44+0000\n"
|
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||||
"X-Generator: Launchpad (build 14781)\n"
|
"X-Generator: Launchpad (build 14781)\n"
|
||||||
|
|
||||||
#: ../pastebinit:84
|
#: ../pastebinit:84
|
||||||
|
|
|
@ -23,7 +23,6 @@ SearchString=True
|
||||||
[OpenFile]
|
[OpenFile]
|
||||||
File[1]=".src/Finfosys.form"
|
File[1]=".src/Finfosys.form"
|
||||||
File[2]=".src/Finfosys.class:7.49"
|
File[2]=".src/Finfosys.class:7.49"
|
||||||
Active=3
|
|
||||||
File[3]=".src/Global.class:12.7"
|
File[3]=".src/Global.class:12.7"
|
||||||
File[4]=".src/About.form"
|
File[4]=".src/About.form"
|
||||||
File[5]=".src/About.class:83.22"
|
File[5]=".src/About.class:83.22"
|
||||||
|
@ -36,9 +35,10 @@ File[11]=".src/ScreenShotM.module:7.0"
|
||||||
File[12]=".src/USB_Drives.module:39.66"
|
File[12]=".src/USB_Drives.module:39.66"
|
||||||
File[13]=".src/Asound_Drives.module:33.27"
|
File[13]=".src/Asound_Drives.module:33.27"
|
||||||
File[14]=".src/HWmon_coretemp.module:4.1"
|
File[14]=".src/HWmon_coretemp.module:4.1"
|
||||||
File[15]=".src/Reportm.module:319.10"
|
Active=15
|
||||||
|
File[15]=".src/Reportm.module:336.33"
|
||||||
File[16]=".src/FReport_Gen.form"
|
File[16]=".src/FReport_Gen.form"
|
||||||
File[17]=".src/FReport_Gen.class:23.27"
|
File[17]=".src/FReport_Gen.class:30.1"
|
||||||
File[18]=".src/Start_App_Args.form"
|
File[18]=".src/Start_App_Args.form"
|
||||||
File[19]=".src/Start_App_Args.class:38.13"
|
File[19]=".src/Start_App_Args.class:38.13"
|
||||||
File[20]=".src/ChkPrm.module:15.0"
|
File[20]=".src/ChkPrm.module:15.0"
|
||||||
|
|
|
@ -12,16 +12,21 @@ Public Sub Form_Open()
|
||||||
ComboBox1.Add("paste2.org")
|
ComboBox1.Add("paste2.org")
|
||||||
ComboBox1.Add("pastebin.com")
|
ComboBox1.Add("pastebin.com")
|
||||||
ComboBox1.Add("paste.debian.net")
|
ComboBox1.Add("paste.debian.net")
|
||||||
|
ComboBox1.Add("paste.debian.net")
|
||||||
ComboBox1.Add("paste.drizzle.org")
|
ComboBox1.Add("paste.drizzle.org")
|
||||||
ComboBox1.Add("paste.kde.org")
|
ComboBox1.Add("paste.kde.org")
|
||||||
ComboBox1.Add("paste.openstack.org")
|
ComboBox1.Add("paste.openstack.org")
|
||||||
|
ComboBox1.Add("paste.pocoo.org")
|
||||||
ComboBox1.Add("paste.pound-python.org")
|
ComboBox1.Add("paste.pound-python.org")
|
||||||
ComboBox1.Add("paste.ubuntu.com")
|
ComboBox1.Add("paste.ubuntu.com")
|
||||||
ComboBox1.Add("paste.ubuntu.org.cn")
|
ComboBox1.Add("paste.ubuntu.org.cn")
|
||||||
|
ComboBox1.Add("pastie.org")
|
||||||
ComboBox1.Add("pb.daviey.com")
|
ComboBox1.Add("pb.daviey.com")
|
||||||
ComboBox1.Add("p.defau.lt")
|
ComboBox1.Add("p.defau.lt")
|
||||||
ComboBox1.Add("slexy.org")
|
ComboBox1.Add("slexy.org")
|
||||||
ComboBox1.Add("sprunge.us")
|
ComboBox1.Add("sprunge.us")
|
||||||
|
ComboBox1.Add("yourpaste.net")
|
||||||
|
|
||||||
Me.Center
|
Me.Center
|
||||||
|
|
||||||
End
|
End
|
||||||
|
|
22
test.sh
22
test.sh
|
@ -1,18 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
teststring="blah blah blah"
|
teststring="blah blah blah"
|
||||||
|
|
||||||
for interpreter in python python3
|
for pastebin in $(./pastebinit -l | egrep "^-" | sed "s/^- //g")
|
||||||
do
|
do
|
||||||
for pastebin in $(./pastebinit -l | egrep "^-" | sed "s/^- //g")
|
echo "Trying http://$pastebin"
|
||||||
do
|
URL=$(echo -e "$teststring\n$teststring\n$teststring" | ./pastebinit -b http://$pastebin)
|
||||||
echo "Trying http://$pastebin ($interpreter)"
|
out=$(wget -O - -q "$URL" | grep "$teststring")
|
||||||
URL=$(echo -e "$teststring\n$teststring\n$teststring" | $interpreter pastebinit -b http://$pastebin)
|
if [ -n "$out" ]; then
|
||||||
out=$(wget -O - -q "$URL" | grep "$teststring")
|
echo "PASS: http://$pastebin ($URL)"
|
||||||
if [ -n "$out" ]; then
|
else
|
||||||
echo "PASS: http://$pastebin ($URL) ($interpreter)"
|
echo "FAIL: http://$pastebin ($URL)"
|
||||||
else
|
fi
|
||||||
echo "FAIL: http://$pastebin ($URL) ($interpreter)"
|
|
||||||
fi
|
|
||||||
echo ""
|
|
||||||
done
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue