repo_name
stringlengths 4
116
| path
stringlengths 4
379
| size
stringlengths 1
7
| content
stringlengths 3
1.05M
| license
stringclasses 15
values |
---|---|---|---|---|
aliyun/aliyun-oss-csharp-sdk | sdk/Common/Communication/ServiceClient.cs | 3572 | /*
* Copyright (C) Alibaba Cloud Computing
* All rights reserved.
*
*/
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Aliyun.OSS.Util;
using Aliyun.OSS.Common.Handlers;
using Aliyun.OSS.Properties;
namespace Aliyun.OSS.Common.Communication
{
/// <summary>
/// The default implementation of <see cref="IServiceClient" />.
/// </summary>
internal abstract class ServiceClient : IServiceClient
{
#region Fields and Properties
private readonly ClientConfiguration _configuration;
internal ClientConfiguration Configuration
{
get { return _configuration; }
}
#endregion
#region Constructors
protected ServiceClient(ClientConfiguration configuration)
{
_configuration = configuration;
}
public static ServiceClient Create(ClientConfiguration configuration)
{
#if NETCOREAPP2_0
//return new ServiceClientImpl(configuration);
if (configuration.UseNewServiceClient)
{
return new ServiceClientNewImpl(configuration);
}
else
{
return new ServiceClientImpl(configuration);
}
#else
return new ServiceClientImpl(configuration);
#endif
}
#endregion
#region IServiceClient Members
public ServiceResponse Send(ServiceRequest request, ExecutionContext context)
{
SignRequest(request, context);
var response = SendCore(request, context);
HandleResponse(response, context.ResponseHandlers);
return response;
}
public IAsyncResult BeginSend(ServiceRequest request, ExecutionContext context,
AsyncCallback callback, object state)
{
SignRequest(request, context);
return BeginSendCore(request, context, callback, state);
}
public ServiceResponse EndSend(IAsyncResult aysncResult)
{
var ar = aysncResult as AsyncResult<ServiceResponse>;
Debug.Assert(ar != null);
if (ar == null)
{
throw new ArgumentException("ar must be type of AsyncResult<ServiceResponse>");
}
try
{
// Must dispose the async result instance.
var result = ar.GetResult();
ar.Dispose();
return result;
}
catch (ObjectDisposedException)
{
throw new InvalidOperationException(Resources.ExceptionEndOperationHasBeenCalled);
}
}
#endregion
protected abstract ServiceResponse SendCore(ServiceRequest request, ExecutionContext context);
protected abstract IAsyncResult BeginSendCore(ServiceRequest request, ExecutionContext context,
AsyncCallback callback, Object state);
private static void SignRequest(ServiceRequest request, ExecutionContext context)
{
if (context.Signer != null)
context.Signer.Sign(request, context.Credentials);
}
protected static void HandleResponse(ServiceResponse response, IEnumerable<IResponseHandler> handlers)
{
foreach (var handler in handlers)
handler.Handle(response);
}
}
}
| mit |
SkillsFundingAgency/das-providerapprenticeshipsservice | src/SFA.DAS.ProviderApprenticeshipsService.Web/Models/ApprenticeshipDetailsViewModel.cs | 1767 | using System;
using System.Collections.Generic;
using SFA.DAS.ProviderApprenticeshipsService.Web.Models.DataLock;
namespace SFA.DAS.ProviderApprenticeshipsService.Web.Models
{
public class ApprenticeshipDetailsViewModel : ViewModelBase
{
public string HashedApprenticeshipId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime? DateOfBirth { get; set; }
public string Uln { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public DateTime? StopDate { get; set; }
public string TrainingName { get; set; }
public decimal? Cost { get; set; }
public string Status { get; set; }
public string EmployerName { get; set; }
public PendingChanges PendingChanges { get; set; }
public string ProviderReference { get; set; }
public string CohortReference { get; set; }
public string AccountLegalEntityPublicHashedId { get; set; }
public bool EnableEdit { get; set; }
public List<string> Alerts { get; set; }
//todo: this is not used in the manage apprentices list, so maybe create a new
//viewmodel for that page?
public DataLockSummaryViewModel DataLockSummaryViewModel { get; set; }
public bool HasHadDataLockSuccess { get; set; }
public ApprenticeshipFiltersViewModel SearchFiltersForListView { get; set; }
}
public enum DataLockErrorType
{
None = 0,
RestartRequired = 1,
UpdateNeeded = 2
}
public enum PendingChanges
{
None = 0,
ReadyForApproval = 1,
WaitingForEmployer = 2
}
} | mit |
mcasperson/IridiumApplicationTesting | src/main/resources-full/zap/scripts/templates/authentication/Simple Form-Based Authentication.js | 4135 | // This authentication script can be used to authenticate in a webapplication via forms.
// The submit target for the form, the name of the username field, the name of the password field
// and, optionally, any extra POST Data fields need to be specified after loading the script.
// The username and the password need to be configured when creating any Users.
// The authenticate function is called whenever ZAP requires to authenticate, for a Context for which this script
// was selected as the Authentication Method. The function should send any messages that are required to do the authentication
// and should return a message with an authenticated response so the calling method.
//
// NOTE: Any message sent in the function should be obtained using the 'helper.prepareMessage()' method.
//
// Parameters:
// helper - a helper class providing useful methods: prepareMessage(), sendAndReceive(msg)
// paramsValues - the values of the parameters configured in the Session Properties -> Authentication panel.
// The paramsValues is a map, having as keys the parameters names (as returned by the getRequiredParamsNames()
// and getOptionalParamsNames() functions below)
// credentials - an object containing the credentials values, as configured in the Session Properties -> Users panel.
// The credential values can be obtained via calls to the getParam(paramName) method. The param names are the ones
// returned by the getCredentialsParamsNames() below
function authenticate(helper, paramsValues, credentials) {
print("Authenticating via JavaScript script...");
// Make sure any Java classes used explicitly are imported
var HttpRequestHeader = Java.type("org.parosproxy.paros.network.HttpRequestHeader")
var HttpHeader = Java.type("org.parosproxy.paros.network.HttpHeader")
var URI = Java.type("org.apache.commons.httpclient.URI")
// Prepare the login request details
requestUri = new URI(paramsValues.get("Target URL"), false);
requestMethod = HttpRequestHeader.POST;
// Build the request body using the credentials values
extraPostData = paramsValues.get("Extra POST data");
requestBody = paramsValues.get("Username field") + "=" + encodeURIComponent(credentials.getParam("Username"));
requestBody+= "&" + paramsValues.get("Password field") + "=" + encodeURIComponent(credentials.getParam("Password"));
if(extraPostData.trim().length() > 0)
requestBody += "&" + extraPostData.trim();
// Build the actual message to be sent
print("Sending " + requestMethod + " request to " + requestUri + " with body: " + requestBody);
msg = helper.prepareMessage();
msg.setRequestHeader(new HttpRequestHeader(requestMethod, requestUri, HttpHeader.HTTP10));
msg.setRequestBody(requestBody);
// Send the authentication message and return it
helper.sendAndReceive(msg);
print("Received response status code: " + msg.getResponseHeader().getStatusCode());
return msg;
}
// This function is called during the script loading to obtain a list of the names of the required configuration parameters,
// that will be shown in the Session Properties -> Authentication panel for configuration. They can be used
// to input dynamic data into the script, from the user interface (e.g. a login URL, name of POST parameters etc.)
function getRequiredParamsNames(){
return ["Target URL", "Username field", "Password field"];
}
// This function is called during the script loading to obtain a list of the names of the optional configuration parameters,
// that will be shown in the Session Properties -> Authentication panel for configuration. They can be used
// to input dynamic data into the script, from the user interface (e.g. a login URL, name of POST parameters etc.)
function getOptionalParamsNames(){
return ["Extra POST data"];
}
// This function is called during the script loading to obtain a list of the names of the parameters that are required,
// as credentials, for each User configured corresponding to an Authentication using this script
function getCredentialsParamsNames(){
return ["Username", "Password"];
}
| mit |
FAU-Inf2/rpgpack-android | src/de/fau/cs/mad/rpgpack/matrix/SettingValueDialogFragment.java | 7773 | package de.fau.cs.mad.rpgpack.matrix;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;
import de.fau.cs.mad.rpgpack.R;
/**
* This class handles pop up to set new value to the matrix element.
*
*/
public class SettingValueDialogFragment extends DialogFragment {
private static final String KEY_SAVE_MATRIX_VALUE = "KEY_SAVE_MATRIX_VALUE";
private static final String KEY_SAVE_MATRIX_ITEM = "KEY_SAVE_MATRIX_ITEM";
private static final String KEY_SAVE_SEL_ITEMS = "KEY_SAVE_SEL_ITEMS";
private static final String KEY_SAVE_ADAPTER = "KEY_SAVE_ADAPTER";
private static final String KEY_SAVE_ADAPTER_ALL_ITEMS = "KEY_SAVE_ADAPTER_ALL_ITEMS";
private EditText editTextMatrixValue;
protected ArrayAdapter<MatrixItem> editModeAdapter;
protected ArrayAdapter<MatrixItem> playAdapter;
protected ArrayList<MatrixItem> playMatrixItems;
public MatrixItem matrixItem = null;
public MatrixFragment matrixFragment;
public static SettingValueDialogFragment newInstance(MatrixFragment receiver) {
SettingValueDialogFragment frag = new SettingValueDialogFragment();
frag.matrixFragment = receiver;
return frag;
}
public void passAdapterEdit(ArrayAdapter<MatrixItem> editModeAdapter) {
this.editModeAdapter = editModeAdapter;
}
public void passAdapterNormal(ArrayAdapter<MatrixItem> playAdapter) {
this.playAdapter = playAdapter;
}
public void passSelItems(List<MatrixItem> playMatrixItems) {
this.playMatrixItems = (ArrayList<MatrixItem>) playMatrixItems;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Restore the fragment's state here
if (savedInstanceState != null) {
matrixFragment = (MatrixFragment) getFragmentManager().getFragment(
savedInstanceState, "matrixFragment");
}
}
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(
getActivity());
View view = getActivity().getLayoutInflater().inflate(
R.layout.dialog_fragment_setting_matrix_value, null);
editTextMatrixValue = (EditText) view
.findViewById(R.id.editTextMatrixValue);
// retain values
if (savedInstanceState != null) {
if (savedInstanceState.containsKey(KEY_SAVE_MATRIX_VALUE)) {
editTextMatrixValue.setText((savedInstanceState
.getString(KEY_SAVE_MATRIX_VALUE)));
}
if (savedInstanceState.containsKey(KEY_SAVE_MATRIX_ITEM)) {
matrixItem = (MatrixItem) savedInstanceState
.getSerializable(KEY_SAVE_MATRIX_ITEM);
}
if (savedInstanceState.containsKey(KEY_SAVE_SEL_ITEMS)) {
playMatrixItems = (ArrayList<MatrixItem>) savedInstanceState
.getSerializable(KEY_SAVE_SEL_ITEMS);
}
if (savedInstanceState.containsKey(KEY_SAVE_ADAPTER)) {
editModeAdapter = (ArrayAdapter<MatrixItem>) savedInstanceState
.getSerializable(KEY_SAVE_ADAPTER);
}
if (savedInstanceState.containsKey(KEY_SAVE_ADAPTER_ALL_ITEMS)) {
playAdapter = (ArrayAdapter<MatrixItem>) savedInstanceState
.getSerializable(KEY_SAVE_ADAPTER_ALL_ITEMS);
}
}
// set default popup value to the current matrix value
editTextMatrixValue.setText(matrixItem.getValue());
alertDialogBuilder.setView(view);
alertDialogBuilder.setTitle(getResources().getString(
R.string.string_set_matrix_value));
// create add and subtract buttons for the dialog
ImageButton addButton = (ImageButton) view
.findViewById(R.id.button_add_column);
addButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
int oldValue;
if (editTextMatrixValue == null
|| editTextMatrixValue.getText() == null
|| editTextMatrixValue.getText().toString().equals("")) {
// if no value is set, then use a default one (here is 0)
oldValue = 0;
} else {
oldValue = (Integer.parseInt(editTextMatrixValue.getText()
.toString()));
}
int newValue = oldValue + 1;
editTextMatrixValue.setText(Integer.toString(newValue));
}
});
ImageButton subtractButton = (ImageButton) view
.findViewById(R.id.button_remove_column);
subtractButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
int oldValue;
if (editTextMatrixValue == null
|| editTextMatrixValue.getText() == null
|| editTextMatrixValue.getText().toString().equals("")) {
// if no value is set, then use a default one (here is 0)
oldValue = 0;
} else {
oldValue = (Integer.parseInt(editTextMatrixValue.getText()
.toString()));
}
int newValue = oldValue - 1;
editTextMatrixValue.setText(Integer.toString(newValue));
}
});
alertDialogBuilder.setPositiveButton(
getResources().getString(R.string.save),
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Toast.makeText(
getActivity(),
matrixItem.getItemName()
+ getResources()
.getString(
R.string.msg_added_matrix_to_character),
Toast.LENGTH_SHORT).show();
dialog.dismiss();
matrixItem.setValue(editTextMatrixValue.getText()
.toString());
playMatrixItems.add(matrixItem);
if (!(editModeAdapter == null))
editModeAdapter.notifyDataSetChanged();
if (!(playAdapter == null))
playAdapter.notifyDataSetChanged();
}
});
alertDialogBuilder.setNegativeButton(
getResources().getString(R.string.cancel),
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
});
// Create the AlertDialog object and return it
final AlertDialog dialog = alertDialogBuilder.create();
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
@Override
public void onShow(final DialogInterface dialog) {
Button positiveButton = ((AlertDialog) dialog)
.getButton(DialogInterface.BUTTON_POSITIVE);
// set OK button color here
positiveButton.setBackgroundColor(getActivity().getResources()
.getColor(R.color.bright_green));
positiveButton.invalidate();
}
});
dialog.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
return dialog;
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putString(KEY_SAVE_MATRIX_VALUE, editTextMatrixValue.getText()
.toString());
outState.putSerializable(KEY_SAVE_MATRIX_ITEM,
(Serializable) matrixItem);
outState.putSerializable(KEY_SAVE_SEL_ITEMS,
(Serializable) playMatrixItems);
if (!(editModeAdapter == null))
outState.putSerializable(KEY_SAVE_ADAPTER,
(Serializable) editModeAdapter);
if (!(playAdapter == null))
outState.putSerializable(KEY_SAVE_ADAPTER_ALL_ITEMS,
(Serializable) playAdapter);
// Save the fragment's instance
getFragmentManager().putFragment(outState, "matrixFragment",
matrixFragment);
}
}
| mit |
rianby64/SLRM-sales-front | src/components/clients/clientsSrv.js | 795 | ;(function() {
"use strict";
angular.module('RDash')
.service('clientsHTTP', ['$http', 'authService', function($http, authService) {
this.add = function add(client) {
return $http.post("/api/clients", client);
};
this.read = function read(criteria) {
var criteria_ = criteria || { };
if (!criteria_.id) {
return $http.get("/api/clients", { params: criteria_ });
}
if (criteria_.id) {
return $http.get("/api/clients/" + criteria_.id);
}
};
this.remove = function remove(client) {
return $http.delete("/api/clients/" + client.id);
};
this.update = function update(client) {
return $http.put("/api/clients/" + client.id, client);
};
}]);
})(); | mit |
siddhartha-gadgil/JavaScripts | ConditionalConvergence/conditionalconvergence.js | 2994 | angular.module('CondConv',[])
.controller('CondConvController', ['$scope', function($scope) {
function include(sum, target, element) {
return Math.abs(target - sum - element) < Math.abs(target - sum)
}
function approxSeq(target, seq, error) {
var accum = [];
var partialsum = 0.0;
for (var n = 1.0; Math.abs(target - partialsum) > error; n++) {
if (include(partialsum, target, seq(n))) {
accum.push(seq(n));
partialsum += seq(n);
}
}
return accum;
}
var example = function (n) {
if (n % 2 == 1) {
return (-1.0) / n;
} else return 1.0 / n;
};
$scope.fntext = "n %2 == 1 ? -1 / n : 1 /n";
$scope.seqtext = $scope.fntext;
$scope.updatefmla = function(){
$scope.seqtext = $scope.fntext;
rawprint = true;
};
function parsefn(txt){
return new Function('n', "return " + txt);
}
var rawprint = false;
function oneovern (x) {
if (rawprint) return x.toString();
var d = Math.round(1 / x);
if (d < 0) return "(-1/" + (-d).toString() + ")"; else return "(1/" + d.toString() + ")";
}
function printSeq(seq) {
var sum = seq.reduce(function (a, b) {
return a + b;
}, 0.0);
var elems = seq.map(oneovern);
return sum.toString() + " = " + elems.reduce(function (a, b) {
return a + " + " + b;
}, '');
}
function plotSeq(seq, target){
context.clearRect(0, 0, Width, Height);
drawLine(0, 0, Width, 0, "black");
drawLine(0, target, Width, target, "red");
var partialsum = 0.0;
var spc = $scope.spacing;
var x = 1;
seq.forEach(function(y){
partialsum += y;
drawLine($scope.spacing * x, 0, $scope.spacing * x, partialsum, "blue");
x += 1;
})
}
$scope.accuexp = 1.0;
$scope.result =function () {
var targ = parseFloat($scope.target);
var accu = Math.pow(10.0, - parseFloat($scope.accuexp)/10.0);
var approx = approxSeq(targ, parsefn($scope.seqtext), accu);
var out = printSeq(approx);
plotSeq(approx, targ);
return out;
};
var canvas = document.querySelector('#canvas');
var context = canvas.getContext('2d');
$scope.spacing = 5;
var Height = 200;
var Width = 1000;
$scope.yscale = 15;
$scope.target='1.0';
function drawLine(x1, y1, x2, y2, colour, width) {
context.beginPath();
context.lineWidth = width;
context.strokeStyle = colour;
context.moveTo(x1, -(y1 * $scope.yscale) + Height / 2);
context.lineTo(x2, -(y2 * $scope.yscale) + Height / 2);
context.closePath();
context.stroke();
}
drawLine(0, 0, Width, 0, "black");
}]);
| mit |
rafaelaznar/gesane-client | public_html/js/system/shared/home.js | 1766 | /*
* Copyright (c) 2017 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* TROLLEYES helps you to learn how to develop easily AJAX web applications
*
* Sources at https://github.com/rafaelaznar/gesane-client
*
* TROLLEYES is distributed under the MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
'use strict';
moduloSistema.controller('HomeController',
['$scope', '$routeParams', '$location', 'sessionService',
function ($scope, $routeParams, $location, sessionService) {
$scope.op = "Home";
$scope.session_info = sessionService.getSessionInfo();
$scope.isSessionActive = sessionService.isSessionActive();
}
]); | mit |
cotag/perus | lib/perus/server/migrations/005_create_errors.rb | 339 | Sequel.migration do
up do
create_table(:errors) do
primary_key :id
Integer :system_id, null: false
Integer :timestamp, null: false
String :module, null: false
String :description, null: false
end
end
down do
drop_table(:errors)
end
end
| mit |
i-shulenin/d2d | src/utils/index.js | 67 | import getProps from './getProps';
export {
getProps,
}
| mit |
peteward44/WebNES | project/js/db/184D7BA4CCFE4143BBE4B3C793F0A3554BBAEA63.js | 1626 | this.NesDb = this.NesDb || {};
NesDb[ '184D7BA4CCFE4143BBE4B3C793F0A3554BBAEA63' ] = {
"$": {
"name": "Dragon Power",
"class": "Licensed",
"catalog": "NES-DP-USA",
"publisher": "Bandai",
"developer": "TOSE Software",
"region": "USA",
"players": "1",
"date": "1988-03"
},
"cartridge": [
{
"$": {
"system": "NES-NTSC",
"crc": "811F06D9",
"sha1": "184D7BA4CCFE4143BBE4B3C793F0A3554BBAEA63",
"dump": "ok",
"dumper": "bootgod",
"datedumped": "2006-04-03"
},
"board": [
{
"$": {
"type": "NES-GNROM",
"pcb": "NES-GN-ROM-03",
"mapper": "66"
},
"prg": [
{
"$": {
"name": "NES-DP-0 PRG",
"size": "128k",
"crc": "ECE525DD",
"sha1": "CA8A4A01500FD12859EB31D1B505458950BDFD3A"
}
}
],
"chr": [
{
"$": {
"name": "NES-DP-0 CHR",
"size": "32k",
"crc": "59F0FBAA",
"sha1": "3BCEAD1FAB16CC9BCC8EE84A98BB465E4F87E103"
}
}
],
"chip": [
{
"$": {
"type": "74xx161"
}
}
],
"cic": [
{
"$": {
"type": "6113"
}
}
],
"pad": [
{
"$": {
"h": "1",
"v": "0"
}
}
]
}
]
}
],
"gameGenieCodes": [
{
"name": "Start with infinite energy",
"codes": [
[
"SZVOSZVG"
]
]
},
{
"name": "Start with extra energy",
"codes": [
[
"EAXAILGT"
]
]
},
{
"name": "Start with 24 Wind Waves",
"codes": [
[
"KAOETLSA"
]
]
}
]
};
| mit |
JoAutomation/todo-for-you | core/asset/js/HeadletQuickCreate.js | 2805 | /****************************************************************************
* todoyu is published under the BSD License:
* http://www.opensource.org/licenses/bsd-license.php
*
* Copyright (c) 2012, snowflake productions GmbH, Switzerland
* All rights reserved.
*
* This script is part of the todoyu project.
* The todoyu project is free software; you can redistribute it and/or modify
* it under the terms of the BSD License.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the BSD License
* for more details.
*
* This copyright notice MUST APPEAR in all copies of the script.
*****************************************************************************/
/**
* @module Core
*/
/**
* Quickcreate headlet
*
* @package Todoyu
* @subpackage Core
*/
Todoyu.CoreHeadlets.QuickCreate = Class.create(Todoyu.Headlet, {
popupid: 'quickcreate',
/**
* Popup reference
* @property popup
* @type Todoyu.Popup
*/
popup: null,
/**
* Handler: When clicked on menu entry
*
* @method onMenuClick
* @param {Event} event
*/
onMenuClick: function(ext, type, event, item) {
this.openTypePopup(ext, type);
this.hide();
},
/**
* Open creator wizard popup
*
* @method openTypePopup
* @param {String} ext
* @param {String} type
*/
openTypePopup: function(ext, type) {
if( ! Todoyu.Popups.getPopup(this.popupid) ) {
var ctrl = 'Quickcreate' + type;
var url = Todoyu.getUrl(ext, ctrl);
var options = {
parameters: {
action: 'popup',
'area': Todoyu.getArea()
},
onComplete: this.onPopupOpened.bind(this, ext, type)
};
var title = '[LLL:core.global.create]' + ': ' + this.getMenuItemLabel(ext, type);
var width = 600;
this.popup = Todoyu.Popups.show({
id: this.popupid,
title: title,
width: width,
contentUrl: url,
requestOptions: options
});
Todoyu.Hook.exec('headlet.quickcreate.' + type + '.popupOpened');
}
},
/**
* Handler after popup opened: call mode's onPopupOpened-handler
*
* @method onPopupOpened
* @param {String} ext
*/
onPopupOpened: function(ext, type) {
$(this.name).addClassName(type);
var quickCreateObject = 'Todoyu.Ext.' + ext + '.QuickCreate' + Todoyu.String.ucwords(type);
Todoyu.Popups.focusFirstField();
Todoyu.callUserFunction(quickCreateObject + '.onPopupOpened');
},
/**
* Close wizard popup
*
* @method closePopup
*/
closePopup: function() {
this.popup.close();
},
/**
* Update quick create popup content
*
* @method updatePopupContent
* @param {String} content
*/
updatePopupContent: function(content) {
this.popup.setHTMLContent(content);
}
}); | mit |
oliversd/express-rest-api-boilerplate | src/helpers/logger.js | 157 | import pino from 'pino';
const pretty = pino.pretty();
pretty.pipe(process.stdout);
const logger = pino({
safe: true
}, pretty);
export default logger;
| mit |
adangtran87/gbf-weap | weapon_pool.py | 7475 | from weapon import *
from summon import SummonType, Summon
class WeaponPool(object):
def __new__(cls, weapon_pool):
if (len(weapon_pool) > 10):
# Cannot create a weapon pool object with greater than 10 weapons
raise ValueError("Weapon pool cannot be larger than 10 weapons")
else:
return super(WeaponPool, cls).__new__(cls)
# Initialize with a list of 10 weapons
def __init__(self, weapon_pool):
self.weapon_pool= weapon_pool
self.normal_list = []
self.magna_list = []
self.unknown_list = []
self.bahamut_list = []
self.strength_list = []
self.other_list = []
# Sort weapons
for weapon in weapon_pool:
if (isinstance(weapon, WeaponNormal) or isinstance(weapon,WeaponNormal2)):
self.normal_list.append(weapon)
elif (isinstance(weapon, WeaponMagna)):
self.magna_list.append(weapon)
elif (isinstance(weapon, WeaponUnknown)):
self.unknown_list.append(weapon)
elif (isinstance(weapon, WeaponStrength)):
self.strength_list.append(weapon)
elif (isinstance(weapon, WeaponBahamut) or isinstance(weapon, WeaponHLBahamut)):
self.bahamut_list.append(weapon)
else:
self.other_list.append(weapon)
self.normal_modifier = round(self._calc_multiplier(self.normal_list),3)
self.magna_modifier = round(self._calc_multiplier(self.magna_list),3)
self.unknown_modifier = round(self._calc_multiplier(self.unknown_list),3)
self.strength_modifier = round(self._calc_multiplier(self.strength_list),3)
""" Section 3.7
For stacking rules, there is a limit on damage increase from bahamut
weapons (50%), you can stack two HL Bahamut weapons to give a mono race
maximum bonus of 50% Damage and 36% Health. You can also stack a HL
Bahamut Weapon with another Bahamut Weapon.
"""
self.bahamut_modifier = round(self._calc_multiplier(self.bahamut_list),3)
if self.bahamut_modifier > 0.5:
self.bahamut_modifier = 0.5
def __str__(self):
output = ""
output += "Number of weapons: {}\n".format(len(self.weapon_pool))
for weapon in self.weapon_pool:
output += str(weapon)
output += "N:{:.3f} M:{:.3f} U:{:.3f} S:{:.3f} B:{:.3f}\n".format(
self.normal_modifier,
self.magna_modifier,
self.unknown_modifier,
self.strength_modifier,
self.bahamut_modifier)
return output
@property
def normal_count(self):
return len(normal_list)
@property
def magna_count(self):
return len(magna_count)
@property
def unknown_count(self):
return len(unknown_list)
@property
def bahamut_count(self):
return len(bahamut_list)
def _calc_multiplier(self, weapon_list):
multiplier = 0
for weapon in weapon_list:
multiplier += weapon.multiplier
return multiplier
def _calc_summon_multipliers(self, summon_list):
summon_mult = {}
# Figure out summon multipliers
summon_mult['magna'] = 1
summon_mult['primal'] = 1
summon_mult['ranko'] = 1
summon_mult['elemental'] = 0
summon_mult['character'] = 0
for summon in summon_list:
if (summon.type == SummonType.magna):
summon_mult['magna'] += summon.multiplier
elif (summon.type == SummonType.primal):
summon_mult['primal'] += summon.multiplier
elif (summon.type == SummonType.ranko):
summon_mult['ranko'] += summon.multiplier
elif (summon.type == SummonType.elemental):
summon_mult['elemental'] += summon.multiplier
elif (summon.type == SummonType.character):
summon_mult['character'] += summon.multiplier
return summon_mult
def calc_base_damage(self, preferences=[]):
total_damage = 0
for weapon in self.weapon_pool:
if (weapon.weapon_type in preferences):
total_damage += weapon.damage * 1.2
else:
total_damage += weapon.damage
return total_damage
def isValid(self, required_list):
for weapon in self.weapon_pool:
# Dont use bahamut weapons as main weapon
if not (isinstance(weapon, WeaponBahamut) or
isinstance(weapon, WeaponHLBahamut)):
if weapon.weapon_type in required_list:
return True
return False
#return unmodified base damage
@property
def base_damage(self):
return self.calc_base_damage()
def _get_baha_mod(self, character):
bahamut_mod = 0
baha_30 = False
baha_15 = False
for baha_wep in self.bahamut_list:
"""
The rules of stacking are as follows:
30% bonuses will not stack with each other. 15% bonuses will not stack
with each other. 15% bonuses will stack with 30% bonuses.
Therefore the most Attack and Health boost you can get from Bahamut
weapons is 45%.
"""
baha_wep.applied_race = character.race
if isinstance(baha_wep, WeaponBahamut):
if (
(baha_wep.multiplier >= 0.20) and
(baha_30 == False)
):
baha_30 = True
bahamut_mod += baha_wep.multiplier
elif (
(baha_wep.multiplier < 0.20) and
(baha_wep.multiplier > 0) and
(baha_15 == False)
):
baha_15 = True
bahamut_mod += baha_wep.multiplier
elif isinstance(baha_wep, WeaponHLBahamut):
bahamut_mod += baha_wep.multiplier
baha_wep.applied_race = CharacterRace.unknown
"""
For stacking rules, there is a limit on damage increase from bahamut
weapons (50%), you can stack two HL Bahamut weapons to give a mono race
maximum bonus of 50% Damage and 36% Health. You can also stack a HL
Bahamut Weapon with another Bahamut Weapon.
"""
return min(0.50, bahamut_mod)
def calc_damage(self, my_summon, friend_summon, character):
base_damage = self.calc_base_damage(character.weapon_preferences)
#Recalculate bahamut multiplier with character race
bahamut_mod = self._get_baha_mod(character)
# Calc summon multipliers
summon_mult = self._calc_summon_multipliers([my_summon, friend_summon])
# Calculate each modifier
magna_mod = 1 + (self.magna_modifier * summon_mult['magna'])
normal_mod = 1 + (self.normal_modifier * summon_mult['primal'])
normal_mod += bahamut_mod
normal_mod += summon_mult['character']
unknown_mod = 1 + (self.unknown_modifier * summon_mult['ranko'])
unknown_mod += self.strength_modifier
elemental_mod = 1 + summon_mult['elemental']
#Calculate total damage
damage = 0
damage = base_damage * magna_mod * normal_mod * unknown_mod * elemental_mod
return round(damage, 3)
| mit |
jwage/phpchunkit | src/TestCounter.php | 3213 | <?php
declare(strict_types = 1);
namespace PHPChunkit;
use ReflectionClass;
/**
* @testClass PHPChunkit\Test\TestCounterTest
*/
class TestCounter
{
/**
* @var FileClassesHelper
*/
private $fileClassesHelper;
/**
* @var array
*/
private $cache = [];
/**
* @var string
*/
private $cachePath = '';
public function __construct(FileClassesHelper $fileClassesHelper)
{
$this->fileClassesHelper = $fileClassesHelper;
$this->cachePath = sprintf('%s/testcounter.cache', sys_get_temp_dir());
$this->loadCache();
}
public function __destruct()
{
$this->writeCache();
}
public function countNumTestsInFile(string $file) : int
{
$cacheKey = $file.@filemtime($file);
if (isset($this->cache[$cacheKey])) {
return $this->cache[$cacheKey];
}
$numTestsInFile = 0;
$classes = $this->fileClassesHelper->getFileClasses($file);
if (empty($classes)) {
$this->cache[$cacheKey] = $numTestsInFile;
return $numTestsInFile;
}
$className = $classes[0];
require_once $file;
foreach ($classes as $className) {
$numTestsInFile += $this->countNumTestsInClass($className);
}
$this->cache[$cacheKey] = $numTestsInFile;
return $numTestsInFile;
}
public function clearCache()
{
if (file_exists($this->cachePath)) {
unlink($this->cachePath);
}
$this->cache = [];
}
protected function loadCache()
{
if (file_exists($this->cachePath)) {
$this->cache = include($this->cachePath);
}
}
protected function writeCache()
{
file_put_contents($this->cachePath, '<?php return '.var_export($this->cache, true).';');
}
private function countNumTestsInClass(string $className) : int
{
$reflectionClass = new ReflectionClass($className);
if ($reflectionClass->isAbstract()) {
return 0;
}
$numTests = 0;
$methods = $reflectionClass->getMethods();
foreach ($methods as $method) {
if (strpos($method->name, 'test') === 0) {
$docComment = $method->getDocComment();
if ($docComment !== false) {
preg_match_all('/@dataProvider\s([a-zA-Z0-9_]+)/', $docComment, $dataProvider);
if (isset($dataProvider[1][0])) {
$providerMethod = $dataProvider[1][0];
$test = new $className();
$numTests = $numTests + count($test->$providerMethod());
continue;
}
}
$numTests++;
} else {
$docComment = $method->getDocComment();
if ($docComment !== false) {
preg_match_all('/@test/', $docComment, $tests);
if ($tests[0]) {
$numTests = $numTests + count($tests[0]);
}
}
}
}
return $numTests;
}
}
| mit |
Angular-Team-The-Merciful-Worms/big-starter | src/app/project/project-list-items/project-list-items.component.spec.ts | 700 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ProjectListItemsComponent } from './project-list-items.component';
describe('ProjectListItemsComponent', () => {
let component: ProjectListItemsComponent;
let fixture: ComponentFixture<ProjectListItemsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ProjectListItemsComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ProjectListItemsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
| mit |
quanhvpd00567/fuelphp | fuel/app/config/development/db.php | 282 | <?php
/**
* The development database settings. These get merged with the global settings.
*/
return array(
'default' => array(
'connection' => array(
'dsn' => 'mysql:host=localhost;dbname=test',
'username' => 'root',
'password' => '10061994',
),
),
);
| mit |
Orphist/write_xlsx | test/package/styles/test_styles_09.rb | 2108 | # -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx/workbook'
require 'write_xlsx/package/styles'
require 'stringio'
class TestStyles09 < Test::Unit::TestCase
def test_styles_09
workbook = WriteXLSX.new(StringIO.new)
format1 = workbook.add_format(
:color => '#9C0006',
:bg_color => '#FFC7CE',
:font_condense => 1,
:font_extend => 1,
:has_fill => 1,
:has_font => 1
)
format1.get_dxf_index
workbook.__send__('prepare_format_properties')
@style = Writexlsx::Package::Styles.new
@style.set_style_properties(*workbook.style_properties)
@style.assemble_xml_file
result = got_to_array(@style.xml_str)
expected = expected_to_array(<<EOS
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<fonts count="1">
<font>
<sz val="11"/>
<color theme="1"/>
<name val="Calibri"/>
<family val="2"/>
<scheme val="minor"/>
</font>
</fonts>
<fills count="2">
<fill>
<patternFill patternType="none"/>
</fill>
<fill>
<patternFill patternType="gray125"/>
</fill>
</fills>
<borders count="1">
<border>
<left/>
<right/>
<top/>
<bottom/>
<diagonal/>
</border>
</borders>
<cellStyleXfs count="1">
<xf numFmtId="0" fontId="0" fillId="0" borderId="0"/>
</cellStyleXfs>
<cellXfs count="1">
<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
</cellXfs>
<cellStyles count="1">
<cellStyle name="Normal" xfId="0" builtinId="0"/>
</cellStyles>
<dxfs count="1">
<dxf>
<font>
<condense val="0"/>
<extend val="0"/>
<color rgb="FF9C0006"/>
</font>
<fill>
<patternFill>
<bgColor rgb="FFFFC7CE"/>
</patternFill>
</fill>
</dxf>
</dxfs>
<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleLight16"/>
</styleSheet>
EOS
)
assert_equal(expected, result)
end
end
| mit |
duiliopastorelli/lovelyFriday | app/AppKernel.php | 1662 | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new AppBundle\AppBundle(),
new OrderBundle\OrderBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
public function getRootDir()
{
return __DIR__;
}
public function getCacheDir()
{
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
}
public function getLogDir()
{
return dirname(__DIR__).'/var/logs';
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
}
}
| mit |
Amonhuz/v2ray-core | app/proxyman/command/errors.generated.go | 176 | package command
import "v2ray.com/core/common/errors"
func newError(values ...interface{}) *errors.Error {
return errors.New(values...).Path("App", "Proxyman", "Command")
}
| mit |
C-Bouthoorn/CharlieMarten | Files-not-web/c++/luckynumbersmall.cpp | 274 | #include <iostream>
int y,m,d,z,p,i;
int M(int x){while(!x%10)x/=10;for(i=100;;i*=10)if(x<i){p=i/10;break;};return x<10?x:M(x/p+x%p);}
int main(){for(y=0;y++<10001;)for(m=1;m++<13;)for(d=1;z=m%2,d++<=(m==2?(y%4?28:29):(m<8?(z?31:30):(z?30:31)));)std::cout<<M(y+m+d)<<"\n";}
| mit |
robmckinnon/openregister-ruby | spec/spec_helper.rb | 270 | require 'webmock/rspec'
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end
end
| mit |
meandor/project-aim | src/main/java/de/haw/aim/vendor/persistence/Vendor.java | 2817 | package de.haw.aim.vendor.persistence;
import de.haw.aim.authentication.persistence.User;
import de.haw.aim.uploadcenter.persistence.UploadedFile;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.ArrayList;
import java.util.List;
@Document
public class Vendor
{
@Id
private String id;
@DBRef
private VendorInfo vendorInfo;
@DBRef
private List<ProductInfo> productInfos;
@DBRef
private List<User> users;
@DBRef
private List<UploadedFile> files;
private Vendor()
{
}
public Vendor(VendorInfo vendorInfo, List<ProductInfo> productInfos, List<User> users, List<UploadedFile> files)
{
this.id = vendorInfo.getId();
this.vendorInfo = vendorInfo;
this.productInfos = productInfos;
this.users = users;
this.files = files;
}
public Vendor(VendorInfo vendorInfo, List<ProductInfo> productInfos) {
this.id = vendorInfo.getId();
this.vendorInfo = vendorInfo;
this.productInfos = productInfos;
this.users = new ArrayList<>();
this.files = new ArrayList<>();
}
public List<User> getUsers()
{
return users;
}
public String getVendorInfoId()
{
return vendorInfo.getId();
}
public List<String> getProdcutInfoIds()
{
List<String> retVal = new ArrayList<>();
for (ProductInfo p : productInfos)
{
retVal.add(p.getId());
}
return retVal;
}
public VendorInfo getVendorInfo()
{
return vendorInfo;
}
public void setVendorInfo(VendorInfo vendorInfo)
{
this.vendorInfo = vendorInfo;
this.id = vendorInfo.getId();
}
public String getId()
{
return id;
}
public void addFile(UploadedFile uploadedFile)
{
files.add(uploadedFile);
}
public void removeFile(UploadedFile uploadedFile) {
files.remove(uploadedFile);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Vendor vendor = (Vendor) o;
return id.equals(vendor.id);
}
@Override
public int hashCode() {
return id.hashCode();
}
public void putProductInfo(ProductInfo productInfo)
{
this.productInfos.remove(productInfo);
this.productInfos.add(productInfo);
}
public List<ProductInfo> getProductInfos()
{
return productInfos;
}
public List<UploadedFile> getFiles()
{
return files;
}
public void addUser(User user) {
users.add(user);
}
}
| mit |
kurapikats/taxicomplaints | resources/views/admin/includes/site_styles.blade.php | 236 | <!-- MetisMenu CSS -->
<link href="/components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="/components/startbootstrap-sb-admin-2/dist/css/sb-admin-2.css" rel="stylesheet">
@yield('page_styles')
| mit |
UNH-CORE/RM2-tow-tank | plot.py | 3754 | #!/usr/bin/env python
"""This script generates all the relevant figures from the experiment."""
from pyrm2tt.processing import *
from pyrm2tt.plotting import *
import argparse
import sys
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Create figures from the "
"UNH RM2 tow tank experiment.")
parser.add_argument("plots", nargs="*", help="Which plots to create",
choices=["perf_curves", "perf_re_dep", "cp_re_0",
"meancontquiv", "kcont", "K_bar_chart",
"perf_no_blades", "cp_covers", "perf_covers",
"mom_bar_chart", "none"],
default="none")
parser.add_argument("--all", "-a", action="store_true", default=False,
help="Plot all figures used in publication")
parser.add_argument("--subplots", action="store_true", default=False,
help="Use subplots for performance curves")
parser.add_argument("--no-errorbars", action="store_true",
help="Don't plot error bars on Re-dependence figure")
parser.add_argument("--style", nargs=1, help="matplotlib stylesheet")
parser.add_argument("--save", "-s", action="store_true", default=False,
help="Save figures to local directory")
parser.add_argument("--savetype", "-t", help="Figure file format",
type=str, default=".eps")
parser.add_argument("--no-show", action="store_true", default=False,
help="Do not show figures")
args = parser.parse_args()
save = args.save
savetype = args.savetype
errorbars = not args.no_errorbars
if args.plots == "none" and not args.all:
print("No plots selected")
parser.print_help()
sys.exit(2)
if save:
if not os.path.isdir("Figures"):
os.mkdir("Figures")
if savetype[0] != ".":
savetype = "." + savetype
if args.style is not None:
plt.style.use(args.style)
else:
from pxl.styleplot import set_sns
set_sns()
if "perf_curves" in args.plots or args.all:
plot_perf_curves(subplots=args.subplots, save=save, savetype=savetype)
if "perf_re_dep" in args.plots or args.all:
with plt.rc_context(rc={"axes.formatter.use_mathtext": True}):
plot_perf_re_dep(save=save, savetype=savetype, errorbars=errorbars,
dual_xaxes=True)
if "cp_re_0" in args.plots:
PerfCurve(1.0).plotcp(save=save, savetype=savetype)
if ("meancontquiv" in args.plots or
"kcont" in args.plots or
"mom_bar_chart" in args.plots or
"K_bar_chart" in args.plots or
args.all):
wm = WakeMap()
if "meancontquiv" in args.plots or args.all:
wm.plot_meancontquiv(save=save, savetype=savetype)
if "kcont" in args.plots or args.all:
wm.plot_k(save=save, savetype=savetype)
if "mom_bar_chart" in args.plots or args.all:
wm.make_mom_bar_graph(save=save, savetype=savetype)
if "K_bar_chart" in args.plots or args.all:
wm.make_K_bar_graph(save=save, savetype=savetype)
if "perf_no_blades" in args.plots or args.all:
plot_no_blades_all(save=save, savetype=savetype)
if "cp_covers" in args.plots:
plot_cp_covers(save=save, savetype=savetype, add_strut_torque=False)
plot_cp_covers(save=save, savetype=savetype, add_strut_torque=True)
if "perf_covers" in args.plots or args.all:
plot_perf_covers(save=save, savetype=savetype, subplots=True)
if not args.no_show:
plt.show()
| mit |
larrylv/hound-gitlab | app/controllers/repo_syncs_controller.rb | 213 | class RepoSyncsController < ApplicationController
respond_to :json
def create
JobQueue.push(
RepoSynchronizationJob,
current_user.id,
session[:gitlab_token]
)
head 201
end
end
| mit |
kevinr/750book-web | 750book-web-env/lib/python2.7/site-packages/gunicorn/workers/ggevent_wsgi.py | 1062 | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
from datetime import datetime
from gunicorn.workers.ggevent import BASE_WSGI_ENV, GeventWorker
from gevent import wsgi
class WSGIHandler(wsgi.WSGIHandler):
@property
def status(self):
return ' '.join([str(self.code), self.reason])
def log_request(self, length):
self.response_length = length
response_time = datetime.now() - self.time_start
self.server.log.access(self, self.environ, response_time)
def prepare_env(self):
env = super(WSGIHandler, self).prepare_env()
env['RAW_URI'] = self.request.uri
self.environ = env
return env
def handle(self):
self.time_start = datetime.now()
super(WSGIHandler, self).handle()
class WSGIServer(wsgi.WSGIServer):
base_env = BASE_WSGI_ENV
class GeventWSGIWorker(GeventWorker):
"The Gevent StreamServer based workers."
server_class = WSGIServer
wsgi_handler = WSGIHandler
| mit |
sportngin/resque_sliding_window | lib/resque_sliding_window.rb | 176 | require "resque_sliding_window/version"
require "resque_sliding_window/window_slider"
require "resque_sliding_window/resque_extensions"
require "resque/plugins/sliding_window"
| mit |
xfornesa/shouts | src/Prunatic/WebBundle/Tests/Entity/PointTest.php | 2824 | <?php
/**
* Author: Xavier
*/
namespace Prunatic\WebBundle\Tests\Entity;
use Prunatic\WebBundle\Entity\Point;
class PointTest extends \PHPUnit_Framework_TestCase
{
/**
* @covers \Prunatic\WebBundle\Entity\Point::__construct
* @covers \Prunatic\WebBundle\Entity\Point::getLongitude
*/
public function testReturnsLongitude()
{
$longitude = 1;
$latitude = 2;
$point = new Point($longitude, $latitude);
$this->assertEquals($longitude, $point->getLongitude());
}
/**
* @covers \Prunatic\WebBundle\Entity\Point::__construct
* @covers \Prunatic\WebBundle\Entity\Point::getLatitude
*/
public function testReturnsLatitude()
{
$longitude = 1;
$latitude = 2;
$point = new Point($longitude, $latitude);
$this->assertEquals($latitude, $point->getLatitude());
}
/**
* @covers \Prunatic\WebBundle\Entity\Point::getDistance
*
* @param $pointA
* @param $pointB
* @param $pointC
*
* @dataProvider distanceHaversineProvider
*/
public function testDistanceHaversineRelation($pointA, $pointB, $pointC)
{
$distanceFromAToB = $pointA->getDistance($pointB, Point::DISTANCE_HAVERSINE);
$distanceFromAToC = $pointA->getDistance($pointC, Point::DISTANCE_HAVERSINE);
$distanceFromBToC = $pointB->getDistance($pointC, Point::DISTANCE_HAVERSINE);
$this->assertGreaterThan(0, $distanceFromAToB);
$this->assertGreaterThan($distanceFromAToB, $distanceFromAToC);
$this->assertGreaterThan($distanceFromBToC, $distanceFromAToC);
}
public function distanceHaversineProvider()
{
$examples = array();
$examples[] = array(
new Point(1, 10),
new Point(1, 20),
new Point(1, 30)
);
$examples[] = array(
new Point(1, 10),
new Point(5, 10),
new Point(10, 10)
);
return $examples;
}
/**
* @covers \Prunatic\WebBundle\Entity\Point::getDistance
* @see http://www.movable-type.co.uk/scripts/latlong.html
*
* @param $pointA
* @param $pointB
* @param $expectedDistance
*
* @dataProvider distanceHaversineCalculationProvider
*/
public function testDistanceHaversineCalculation($pointA, $pointB, $expectedDistance)
{
$distance = $pointA->getDistance($pointB, Point::DISTANCE_HAVERSINE);
$this->assertEquals($expectedDistance, $distance, null, 0.2);
}
public function distanceHaversineCalculationProvider()
{
$examples = array();
$examples[] = array(
new Point(41.661301, 2.436473),
new Point(41.578228, 2.44136),
9.246
);
return $examples;
}
}
| mit |
wjfwzzc/gensim_demo | LDA/__init__.py | 163 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from LDA import preprocess
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/ckeditor/4.4.5/lang/el.js | 130 | version https://git-lfs.github.com/spec/v1
oid sha256:11dd30b70a546688ebac626b7dd1633ff8ce27e205ac105977354bdf1c9b5f49
size 27698
| mit |
som4paul/BolieC | src/qt/locale/bitcoin_kk_KZ.ts | 108622 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="kk_KZ" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BlackCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>BlackCoin</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The BlackCoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or <a href="http://www.opensource.org/licenses/mit-license.php">http://www.opensource.org/licenses/mit-license.php</a>.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (<a href="https://www.openssl.org/">https://www.openssl.org/</a>) and cryptographic software written by Eric Young (<a href="mailto:[email protected]">[email protected]</a>) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Адресті немесе белгіні өзгерту үшін екі рет шертіңіз</translation>
</message>
<message>
<location line="+24"/>
<source>Create a new address</source>
<translation>Жаңа адрес енгізу</translation>
</message>
<message>
<location line="+10"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Таңдаған адресті тізімнен жою</translation>
</message>
<message>
<location line="-7"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-43"/>
<source>These are your BlackCoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Sign a message to prove you own a BlackCoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-10"/>
<source>Verify a message to ensure it was signed with a specified BlackCoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Delete</source>
<translation>Жою</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+66"/>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+248"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Үтірмен бөлінген текст (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+145"/>
<source>Label</source>
<translation>таңба</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(таңбасыз)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Құпия сөзді енгізу</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Жаңа құпия сөзі</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Жаңа құпия сөзді қайта енгізу</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+38"/>
<source>Encrypt wallet</source>
<translation>Әмиянді шифрлау</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Бұл операциясы бойынша сіздің әмиянізді қоршаудан шығару үшін әмиянның құпия сөзі керек</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Әмиянізді қоршаудан шығару</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Бұл операциясы бойынша сіздің әмиянізді шифрлап тастау үшін әмиянның құпия сөзі керек</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Әмиянізді шифрлап тастау</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Құпия сөзді өзгерту</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Confirm wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-140"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>ten or more random characters</b>, or <b>eight or more words</b>.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<source>BlackCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+297"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Show general overview of wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-18"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>E&xit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Show information about BlackCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-55"/>
<source>Send coins to a BlackCoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source>Modify configuration options for BlackCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-214"/>
<location line="+555"/>
<source>BlackCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-555"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+193"/>
<source>&About BlackCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>&File</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Tabs toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<location line="+9"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+58"/>
<source>BlackCoin client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+70"/>
<source>%n active connection(s) to BlackCoin network</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+488"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-812"/>
<source>&Dashboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+277"/>
<source>Up to date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+43"/>
<source>Catching up...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid BlackCoin address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Wallet is <b>not encrypted</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+91"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="-429"/>
<location line="+433"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="-456"/>
<source>Processed %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+27"/>
<location line="+433"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="-429"/>
<location line="+6"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+0"/>
<source>%1 and %2</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+0"/>
<source>%n year(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>%1 behind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Last received block was generated %1 ago.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+324"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+104"/>
<source>A fatal error occurred. BlackCoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+110"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+537"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-500"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(таңбасыз)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid BlackCoin address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+426"/>
<location line="+12"/>
<source>BlackCoin-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start BlackCoin after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start BlackCoin on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Automatically open the BlackCoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-57"/>
<source>Connect to the BlackCoin network through a SOCKS5 proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS5 proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+90"/>
<source>&Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting BlackCoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Whether to select the coin outputs randomly or with minimal coin age.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Minimize weight consumption (experimental)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use black visual theme (requires restart)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+47"/>
<source>default</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+148"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting BlackCoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<location line="+247"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the BlackCoin network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-173"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-113"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+80"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source><b>Recent transactions</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-118"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-32"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start blackcoin: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<source>N/A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-194"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+197"/>
<source>&Network Traffic</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Clear</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Totals</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>In:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+80"/>
<source>Out:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-383"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the BlackCoin-Qt help message to get a list with possible BlackCoin command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-237"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-104"/>
<source>BlackCoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>BlackCoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+256"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the BlackCoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../rpcconsole.cpp" line="+325"/>
<source>Welcome to the BlackCoin RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+127"/>
<source>%1 B</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 KB</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 MB</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 GB</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>%1 m</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>%1 h</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 h %2 m</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Balance:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Confirm the send action</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-174"/>
<source>Enter a BlackCoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+87"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+247"/>
<source>WARNING: Invalid BlackCoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(таңбасыз)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a BlackCoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this BlackCoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified BlackCoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a BlackCoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter BlackCoin signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+85"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TrafficGraphWidget</name>
<message>
<location filename="../trafficgraphwidget.cpp" line="+75"/>
<source>KB/s</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+25"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+13"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+19"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-202"/>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-36"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+67"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+231"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+194"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+54"/>
<location line="+17"/>
<source>All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Today</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+138"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Үтірмен бөлінген файл (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>таңба</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+212"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+171"/>
<source>BlackCoin version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or blackcoind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-145"/>
<source>Options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: blackcoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: blackcoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=blackcoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "BlackCoin Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Always query for peer addresses via DNS lookup (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-35"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+62"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-28"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+93"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-103"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong BlackCoin will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+130"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-34"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-67"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+101"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-89"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+30"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-34"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-41"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+54"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Error: Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-52"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-59"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-47"/>
<source>Connect through SOCKS5 proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Output debugging information (default: 0, supplying <category> is optional)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>If <category> is not supplied, output all debugging information.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source><category> can be:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wait for RPC server to start</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Keep at most <n> MiB of unconnectable blocks in memory (default: %u)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Initialization sanity check failed. BlackCoin is shutting down.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Error loading block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Error: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-168"/>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+104"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-129"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+125"/>
<source>Loading addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-10"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of BlackCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart BlackCoin to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-22"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+58"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-40"/>
<source>Loading block index...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-109"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+124"/>
<source>Unable to bind to %s on this computer. BlackCoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-101"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<source>Minimize weight consumption (experimental) (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>How many blocks to check at startup (default: 500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Deprecated argument -debugnet ignored, use -debug=net</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. BlackCoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Loading wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Done loading</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-159"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+186"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-18"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS> | mit |
Hyftar/TeChris | lib/core/board.rb | 2187 | require './core/tetrimino'
require './core/block'
require './core/player'
require './utility/point'
class Board
attr_reader :width, :height, :tetriminos, :array
attr_accessor :current_tetrimino
def initialize(player, width, height, nextpieces, *tetriminos)
@player = player
@width = width
@height = height
@nextPieces = Array.new(nextpieces) # nextpieces is an int (number of next pieces)
@tetriminos = tetriminos
@current_tetrimino = nil
@reserve = nil
@reserve_used = false
@rng_bag = []
@array = Array.new(height) { Array.new(width) }
end
def [](y)
@array[y]
end
def get_next_piece
@rng_bag = @tetriminos.sample(@tetriminos.size) if @rng_bag.empty?
@rng_bag.shift
end
def swap_piece
unless @reserve_used
@reserve_used = true
@current_tetrimino.position = Point.new # TODO: Spawn Tetrimino in the middle of the playing area
if @reserve
@current_tetrimino, @reserve = @reserve, @current_tetrimino
else
@reserve = @current_tetrimino
@current_tetrimino = get_next_piece
end
end
end
def check_collisions(tetrimino)
if tetrimino.y_points.any? { |pt| @board[pt.y][pt.x] }
tetrimino.to_blocks(self)
end
end
def check_lines
total = 0
(0...@height).each { |y| total += clear_line(y) ? 1 : 0 }
@player.increment_score(total) unless total.zero?
end
def clear_line(y)
if @array[y].all? { |x| x.is_a?(Block) }
@array[0..y] = @array[0..y].rotate.drop(1).unshift(Array.new(@width))
return true
end
false
end
def reset_reserve
@reserve_used = false
end
def add_block(x, y, color)
@array[y][x] = Block.new(color, Point.new(x, y))
end
# TODO: Rewrite this method
def to_s
temp_array = array.map(&:clone) # This is not optimal, but this is one of the most simple aproach.
@current_tetrimino.block_points.each { |pt| temp_array[pt.y][pt.x] = Block.new(@current_tetrimino.color, pt) }
(('*' * (@width + 2)) + "\n") +
temp_array.map { |y| '*' + y.map { |x| x.is_a?(Block) ? '█' : ' ' }.join + '*' }.join("\n") +
("\n" + ('*' * (@width + 2)))
end
end
| mit |
vcatalasan/suitecrm-docker | SuiteCRM/cache/modules/SecurityGroups/language/en_us.lang.php | 4797 | <?php
// created: 2015-04-29 15:44:41
$mod_strings = array (
'LBL_ID' => 'ID',
'LBL_DATE_ENTERED' => 'Date Created',
'LBL_DATE_MODIFIED' => 'Date Modified',
'LBL_MODIFIED' => 'Modified By',
'LBL_MODIFIED_ID' => 'Modified By Id',
'LBL_MODIFIED_NAME' => 'Modified By Name',
'LBL_CREATED' => 'Created By',
'LBL_CREATED_ID' => 'Created By Id',
'LBL_DESCRIPTION' => 'Description',
'LBL_DELETED' => 'Deleted',
'LBL_NAME' => 'Name',
'LBL_CREATED_USER' => 'Created by User',
'LBL_MODIFIED_USER' => 'Modified by User',
'LBL_LIST_NAME' => 'Name',
'LBL_EDIT_BUTTON' => 'Edit',
'LBL_REMOVE' => 'Remove',
'LBL_ASSIGNED_TO_ID' => 'Assigned User Id',
'LBL_ASSIGNED_TO_NAME' => 'Assigned to',
'LBL_ALL_MODULES' => 'All',
'LBL_NONINHERITABLE' => 'Not Inheritable',
'LBL_LIST_NONINHERITABLE' => 'Not Inheritable',
'LBL_LIST_FORM_TITLE' => 'Security Groups',
'LBL_MODULE_NAME' => 'Security Groups Management',
'LBL_MODULE_TITLE' => 'Security Groups Management',
'LNK_NEW_RECORD' => 'Create a Security Group',
'LNK_LIST' => 'List View',
'LBL_SEARCH_FORM_TITLE' => 'Search Security Groups Management',
'LBL_HISTORY_SUBPANEL_TITLE' => 'History',
'LBL_ACTIVITIES_SUBPANEL_TITLE' => 'Activities',
'LBL_SECURITYGROUPS_SUBPANEL_TITLE' => 'Security Groups Management',
'LBL_USERS' => 'Users',
'LBL_USERS_SUBPANEL_TITLE' => 'Users',
'LBL_ROLES_SUBPANEL_TITLE' => 'Roles',
'LBL_CONFIGURE_SETTINGS' => 'Configure',
'LBL_ADDITIVE' => 'Additive Rights',
'LBL_ADDITIVE_DESC' => 'User gets greatest rights of all roles assigned to the user or the user\'s group(s)',
'LBL_STRICT_RIGHTS' => 'Strict Rights',
'LBL_STRICT_RIGHTS_DESC' => 'If a user is a member of several groups only the respective rights from the group assigned to the current record are used.',
'LBL_USER_ROLE_PRECEDENCE' => 'User Role Precedence',
'LBL_USER_ROLE_PRECEDENCE_DESC' => 'If any role is assigned directly to a user that role should take precedence over any group roles.',
'LBL_INHERIT_TITLE' => 'Group Inheritance Rules',
'LBL_INHERIT_CREATOR' => 'Inherit from Created By User',
'LBL_INHERIT_CREATOR_DESC' => 'The record will inherit all the groups assigned to the user who created it.',
'LBL_INHERIT_PARENT' => 'Inherit from Parent Record',
'LBL_INHERIT_PARENT_DESC' => 'e.g. If a case is created for a contact the case will inherit the groups associated with the contact.',
'LBL_USER_POPUP' => 'New User Group Popup',
'LBL_USER_POPUP_DESC' => 'When creating a new user show the SecurityGroups popup to assign the user to a group(s).',
'LBL_INHERIT_ASSIGNED' => 'Inherit from Assigned To User',
'LBL_INHERIT_ASSIGNED_DESC' => 'The record will inherit all the groups of the user assigned to the record. Other groups assigned to the record will NOT be removed.',
'LBL_POPUP_SELECT' => 'Use Creator Group Select',
'LBL_POPUP_SELECT_DESC' => 'When a record is created by a user in more than one group show a group selection panel on the create screen. Otherwise inherit that one group.',
'LBL_FILTER_USER_LIST' => 'Filter User List',
'LBL_FILTER_USER_LIST_DESC' => 'Non-admin users can only assign to users in the same group(s)',
'LBL_DEFAULT_GROUP_TITLE' => 'Default Groups for New Records',
'LBL_ADD_BUTTON_LABEL' => 'Add',
'LBL_REMOVE_BUTTON_LABEL' => 'Remove',
'LBL_GROUP' => 'Group:',
'LBL_MODULE' => 'Module:',
'LBL_MASS_ASSIGN' => 'Security Groups: Mass Assign',
'LBL_ASSIGN' => 'Assign',
'LBL_ASSIGN_CONFIRM' => 'Are you sure that you want to add this group to the ',
'LBL_REMOVE_CONFIRM' => 'Are you sure that you want to remove this group from the ',
'LBL_CONFIRM_END' => ' selected record(s)?',
'LBL_SECURITYGROUP_USER_FORM_TITLE' => 'SecurityGroup/User',
'LBL_USER_NAME' => 'User Name',
'LBL_SECURITYGROUP_NAME' => 'SecurityGroup Name',
'LBL_LIST_USER_NONINHERITABLE' => 'Not Inheritable',
'LBL_HOMEPAGE_TITLE' => 'Group Messages',
'LBL_TITLE' => 'Title',
'LBL_ROWS' => 'Rows',
'LBL_MAKE_POST' => 'Make a Post',
'LBL_POST' => 'Post',
'LBL_SELECT_GROUP' => 'Select a Group',
'LBL_SELECT_GROUP_ERROR' => 'Please select a group and try again.',
'LBL_HOOKUP_SELECT' => 'Select a module',
'LBL_HOOKUP_CONFIRM_PART1' => 'You are about to add a relationship between Security Groups and ',
'LBL_HOOKUP_CONFIRM_PART2' => '. Continue?',
'LBL_GROUP_SELECT' => 'Select which groups should have access to this record',
'LBL_ERROR_DUPLICATE' => 'Due to a possible duplicate detected by Sugar you will have to manually add Security Groups to your newly created record.',
'LBL_INBOUND_EMAIL' => 'Inbound email account',
'LBL_INBOUND_EMAIL_DESC' => 'Only allow access to an email account if user belongs to a group that is assigned to the mail account.',
'LBL_PRIMARY_GROUP' => 'Primary Group',
); | mit |
pietermartin/sqlg | sqlg-h2-parent/sqlg-h2/src/test/java/org/umlg/sqlg/test/H2AnyTest.java | 760 | package org.umlg.sqlg.test;
import org.apache.commons.io.FileUtils;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.umlg.sqlg.AnyTest;
import java.io.File;
import java.io.IOException;
/**
* @author Lukas Krejci
* @since 1.3.0
*/
public class H2AnyTest extends AnyTest {
@BeforeClass
public static void setUp() {
try {
File directory = new File("./src/test/db/");
if (directory.exists()) {
FileUtils.cleanDirectory(directory);
} else {
//noinspection ResultOfMethodCallIgnored
directory.mkdir();
}
} catch (IOException e) {
Assert.fail("Failed to delete H2's db dir at ./src/test/db");
}
}
}
| mit |
Byte-Code/lm-digital-store-private-test | mocks/world.js | 2064 | import footer from '../app/assets/00_Footer.png';
import tavoliSedie from '../app/assets/01_TavoliSedie.png';
import carport from '../app/assets/02_Carport.jpg';
import panchine from '../app/assets/03_Panchine.jpg';
import sedie from '../app/assets/04_SediePoltrone.jpg';
import tavoli from '../app/assets/05_Tavoli.jpg';
import dondoli from '../app/assets/06_DondoliAmache.jpg';
import pergole from '../app/assets/07_Pergole.jpg';
import divisori from '../app/assets/08_DivisoriGiardino.png';
import ombrelloni from '../app/assets/09_OmbrelloniBasi.jpg';
import gazebo from '../app/assets/10_Gazebo.jpg';
import sdraio from '../app/assets/11_SdraioLettini.jpg';
import texture from '../app/assets/texture.png';
const world = {
worldName: 'Giardino e Terrazzo',
title: 'Scopri le soluzioni per Giardino e Terrazzo',
trailingImage: footer,
banner: {
text: 'Scopri le funzioni del Digital Store',
image: texture
},
families: [
{
familyName: 'Tavoli',
image: tavoli,
categoryCode: 'CAT656'
},
{
familyName: 'Gazebo',
image: gazebo,
categoryCode: 'CAT944'
},
{
familyName: 'Sedie e Poltrone',
image: sedie,
categoryCode: 'CAT657'
},
{
familyName: 'Panchine',
image: panchine,
categoryCode: 'CAT945'
},
{
familyName: 'Dondoli e Amache',
image: dondoli,
categoryCode: 'CAT659'
},
{
familyName: 'Ombrelloni e Basi',
image: ombrelloni,
categoryCode: 'CAT660'
},
{
familyName: 'Set di tavoli e sedie',
image: tavoliSedie,
categoryCode: 'CAT655'
},
{
familyName: 'Sdraio e Lettini',
image: sdraio,
categoryCode: 'CAT658'
},
{
familyName: 'Pergole',
image: pergole,
categoryCode: 'CAT676'
},
{
familyName: 'Carport',
image: carport,
categoryCode: 'CAT4231'
},
{
familyName: 'Divisori Giardino',
image: divisori,
categoryCode: 'CAT4097'
}
]
};
export default world;
| mit |
MPRZLabs/MPi | conf.php | 514 | <?php
require("debug.php");
// Welcome to MPi configuration file. Just fill in the fields.
//CHANGE STUFF HERE
define("DATABASE_BACKEND", "mysql");
if (DATABASE_BACKEND == "mysql")
{
require("mysql.php");
// CHANGE STUFF HERE
$db = new DatabaseHandler("host", "user", "pass", "name");
}
elseif (DATABASE_BACKEND == "sqlite3")
{
require("sqlite3.php");
$db = new DatabaseHandler("system.sqlite");
}
else
{
debug_die("Invalid database backend!");
}
?> | mit |
ivajlotokiew/Databases_Entity_Framework | Entity_Framework_Code_First/Sales/Sales.ConsoleClient/Properties/AssemblyInfo.cs | 1414 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sales.ConsoleClient")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Sales.ConsoleClient")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("809f538f-c30c-4d4d-a361-37c0cbc35e6e")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| mit |
jwiesel/sfdcCommander | sfdcCommander/src/main/java/com/sforce/soap/_2006/_04/metadata/PermissionSetUserPermission.java | 4771 | /**
* PermissionSetUserPermission.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.sforce.soap._2006._04.metadata;
public class PermissionSetUserPermission implements java.io.Serializable {
private boolean enabled;
private java.lang.String name;
public PermissionSetUserPermission() {
}
public PermissionSetUserPermission(
boolean enabled,
java.lang.String name) {
this.enabled = enabled;
this.name = name;
}
/**
* Gets the enabled value for this PermissionSetUserPermission.
*
* @return enabled
*/
public boolean isEnabled() {
return enabled;
}
/**
* Sets the enabled value for this PermissionSetUserPermission.
*
* @param enabled
*/
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
/**
* Gets the name value for this PermissionSetUserPermission.
*
* @return name
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the name value for this PermissionSetUserPermission.
*
* @param name
*/
public void setName(java.lang.String name) {
this.name = name;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof PermissionSetUserPermission)) return false;
PermissionSetUserPermission other = (PermissionSetUserPermission) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.enabled == other.isEnabled() &&
((this.name==null && other.getName()==null) ||
(this.name!=null &&
this.name.equals(other.getName())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += (isEnabled() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getName() != null) {
_hashCode += getName().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(PermissionSetUserPermission.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "PermissionSetUserPermission"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("enabled");
elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "enabled"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("name");
elemField.setXmlName(new javax.xml.namespace.QName("http://soap.sforce.com/2006/04/metadata", "name"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
| mit |
wp-plugins/raygun4wp | external/raygun4js/src/raygun.js-url.js | 3419 | // js-url - see LICENSE file
var raygunJsUrlFactory = function (window, Raygun) {
Raygun._private.parseUrl = function(arg, url) {
function isNumeric(arg) {
return !isNaN(parseFloat(arg)) && isFinite(arg);
}
return (function(arg, url) {
var _ls = url || window.location.toString();
if (!arg) { return _ls; }
else { arg = arg.toString(); }
if (_ls.substring(0,2) === '//') { _ls = 'http:' + _ls; }
else if (_ls.split('://').length === 1) { _ls = 'http://' + _ls; }
url = _ls.split('/');
var _l = {auth:''}, host = url[2].split('@');
if (host.length === 1) { host = host[0].split(':'); }
else { _l.auth = host[0]; host = host[1].split(':'); }
_l.protocol=url[0];
_l.hostname=host[0];
_l.port=(host[1] || ((_l.protocol.split(':')[0].toLowerCase() === 'https') ? '443' : '80'));
_l.pathname=( (url.length > 3 ? '/' : '') + url.slice(3, url.length).join('/').split('?')[0].split('#')[0]);
var _p = _l.pathname;
if (_p.charAt(_p.length-1) === '/') { _p=_p.substring(0, _p.length-1); }
var _h = _l.hostname, _hs = _h.split('.'), _ps = _p.split('/');
if (arg === 'hostname') { return _h; }
else if (arg === 'domain') {
if (/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/.test(_h)) { return _h; }
return _hs.slice(-2).join('.');
}
//else if (arg === 'tld') { return _hs.slice(-1).join('.'); }
else if (arg === 'sub') { return _hs.slice(0, _hs.length - 2).join('.'); }
else if (arg === 'port') { return _l.port; }
else if (arg === 'protocol') { return _l.protocol.split(':')[0]; }
else if (arg === 'auth') { return _l.auth; }
else if (arg === 'user') { return _l.auth.split(':')[0]; }
else if (arg === 'pass') { return _l.auth.split(':')[1] || ''; }
else if (arg === 'path') { return _l.pathname; }
else if (arg.charAt(0) === '.')
{
arg = arg.substring(1);
if(isNumeric(arg)) {arg = parseInt(arg, 10); return _hs[arg < 0 ? _hs.length + arg : arg-1] || ''; }
}
else if (isNumeric(arg)) { arg = parseInt(arg, 10); return _ps[arg < 0 ? _ps.length + arg : arg] || ''; }
else if (arg === 'file') { return _ps.slice(-1)[0]; }
else if (arg === 'filename') { return _ps.slice(-1)[0].split('.')[0]; }
else if (arg === 'fileext') { return _ps.slice(-1)[0].split('.')[1] || ''; }
else if (arg.charAt(0) === '?' || arg.charAt(0) === '#')
{
var params = _ls, param = null;
if(arg.charAt(0) === '?') { params = (params.split('?')[1] || '').split('#')[0]; }
else if(arg.charAt(0) === '#') { params = (params.split('#')[1] || ''); }
if(!arg.charAt(1)) { return params; }
arg = arg.substring(1);
params = params.split('&');
for(var i=0,ii=params.length; i<ii; i++)
{
param = params[i].split('=');
if(param[0] === arg) { return param[1] || ''; }
}
return null;
}
return '';
})(arg, url);
};
};
raygunJsUrlFactory(window, window.Raygun);
window.Raygun._seal(); | mit |
OptimalPayments/Java_SDK | NetBanxSDK/src/main/java/com/optimalpayments/common/InvalidRequestException.java | 1671 | /*
* Copyright (c) 2014 Optimal Payments
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.optimalpayments.common;
import com.optimalpayments.common.impl.BaseDomainObject;
// TODO: Auto-generated Javadoc
/**
* Exception type thrown by any 400 error from the API.
*/
public class InvalidRequestException extends OptimalException {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* Instantiates a new invalid request exception.
*
* @param obj the obj
* @param cause the cause
*/
public InvalidRequestException(final BaseDomainObject obj, final Throwable cause) {
super(obj, cause);
}
}
| mit |
slippers/SqliteEtilqs | etilqs/src/androidTest/java/com/springtrail/etilqs/TableBuilderTest.java | 5401 | package com.springtrail.etilqs;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.springtrail.etilqs.Builder.Column;
import com.springtrail.etilqs.Builder.DataSourceBuilder;
import com.springtrail.etilqs.Builder.TableBuilder;
import com.springtrail.etilqs.Builder.TableModel;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.Date;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
/**
* Created by kirk on 9/28/15.
*/
@RunWith(AndroidJUnit4.class)
public class TableBuilderTest {
String dbName = "test_" + Long.toString((new Date()).getTime()) + ".db";
Integer dbVersion = 1;
DataSourceBuilder dataSource;
@Before
public void setUp() throws Exception {
Util.PurgeDatabases();
}
@Test
public void TableBuilder() {
Context context = InstrumentationRegistry.getContext();
dataSource = new DataSourceBuilder(context, dbName, dbVersion);
test();
}
private void test(){
//copied and pasted from
String expected_table = "CREATE TABLE DataTypeTable(\n" +
"_id INTEGER ,\n" +
"f_boolean NUMERIC ,\n" +
"f_integer_1 INTEGER ,\n" +
"f_integer_2 INTEGER DEFAULT (5) ,\n" +
"f_integer_3 INTEGER ,\n" +
"f_integer_4 INTEGER ,\n" +
"f_integer_5 INTEGER ,\n" +
"f_integer_check INTEGER ,\n" +
"f_integer_primary INTEGER ,\n" +
"f_integer_unique INTEGER NOT NULL,\n" +
"f_long_1 NUMERIC ,\n" +
"f_long_2 NUMERIC DEFAULT (5) ,\n" +
"f_long_3 NUMERIC ,\n" +
"f_long_4 NUMERIC ,\n" +
"f_string_1 TEXT ,\n" +
"f_string_2 TEXT DEFAULT ('test') ,\n" +
"f_string_3 TEXT ,\n" +
"f_string_4 TEXT \n" +
",CONSTRAINT PK_primary PRIMARY KEY (_id) \n" +
",CONSTRAINT CK_f_integer_5 CHECK (f_integer_5 > 0)\n" +
",CONSTRAINT CK_f_integer_check CHECK (f_integer_check > 0)\n" +
",CONSTRAINT UN_f_integer_unique UNIQUE (f_integer_unique) \n" +
")";
class DataTypeTable extends TableModel {
@Column(name="f_integer_primary", type = Column.columnTypeEnum.INTEGER)
public Integer f_integer_primary;
@Column(name="f_integer_unique", type = Column.columnTypeEnum.INTEGER)
public Integer f_integer_unique;
@Column(name="f_integer_check", type = Column.columnTypeEnum.INTEGER)
public Integer f_integer_check;
@Column(name="f_integer_1", type = Column.columnTypeEnum.INTEGER)
public Integer f_integer_1;
@Column(name="f_integer_2", type = Column.columnTypeEnum.INTEGER, defaultValue = "5")
public Integer f_integer_2;
@Column(name="f_integer_3", type = Column.columnTypeEnum.INTEGER, nullable = false)
public Integer f_integer_3;
@Column(name="f_integer_4", type = Column.columnTypeEnum.INTEGER, nullable = true)
public Integer f_integer_4;
@Column(name="f_integer_5", type = Column.columnTypeEnum.INTEGER, check = "f_integer_5 > 0")
public Integer f_integer_5;
@Column(name="f_string_1", type = Column.columnTypeEnum.TEXT)
public String f_string_1;
@Column(name="f_string_2", type = Column.columnTypeEnum.TEXT, defaultValue = "test")
public String f_string_2;
@Column(name="f_string_3", type = Column.columnTypeEnum.TEXT, nullable = false)
public String f_string_3;
@Column(name="f_string_4", type = Column.columnTypeEnum.TEXT, nullable = true)
public String f_string_4;
@Column(name="f_long_1", type = Column.columnTypeEnum.NUMERIC)
public Long f_long_1;
@Column(name="f_long_2", type = Column.columnTypeEnum.NUMERIC, defaultValue = "5")
public Long f_long_2;
@Column(name="f_long_3", type = Column.columnTypeEnum.NUMERIC, nullable = false)
public Long f_long_3;
@Column(name="f_long_4", type = Column.columnTypeEnum.NUMERIC, nullable = true)
public Long f_long_4;
@Column(name="f_boolean", type = Column.columnTypeEnum.NUMERIC)
public Boolean f_boolean;
@Override
public void configureTableModel(TableBuilder builder) {
super.configureTableModel(builder);
builder.getTableColumn("f_integer_unique").setUnique();
builder.getTableColumn("f_integer_check").setCheckConstraint("f_integer_check > 0");
}
}
dataSource.addBuilder(new DataTypeTable());
dataSource.open();
SQLiteDatabase sqLiteDatabase = dataSource.getSqLiteDatabase(DataSource.OpenMode.WRITE);
String new_table = Util.getTableInfo(sqLiteDatabase, DataTypeTable.class.getSimpleName());
assertThat(expected_table.compareTo(new_table), is(0));
Util.finish(dataSource, sqLiteDatabase);
}
}
| mit |
davidwhitney/nubot | Nubot/Adapters/ConsoleAdapter.cs | 648 | using System;
namespace Nubot.Adapters
{
public class ConsoleAdapter : IRobotAdapter
{
private Action<IMessageChannel, Envelope> _onEvent;
public void Listen(Action<IMessageChannel, Envelope> onEvent)
{
_onEvent = onEvent;
string msg = null;
while (msg != string.Empty)
{
msg = Console.ReadLine().Trim();
_onEvent(this, new Envelope {Room = "Console", User = Environment.UserName, Text = msg});
}
}
public void Send(string response)
{
Console.WriteLine(response);
}
}
} | mit |
YukiMiyatake/AsyncBotCrawler | src/https_client.cpp | 3037 | #include"../include/httpx_client.hpp"
bool verify_certificate(bool preverified, boost::asio::ssl::verify_context& ctx)
{
std::cerr << "verify_certificate " "\n";
char subject_name[256];
X509* cert = X509_STORE_CTX_get_current_cert(ctx.native_handle());
X509_NAME_oneline(X509_get_subject_name(cert), subject_name, 256);
std::cerr << "Verifying " << subject_name << " " << preverified << "\n";
return preverified;
}
template <>
void httpx_client<https_socket>::handle_connect(const boost::system::error_code& error)
{
auto self(getSelf());
std::cerr << "handle_connect " "\n";
if (!error)
{
state_ = httpx::STATE::CONNECTED;
asioUtil::deadlineOperation2(deadline_timer_, timeout_ms
, [this, self](const boost::system::error_code &ec) {
std::cerr << "timeout" << std::endl;
shutdown_socket_();
});
socket_.async_handshake(boost::asio::ssl::stream_base::client,
[this, self](const boost::system::error_code& ec) {
deadline_timer_.cancel();
// handle_handshake
std::cerr << "handle_handshake " "\n";
state_ = httpx::STATE::HANDSHAKED;
if (!ec)
{
//*
asioUtil::deadlineOperation2(deadline_timer_, timeout_ms
, [this, self](const boost::system::error_code &ec) {
// cerr << "timeout" << endl;
shutdown_socket_();
});
boost::asio::async_write(socket_, request_,
[this, self](const boost::system::error_code& ec, std::size_t bytes_transferred) {
deadline_timer_.cancel();
handle_write_request(ec);
});
}
else
{
std::cerr << "Handshake failed: " << ec.message() << "\n";
}
// handle_handshake(this,ec);
});
/*
socket_.async_handshake(boost::asio::ssl::stream_base::client,
boost::bind(&httpx_client::handle_handshake, shared_from_this(),
boost::asio::placeholders::error));
*/
}
else
{
std::cerr << "Connect failed: " << error.message() << "\n";
}
}
template <>
void httpx_client<https_socket>::handle_resolve(const boost::system::error_code& err,
boost::asio::ip::tcp::resolver::iterator endpoint_iterator) {
auto self(getSelf());
if (!err)
{
state_ = httpx::STATE::RESOLVED;
// no Verify
socket_.set_verify_mode(boost::asio::ssl::verify_none);
socket_.set_verify_callback(verify_certificate);
//boost::bind(&httpx_client::verify_certificate, this, _1, _2));
asioUtil::deadlineOperation2(deadline_timer_, timeout_ms
, [this, self](const boost::system::error_code &ec) {
std::cerr << "timeout" << std::endl;
shutdown_socket_();
});
boost::asio::async_connect(socket_.lowest_layer(), endpoint_iterator,
[this, self](const boost::system::error_code& ec, boost::asio::ip::tcp::resolver::iterator endpoint_iterator) {
deadline_timer_.cancel();
handle_connect(ec);
});
/*
boost::asio::async_connect(socket_.lowest_layer(), endpoint_iterator,
boost::bind(&httpx_client::handle_connect, shared_from_this(),
boost::asio::placeholders::error));
*/
}
else
{
std::cerr << "Error: " << err.message() << "\n";
}
}
| mit |
Asscoin/Asscoin | src/qt/locale/bitcoin_he.ts | 122555 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Asscoin</source>
<translation>אודות לייטקוין</translation>
</message>
<message>
<location line="+39"/>
<source><b>Asscoin</b> version</source>
<translation>גרסת <b>לייטקוין</b></translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation>
זוהי תוכנה ניסיונית.
מופצת תחת רישיון התוכנה MIT/X11, ראה את הקובץ המצורף COPYING או http://www.opensource.org/licenses/mit-license.php.
המוצר הזה כולל תוכנה שפותחה ע"י פרויקט OpenSSL לשימוש בתיבת הכלים OpenSSL (http://www.openssl.org/) ותוכנה קריפטוגרפית שנכתבה ע"י אריק יאנג ([email protected]) ותוכנת UPnP שנכתבה ע"י תומס ברנרד.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation>זכויות יוצרים</translation>
</message>
<message>
<location line="+0"/>
<source>The Asscoin developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>פנקס כתובות</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>לחץ לחיצה כפולה לערוך כתובת או תוית</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>יצירת כתובת חדשה</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>העתק את הכתובת המסומנת ללוח העריכה</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>כתובת חדשה</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your Asscoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation>אלה כתובת הלייטקוין שלך עבור קבלת תשלומים. ייתכן ותרצה לתת כתובת שונה לכל שולח כדי שתוכל לעקוב אחר מי משלם לך.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation>העתק כתובת</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>הצג &קוד QR</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Asscoin address</source>
<translation>חתום על הודעה בכדי להוכיח כי אתה הבעלים של כתובת לייטקוין.</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>חתום על הודעה</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>מחק את הכתובת שנבחרה מהרשימה</translation>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation>יצוא הנתונים בטאב הנוכחי לקובץ</translation>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified Asscoin address</source>
<translation>אמת הודעה בכדי להבטיח שהיא נחתמה עם כתובת לייטקוין מסוימת.</translation>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation>אמת הודעה</translation>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>מחק</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your Asscoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation>אלה כתובת הלייטקוין שלך עבור שליחת תשלומים. תמיד בדוק את מספר ואת כתובות מקבלי התשלומים לפני שליחת מטבעות.</translation>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation>העתק תוית</translation>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation>עריכה</translation>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation>שלח מטבעות</translation>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>יצוא נתוני פנקס כתובות</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>קובץ מופרד בפסיקים (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>שגיאה ביצוא</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>לא מסוגל לכתוב לקובץ %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>תוית</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>כתובת</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(ללא תוית)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>שיח סיסמא</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>הכנס סיסמא</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>סיסמה חדשה</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>חזור על הסיסמה החדשה</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>הכנס את הסיסמה החדשה לארנק. <br/>אנא השתמש בסיסמה המכילה <b>10 תוים אקראיים או יותר</b>, או <b>שמונה מילים או יותר</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>הצפן ארנק</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>הפעולה הזו דורשת את סיסמת הארנק שלך בשביל לפתוח את הארנק.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>פתיחת ארנק</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>הפעולה הזו דורשת את סיסמת הארנק שלך בשביל לפענח את הארנק.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>פענוח ארנק</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>שינוי סיסמה</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>הכנס את הסיסמות הישנה והחדשה לארנק.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>אשר הצפנת ארנק</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR ASSCOINS</b>!</source>
<translation>אזהרה: אם אתה מצפין את הארנק ומאבד את הסיסמא, אתה <b>תאבד את כל הלייטקוינים שלך</b>!</translation>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>האם אתה בטוח שברצונך להצפין את הארנק?</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation>חשוב! כל גיבוי קודם שעשית לארנק שלך יש להחליף עם קובץ הארנק המוצפן שזה עתה נוצר. מסיבות אבטחה, גיבויים קודמים של קובץ הארנק הלא-מוצפן יהפכו לחסרי שימוש ברגע שתתחיל להשתמש בארנק החדש המוצפן.</translation>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>זהירות: מקש Caps Lock מופעל!</translation>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>הארנק הוצפן</translation>
</message>
<message>
<location line="-56"/>
<source>Asscoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your asscoins from being stolen by malware infecting your computer.</source>
<translation>לייטקוין ייסגר עכשיו כדי להשלים את תהליך ההצפנה. זכור שהצפנת הארנק שלך אינו יכול להגן באופן מלא על הלייטקוינים שלך מתוכנות זדוניות המושתלות על המחשב.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>הצפנת הארנק נכשלה</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>הצפנת הארנק נכשלה עקב שגיאה פנימית. הארנק שלך לא הוצפן.</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>הסיסמות שניתנו אינן תואמות.</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>פתיחת הארנק נכשלה</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>הסיסמה שהוכנסה לפענוח הארנק שגויה.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>פענוח הארנק נכשל</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>סיסמת הארנק שונתה בהצלחה.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation>חתום על הודעה</translation>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>מסתנכרן עם הרשת...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>&סקירה</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>הצג סקירה כללית של הארנק</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&פעולות</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>דפדף בהיסטוריית הפעולות</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>ערוך את רשימת הכתובות והתויות</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>הצג את רשימת הכתובות לקבלת תשלומים</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation>י&ציאה</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>סגור תוכנה</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about Asscoin</source>
<translation>הצג מידע על לייטקוין</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>אודות Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>הצג מידע על Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&אפשרויות</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation>הצפן ארנק</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>גיבוי ארנק</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>שנה סיסמא</translation>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation>מייבא בלוקים מהדיסק...</translation>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation>מחדש את אינדקס הבלוקים בדיסק...</translation>
</message>
<message>
<location line="-347"/>
<source>Send coins to a Asscoin address</source>
<translation>שלח מטבעות לכתובת לייטקוין</translation>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for Asscoin</source>
<translation>שנה אפשרויות תצורה עבור לייטקוין</translation>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation>גיבוי הארנק למקום אחר</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>שנה את הסיסמה להצפנת הארנק</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation>חלון ניפוי</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>פתח את לוח הבקרה לאבחון וניפוי</translation>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation>אמת הודעה...</translation>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>Asscoin</source>
<translation>לייטקוין</translation>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation>ארנק</translation>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation>ושלח</translation>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation>וקבל</translation>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation>וכתובות</translation>
</message>
<message>
<location line="+22"/>
<source>&About Asscoin</source>
<translation>אודות לייטקוין</translation>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>הצג / הסתר</translation>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation>הצג או הסתר את החלון הראשי</translation>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation>הצפן את המפתחות הפרטיים ששייכים לארנק שלך</translation>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your Asscoin addresses to prove you own them</source>
<translation>חתום על הודעות עם כתובות הלייטקוין שלך כדי להוכיח שהן בבעלותך</translation>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified Asscoin addresses</source>
<translation>אמת הודעות כדי להבטיח שהן נחתמו עם כתובת לייטקוין מסוימות</translation>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&קובץ</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>ה&גדרות</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>&עזרה</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>סרגל כלים טאבים</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation>[רשת-בדיקה]</translation>
</message>
<message>
<location line="+47"/>
<source>Asscoin client</source>
<translation>תוכנת לייטקוין</translation>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to Asscoin network</source>
<translation><numerusform>חיבור פעיל אחד לרשת הלייטקוין</numerusform><numerusform>%n חיבורים פעילים לרשת הלייטקוין</numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation>1% מתוך 2% (משוער) בלוקים של הסטוריית פעולת עובדו </translation>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation>הושלם עיבוד של %1 בלוקים של היסטוריית פעולות.</translation>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation><numerusform>%n שעה</numerusform><numerusform>%n שעות</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n יום</numerusform><numerusform>%n ימים</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation><numerusform>%n שבוע</numerusform><numerusform>%n שבועות</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation>1% מאחור</translation>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation>הבלוק האחרון שהתקבל נוצר לפני %1</translation>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation>לאחר זאת פעולות נספות טרם יהיו גלויות</translation>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation>שגיאה</translation>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation>אזהרה</translation>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation>מידע</translation>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation>פעולה זו חורגת מגבולות הגודל. עדיין באפשרותך לשלוח אותה תמורת עמלה של %1, המיועדת לצמתים שמעבדים את הפעולה שלך ועוזרת לתמוך ברשת. האם ברצונך לשלם את העמלה?</translation>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>עדכני</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>מתעדכן...</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation>אשר עמלת פעולה</translation>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>פעולה שנשלחה</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>פעולה שהתקבלה</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>תאריך: %1
כמות: %2
סוג: %3
כתובת: %4</translation>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation>תפעול URI</translation>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid Asscoin address or malformed URI parameters.</source>
<translation>לא ניתן לנתח URI! זה יכול להיגרם כתוצאה מכתובת לייטקוין לא תקינה או פרמטרי URI חסרי צורה תקינה.</translation>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>הארנק <b>מוצפן</b> וכרגע <b>פתוח</b></translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>הארנק <b>מוצפן</b> וכרגע <b>נעול</b></translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. Asscoin can no longer continue safely and will quit.</source>
<translation>שגיאה סופנית אירעה. לייטקוין אינו יכול להמשיך לפעול בבטחה ולכן ייסגר.</translation>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation>אזעקת רשת</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>ערוך כתובת</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>ת&וית</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>התוית המשויכת לרשומה הזו בפנקס הכתובות</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&כתובת</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation>הכתובת המשויכת לרשומה זו בפנקס הכתובות. ניתן לשנות זאת רק עבור כתובות לשליחה.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>כתובת חדשה לקבלה</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>כתובת חדשה לשליחה</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>ערוך כתובת לקבלה</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>ערוך כתובת לשליחה</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>הכתובת שהכנסת "%1" כבר נמצאת בפנקס הכתובות.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Asscoin address.</source>
<translation>הכתובת שהוכנסה "%1" אינה כתובת לייטקוין תקינה.</translation>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>פתיחת הארנק נכשלה.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>יצירת מפתח חדש נכשלה.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>Asscoin-Qt</source>
<translation>Asscoin-Qt</translation>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation>גרסה</translation>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>שימוש:</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation>אפשרויות שורת פקודה</translation>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>אפשרויות ממשק</translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>קבע שפה, למשל "he_il" (ברירת מחדל: שפת המערכת)</translation>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation>התחל ממוזער</translation>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>הצג מסך פתיחה בעת הפעלה (ברירת מחדל: 1)</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>אפשרויות</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>ראשי</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>שלם &עמלת פעולה</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start Asscoin after logging in to the system.</source>
<translation>הפעל את לייטקוין באופן עצמאי לאחר התחברות למערכת.</translation>
</message>
<message>
<location line="+3"/>
<source>&Start Asscoin on system login</source>
<translation>התחל את לייטקוין בעת התחברות למערכת</translation>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation>אפס כל אפשרויות התוכנה לברירת המחדל.</translation>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation>איפוס אפשרויות</translation>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation>רשת</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Asscoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>פתח את פורט לייטקוין בנתב באופן אוטומטי. עובד רק אם UPnP מאופשר ונתמך ע"י הנתב.</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>מיפוי פורט באמצעות UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the Asscoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation>התחבר לרשת הלייטקוין דרך פרוקסי SOCKS (למשל בעת התחברות דרך Tor).</translation>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation>התחבר דרך פרוקסי SOCKS</translation>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>כתובת IP של פרוקסי:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>כתובת האינטרנט של הפרוקסי (למשל 127.0.0.1)</translation>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>פורט:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>הפורט של הפרוקסי (למשל 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>גרסת SOCKS:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>גרסת SOCKS של הפרוקסי (למשל 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>חלון</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>הצג סמל מגש בלבד לאחר מזעור החלון.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>מ&זער למגש במקום לשורת המשימות</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>מזער את התוכנה במקום לצאת ממנה כשהחלון נסגר. כשאפשרות זו פעילה, התוכנה תיסגר רק לאחר בחירת יציאה מהתפריט.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>מזער בעת סגירה</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>תצוגה</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>שפת ממשק המשתמש:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Asscoin.</source>
<translation>ניתן לקבוע כאן את שפת ממשק המשתמש. הגדרה זו תחול לאחר הפעלה מחדש של לייטקוין.</translation>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>יחידת מדידה להצגת כמויות:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>בחר את ברירת המחדל ליחידת החלוקה אשר תוצג בממשק ובעת שליחת מטבעות.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show Asscoin addresses in the transaction list or not.</source>
<translation>האם להציג כתובות לייטקוין ברשימת הפעולות או לא.</translation>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>הצג כתובות ברשימת הפעולות</translation>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>אישור</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>ביטול</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation>יישום</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation>ברירת מחדל</translation>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation>אשר את איפוס האפשרויות</translation>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation>כמה מההגדרות עשויות לדרוש אתחול התוכנה כדי להיכנס לפועל.</translation>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation>האם ברצונך להמשיך?</translation>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation>אזהרה</translation>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Asscoin.</source>
<translation>הגדרה זו תחול לאחר הפעלה מחדש של לייטקוין.</translation>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>כתובת הפרוקסי שסופקה אינה תקינה.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>טופס</translation>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Asscoin network after a connection is established, but this process has not completed yet.</source>
<translation>המידע המוצג עשוי להיות מיושן. הארנק שלך מסתנכרן באופן אוטומטי עם רשת הלייטקוין לאחר כינון חיבור, אך התהליך טרם הסתיים.</translation>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation>יתרה:</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>ממתין לאישור:</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>ארנק</translation>
</message>
<message>
<location line="+107"/>
<source>Immature:</source>
<translation>לא בשל:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>מאזן שנכרה וטרם הבשיל</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>פעולות אחרונות</b></translation>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation>היתרה הנוכחית שלך</translation>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>הסכום הכולל של פעולות שטרם אושרו, ועוד אינן נספרות בחישוב היתרה הנוכחית</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation>לא מסונכרן</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start asscoin: click-to-pay handler</source>
<translation>לא ניתן להתחיל את לייטקוין: מפעיל לחץ-לתשלום </translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation>שיח קוד QR</translation>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>בקש תשלום</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>כמות:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>תוית:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>הודעה:</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>&שמור בשם...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation>שגיאה בקידוד URI לקוד QR</translation>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation>הכמות שהוכנסה אינה תקינה, אנא ודא.</translation>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation>המזהה המתקבל ארוך מדי, נסה להפחית את הטקסט בתוית / הודעה.</translation>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation>שמור קוד QR</translation>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation>תמונות PNG (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>שם ממשק</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation>N/A</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>גרסת ממשק</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>מידע</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>משתמש ב-OpenSSL גרסה</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>זמן אתחול</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>רשת</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>מספר חיבורים</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation>ברשת הבדיקה</translation>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>שרשרת הבלוקים</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>מספר הבלוקים הנוכחי</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>מספר כולל משוער של בלוקים</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>זמן הבלוק האחרון</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>פתח</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation>אפשרויות שורת פקודה</translation>
</message>
<message>
<location line="+7"/>
<source>Show the Asscoin-Qt help message to get a list with possible Asscoin command-line options.</source>
<translation>הצג את הודעה העזרה של asscoin-qt כדי לקבל רשימה של אפשרויות שורת פקודה של לייטקוין.</translation>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation>הצג</translation>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>לוח בקרה</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>תאריך בניה</translation>
</message>
<message>
<location line="-104"/>
<source>Asscoin - Debug window</source>
<translation>לייטקוין - חלון ניפוי</translation>
</message>
<message>
<location line="+25"/>
<source>Asscoin Core</source>
<translation>ליבת לייטקוין</translation>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>קובץ יומן ניפוי</translation>
</message>
<message>
<location line="+7"/>
<source>Open the Asscoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation>פתח את קובץ יומן הניפוי מתיקיית הנתונים הנוכחית. זה עשוי לקחת מספר שניות עבור קובצי יומן גדולים.</translation>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>נקה לוח בקרה</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the Asscoin RPC console.</source>
<translation>ברוכים הבאים ללוח בקרת RPC של לייטקוין</translation>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>השתמש בחיצים למעלה ולמטה כדי לנווט בהיסטוריה, ו- <b>Ctrl-L</b> כדי לנקות את המסך.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>הקלד <b>help</b> בשביל סקירה של הפקודות הזמינות.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+124"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>שלח מטבעות</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>שלח למספר מקבלים בו-זמנית</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>הוסף מקבל</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation>הסר את כל השדות בפעולה</translation>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>נקה הכל</translation>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>יתרה:</translation>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation>123.456 לייטקוין</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>אשר את פעולת השליחה</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>שלח</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> ל- %2 (%3)</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>אשר שליחת מטבעות</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>האם אתה בטוח שברצונך לשלוח %1?</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation> ו- </translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>כתובת המקבל אינה תקינה, אנא בדוק שנית.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>הכמות לשלם חייבת להיות גדולה מ-0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>הכמות עולה על המאזן שלך.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>הכמות הכוללת, ובכללה עמלת פעולה בסך %1, עולה על המאזן שלך.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>כתובת כפולה נמצאה, ניתן לשלוח לכל כתובת רק פעם אחת בכל פעולת שליחה.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation>שגיאה: יצירת הפעולה נכשלה!</translation>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>שגיאה: הפעולה נדחתה. זה עשוי לקרות עם חלק מהמטבעות בארנק שלך כבר נוצלו, למשל אם השתמשת בעותק של wallet.dat ומטבעות נוצלו בעותק אך לא סומנו כמנוצלות כאן.</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>טופס</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>כ&מות:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>שלם &ל:</translation>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>הכתובת שאליה ישלח התשלום (למשל Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>הכנס תוית לכתובת הזאת כדי להכניס לפנקס הכתובות</translation>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>ת&וית:</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation>בחר כתובת מפנקס הכתובות</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>הדבר כתובת מהלוח</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation>הסר את המקבל הזה</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Asscoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>הכנס כתובת לייטקוין (למשל Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>חתימות - חתום או אמת הודעה</translation>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation>חתום על הו&דעה</translation>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>אתה יכול לחתום על הודעות עם הכתובות שלך כדי להוכיח שהן בבעלותך. היזהר לא לחתום על משהו מעורפל, שכן התקפות פישינג עשויות לגרום לך בעורמה למסור את זהותך. חתום רק על אמרות מפורטות לחלוטין שאתה מסכים עימן.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>הכתובת איתה לחתום על ההודעה (למשל Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation>בחר כתובת מפנקס הכתובות</translation>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation>הדבק כתובת מהלוח</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>הכנס כאן את ההודעה שעליך ברצונך לחתום</translation>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation>חתימה</translation>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation>העתק את החתימה הנוכחית ללוח המערכת</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Asscoin address</source>
<translation>חתום על ההודעה כדי להוכיח שכתובת הלייטקוין הזו בבעלותך.</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>חתום על הודעה</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation>אפס את כל שדות החתימה על הודעה</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>נקה הכל</translation>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation>אמת הודעה</translation>
</message>
<message>
<location line="+6"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation>הכנס למטה את הכתובת החותמת, ההודעה (ודא שאתה מעתיק מעברי שורה, רווחים, טאבים וכו' באופן מדויק) והחתימה כדי לאמת את ההודעה. היזהר לא לפרש את החתימה כיותר ממה שמופיע בהודעה החתומה בעצמה, כדי להימנע מליפול קורבן למתקפת איש-באמצע.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>הכתובת איתה ההודעה נחתמה (למשל Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Asscoin address</source>
<translation>אמת את ההודעה כדי להבטיח שהיא נחתמה עם כתובת הלייטקוין הנתונה</translation>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation>אימות הודעה</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation>אפס את כל שדות אימות הודעה</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Asscoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>הכנס כתובת לייטקוין (למשל Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>לחץ "חתום על ההודעה" כדי לחולל חתימה</translation>
</message>
<message>
<location line="+3"/>
<source>Enter Asscoin signature</source>
<translation>הכנס חתימת לייטקוין</translation>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>הכתובת שהוכנסה אינה תקינה.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>אנא בדוק את הכתובת ונסה שנית.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>הכתובת שהוכנסה אינה מתייחסת למפתח.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>פתיחת הארנק בוטלה.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>המפתח הפרטי עבור הכתובת שהוכנסה אינו זמין.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>החתימה על ההודעה נכשלה.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>ההודעה נחתמה.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>לא ניתן לפענח את החתימה.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>אנא בדוק את החתימה ונסה שנית.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>החתימה לא תואמת את תקציר ההודעה.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>אימות ההודעה נכשל.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>ההודעה אומתה.</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The Asscoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation>[רשת-בדיקה]</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation>פתוח עד %1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation>%1/מנותק</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/ממתין לאישור</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 אישורים</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>מצב</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, הופץ דרך צומת אחד</numerusform><numerusform>, הופץ דרך %n צמתים</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>תאריך</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>מקור</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>נוצר</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>מאת</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>אל</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>כתובת עצמית</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>תוית</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>זיכוי</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>מבשיל בעוד בלוק אחד</numerusform><numerusform>מבשיל בעוד %n בלוקים</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>לא התקבל</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>חיוב</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>עמלת פעולה</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>כמות נקיה</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>הודעה</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>הערה</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>זיהוי פעולה</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 20 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation>מטבעות שנוצרים חייבים להבשיל למשך 20 בלוקים לפני שניתן לנצל אותם. כשיצרת את הבלוק הזה, הוא הופץ לרשת כדי להתווסף לשרשרת הבלוקים. אם הוא אינו מצליח לביע לשרשרת, המצב שלו ישתנה ל"לא התקבל" ולא ניתן יהיה לנצל אותו. זה עשוי לקרות מעת לעת אם צומת אחר יוצר בלוק בטווח של מספר שניות מהבלוק שלך.</translation>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>מידע ניפוי</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>פעולה</translation>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation>קלטים</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>כמות</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>אמת</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>שקר</translation>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation>, טרם שודר בהצלחה</translation>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>פתח למשך בלוק %n יותר</numerusform><numerusform>פתח למשך %n בלוקים נוספים</numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation>לא ידוע</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>פרטי הפעולה</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>חלונית זו מציגה תיאור מפורט של הפעולה</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation>תאריך</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>סוג</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>כתובת</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>כמות</translation>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>פתח למשך בלוק %n יותר</numerusform><numerusform>פתח למשך %n בלוקים נוספים</numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>פתוח עד %1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation>לא מחובר (%1 אישורים)</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>ממתין לאישור (%1 מתוך %2 אישורים)</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation>מאושר (%1 אישורים)</translation>
</message>
<message numerus="yes">
<location line="+8"/>
<source>Mined balance will be available when it matures in %n more block(s)</source>
<translation><numerusform>המאזן שנכרה יהיה זמין כשהוא מבשיל בעוד בלוק אחד</numerusform><numerusform>המאזן שנכרה יהיה זמין כשהוא מבשיל בעוד %n בלוקים</numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>הבלוק הזה לא נקלט על ידי אף צומת אחר, וכנראה לא יתקבל!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>נוצר אך לא התקבל</translation>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation>התקבל עם</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>התקבל מאת</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>נשלח ל</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>תשלום לעצמך</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>נכרה</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(n/a)</translation>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>מצב הפעולה. השהה את הסמן מעל שדה זה כדי לראות את מספר האישורים.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>התאריך והשעה בה הפעולה הזאת התקבלה.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>סוג הפעולה.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>כתובת היעד של הפעולה.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>הכמות שהתווספה או הוסרה מהיתרה.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation>הכל</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>היום</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>השבוע</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>החודש</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>החודש שעבר</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>השנה</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>טווח...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>התקבל עם</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>נשלח ל</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>לעצמך</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>נכרה</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>אחר</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>הכנס כתובת או תוית לחפש</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>כמות מזערית</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>העתק כתובת</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>העתק תוית</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>העתק כמות</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>העתק מזהה פעולה</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>ערוך תוית</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>הצג פרטי פעולה</translation>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation>יצוא נתוני פעולות</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>קובץ מופרד בפסיקים (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>מאושר</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>תאריך</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>סוג</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>תוית</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>כתובת</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>כמות</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>מזהה</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>שגיאה ביצוא</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>לא מסוגל לכתוב לקובץ %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>טווח:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>אל</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation>שלח מטבעות</translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation>יצוא הנתונים בטאב הנוכחי לקובץ</translation>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation>גבה ארנק</translation>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation>נתוני ארנק (*.dat)</translation>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation>גיבוי נכשל</translation>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation>הייתה שגיאה בנסיון לשמור את המידע הארנק למיקום החדש.</translation>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation>גיבוי הושלם בהצלחה</translation>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation>נתוני הארנק נשמרו בהצלחה במקום החדש.</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>Asscoin version</source>
<translation>גרסת לייטקוין</translation>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation>שימוש:</translation>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or asscoind</source>
<translation>שלח פקודה ל -server או asscoind</translation>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation>רשימת פקודות</translation>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation>קבל עזרה עבור פקודה</translation>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation>אפשרויות:</translation>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: asscoin.conf)</source>
<translation>ציין קובץ הגדרות (ברירת מחדל: asscoin.conf)</translation>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: asscoind.pid)</source>
<translation>ציין קובץ pid (ברירת מחדל: asscoind.pid)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>ציין תיקיית נתונים</translation>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>קבע את גודל המטמון של מסד הנתונים במגהבייט (ברירת מחדל: 25)</translation>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 8141 or testnet: 18141)</source>
<translation>האזן לחיבורים ב<פורט> (ברירת מחדל: 8141 או ברשת הבדיקה: 18141)</translation>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>החזק לכל היותר <n> חיבורים לעמיתים (ברירת מחדל: 125)</translation>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>התחבר לצומת כדי לדלות כתובות עמיתים, ואז התנתק</translation>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation>ציין את הכתובת הפומבית שלך</translation>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>סף להתנתקות מעמיתים הנוהגים שלא כהלכה (ברירת מחדל: 100)</translation>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>מספר שניות למנוע מעמיתים הנוהגים שלא כהלכה מלהתחבר מחדש (ברירת מחדל: 86400)</translation>
</message>
<message>
<location line="-29"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>אירעה שגיאה בעת הגדרת פורט RPC %u להאזנה ב-IPv4: %s</translation>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 8142 or testnet: 18142)</source>
<translation>האזן לחיבורי JSON-RPC ב- <port> (ברירת מחדל: 8142 או רשת בדיקה: 18142)</translation>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>קבל פקודות משורת הפקודה ו- JSON-RPC</translation>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>רוץ ברקע כדימון וקבל פקודות</translation>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation>השתמש ברשת הבדיקה</translation>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>קבל חיבורים מבחוץ (ברירת מחדל: 1 ללא -proxy או -connect)</translation>
</message>
<message>
<location line="-80"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=asscoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "Asscoin Alert" [email protected]
</source>
<translation>%s, עליך לקבוע סיסמת RPC בקובץ הקונפיגורציה:
%s
מומלץ להשתמש בסיסמא האקראית הבאה:
rpcuser=asscoinrpc
rpcpassword=%s
(אין צורך לזכור את הסיסמה)
אסור ששם המשתמש והסיסמא יהיו זהים.
אם הקובץ אינו קיים, צור אותו עם הרשאות קריאה לבעלים בלבד.
זה מומלץ לסמן alertnotify כדי לקבל דיווח על תקלות;
למשל: alertnotify=echo %%s | mail -s "Asscoin Alert" [email protected]
</translation>
</message>
<message>
<location line="+17"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>אירעה שגיאה בעת הגדרת פורט RPC %u להאזנה ב-IPv6, נסוג ל-IPv4: %s</translation>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation>קשור עם כתובת נתונה והאזן לה תמיד. השתמש בסימון [host]:port עבוד IPv6.</translation>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. Asscoin is probably already running.</source>
<translation>לא מסוגל להשיג נעילה על תיקיית הנתונים %s. כנראה שלייטקוין כבר רץ.</translation>
</message>
<message>
<location line="+3"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>שגיאה: הפעולה נדחתה! זה עלול לקרות אם כמה מהמטבעות בארנק שלך כבר נוצלו, למשל אם השתמשת בעותק של wallet.dat ומטבעות נשלחו בעותק אך לא סומנו כמנוצלות כאן.</translation>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation>שגיאה: הפעולה הזאת דורשת עמלת פעולה של לפחות %s עקב הכמות, המורכבות, או השימוש בכספים שהתקבלו לאחרונה!</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation>בצע פעולה כאשר ההודעה הרלוונטית מתקבלת(%s בשורת הפקודה משתנה על-ידי ההודעה)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>בצע פקודה כאשר פעולת ארנק משתנה (%s ב cmd יוחלף ב TxID)</translation>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation>קבע גודל מקסימלי עבור פעולות עדיפות גבוהה/עמלה נמוכה בבתים (ברירת מחדל: 27000)</translation>
</message>
<message>
<location line="+6"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation>זוהי בניית ניסיון טרום-שחרור - השימוש בה על אחריותך - אין להשתמש לצורך כריה או יישומי מסחר</translation>
</message>
<message>
<location line="+5"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>אזהרה: -paytxfee נקבע לערך מאד גבוה! זוהי עמלת הפעולה שתשלם אם אתה שולח פעולה.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation>אזהרה: הפעולות המוצגות עשויות לא להיות נכונות! ייתכן ואתה צריך לשדרג, או שצמתים אחרים צריכים לשדרג.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Asscoin will not work properly.</source>
<translation>אזהרה: אנא בדוק שהתאריך והשעה של המחשב שלך נכונים! אם השעון שלך אינו נכון לייטקוין לא יעבוד כראוי.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation>אזהרה: שגיאה בקריאת wallet.dat! כל המתפחות נקראו באופן תקין, אך נתוני הפעולות או ספר הכתובות עלולים להיות חסרים או שגויים.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation>אזהרה: קובץ wallet.dat מושחת, המידע חולץ! קובץ wallet.dat המקורח נשמר כ - wallet.{timestamp}.bak ב - %s; אם המאזן או הפעולות שגויים עליך לשחזר גיבוי.</translation>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>נסה לשחזר מפתחות פרטיים מקובץ wallet.dat מושחת.</translation>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation>אפשרויות יצירת בלוק:</translation>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation>התחבר רק לצמתים המצוינים</translation>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation>התגלה מסד נתוני בלוקים לא תקין</translation>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>גלה את כתובת ה-IP העצמית (ברירת מחדל: 1 כשמאזינים וללא -externalip)</translation>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation>האם תרצה כעט לבנות מחדש את מסד נתוני הבלוקים?</translation>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation>שגיאה באתחול מסד נתוני הבלוקים</translation>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation>שגיאה באתחול סביבת מסד נתוני הארנקים %s!</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation>שגיאה בטעינת מסד נתוני הבלוקים</translation>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation>שגיאה בטעינת מסד נתוני הבלוקים</translation>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation>שגיאה: מעט מקום פנוי בדיסק!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation>שגיאה: הארנק נעול, אין אפשרות ליצור פעולה!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation>שגיאה: שגיאת מערכת:</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>האזנה נכשלה בכל פורט. השתמש ב- -listen=0 אם ברצונך בכך.</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation>קריאת מידע הבלוקים נכשלה</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation>קריאת הבלוק נכשלה</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation>סנכרון אינדקס הבלוקים נכשל</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation>כתיבת אינדקס הבלוקים נכשל</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation>כתיבת מידע הבלוקים נכשל</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation>כתיבת הבלוק נכשלה</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation>כתיבת מידע הקבצים נכשלה</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation>כתיבת מסד נתוני המטבעות נכשלה</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation>כתיבת אינדקס הפעולות נכשלה</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation>כתיבת נתוני ביטול נכשלה</translation>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation>מצא עמיתים ע"י חיפוש DNS (ברירת מחדל: 1 ללא -connect)</translation>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation>מספר הבלוקים לבדוק בעת אתחול (ברירת מחדל: 288, 0 = כולם)</translation>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation>מידת היסודיות של אימות הבלוקים (0-4, ברירת מחדל: 3)</translation>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation>בנה מחדש את אינדק שרשרת הבלוקים מקבצי ה-blk000??.dat הנוכחיים.</translation>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation>קבע את מספר תהליכוני לשירות קריאות RPC (ברירת מחדל: 4)</translation>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation>מאמת את שלמות מסד הנתונים...</translation>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation>מאמת את יושרת הארנק...</translation>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation>מייבא בלוקים מקובצי blk000??.dat חיצוניים</translation>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation>מידע</translation>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation>כתובת לא תקינה ל -tor: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation>תחזק אינדקס פעולות מלא (ברירת מחדל: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>חוצץ קבלה מירבי לכל חיבור, <n>*1000 בתים (ברירת מחדל: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>חוצץ שליחה מירבי לכל חיבור, <n>*1000 בתים (ברירת מחדל: 1000)</translation>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation>קבל רק שרשרת בלוקים התואמת נקודות ביקורת מובנות (ברירת מחדל: 1)</translation>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>התחבר רק לצמתים ברשת <net> (IPv4, IPv6 או Tor)</translation>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation>פלוט מידע ניפוי נוסף. נובע מכך כל אפשרויות -debug* האחרות.</translation>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation>פלוט מידע נוסף לניפוי שגיאות ברשת.</translation>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation>הוסף חותמת זמן לפני פלט דיבאג</translation>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the Asscoin Wiki for SSL setup instructions)</source>
<translation>אפשרויות SSL: (ראה את הויקי של לייטקוין עבור הוראות הגדרת SSL)</translation>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation>בחר את גרסת פרוקסי SOCKS להשתמש בה (4-5, ברירת מחדל: 5)</translation>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>שלח מידע דיבאג ועקבה לקונסולה במקום לקובץ debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation>שלח מידע דיבאג ועקבה לכלי דיבאג</translation>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation>קבע את גדול הבלוק המירבי בבתים (ברירת מחדל: 250000)</translation>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>קבע את גודל הבלוק המינימלי בבתים (ברירת מחדל: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>כווץ את קובץ debug.log בהפעלת הקליינט (ברירת מחדל: 1 ללא -debug)</translation>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>ציין הגבלת זמן לחיבור במילישניות (ברירת מחדל: 5000)</translation>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation>שגיאת מערכת:</translation>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>השתמש ב-UPnP כדי למפות את הפורט להאזנה (ברירת מחדל: 0)</translation>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>השתמש ב-UPnP כדי למפות את הפורט להאזנה (ברירת מחדל: 1 בעת האזנה)</translation>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation>השתמש בפרוקסי כדי להגיע לשירותים חבויים ב-tor (ברירת מחדל: כמו ב- -proxy)</translation>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation>שם משתמש לחיבורי JSON-RPC</translation>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation>אזהרה</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>אזהרה: הגרסה הזאת מיושנת, יש צורך בשדרוג!</translation>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation>עליך לבנות מחדש את מסדי הנתונים תוך שימוש ב- -reindex על מנת לשנות את -txindex</translation>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>קובץ wallet.dat מושחת, החילוץ נכשל</translation>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation>סיסמה לחיבורי JSON-RPC</translation>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>אפשר חיבורי JSON-RPC מכתובת האינטרנט המצוינת</translation>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>שלח פקודות לצומת ב-<ip> (ברירת מחדל: 127.0.0.1)</translation>
</message>
<message>
<location line="-20"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>בצע פקודה זו כשהבלוק הטוב ביותר משתנה (%s בפקודה יוחלף בגיבוב הבלוק)</translation>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation>שדרג את הארנק לפורמט העדכני</translation>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>קבע את גודל המאגר ל -<n> (ברירת מחדל: 100)</translation>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>סרוק מחדש את שרשרת הבלוקים למציאת פעולות חסרות בארנק</translation>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>השתמש ב-OpenSSL (https( עבור חיבורי JSON-RPC</translation>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation>קובץ תעודת שרת (ברירת מחדל: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>מפתח פרטי של השרת (ברירת מחדל: server.pem)</translation>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation>צפנים קבילים (ברירת מחדל: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation>הודעת העזרה הזו</translation>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>לא מסוגל לקשור ל-%s במחשב זה (הקשירה החזירה שגיאה %d, %s)</translation>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation>התחבר דרך פרוקסי SOCKS</translation>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>אפשר בדיקת DNS עבור -addnode, -seednode ו- -connect</translation>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation>טוען כתובות...</translation>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>שגיאה בטעינת הקובץ wallet.dat: הארנק מושחת</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of Asscoin</source>
<translation>שגיאה בטעינת הקובץ wallet.dat: הארנק דורש גרסה חדשה יותר של לייטקוין</translation>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart Asscoin to complete</source>
<translation>יש לכתוב מחדש את הארנק: אתחל את לייטקוין לסיום</translation>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation>שגיאה בטעינת הקובץ wallet.dat</translation>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation>כתובת -proxy לא תקינה: '%s'</translation>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>רשת לא ידועה צוינה ב- -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>התבקשה גרסת פרוקסי -socks לא ידועה: %i</translation>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>לא מסוגל לפתור כתובת -bind: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>לא מסוגל לפתור כתובת -externalip: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>כמות לא תקינה עבור -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation>כמות לא תקינה</translation>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation>אין מספיק כספים</translation>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation>טוען את אינדקס הבלוקים...</translation>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>הוסף צומת להתחברות ונסה לשמור את החיבור פתוח</translation>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. Asscoin is probably already running.</source>
<translation>לא ניתן לקשור ל-%s במחשב זה. לייטקוין כנראה עדיין רץ.</translation>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation>עמלה להוסיף לפעולות שאתה שולח עבור כל KB</translation>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation>טוען ארנק...</translation>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation>לא יכול להוריד דרגת הארנק</translation>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation>לא יכול לכתוב את כתובת ברירת המחדל</translation>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation>סורק מחדש...</translation>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation>טעינה הושלמה</translation>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation>להשתמש באפשרות %s</translation>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation>שגיאה</translation>
</message>
<message>
<location line="-31"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>עליך לקבוע rpcpassword=yourpassword בקובץ ההגדרות:
%s
אם הקובץ אינו קיים, צור אותו עם הרשאות קריאה לבעלים בלבד.</translation>
</message>
</context>
</TS> | mit |
sitmo/stdfin | stdfin/process/brownian_motion.hpp | 800 | // Copyright (c) 2012 M.A. (Thijs) van den Berg, http://sitmo.com/
//
// Use, modification and distribution are subject to the BOOST Software License.
// (See accompanying file LICENSE.txt)
#ifndef STDFIN_BROWNIAN_MOTION_SDE_HPP
#define STDFIN_BROWNIAN_MOTION_SDE_HPP
namespace stdfin {
template <typename RealType_ = double, typename TimeType_ = double>
class brownian_motion_sde
{
public:
typedef RealType_ RealType;
typedef TimeType_ TimeType;
private:
RealType mu;
RealType sigma;
public:
explicit brownian_motion_sde(RealType mu_ = 0, RealType sigma_ = 1)
: mu(mu_), sigma(sigma_)
{}
RealType drift() const { return mu; }
RealType diffusion() const { return sigma; }
};
typedef brownian_motion_sde<> brownian_motion;
} // namespace
#endif
| mit |
wellingtonsampaio/react-kanban-board | app/components/IconButton/index.js | 623 | /**
*
* IconButton
*
*/
import React from 'react';
import FontAwesome from 'react-fontawesome';
import classNames from 'classnames';
import styles from './styles.css';
function IconButton({ onClick, icon, iconClass, buttonClass }) {
return (
<div className={classNames(styles.iconButton, buttonClass)} onClick={onClick}>
<FontAwesome className={iconClass} name={icon} />
</div>
);
}
IconButton.propTypes = {
onClick: React.PropTypes.func.isRequired,
icon: React.PropTypes.string.isRequired,
iconClass: React.PropTypes.string,
buttonClass: React.PropTypes.string,
};
export default IconButton;
| mit |
inkcoin/inkcoin-project | src/qt/locale/bitcoin_bg.ts | 108465 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Inkcoin</source>
<translation>За Биткоин</translation>
</message>
<message>
<location line="+39"/>
<source><b>Inkcoin</b> version</source>
<translation><b>Биткоин</b> версия</translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation>
Това е експериментален софтуер.
Разпространява се под MIT/X11 софтуерен лиценз, виж COPYING или http://www.opensource.org/licenses/mit-license.php.
Използван е софтуер, разработен от OpenSSL Project за употреба в OpenSSL Toolkit (http://www.openssl.org/), криптографски софтуер разработен от Eric Young ([email protected]) и UPnP софтуер разработен от Thomas Bernard.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The Inkcoin Developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Адреси</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>Двоен клик за редакция на адрес или име</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Създава нов адрес</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Копира избрания адрес</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>&Нов адрес</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your Inkcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation>Това са вашите Биткоин адреси за получаване на плащания. За по-лесно проследяване на плащанията и повишена анонимност можете да използвате нов адрес за всяко плащане.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation>&Копирай</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>Покажи &QR код</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Inkcoin address</source>
<translation>Подпишете съобщение като доказателство, че притежавате определен адрес</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Подпиши &съобщение</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Изтрий избрания адрес от списъка</translation>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation>Запишете данните от текущия раздел във файл</translation>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified Inkcoin address</source>
<translation>Проверете съобщение, за да сте сигурни че е подписано с определен Биткоин адрес</translation>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation>&Провери съобщение</translation>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Изтрий</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your Inkcoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation>Копирай &име</translation>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation>&Редактирай</translation>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>Запазване на адреси</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>CSV файл (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Грешка при записа</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Неуспешен запис в %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Име</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(без име)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Парола</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Нова парола</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Още веднъж</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Въведете нова парола за портфейла.<br/>Моля използвайте <b>поне 10 случайни символа</b> или <b>8 или повече думи</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Криптиране на портфейла</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Тази операция изисква Вашата парола за отключване на портфейла.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Отключване на портфейла</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Тази операция изисква Вашата парола за декриптиране на портфейла.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Декриптиране на портфейла</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Смяна на паролата</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Въведете текущата и новата парола за портфейла.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Потвърждаване на криптирането</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR INKCOIN</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Портфейлът е криптиран</translation>
</message>
<message>
<location line="-56"/>
<source>Inkcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your inkcoins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Криптирането беше неуспешно</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Криптирането на портфейла беше неуспешно поради неизвестен проблем. Портфейлът не е криптиран.</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>Паролите не съвпадат</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>Отключването беше неуспешно</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Паролата въведена за декриптиране на портфейла е грешна.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Декриптирането беше неуспешно</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Паролата на портфейла беше променена успешно.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation>Подписване на &съобщение...</translation>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>Синхронизиране с мрежата...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>&Баланс</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Обобщена информация за портфейла</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&Транзакции</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>История на входящите и изходящи транзакции</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Редактиране на адреси</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Списък на адресите за получаване</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation>Из&ход</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Затваря приложението</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about Inkcoin</source>
<translation>Показва информация за Биткоин</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>За &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Опции...</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation>&Криптиране на портфейла...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Запазване на портфейла...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Смяна на паролата...</translation>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-347"/>
<source>Send coins to a Inkcoin address</source>
<translation>Изпращане към Биткоин адрес</translation>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for Inkcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Променя паролата за портфейла</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation>&Проверка на съобщение...</translation>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>Inkcoin</source>
<translation>Биткоин</translation>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation>Портфейл</translation>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>&About Inkcoin</source>
<translation>&За Биткоин</translation>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your Inkcoin addresses to prove you own them</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified Inkcoin addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&Файл</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>&Настройки</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>&Помощ</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Раздели</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+47"/>
<source>Inkcoin client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to Inkcoin network</source>
<translation><numerusform>%n връзка към Биткоин мрежата</numerusform><numerusform>%n връзки към Биткоин мрежата</numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>Синхронизиран</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>Зарежда блокове...</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation>Потвърждение за такса</translation>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>Изходяща транзакция</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>Входяща транзакция</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid Inkcoin address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Портфейлът е <b>криптиран</b> и <b>отключен</b></translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Портфейлът е <b>криптиран</b> и <b>заключен</b></translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. Inkcoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Редактиране на адрес</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Име</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>Името свързано с този запис в списъка с адреси</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Адрес</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation>Адресът свързан с този запис в списъка с адреси. Може да се променя само за изходящи адреси.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>Нов адрес за получаване</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Нов адрес за изпращане</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Редактиране на входящ адрес</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Редактиране на изходящ адрес</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Вече има адрес "%1" в списъка с адреси.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Inkcoin address.</source>
<translation>"%1" не е валиден Биткоин адрес.</translation>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Отключването на портфейла беше неуспешно.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Създаването на ключ беше неуспешно.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>Inkcoin-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>UI Опции</translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Опции</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Основни</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>&Такса за изходяща транзакция</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start Inkcoin after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start Inkcoin on system login</source>
<translation>&Пускане на Биткоин при вход в системата</translation>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation>&Мрежа</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Inkcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>Автоматично отваряне на входящия Inkcoin порт. Работи само с рутери поддържащи UPnP.</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Отваряне на входящия порт чрез &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the Inkcoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>IP адрес на прокси сървъра (например 127.0.0.1)</translation>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Прозорец</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>След минимизиране ще е видима само иконата в системния трей.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Минимизиране в системния трей</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>При затваряне на прозореца приложението остава минимизирано. Ако изберете тази опция, приложението може да се затвори само чрез Изход в менюто.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>М&инимизиране при затваряне</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Интерфейс</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>Език:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Inkcoin.</source>
<translation>Промяната на езика ще влезе в сила след рестартиране на Биткоин.</translation>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>Мерни единици:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Изберете единиците, показвани по подразбиране в интерфейса.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show Inkcoin addresses in the transaction list or not.</source>
<translation>Ще се показват адресите в списъка с транзакции независимо от наличието на кратко име.</translation>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>Показвай и адресите в списъка с транзакции</translation>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Inkcoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Прокси адресът е невалиден.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Форма</translation>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Inkcoin network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation>Баланс:</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>Непотвърдени:</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>Портфейл</translation>
</message>
<message>
<location line="+107"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Последни транзакции</b></translation>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation>Вашият текущ баланс</translation>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>Сборът на все още непотвърдените транзакции, които не са част от текущия баланс</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation>несинхронизиран</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start inkcoin: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>Изискай плащане</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>Сума:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>Име:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>Съобщение:</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>&Запази като...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation>Грешка при създаването на QR Code от URI.</translation>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation>Въведената сума е невалидна, моля проверете.</translation>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation>N/A</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Мрежа</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the Inkcoin-Qt help message to get a list with possible Inkcoin command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-104"/>
<source>Inkcoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Inkcoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the Inkcoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Изчисти конзолата</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the Inkcoin RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Използвайте стрелки надолу и нагореза разглеждане на историятаот команди и <b>Ctrl-L</b> за изчистване на конзолата.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+124"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Изпращане</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>Изпращане към повече от един получател</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Добави &получател</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation>Изчистване на всички полета</translation>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Изчисти</translation>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>Баланс:</translation>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation>123.456 BTC</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Потвърдете изпращането</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>И&зпрати</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> на %2 (%3)</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Потвърждаване</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Сигурни ли сте, че искате да изпратите %1?</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation> и </translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>Невалиден адрес на получателя.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Сумата трябва да е по-голяма от 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>Грешка: транзакцията беше отхвърлена. Това е възможно ако част от парите в портфейла са вече похарчени, например при паралелно използване на копие на wallet.dat</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>Форма</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>С&ума:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Плати &На:</translation>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Въведете име за този адрес, за да го добавите в списъка с адреси</translation>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&Име:</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation>Изберете от списъка с адреси</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Вмъкни от клипборда</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation>Махни този получател</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Inkcoin address (e.g. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</source>
<translation>Въведете Биткоин адрес (например Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Подпиши / Провери съобщение</translation>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation>&Подпиши</translation>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Можете да подпишете съобщение като доказателство, че притежавате определен адрес. Бъдете внимателни и не подписвайте съобщения, които биха разкрили лична информация без вашето съгласие.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</source>
<translation>Адресът, с който ще подпишете съобщението (например Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</translation>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation>Изберете от списъка с адреси</translation>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation>Вмъкни от клипборда</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Въведете съобщението тук</translation>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Копиране на текущия подпис</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Inkcoin address</source>
<translation>Подпишете съобщение като доказателство, че притежавате определен адрес</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>&Изчисти</translation>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation>&Провери</translation>
</message>
<message>
<location line="+6"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</source>
<translation>Адресът, с който е подписано съобщението (например Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</translation>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Inkcoin address</source>
<translation>Проверете съобщение, за да сте сигурни че е подписано с определен Биткоин адрес</translation>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Inkcoin address (e.g. Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</source>
<translation>Въведете Биткоин адрес (например Qi1NooNjQySQLDJ643HWfZZ7UN2EmLEvix)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Натиснете "Подписване на съобщение" за да създадете подпис</translation>
</message>
<message>
<location line="+3"/>
<source>Enter Inkcoin signature</source>
<translation>Биткоин подпис</translation>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>Въведеният адрес е невалиден.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Моля проверете адреса и опитайте отново.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>Не е наличен частният ключ за въведеният адрес.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Подписването на съобщение бе неуспешно.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Съобщението е подписано.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Подписът не може да бъде декодиран.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Проверете подписа и опитайте отново.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>Подписът не отговаря на комбинацията от съобщение и адрес.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Проверката на съобщението беше неуспешна.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Съобщението е потвърдено.</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The Inkcoin Developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation>Подлежи на промяна до %1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation>%1/офлайн</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/непотвърдени</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>включена в %1 блока</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Статус</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Източник</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Издадени</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>От</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>За</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>собствен адрес</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>име</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Кредит</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Дебит</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Такса</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Сума нето</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Съобщение</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Коментар</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 240 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Транзакция</translation>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Сума</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>true</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>false</translation>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation>, все още не е изпратено</translation>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation>неизвестен</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Транзакция</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Описание на транзакцията</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Тип</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Сума</translation>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>Подлежи на промяна до %1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation>Офлайн (%1 потвърждения)</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>Непотвърдени (%1 от %2 потвърждения)</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Потвърдени (%1 потвърждения)</translation>
</message>
<message numerus="yes">
<location line="+8"/>
<source>Mined balance will be available when it matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Блокът не е получен от останалите участници и най-вероятно няма да бъде одобрен.</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation>Получени с</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Изпратени на</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Емитирани</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(n/a)</translation>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Състояние на транзакцията. Задръжте върху това поле за брой потвърждения.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Дата и час на получаване.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Тип на транзакцията.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Получател на транзакцията.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Сума извадена или добавена към баланса.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation>Всички</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Днес</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Тази седмица</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Този месец</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Предния месец</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Тази година</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>От - до...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Получени</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Изпратени на</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Собствени</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Емитирани</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Други</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Търсене по адрес или име</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Минимална сума</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Копирай адрес</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Копирай име</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Редактирай име</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>CSV файл (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Потвърдени</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Тип</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Име</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Сума</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Грешка при записа</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Неуспешен запис в %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>От:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>до</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation>Изпращане</translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation>Запишете данните от текущия раздел във файл</translation>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>inkcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>Inkcoin version</source>
<translation>Биткоин версия</translation>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or bitcoind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation>Опции:</translation>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: inkcoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: inkcoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 8333 or testnet: 18333)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=inkcoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "Inkcoin Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. Inkcoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Inkcoin will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation>Невалиден -tor адрес: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the Inkcoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-120"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation>Зареждане на адресите...</translation>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of Inkcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart Inkcoin to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Невалиден -proxy address: '%s'</translation>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation>Зареждане на блок индекса...</translation>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. Inkcoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation>Зареждане на портфейла...</translation>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation>Преразглеждане на последовтелността от блокове...</translation>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation>Зареждането е завършено</translation>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation>Грешка</translation>
</message>
<message>
<location line="-31"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS> | mit |
xiaotie/GebImage | src/Geb.Image/UnmanagedImage/Utils/ImageConverter.cs | 27457 | /*************************************************************************
* Copyright (c) 2010 Hu Fei([email protected]; geblab, www.geblab.com)
************************************************************************/
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace Geb.Image
{
public sealed class UnmanagedImageConverter
{
/* 1024*(([0..511]./255)**(1./3)) */
static ushort[] icvLabCubeRootTab = new ushort[] {
0,161,203,232,256,276,293,308,322,335,347,359,369,379,389,398,
406,415,423,430,438,445,452,459,465,472,478,484,490,496,501,507,
512,517,523,528,533,538,542,547,552,556,561,565,570,574,578,582,
586,590,594,598,602,606,610,614,617,621,625,628,632,635,639,642,
645,649,652,655,659,662,665,668,671,674,677,680,684,686,689,692,
695,698,701,704,707,710,712,715,718,720,723,726,728,731,734,736,
739,741,744,747,749,752,754,756,759,761,764,766,769,771,773,776,
778,780,782,785,787,789,792,794,796,798,800,803,805,807,809,811,
813,815,818,820,822,824,826,828,830,832,834,836,838,840,842,844,
846,848,850,852,854,856,857,859,861,863,865,867,869,871,872,874,
876,878,880,882,883,885,887,889,891,892,894,896,898,899,901,903,
904,906,908,910,911,913,915,916,918,920,921,923,925,926,928,929,
931,933,934,936,938,939,941,942,944,945,947,949,950,952,953,955,
956,958,959,961,962,964,965,967,968,970,971,973,974,976,977,979,
980,982,983,985,986,987,989,990,992,993,995,996,997,999,1000,1002,
1003,1004,1006,1007,1009,1010,1011,1013,1014,1015,1017,1018,1019,1021,1022,1024,
1025,1026,1028,1029,1030,1031,1033,1034,1035,1037,1038,1039,1041,1042,1043,1044,
1046,1047,1048,1050,1051,1052,1053,1055,1056,1057,1058,1060,1061,1062,1063,1065,
1066,1067,1068,1070,1071,1072,1073,1074,1076,1077,1078,1079,1081,1082,1083,1084,
1085,1086,1088,1089,1090,1091,1092,1094,1095,1096,1097,1098,1099,1101,1102,1103,
1104,1105,1106,1107,1109,1110,1111,1112,1113,1114,1115,1117,1118,1119,1120,1121,
1122,1123,1124,1125,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1138,1139,
1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1154,1155,1156,
1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,
1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,
1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,
1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1215,1216,1217,1218,1219,
1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1230,1231,1232,1233,1234,
1235,1236,1237,1238,1239,1240,1241,1242,1242,1243,1244,1245,1246,1247,1248,1249,
1250,1251,1251,1252,1253,1254,1255,1256,1257,1258,1259,1259,1260,1261,1262,1263,
1264,1265,1266,1266,1267,1268,1269,1270,1271,1272,1273,1273,1274,1275,1276,1277,
1278,1279,1279,1280,1281,1282,1283,1284,1285,1285,1286,1287,1288,1289,1290,1291
};
const float labXr_32f = 0.433953f /* = xyzXr_32f / 0.950456 */;
const float labXg_32f = 0.376219f /* = xyzXg_32f / 0.950456 */;
const float labXb_32f = 0.189828f /* = xyzXb_32f / 0.950456 */;
const float labYr_32f = 0.212671f /* = xyzYr_32f */;
const float labYg_32f = 0.715160f /* = xyzYg_32f */;
const float labYb_32f = 0.072169f /* = xyzYb_32f */;
const float labZr_32f = 0.017758f /* = xyzZr_32f / 1.088754 */;
const float labZg_32f = 0.109477f /* = xyzZg_32f / 1.088754 */;
const float labZb_32f = 0.872766f /* = xyzZb_32f / 1.088754 */;
const float labRx_32f = 3.0799327f /* = xyzRx_32f * 0.950456 */;
const float labRy_32f = (-1.53715f) /* = xyzRy_32f */;
const float labRz_32f = (-0.542782f)/* = xyzRz_32f * 1.088754 */;
const float labGx_32f = (-0.921235f)/* = xyzGx_32f * 0.950456 */;
const float labGy_32f = 1.875991f /* = xyzGy_32f */ ;
const float labGz_32f = 0.04524426f /* = xyzGz_32f * 1.088754 */;
const float labBx_32f = 0.0528909755f /* = xyzBx_32f * 0.950456 */;
const float labBy_32f = (-0.204043f) /* = xyzBy_32f */;
const float labBz_32f = 1.15115158f /* = xyzBz_32f * 1.088754 */;
const float labT_32f = 0.008856f;
const int lab_shift = 10;
const float labLScale2_32f = 903.3f;
const int labXr = (int)((labXr_32f) * (1 << (lab_shift)) + 0.5);
const int labXg = (int)((labXg_32f) * (1 << (lab_shift)) + 0.5);
const int labXb = (int)((labXb_32f) * (1 << (lab_shift)) + 0.5);
const int labYr = (int)((labYr_32f) * (1 << (lab_shift)) + 0.5);
const int labYg = (int)((labYg_32f) * (1 << (lab_shift)) + 0.5);
const int labYb = (int)((labYb_32f) * (1 << (lab_shift)) + 0.5);
const int labZr = (int)((labZr_32f) * (1 << (lab_shift)) + 0.5);
const int labZg = (int)((labZg_32f) * (1 << (lab_shift)) + 0.5);
const int labZb = (int)((labZb_32f) * (1 << (lab_shift)) + 0.5);
const float labLScale_32f = 116.0f;
const float labLShift_32f = 16.0f;
const int labSmallScale = (int)((31.27 /* labSmallScale_32f*(1<<lab_shift)/255 */ ) * (1 << (lab_shift)) + 0.5);
const int labSmallShift = (int)((141.24138 /* labSmallScale_32f*(1<<lab) */ ) * (1 << (lab_shift)) + 0.5);
const int labT = (int)((labT_32f * 255) * (1 << (lab_shift)) + 0.5);
const int labLScale = (int)((295.8) * (1 << (lab_shift)) + 0.5);
const int labLShift = (int)((41779.2) * (1 << (lab_shift)) + 0.5);
const int labLScale2 = (int)((labLScale2_32f * 0.01) * (1 << (lab_shift)) + 0.5);
public static unsafe void Copy(Byte* from, Byte* to, int length)
{
if (length < 1) return;
Byte* end = from + length;
while (from != end)
{
*to = *from;
from++;
to++;
}
}
public static unsafe void ToLab24(Bgr24* from, Lab24* to, int length=1)
{
// 使用 OpenCV 中的算法实现
if (length < 1) return;
Bgr24* end = from + length;
int x, y, z;
int l, a, b;
bool flag;
while (from != end)
{
Byte red = from->Red;
Byte green = from->Green;
Byte blue = from->Blue;
x = blue * labXb + green * labXg + red * labXr;
y = blue * labYb + green * labYg + red * labYr;
z = blue * labZb + green * labZg + red * labZr;
flag = x > labT;
x = (((x) + (1 << ((lab_shift) - 1))) >> (lab_shift));
if (flag)
x = icvLabCubeRootTab[x];
else
x = (((x * labSmallScale + labSmallShift) + (1 << ((lab_shift) - 1))) >> (lab_shift));
flag = z > labT;
z = (((z) + (1 << ((lab_shift) - 1))) >> (lab_shift));
if (flag == true)
z = icvLabCubeRootTab[z];
else
z = (((z * labSmallScale + labSmallShift) + (1 << ((lab_shift) - 1))) >> (lab_shift));
flag = y > labT;
y = (((y) + (1 << ((lab_shift) - 1))) >> (lab_shift));
if (flag == true)
{
y = icvLabCubeRootTab[y];
l = (((y * labLScale - labLShift) + (1 << ((2 * lab_shift) - 1))) >> (2 * lab_shift));
}
else
{
l = (((y * labLScale2) + (1 << ((lab_shift) - 1))) >> (lab_shift));
y = (((y * labSmallScale + labSmallShift) + (1 << ((lab_shift) - 1))) >> (lab_shift));
}
a = (((500 * (x - y)) + (1 << ((lab_shift) - 1))) >> (lab_shift)) + 129;
b = (((200 * (y - z)) + (1 << ((lab_shift) - 1))) >> (lab_shift)) + 128;
// 据Imageshop(http://www.cnblogs.com/Imageshop/) 测试,l不会超出[0,255]范围。
// l = l > 255 ? 255 : l < 0 ? 0 : l;
a = a > 255 ? 255 : a < 0 ? 0 : a;
b = b > 255 ? 255 : b < 0 ? 0 : b;
to->L = (byte)l;
to->A = (byte)a;
to->B = (byte)b;
from++;
to++;
}
}
public static unsafe void ToLab24(Bgra32* from, Lab24* to, int length = 1)
{
// 使用 OpenCV 中的算法实现
if (length < 1) return;
Bgra32* end = from + length;
int x, y, z;
int l, a, b;
bool flag;
while (from != end)
{
Byte red = from->Red;
Byte green = from->Green;
Byte blue = from->Blue;
x = blue * labXb + green * labXg + red * labXr;
y = blue * labYb + green * labYg + red * labYr;
z = blue * labZb + green * labZg + red * labZr;
flag = x > labT;
x = (((x) + (1 << ((lab_shift) - 1))) >> (lab_shift));
if (flag)
x = icvLabCubeRootTab[x];
else
x = (((x * labSmallScale + labSmallShift) + (1 << ((lab_shift) - 1))) >> (lab_shift));
flag = z > labT;
z = (((z) + (1 << ((lab_shift) - 1))) >> (lab_shift));
if (flag == true)
z = icvLabCubeRootTab[z];
else
z = (((z * labSmallScale + labSmallShift) + (1 << ((lab_shift) - 1))) >> (lab_shift));
flag = y > labT;
y = (((y) + (1 << ((lab_shift) - 1))) >> (lab_shift));
if (flag == true)
{
y = icvLabCubeRootTab[y];
l = (((y * labLScale - labLShift) + (1 << ((2 * lab_shift) - 1))) >> (2 * lab_shift));
}
else
{
l = (((y * labLScale2) + (1 << ((lab_shift) - 1))) >> (lab_shift));
y = (((y * labSmallScale + labSmallShift) + (1 << ((lab_shift) - 1))) >> (lab_shift));
}
a = (((500 * (x - y)) + (1 << ((lab_shift) - 1))) >> (lab_shift)) + 129;
b = (((200 * (y - z)) + (1 << ((lab_shift) - 1))) >> (lab_shift)) + 128;
l = l > 255 ? 255 : l < 0 ? 0 : l;
a = a > 255 ? 255 : a < 0 ? 0 : a;
b = b > 255 ? 255 : b < 0 ? 0 : b;
to->L = (byte)l;
to->A = (byte)a;
to->B = (byte)b;
from++;
to++;
}
}
public static unsafe void ToLab24(Byte* from, Lab24* to, int length = 1)
{
// 使用 OpenCV 中的算法实现
if (length < 1) return;
Byte* end = from + length;
int x, y, z;
int l, a, b;
bool flag;
while (from != end)
{
Byte val = *from;
Byte red = val;
Byte green = val;
Byte blue = val;
x = blue * labXb + green * labXg + red * labXr;
y = blue * labYb + green * labYg + red * labYr;
z = blue * labZb + green * labZg + red * labZr;
flag = x > labT;
x = (((x) + (1 << ((lab_shift) - 1))) >> (lab_shift));
if (flag)
x = icvLabCubeRootTab[x];
else
x = (((x * labSmallScale + labSmallShift) + (1 << ((lab_shift) - 1))) >> (lab_shift));
flag = z > labT;
z = (((z) + (1 << ((lab_shift) - 1))) >> (lab_shift));
if (flag == true)
z = icvLabCubeRootTab[z];
else
z = (((z * labSmallScale + labSmallShift) + (1 << ((lab_shift) - 1))) >> (lab_shift));
flag = y > labT;
y = (((y) + (1 << ((lab_shift) - 1))) >> (lab_shift));
if (flag == true)
{
y = icvLabCubeRootTab[y];
l = (((y * labLScale - labLShift) + (1 << ((2 * lab_shift) - 1))) >> (2 * lab_shift));
}
else
{
l = (((y * labLScale2) + (1 << ((lab_shift) - 1))) >> (lab_shift));
y = (((y * labSmallScale + labSmallShift) + (1 << ((lab_shift) - 1))) >> (lab_shift));
}
a = (((500 * (x - y)) + (1 << ((lab_shift) - 1))) >> (lab_shift)) + 129;
b = (((200 * (y - z)) + (1 << ((lab_shift) - 1))) >> (lab_shift)) + 128;
l = l > 255 ? 255 : l < 0 ? 0 : l;
a = a > 255 ? 255 : a < 0 ? 0 : a;
b = b > 255 ? 255 : b < 0 ? 0 : b;
to->L = (byte)l;
to->A = (byte)a;
to->B = (byte)b;
from++;
to++;
}
}
public static unsafe void ToBgr24(Lab24* from, Bgr24* to, int length=1)
{
if (length < 1) return;
// 使用 OpenCV 中的算法实现
const float coeff0 = 0.39215686274509809f;
const float coeff1 = 0.0f;
const float coeff2 = 1.0f;
const float coeff3 = (-128.0f);
const float coeff4 = 1.0f;
const float coeff5 = (-128.0f);
Lab24* end = from + length;
float x, y, z,l,a,b;
int blue, green, red;
while (from != end)
{
l = from->L * coeff0 + coeff1;
a = from->A * coeff2 + coeff3;
b = from->B * coeff4 + coeff5;
l = (l + labLShift_32f) * (1.0f / labLScale_32f);
x = (l + a * 0.002f);
z = (l - b * 0.005f);
y = l * l * l;
x = x * x * x;
z = z * z * z;
blue = (int)((x * labBx_32f + y * labBy_32f + z * labBz_32f) * 255 + 0.5);
green = (int)((x * labGx_32f + y * labGy_32f + z * labGz_32f) * 255 + 0.5);
red = (int)((x * labRx_32f + y * labRy_32f + z * labRz_32f) * 255 + 0.5);
red = red < 0 ? 0 : red > 255 ? 255 : red;
green = green < 0 ? 0 : green > 255 ? 255 : green;
blue = blue < 0 ? 0 : blue > 255 ? 255 : blue;
to->Red = (byte)red;
to->Green = (byte)green;
to->Blue = (byte)blue;
from++;
to++;
}
}
public static unsafe void ToBgr24(Bgra32* from, Bgr24* to, int length = 1)
{
if (length < 1) return;
Bgra32* end = from + length;
while (from != end)
{
*to = *((Bgr24*)from);
from++;
to++;
}
}
public static unsafe void ToBgr24(byte* from, Bgr24* to, int length = 1)
{
if (length < 1) return;
Byte* end = from + length;
while (from != end)
{
Byte val = *from;
to->Blue = val;
to->Green = val;
to->Red = val;
from++;
to++;
}
}
public static unsafe void ToBgra32(Bgr24* from, Bgra32* to, int length = 1)
{
if (length < 1) return;
Bgr24* end = from + length;
while (from != end)
{
to->Blue = from->Blue;
to->Green = from->Green;
to->Red = from->Red;
to->Alpha = 255;
from++;
to++;
}
}
public static unsafe void ToBgra32(SBgra64* from, Bgra32* to, int length = 1)
{
if (length < 1) return;
SBgra64* end = from + length;
while (from != end)
{
to->Blue = (byte)from->Blue;
to->Green = (byte)from->Green;
to->Red = (byte)from->Red;
to->Alpha = (byte)from->Alpha;
from++;
to++;
}
}
public static unsafe void ToSignedArgb64(Bgr24* from, SBgra64* to, int length = 1)
{
if (length < 1) return;
Bgr24* end = from + length;
while (from != end)
{
to->Blue = from->Blue;
to->Green = from->Green;
to->Red = from->Red;
to->Alpha = 255;
from++;
to++;
}
}
public static unsafe void ToSignedArgb64(Bgra32* from, SBgra64* to, int length = 1)
{
if (length < 1) return;
Bgra32* end = from + length;
while (from != end)
{
to->Blue = from->Blue;
to->Green = from->Green;
to->Red = from->Red;
to->Alpha = from->Alpha;
from++;
to++;
}
}
public static unsafe void ToByte(Bgr24* from, byte* to, int length = 1)
{
if (length < 1) return;
Bgr24* end = from + length;
while (from != end)
{
*to = (Byte)(from->Blue * 0.114 + from->Green * 0.587 + from->Red * 0.299);
from++;
to++;
}
}
public static unsafe void ToByte(Bgra32* from, byte* to, int length = 1)
{
if (length < 1) return;
Bgra32* end = from + length;
while (from != end)
{
*to = (Byte)(from->Blue * 0.114 + from->Green * 0.587 + from->Red * 0.299);
from++;
to++;
}
}
public static unsafe void ToBgra32(Byte* from, Bgra32* to, int length = 1)
{
if (length < 1) return;
Byte* end = from + length;
while (from != end)
{
Byte val = *from;
to->Blue = val;
to->Green = val;
to->Red = val;
to->Alpha = 255;
from++;
to++;
}
}
public static unsafe void ToSignedArgb64(Byte* from, SBgra64* to, int length = 1)
{
if (length < 1) return;
Byte* end = from + length;
while (from != end)
{
Byte val = *from;
to->Blue = val;
to->Green = val;
to->Red = val;
to->Alpha = 255;
from++;
to++;
}
}
public static unsafe void ToHsl(Bgr24* from, Hsl* to, int length = 1)
{
Bgr24* end = from + length;
while (from != end)
{
float r = (from->Red / 255f);
float g = (from->Green / 255f);
float b = (from->Blue / 255f);
float min = Math.Min(Math.Min(r, g), b);
float max = Math.Max(Math.Max(r, g), b);
float delta = max - min;
float h = 0;
float s = 0;
float l = (float)((max + min) / 2.0f);
if (delta != 0)
{
if (l < 0.5f)
{
s = (float)(delta / (max + min));
}
else
{
s = (float)(delta / (2.0f - max - min));
}
float deltaR = (float)(((max - r) / 6.0f + (delta / 2.0f)) / delta);
float deltaG = (float)(((max - g) / 6.0f + (delta / 2.0f)) / delta);
float deltaB = (float)(((max - b) / 6.0f + (delta / 2.0f)) / delta);
if (r == max)
{
h = deltaB - deltaG;
}
else if (g == max)
{
h = (1.0f / 3.0f) + deltaR - deltaB;
}
else if (b == max)
{
h = (2.0f / 3.0f) + deltaG - deltaR;
}
if (h < 0) h += 1.0f;
if (h > 1) h -= 1.0f;
}
to->H = h;
to->S = s;
to->L = l;
from++;
to++;
}
}
public static unsafe void ToHsl(Bgra32* from, Hsl* to, int length = 1)
{
Bgra32* end = from + length;
while (from != end)
{
float r = (from->Red / 255f);
float g = (from->Green / 255f);
float b = (from->Blue / 255f);
float min = Math.Min(Math.Min(r, g), b);
float max = Math.Max(Math.Max(r, g), b);
float delta = max - min;
float h = 0;
float s = 0;
float l = (float)((max + min) / 2.0f);
if (delta != 0)
{
if (l < 0.5f)
{
s = (float)(delta / (max + min));
}
else
{
s = (float)(delta / (2.0f - max - min));
}
float deltaR = (float)(((max - r) / 6.0f + (delta / 2.0f)) / delta);
float deltaG = (float)(((max - g) / 6.0f + (delta / 2.0f)) / delta);
float deltaB = (float)(((max - b) / 6.0f + (delta / 2.0f)) / delta);
if (r == max)
{
h = deltaB - deltaG;
}
else if (g == max)
{
h = (1.0f / 3.0f) + deltaR - deltaB;
}
else if (b == max)
{
h = (2.0f / 3.0f) + deltaG - deltaR;
}
if (h < 0) h += 1.0f;
if (h > 1) h -= 1.0f;
}
to->H = h;
to->S = s;
to->L = l;
from++;
to++;
}
}
public static unsafe void ToHsl(Byte* from, Hsl* to, int length = 1)
{
Byte* end = from + length;
while (from != end)
{
to->H = 0;
to->S = 0;
to->L = *from / 255f;
from++;
to++;
}
}
public static unsafe void ToRgb24(Hsl* from, Bgr24* to, int length = 1)
{
Hsl* end = from + length;
Byte r, g, b;
while (from != end)
{
float var_1, var_2;
if (from->S == 0)
{
r = g = b = (Byte)(from->L * 255);
}
else
{
if (from->L < 0.5) var_2 = from->L * (1 + from->S);
else var_2 = (from->L + from->S) - (from->S * from->L);
var_1 = 2 * from->L - var_2;
r = (Byte)(255 * HueToRgb(var_1, var_2, from->H + (1 / 3)));
g = (Byte)(255 * HueToRgb(var_1, var_2, from->H));
b = (Byte)(255 * HueToRgb(var_1, var_2, from->H - (1 / 3)));
}
to->Red = r;
to->Green = g;
to->Blue = b;
from++;
to++;
}
}
private static float HueToRgb(float v1, float v2, float vH)
{
if (vH < 0) vH += 1;
if (vH > 1) vH -= 1;
if ((6 * vH) < 1) return (v1 + (v2 - v1) * 6 * vH);
if ((2 * vH) < 1) return (v2);
if ((3 * vH) < 2) return (v1 + (v2 - v1) * ((2 / 3) - vH) * 6);
return (v1);
}
public static unsafe void YV12ToRgb24(Byte* yv12, Bgr24* rgb, int width, int height)
{
// 构建转换表
byte* map = stackalloc byte[256*3];
int* vMap0 = stackalloc int[256];
int* vMap1 = stackalloc int[256];
int* uMap0 = stackalloc int[256];
int* uMap1 = stackalloc int[256];
for (int i = 0; i < 256 * 3; i++)
{
if (i < 256) map[i] = 0;
else if (i >= 512) map[i] = 255;
else map[i] = (byte)(i - 256);
}
for (int i = 0; i < 256; i++)
{
int val = i - 128;
vMap0[i] = (int)(1.4075 * val);
vMap1[i] = (int)(0.7169 * val);
uMap0[i] = (int)(0.3455 * val);
uMap1[i] = (int)(1.779 * val);
//vMap0[i] = (int)(1.370705 * val);
//vMap1[i] = (int)(0.703125 * val);
//uMap0[i] = (int)(0.698001 * val);
//uMap1[i] = (int)(1.732446 * val);
}
Byte* y0 = yv12;
byte* v0 = y0 + width * height;
byte* u0 = v0 + width * height / 4;
Bgr24* c0 = rgb;
int y, u, v;
Bgr24* pVal;
for (int h = 0; h < height; h++)
{
byte* yLine = y0 + h * width;
int hHalf = h >> 1;
int wStrideHalf = width >> 1;
byte* uLine = u0 + ((hHalf * wStrideHalf));
byte* vLine = v0 + ((hHalf * wStrideHalf));
Bgr24* pLine = c0 + h * width;
for (int w = 0; w < width; w++)
{
pVal = pLine + w;
int wHalf = w >> 1;
y = yLine[w] + 256;
u = uLine[wHalf];
v = vLine[wHalf];
pVal->Blue = map[(y + uMap1[u])];
pVal->Green = map[(y - uMap0[u] - vMap1[v])];
pVal->Red = map[(y + vMap0[v])];
}
}
}
}
}
| mit |
RespectNetwork/csp-provisioning-application | src/main/java/net/respectnetwork/csp/application/controller/HomeController.java | 5596 | package net.respectnetwork.csp.application.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import net.respectnetwork.csp.application.dao.DAOException;
import net.respectnetwork.csp.application.dao.DAOFactory;
import net.respectnetwork.csp.application.form.SignUpForm;
import net.respectnetwork.csp.application.invite.InvitationManager;
import net.respectnetwork.csp.application.manager.RegistrationManager;
import net.respectnetwork.csp.application.model.GiftCodeModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
/**
* Handles requests for the application home page.
*/
@Controller
public class HomeController {
/** CLass Logger */
private static final Logger logger = LoggerFactory
.getLogger(HomeController.class);
public static final String URL_PARAM_NAME_INVITE_CODE = "invitecode";
public static final String URL_PARAM_NAME_GIFT_CODE = "giftcode" ;
public static final String URL_PARAM_NAME_INVITER = "inviter" ;
private RegistrationManager theManager;
/**
* Invitation Service
*/
private InvitationManager invitationManager;
/**
* CSP Name
*/
private String cspName;
/**
* @return the invitationManager
*/
public InvitationManager getInvitationManager() {
return invitationManager;
}
/**
* @param invitationManager the invitationManager to set
*/
@Autowired
@Required
public void setInvitationManager(InvitationManager invitationManager) {
this.invitationManager = invitationManager;
}
/**
* @return the csp
*/
public String getCspName() {
return cspName;
}
/**
* @param csp the cspName to set
*/
@Autowired
@Qualifier("cspName")
public void setCspName(String cspName) {
this.cspName = cspName;
}
/**
* This is the page the user lands if s/he came from the CSP site. There will be no invite code (ref code in the wire diagrams) when they come here.
* The processing on submit of this form is done in RegistrationController.
*/
@RequestMapping(value = "/signup", method = RequestMethod.GET)
public ModelAndView homeForm(HttpServletRequest request, Model model,
@Valid @ModelAttribute("signUpInfo") SignUpForm signUpForm) {
logger.info("Alice signs up by invite flow");
String inviteCode = null;
String cloudName = null;
String inviterCloudName = null;
String giftCode = null;
String selfInviteCode = null;
ModelAndView mv = null;
mv = new ModelAndView("signup");
boolean errors = false;
inviteCode = (String)request.getParameter(URL_PARAM_NAME_INVITE_CODE);
giftCode = (String)request.getParameter(URL_PARAM_NAME_GIFT_CODE);
cloudName = (String)request.getParameter("name");
logger.debug("Invite Code = " + inviteCode);
logger.debug("Gift Code = " + giftCode);
logger.debug("Cloud Name : " + cloudName);
if(signUpForm == null)
{
signUpForm = new SignUpForm();
}
if(giftCode != null && !giftCode.isEmpty())
{
try
{
if(DAOFactory.getInstance().getGiftCodeRedemptionDAO().get(giftCode) != null)
{
logger.debug("Invalid gift code. This gift code has already been redeemed. Id=" + giftCode);
mv = new ModelAndView("generalErrorPage");
mv.addObject("error", "This gift code has already been redeemed. So, a new personal cloud cannot be registered using this gift code. Id=" + giftCode);
return mv;
}
} catch (DAOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
logger.debug("System error");
mv = new ModelAndView("generalErrorPage");
return mv;
}
signUpForm.setGiftCode(giftCode);
}
if(cloudName != null && !cloudName.isEmpty())
{
signUpForm.setCloudName(cloudName);
}
signUpForm.setNameAvailabilityCheckURL(theManager.getNameAvailabilityCheckURL());
mv.addObject("signUpInfo", signUpForm);
return mv;
}
@RequestMapping("/respectTrustFramework")
public String respectTrustFramework() {
return "RespectTrustFramework";
}
@RequestMapping("/help")
public String help() {
return "help";
}
@RequestMapping("/faq")
public String faq() {
return "faq";
}
@RequestMapping("/")
public String index() {
return "index";
}
@RequestMapping("/csptc")
public String csptc() {
return "CSPTC";
}
public RegistrationManager getTheManager() {
return theManager;
}
@Autowired
public void setTheManager(RegistrationManager theManager) {
this.theManager = theManager;
}
}
| mit |
mhartl/action_cable_chat_app | app/controllers/sessions_controller.rb | 435 | class SessionsController < ApplicationController
def new
end
def create
user = User.find_by(username: params[:session][:username].downcase)
if user && user.authenticate(params[:session][:password])
log_in user
redirect_to messages_url
else
flash.now[:danger] = 'Invalid username/password combination'
render 'new'
end
end
def destroy
log_out
redirect_to login_url
end
end
| mit |
mtolk/jbake | src/main/java/org/jbake/template/AbstractTemplateEngine.java | 1732 | package org.jbake.template;
import java.io.File;
import java.io.Writer;
import java.util.Map;
import org.jbake.app.ContentStore;
import org.apache.commons.configuration.Configuration;
/**
* A template is responsible for converting a model into a rendered document. The model
* consists of key/value pairs, some of them potentially converted from a markup language
* to HTML already.
*
* An appropriate rendering engine will be chosen by JBake based on the template suffix. If
* contents is not available in the supplied model, a template has access to the document
* database in order to complete the model. It is in particular interesting to optimize
* data access based on the underlying template engine capabilities.
*
* Note that some rendering engines may rely on a different rendering model than the one
* provided by the first argument of {@link #renderDocument(java.util.Map, String, java.io.Writer)}.
* In this case, it is the responsibility of the engine to convert it.
*
* @author Cédric Champeau
*/
public abstract class AbstractTemplateEngine {
protected static ModelExtractors extractors = ModelExtractors.getInstance();
protected final Configuration config;
protected final ContentStore db;
protected final File destination;
protected final File templatesPath;
protected AbstractTemplateEngine(final Configuration config, final ContentStore db, final File destination, final File templatesPath) {
this.config = config;
this.db = db;
this.destination = destination;
this.templatesPath = templatesPath;
}
public abstract void renderDocument(Map<String,Object> model, String templateName, Writer writer) throws RenderingException;
}
| mit |
nex3/yard-pygments | templates/default/fulldoc/html/setup.rb | 65 | def init
super
asset('css/pygments.css', erb(:pygments))
end
| mit |
joespiff/RevitLookup | CS/Snoop/Data/ElementSet.cs | 2680 | #region Header
//
// Copyright 2003-2019 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
//
#endregion // Header
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace RevitLookup.Snoop.Data
{
/// <summary>
/// Snoop.Data class to hold and format an ElementSet value.
/// </summary>
public class ElementSet : Data
{
protected Autodesk.Revit.DB.ElementSet m_val;
public
ElementSet(string label, Autodesk.Revit.DB.ElementSet val)
: base(label)
{
m_val = val;
}
public
ElementSet(string label, ICollection<Autodesk.Revit.DB.ElementId> val, Autodesk.Revit.DB.Document doc)
: base(label)
{
m_val = new Autodesk.Revit.DB.ElementSet();
foreach(Autodesk.Revit.DB.ElementId elemId in val)
{
if(Autodesk.Revit.DB.ElementId.InvalidElementId == elemId)
continue;
Autodesk.Revit.DB.Element elem = doc.GetElement(elemId);
if(null != elem)
m_val.Insert(elem);
}
}
public override string
StrValue()
{
return Utils.ObjToTypeStr(m_val);
}
public override bool
HasDrillDown
{
get {
if ((m_val == null) || (m_val.IsEmpty))
return false;
else
return true;
}
}
public override void
DrillDown()
{
if ((m_val != null) && (m_val.IsEmpty == false)) {
Snoop.Forms.Objects form = new Snoop.Forms.Objects(m_val);
form.ShowDialog();
}
}
}
}
| mit |
sutter-dave/ApogeeJS | web/prosemirror/rollup.extlibconfig.js | 1215 | import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
//This can be used to construct a es deployable module from the npm source module
export default [
// ES module (for bundlers) build.
{
input: 'extLib/crelt.es-gen.js',
output: [
{ file: 'dist/crelt.es.js', format: 'es' }
],
plugins: [
resolve(), // so Rollup can find `chart.js`
commonjs() // so Rollup can convert `chart.js` to an ES module
]
},
{
input: 'extLib/orderedmap.es-gen.js',
output: [
{ file: 'dist/orderedmap.es.js', format: 'es' }
],
plugins: [
resolve(), // so Rollup can find `chart.js`
commonjs() // so Rollup can convert `chart.js` to an ES module
]
},
{
input: 'extLib/rope-sequence.es-gen.js',
output: [
{ file: 'dist/rope-sequence.es.js', format: 'es' }
],
plugins: [
resolve(), // so Rollup can find `chart.js`
commonjs() // so Rollup can convert `chart.js` to an ES module
]
},
{
input: 'extLib/w3c-keyname.es-gen.js',
output: [
{ file: 'dist/w3c-keyname.es.js', format: 'es' }
],
plugins: [
resolve(), // so Rollup can find `chart.js`
commonjs() // so Rollup can convert `chart.js` to an ES module
]
},
];
| mit |
XenosEleatikos/MusicBrainz | src/Relation/Type/ReleaseGroup/ReleaseGroup/RemixesAndCompilations.php | 645 | <?php
namespace MusicBrainz\Relation\Type\ReleaseGroup\ReleaseGroup;
use MusicBrainz\Value\Name;
use MusicBrainz\Relation\Type\ReleaseGroup\ReleaseGroup;
/**
* This relationship type is only used for grouping other relationship types.
*
* @see https://musicbrainz.org/doc/Mix_Terminology
* @link https://musicbrainz.org/relationship/3494ba38-4ac5-40b6-aa6f-4ac7546cd104
*/
abstract class RemixesAndCompilations extends ReleaseGroup
{
/**
* Returns the name of the relation.
*
* @return Name
*/
public static function getRelationName(): Name
{
return new Name('remixes and compilations');
}
}
| mit |
Tresint/worldherb | forum/datastore/administrators.dbb8d6c51e.php | 123 | <?php
return <<<'VALUE'
{"m":[],"g":{"4":{"row_id":4,"row_id_type":"group","row_perm_cache":"*","row_updated":0}}}
VALUE;
| mit |
I-sektionen/i-portalen | wsgi/iportalen_django/user_managements/migrations/0014_auto_20151223_2340.py | 558 | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-23 22:40
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user_managements', '0013_auto_20151223_1810'),
]
operations = [
migrations.AlterModelOptions(
name='ipikuresubscriber',
options={'permissions': (('can_view_subscribers', 'Can view subscribers'),), 'verbose_name': 'ipikureprenumerant', 'verbose_name_plural': 'ipikureprenumeranter'},
),
]
| mit |
michaeled/FormsAnimations | FormsAnimations/FormsAnimations/Animations/Equations/ExponentialEquations.cs | 730 | using System;
namespace FormsAnimations.Animations.Equations
{
public static class ExponentialEquations
{
public static double EaseOut(double x)
{
return x.ApproximatelyEquals(1) ? 1 : -Math.Pow(2, -10 * x) + 1;
}
public static double EaseIn(double x)
{
return x.ApproximatelyEquals(0) ? 0 : Math.Pow(2, 10 * (x - 1));
}
public static double EaseInOut(double x)
{
if (x.ApproximatelyEquals(0)) return 0;
if (x.ApproximatelyEquals(1)) return 1;
if ((x / 2) < 1)
return 0.5 * Math.Pow(2, 10 * (x - 1));
return 0.5 * -Math.Pow(2, -10 * --x) + 2;
}
}
} | mit |
polymonster/pmtech | core/put/source/audio/audio.cpp | 12269 | // audio_cmd.cpp
// Copyright 2014 - 2019 Alex Dixon.
// License: https://github.com/polymonster/pmtech/blob/master/license.md
#include "audio.h"
#include "data_struct.h"
#include "memory.h"
#include "pen_string.h"
#include "slot_resource.h"
#include "threads.h"
#include "fmod.hpp"
#include <math.h>
using namespace pen;
using namespace put;
namespace
{
namespace e_cmd
{
enum cmd_t
{
create_stream,
create_sound,
create_sound_music,
create_group,
create_channel_for_sound,
release_resource,
add_channel_to_group,
add_dsp_to_group,
channel_set_position,
channel_set_frequency,
channel_stop,
group_set_pause,
group_set_mute,
group_set_pitch,
group_set_volume,
dsp_set_three_band_eq,
dsp_set_gain
};
}
struct set_valuei
{
u32 resource_index;
s32 value;
};
struct set_valuef
{
u32 resource_index;
f32 value;
};
struct set_value3f
{
u32 resource_index;
f32 value[3];
};
struct audio_cmd
{
u32 command_index;
u32 resource_slot;
union {
c8* filename;
u32 resource_index;
::set_valuei set_valuei;
::set_valuef set_valuef;
::set_value3f set_value3f;
music_file music;
};
};
pen::job* _audio_job_thread_info;
pen::slot_resources _audio_slot_resources;
pen::ring_buffer<audio_cmd> _cmd_buffer;
a_u8 _shutdown = {0};
} // namespace
namespace put
{
void audio_exec_command(const audio_cmd& cmd)
{
switch (cmd.command_index)
{
case e_cmd::create_stream:
direct::audio_create_stream(cmd.filename, cmd.resource_slot);
pen::memory_free(cmd.filename);
break;
case e_cmd::create_sound:
direct::audio_create_sound(cmd.filename, cmd.resource_slot);
pen::memory_free(cmd.filename);
break;
case e_cmd::create_sound_music:
direct::audio_create_sound(cmd.music, cmd.resource_slot);
break;
case e_cmd::create_group:
direct::audio_create_channel_group(cmd.resource_slot);
break;
case e_cmd::add_channel_to_group:
direct::audio_add_channel_to_group(cmd.set_valuei.resource_index, cmd.set_valuei.value);
break;
case e_cmd::add_dsp_to_group:
direct::audio_add_dsp_to_group(cmd.set_valuei.resource_index, (dsp_type)cmd.set_valuei.value,
cmd.resource_slot);
break;
case e_cmd::create_channel_for_sound:
direct::audio_create_channel_for_sound(cmd.resource_index, cmd.resource_slot);
break;
case e_cmd::channel_set_position:
direct::audio_channel_set_position(cmd.set_valuei.resource_index, cmd.set_valuei.value);
break;
case e_cmd::channel_set_frequency:
direct::audio_channel_set_frequency(cmd.resource_index, cmd.set_valuef.value);
break;
case e_cmd::channel_stop:
direct::audio_channel_stop(cmd.resource_index);
break;
case e_cmd::group_set_mute:
direct::audio_group_set_mute(cmd.set_valuei.resource_index, (bool)cmd.set_valuei.value);
break;
case e_cmd::group_set_pause:
direct::audio_group_set_pause(cmd.set_valuei.resource_index, (bool)cmd.set_valuei.value);
break;
case e_cmd::group_set_volume:
direct::audio_group_set_volume(cmd.set_valuef.resource_index, cmd.set_valuef.value);
break;
case e_cmd::dsp_set_gain:
direct::audio_dsp_set_gain(cmd.set_valuef.resource_index, cmd.set_valuef.value);
break;
case e_cmd::group_set_pitch:
direct::audio_group_set_pitch(cmd.set_valuef.resource_index, cmd.set_valuef.value);
break;
case e_cmd::release_resource:
direct::audio_release_resource(cmd.resource_index);
break;
case e_cmd::dsp_set_three_band_eq:
direct::audio_dsp_set_three_band_eq(cmd.set_value3f.resource_index, cmd.set_value3f.value[0],
cmd.set_value3f.value[1], cmd.set_value3f.value[2]);
break;
}
}
void audio_consume_command_buffer()
{
if (!_shutdown.load())
{
pen::semaphore_post(_audio_job_thread_info->p_sem_consume, 1);
pen::semaphore_wait(_audio_job_thread_info->p_sem_continue);
}
}
void* audio_thread_function(void* params)
{
job_thread_params* job_params = (job_thread_params*)params;
_audio_job_thread_info = job_params->job_info;
// create resource slots
pen::slot_resources_init(&_audio_slot_resources, 128);
_cmd_buffer.create(1024);
direct::audio_system_initialise();
// allow main thread to continue now we are initialised
pen::semaphore_post(_audio_job_thread_info->p_sem_continue, 1);
for (;;)
{
if (pen::semaphore_try_wait(_audio_job_thread_info->p_sem_consume))
{
pen::semaphore_post(_audio_job_thread_info->p_sem_continue, 1);
audio_cmd* cmd = _cmd_buffer.get();
while (cmd)
{
audio_exec_command(*cmd);
cmd = _cmd_buffer.get();
}
direct::audio_system_update();
}
else
{
pen::thread_sleep_ms(1);
}
if (pen::semaphore_try_wait(_audio_job_thread_info->p_sem_exit))
{
_shutdown = 1;
break;
}
}
direct::audio_system_shutdown();
pen::semaphore_post(_audio_job_thread_info->p_sem_continue, 1);
pen::semaphore_post(_audio_job_thread_info->p_sem_terminated, 1);
return PEN_THREAD_OK;
}
void create_file_command(const c8* filename, u32 command, u32 resource_slot)
{
audio_cmd ac;
// allocate filename and copy the buffer and null terminate it
u32 filename_length = pen::string_length(filename);
ac.filename = (c8*)pen::memory_alloc(filename_length + 1);
ac.filename[filename_length] = 0x00;
ac.resource_slot = resource_slot;
memcpy(ac.filename, filename, filename_length);
// set command (create stream or sound)
ac.command_index = command;
_cmd_buffer.put(ac);
}
u32 audio_create_stream(const c8* filename)
{
u32 res = pen::slot_resources_get_next(&_audio_slot_resources);
create_file_command(filename, e_cmd::create_stream, res);
return res;
}
u32 audio_create_sound(const c8* filename)
{
u32 res = pen::slot_resources_get_next(&_audio_slot_resources);
create_file_command(filename, e_cmd::create_sound, res);
return res;
}
u32 audio_create_sound(const pen::music_file& music)
{
audio_cmd ac;
u32 res = pen::slot_resources_get_next(&_audio_slot_resources);
ac.command_index = e_cmd::create_sound_music;
ac.music = music;
ac.resource_slot = res;
_cmd_buffer.put(ac);
return res;
}
u32 audio_create_channel_group()
{
audio_cmd ac;
u32 res = pen::slot_resources_get_next(&_audio_slot_resources);
ac.command_index = e_cmd::create_group;
ac.resource_slot = res;
_cmd_buffer.put(ac);
return res;
}
u32 audio_create_channel_for_sound(const u32 sound_index)
{
if (sound_index == 0)
{
return 0;
}
u32 res = pen::slot_resources_get_next(&_audio_slot_resources);
audio_cmd ac;
ac.command_index = e_cmd::create_channel_for_sound;
ac.resource_index = sound_index;
ac.resource_slot = res;
_cmd_buffer.put(ac);
return res;
}
void audio_channel_set_position(const u32 channel_index, const u32 position_ms)
{
audio_cmd ac;
ac.command_index = e_cmd::channel_set_position;
ac.set_valuei.resource_index = channel_index;
ac.set_valuei.value = position_ms;
_cmd_buffer.put(ac);
}
void audio_channel_set_frequency(const u32 channel_index, const f32 frequency)
{
audio_cmd ac;
ac.command_index = e_cmd::channel_set_frequency;
ac.set_valuef.resource_index = channel_index;
ac.set_valuef.value = frequency;
_cmd_buffer.put(ac);
}
void audio_group_set_pause(const u32 group_index, const bool val)
{
audio_cmd ac;
ac.command_index = e_cmd::group_set_pause;
ac.set_valuei.resource_index = group_index;
ac.set_valuei.value = (s32)val;
_cmd_buffer.put(ac);
}
void audio_group_set_mute(const u32 group_index, const bool val)
{
audio_cmd ac;
ac.command_index = e_cmd::group_set_mute;
ac.set_valuei.resource_index = group_index;
ac.set_valuei.value = (s32)val;
_cmd_buffer.put(ac);
}
void audio_group_set_pitch(const u32 group_index, const f32 pitch)
{
audio_cmd ac;
ac.command_index = e_cmd::group_set_pitch;
ac.set_valuef.resource_index = group_index;
ac.set_valuef.value = pitch;
_cmd_buffer.put(ac);
}
void audio_group_set_volume(const u32 group_index, const f32 volume)
{
audio_cmd ac;
ac.command_index = e_cmd::group_set_volume;
ac.set_valuef.resource_index = group_index;
ac.set_valuef.value = volume;
_cmd_buffer.put(ac);
}
void audio_add_channel_to_group(const u32 channel_index, const u32 group_index)
{
if (group_index == 0 || channel_index == 0)
{
return;
}
audio_cmd ac;
ac.command_index = e_cmd::add_channel_to_group;
ac.set_valuei.resource_index = channel_index;
ac.set_valuei.value = group_index;
_cmd_buffer.put(ac);
}
void audio_release_resource(u32 index)
{
if (!pen::slot_resources_free(&_audio_slot_resources, index))
return;
audio_cmd ac;
ac.command_index = e_cmd::release_resource;
ac.resource_index = index;
_cmd_buffer.put(ac);
}
u32 audio_add_dsp_to_group(const u32 group_index, dsp_type type)
{
u32 res = pen::slot_resources_get_next(&_audio_slot_resources);
audio_cmd ac;
ac.command_index = e_cmd::add_dsp_to_group;
ac.set_valuei.resource_index = group_index;
ac.set_valuei.value = type;
ac.resource_slot = res;
_cmd_buffer.put(ac);
return res;
}
void audio_dsp_set_three_band_eq(const u32 eq_index, const f32 low, const f32 med, const f32 high)
{
audio_cmd ac;
ac.command_index = e_cmd::dsp_set_three_band_eq;
ac.set_value3f.resource_index = eq_index;
ac.set_value3f.value[0] = low;
ac.set_value3f.value[1] = med;
ac.set_value3f.value[2] = high;
_cmd_buffer.put(ac);
}
void audio_dsp_set_gain(const u32 dsp_index, const f32 gain)
{
audio_cmd ac;
ac.command_index = e_cmd::dsp_set_gain;
ac.set_valuef.resource_index = dsp_index;
ac.set_valuef.value = gain;
_cmd_buffer.put(ac);
}
void audio_channel_stop(const u32 channel_index)
{
audio_cmd ac;
ac.command_index = e_cmd::channel_stop;
ac.resource_index = channel_index;
_cmd_buffer.put(ac);
}
} // namespace put
| mit |
ChrisFadden/PartyTowers | src/Cannon.cpp | 611 | #include "Cannon.h"
Cannon::Cannon(int X, int Y, int Level) {
setPosition(X, Y);
setSpeed(Level * 1);
setPower(Level * 1);
setCost(50);
setUpgrade(50 + ((50 * (Level-1))/ 2));
setSell(0.5 * Level * 5);
setRange(96);
setTimeout(120);
level = Level;
}
void Cannon::setLevel(int Level) {
level = Level;
setSpeed(Level * 1);
setPower(Level * 1);
setSell(0.5 * Level * 5);
setUpgrade(50 + ((50 * (Level -1)) / 2));
}
void Cannon::loadImg(SDL_Renderer* r) {
GameObject::loadImg("./res/Cannon.png", r);
}
int Cannon::getType(){
return 0;
}
int Cannon::getLevel() {
return level;
}
| mit |
meritec/querrel | lib/querrel/static_pool.rb | 414 | require 'thread'
module Querrel
class StaticPool
def initialize(size)
@size = size
@jobs = Queue.new
end
def enqueue(&job)
@jobs.push(job)
end
def do_your_thang!
threads = Array.new(@size) do
Thread.new do
while job = @jobs.pop(true) rescue nil
job.call
end
end
end
threads.each(&:join)
end
end
end | mit |
SamuelEnglard/CIL.JS | TypeSystem/Cecil/CustomAttribute.ts | 6185 | module CIL.Cecil
{
export class CustomAttributeArgument
{
private _type: TypeReference;
private _value: Object;
type(): TypeReference
{
return this._type;
}
value(): Object
{
return this._value;
}
constructor(type: TypeReference, value: Object)
{
if (type === null)
{
throw new Error("Type cannot be null");
}
this._type = type;
this._value = value;
}
}
export class CustomAttributeNamedArgument
{
private _name: string;
private _argument: CustomAttributeArgument;
name(): string
{
return this._name;
}
argument(): CustomAttributeArgument
{
return this._argument;
}
constructor(name: string, argument: CustomAttributeArgument)
{
if (name === null)
{
throw new Error("Name cannot be null");
}
if (name.length === 0)
{
throw new Error("Name cannot be empty");
}
this._name = name;
this._argument = argument;
}
}
export interface ICustomAttribute
{
attributeType(): TypeReference;
hasFields(): boolean;
hasProperties(): boolean;
fields(): CustomAttributeNamedArgument[];
properties(): CustomAttributeNamedArgument[];
}
export class CustomAttribute implements ICustomAttribute
{
private _signature: number = 0;
private _resolved: boolean;
private _blob: number[] = null;
private _arguments: CustomAttributeArgument[] = null;
private _fields: CustomAttributeNamedArgument[] = null;
private _properties: CustomAttributeNamedArgument[] = null;
constructorMethod: MethodReference;
attributeType(): TypeReference
{
return this.constructorMethod.declaringType;
}
isResolved(): boolean
{
return this._resolved;
}
hasConstructorArguments(): boolean
{
this.resolve();
return this._arguments !== null && this._arguments.length !== 0;
}
constructorArguments(): CustomAttributeArgument[]
{
this.resolve();
return this._arguments || (this._arguments = []);
}
hasFields(): boolean
{
this.resolve();
return this._fields !== null && this._fields.length !== 0;
}
fields(): CustomAttributeNamedArgument[]
{
this.resolve();
return this._fields || (this._fields = []);
}
hasProperties(): boolean
{
this.resolve();
return this._properties !== null && this._properties.length !== 0;
}
properties(): CustomAttributeNamedArgument[]
{
this.resolve();
return this._properties || (this._properties = []);
}
hasImage(): boolean
{
return this.constructorMethod !== null && this.constructorMethod.hasImage();
}
module(): ModuleDefinition
{
return this.constructorMethod.module();
}
constructor(signature: number, constructor: MethodReference)
constructor(constructor: MethodReference)
constructor(constructor: MethodReference, blob: number[])
constructor()
{
switch (arguments.length)
{
case 1:
this.constructorMethod = arguments[0];
this._resolved = true;
break;
case 2:
if (typeof arguments[0] === "number")
{
this._signature = arguments[0];
this.constructorMethod = arguments[1];
}
else
{
this.constructorMethod = arguments[0];
this._blob = arguments[1];
}
this._resolved = false;
break;
default:
throw new Error("Invalid");
}
}
getBlob(): number[]
{
if (this._blob !== null)
{
return this._blob;
}
if (!this.hasImage())
{
throw new Error("Not Supported");
}
return this.module().read((value?: number[]): number[]=>
{
if (value !== undefined)
{
this._blob = value;
}
return this._blob;
}, this, (attribute: CustomAttribute, mr: MetadataReader): number[]=>
{
return mr.readCustomAttributeBlob(attribute._signature);
});
}
private resolve(): void
{
if (this._resolved || !this.hasImage())
{
return;
}
this.module().read(this, (attribute: CustomAttribute, mr: MetadataReader): CustomAttribute =>
{
try
{
mr.readCustomAttributeSignature(attribute);
this._resolved = true;
}
catch (ex)
{
if (this._arguments !== null)
{
this._arguments.splice(0, this._arguments.length);
}
if (this._fields !== null)
{
this._fields.splice(0, this._fields.length);
}
if (this._properties !== null)
{
this._properties.splice(0, this._properties.length);
}
this._resolved = false;
}
return this;
});
}
}
} | mit |
corneliuspreidel/BimPlusClientIntegration | src/main/java/bimplus/data/DtoTopology.java | 2888 | /*
* Copyright (c) 2016 Cornelius Preidel
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package bimplus.data;
import org.codehaus.jackson.annotate.JsonProperty;
import java.util.List;
/**
* Created by Cornelius on 05.08.2016.
*/
public class DtoTopology extends BaseDto
{
/** Parent
*/
@JsonProperty("parent")
private String Parent = null;
public String getParent()
{
return Parent;
}
public void setParent(String value)
{
Parent = value;
}
/** Name
*/
@JsonProperty("name")
private String Name;
public String getName()
{
return Name;
}
public void setName(String value)
{
Name = value;
}
/** Type
*/
@JsonProperty("type")
private String Type;
public String getType()
{
return Type;
}
public void setType(String value)
{
Type = value;
}
/** Children
*/
@JsonProperty("children")
private List<DtoTopology> Children;
public List<DtoTopology> getChildren()
{
return Children;
}
public void setChildren(List<DtoTopology> value)
{
Children = value;
}
/** Number
*/
@JsonProperty("number")
private int Number;
public int getNumber()
{
return Number;
}
public void setNumber(int value)
{
Number = value;
}
/** tbNr
*/
@JsonProperty("tbNr")
private Integer TbNr = null;
public Integer getTbNr()
{
return TbNr;
}
public void setTbNr(Integer value)
{
TbNr = value;
}
/** allplanGuid
*/
@JsonProperty("allplanGuid")
private String Allplan_GUID = null;
public String getAllplan_GUID()
{
return Allplan_GUID;
}
public void setAllplan_GUID(String value)
{
Allplan_GUID = value;
}
}
| mit |
lgvalle/Beautiful-News | app/src/main/java/com/lgvalle/beaufitulnews/elpais/ElPaisModule.java | 783 | package com.lgvalle.beaufitulnews.elpais;
import retrofit.RestAdapter;
import retrofit.converter.SimpleXMLConverter;
/**
* Created by lgvalle on 31/07/14.
*/
public class ElPaisModule {
private static final String END_POINT = "http://elpais.com/rss/";
private static final ElPaisService service;
static {
// Configure an adapter for this client
RestAdapter restAdapter = new RestAdapter.Builder()
.setEndpoint(END_POINT)
.setLogLevel(RestAdapter.LogLevel.BASIC)
.setConverter(new SimpleXMLConverter())
.build();
// Create rest client
service = restAdapter.create(ElPaisService.class);
}
/**
* Hide constructor
*/
private ElPaisModule() {}
/**
* Expose rest client
*/
public static ElPaisService getService() {
return service;
}
} | mit |
Convolvr/convolvr | client/src/assets/entities/tools/code-tool.ts | 5821 | import { initLabel } from "../../../systems/tool/tool-ui";
import AssetSystem, { CreateEntityConfig } from "../../../systems/core/assets";
import { ToolBehaviorType, LayoutType } from "convolvr-core/attribute";
import { DBComponent } from "convolvr-core/component";
export default function CodeTool(assetSystem: AssetSystem, config: CreateEntityConfig, voxel: number[]) {
let world = assetSystem.world;
return {
components: [
{
name: "component-tool",
attrs: {
geometry: {
shape: "box",
size: [1.0, 0.34, 2.333]
},
material: {
name: "metal"
},
tool: {
type: ToolBehaviorType.CREATE_COMPONENT,
panels: [
{
title: "Script Statements",
color: 0x07ff00,
content: {
attrs: {
factoryProvider: { // generates factory for each item in dataSource
type: "component",
dataSource: world.systems.byName.assets.entities,
filter: {
tags: ["ecs-statement"]
}
},
layout: {
type: LayoutType.grid,
mode: "factory", // child components will ignore layout
columns: 3
}
}
}
},
{
title: "Script Expressions",
color: 0x07ff00,
content: {
attrs: {
factoryProvider: { // generates factory for each item in dataSource
type: "component",
dataSource: world.systems.byName.assets.entities,
filter: {
tags: ["ecs-expression"]
}
},
layout: {
type: LayoutType.grid,
mode: "factory", // child components will ignore layout
columns: 3
}
}
}
},
{ // helper to create tool configuration-panel entity ( coordinated by tool system )
title: "Script Literals",
color: 0x003bff,
content: {
attrs: {
factoryProvider: { // generates factory for each item in dataSource
type: "component", // component, entity, attr
dataSource: world.systems.byName.assets.componentsByName,
filter: {
tags: ["ecs-literal"]
}
},
layout: {
type: "grid",
mode: "factory", // child components will ignore layout
columns: 3
}
}
}
}, { // helper to create tool configuration-panel entity ( coordinated by tool system )
title: "Script Objects",
color: 0x003bff,
content: {
attrs: {
factoryProvider: { // generates factory for each item in dataSource
type: "component", // component, entity, attr
dataSource: world.systems.byName.assets.componentsByName,
filter: {
tags: ["ecs-object"]
}
},
layout: {
type: "grid",
mode: "factory", // child components will ignore layout
columns: 3
}
}
}
}
]
}
},
components: [
initLabel(null, "Component") as any as DBComponent
]
}
] as DBComponent[],
tags: ["tool"]
}
} | mit |
kellegous/go | backend/leveldb/leveldb.go | 4281 | package leveldb
import (
"bytes"
"context"
"encoding/binary"
"errors"
"os"
"path/filepath"
"sync"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/opt"
"github.com/syndtr/goleveldb/leveldb/util"
"github.com/kellegous/go/internal"
)
const (
routesDbFilename = "routes.db"
idLogFilename = "id"
)
// Backend provides access to the leveldb store.
type Backend struct {
// Path contains the location on disk where this DB exists.
path string
db *leveldb.DB
lck sync.Mutex
id uint64
}
// Commit the given ID to the data store.
func commit(filename string, id uint64) error {
w, err := os.Create(filename)
if err != nil {
return err
}
defer w.Close()
if err := binary.Write(w, binary.LittleEndian, id); err != nil {
return err
}
return w.Sync()
}
// Load the current ID from the data store.
func load(filename string) (uint64, error) {
if _, err := os.Stat(filename); err != nil {
return 0, commit(filename, 0)
}
r, err := os.Open(filename)
if err != nil {
return 0, err
}
defer r.Close()
var id uint64
if err := binary.Read(r, binary.LittleEndian, &id); err != nil {
return 0, err
}
return id, nil
}
// New instantiates a new Backend
func New(path string) (*Backend, error) {
backend := Backend{
path: path,
}
if _, err := os.Stat(backend.path); err != nil {
if err := os.MkdirAll(path, os.ModePerm); err != nil {
return nil, err
}
}
// open the database
db, err := leveldb.OpenFile(filepath.Join(backend.path, routesDbFilename), nil)
if err != nil {
return nil, err
}
backend.db = db
id, err := load(filepath.Join(backend.path, idLogFilename))
if err != nil {
return nil, err
}
backend.id = id
return &backend, nil
}
// Close the resources associated with this backend.
func (backend *Backend) Close() error {
return backend.db.Close()
}
// Get retreives a shortcut from the data store.
func (backend *Backend) Get(ctx context.Context, name string) (*internal.Route, error) {
val, err := backend.db.Get([]byte(name), nil)
if err != nil {
if errors.Is(err, leveldb.ErrNotFound) {
return nil, internal.ErrRouteNotFound
}
return nil, err
}
rt := &internal.Route{}
if err := rt.Read(bytes.NewBuffer(val)); err != nil {
return nil, err
}
return rt, nil
}
// Put stores a new shortcut in the data store.
func (backend *Backend) Put(ctx context.Context, key string, rt *internal.Route) error {
var buf bytes.Buffer
if err := rt.Write(&buf); err != nil {
return err
}
return backend.db.Put([]byte(key), buf.Bytes(), &opt.WriteOptions{Sync: true})
}
// Del removes an existing shortcut from the data store.
func (backend *Backend) Del(ctx context.Context, key string) error {
return backend.db.Delete([]byte(key), &opt.WriteOptions{Sync: true})
}
// List all routes in an iterator, starting with the key prefix of start (which can also be nil).
func (backend *Backend) List(ctx context.Context, start string) (internal.RouteIterator, error) {
return &RouteIterator{
it: backend.db.NewIterator(&util.Range{
Start: []byte(start),
Limit: nil,
}, nil),
}, nil
}
// GetAll gets everything in the db to dump it out for backup purposes
func (backend *Backend) GetAll(ctx context.Context) (map[string]internal.Route, error) {
golinks := map[string]internal.Route{}
iter := backend.db.NewIterator(nil, nil)
defer iter.Release()
for iter.Next() {
key := iter.Key()
val := iter.Value()
rt := &internal.Route{}
if err := rt.Read(bytes.NewBuffer(val)); err != nil {
return nil, err
}
golinks[string(key[:])] = *rt
}
if err := iter.Error(); err != nil {
return nil, err
}
return golinks, nil
}
func (backend *Backend) commit(id uint64) error {
w, err := os.Create(filepath.Join(backend.path, idLogFilename))
if err != nil {
return err
}
defer w.Close()
if err := binary.Write(w, binary.LittleEndian, id); err != nil {
return err
}
return w.Sync()
}
// NextID generates the next numeric ID to be used for an auto-named shortcut.
func (backend *Backend) NextID(ctx context.Context) (uint64, error) {
backend.lck.Lock()
defer backend.lck.Unlock()
backend.id++
if err := commit(filepath.Join(backend.path, idLogFilename), backend.id); err != nil {
return 0, err
}
return backend.id, nil
}
| mit |
trevornelson/wld-frontend | app/containers/LongTermGoals/sagas.js | 2705 | import { take, call, put, cancel, select, takeLatest } from 'redux-saga/effects';
import { get } from 'lodash';
import { LOCATION_CHANGE } from 'react-router-redux';
import api from 'services/wld-api';
import makeSelectAuthentication from 'containers/Authentication/selectors';
import {
ADD_GOAL, ADD_GOAL_SUCCESS, ADD_GOAL_FAILURE,
EDIT_GOAL, EDIT_GOAL_SUCCESS, EDIT_GOAL_FAILURE,
DELETE_GOAL, DELETE_GOAL_SUCCESS, DELETE_GOAL_FAILURE
} from './constants';
export function* addGoal(action) {
const auth = yield select(makeSelectAuthentication());
const urlPath = `/users/${auth.user.id}/long_term_goals`;
const data = {
category: action.category,
timeframe: action.timeframe,
content: action.content
};
try {
const goal = yield call([api, api.post], urlPath, data);
yield put({
type: ADD_GOAL_SUCCESS,
id: get(goal, 'data.id', null),
content: get(goal, 'data.content', null),
category: get(goal, 'data.category', null),
timeframe: get(goal, 'data.timeframe', null)
});
} catch(e) {
yield put({type: ADD_GOAL_FAILURE, error: e.message});
}
}
export function* addGoalSaga() {
const watcher = yield takeLatest(ADD_GOAL, addGoal);
yield take(LOCATION_CHANGE);
yield cancel(watcher);
}
export function* editGoal(action) {
const auth = yield select(makeSelectAuthentication());
const urlPath = `/users/${auth.user.id}/long_term_goals/${action.id}`;
const data = {
content: action.content
};
try {
const goal = yield call([api, api.put], urlPath, data);
yield put({
type: EDIT_GOAL_SUCCESS,
id: action.id,
content: get(goal, 'data.content', null),
category: get(goal, 'data.category', null),
timeframe: get(goal, 'data.timeframe', null)
});
} catch(e) {
yield put({type: EDIT_GOAL_FAILURE, error: e.message});
}
}
export function* editGoalSaga() {
const watcher = yield takeLatest(EDIT_GOAL, editGoal);
yield take(LOCATION_CHANGE);
yield cancel(watcher);
}
export function* deleteGoal(action) {
const auth = yield select(makeSelectAuthentication());
const urlPath = `/users/${auth.user.id}/long_term_goals/${action.id}`;
try {
const response = yield call([api, api.delete], urlPath);
yield put({
type: DELETE_GOAL_SUCCESS,
id: action.id,
category: action.category,
timeframe: action.timeframe
});
} catch(e) {
yield put({type: DELETE_GOAL_FAILURE, error: e.message});
}
}
export function* deleteGoalSaga() {
const watcher = yield takeLatest(DELETE_GOAL, deleteGoal);
yield take(LOCATION_CHANGE);
yield cancel(watcher);
}
export default [
addGoalSaga,
editGoalSaga,
deleteGoalSaga
];
| mit |
periface/AbpCinotamZero-SmartAdmin | Cinotam.ModuleZero.AppModule/Sessions/Dto/UserLoginInfoDto.cs | 482 | using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Cinotam.AbpModuleZero.Users;
namespace Cinotam.ModuleZero.AppModule.Sessions.Dto
{
[AutoMapFrom(typeof(User))]
public class UserLoginInfoDto : EntityDto<long>
{
public string Name { get; set; }
public string Surname { get; set; }
public string UserName { get; set; }
public string EmailAddress { get; set; }
public string ProfilePicture { get; set; }
}
}
| mit |
Aryk/dead_simple_cms | lib/dead_simple_cms/file_uploader/base.rb | 944 | module DeadSimpleCMS
module FileUploader
# Base file uploader class. Inherit from this to build your own uploaders for files.
class Base
attr_reader :file_attribute
delegate :file_ext, :data, :to => :file_attribute
def initialize(file_attribute)
@file_attribute = file_attribute
end
def upload!
raise NotImplementedError, "Please overwrite this with your own upload functionality."
end
def url
raise NotImplementedError, "Please overwrite this with your own url constructor."
end
# Public: We need to have all these nesting to protect against corner-case collisons.
def path(namespace="dead_simple_cms")
# dead_simple_cms/<section>/<group>/attribute.jpg
@path ||= [namespace, *[file_attribute.section, *file_attribute.group_hierarchy, file_attribute].map(&:identifier)].compact * "/" + "." + file_ext
end
end
end
end | mit |
davehorton/drachtio-server | deps/boost_1_77_0/libs/variant2/test/variant_visit_derived.cpp | 1668 |
// Copyright 2017, 2020 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#if defined(_MSC_VER)
# pragma warning( disable: 4244 ) // conversion from float to int, possible loss of data
#endif
#include <boost/variant2/variant.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
#include <utility>
struct X: boost::variant2::variant<int, float>
{
#if BOOST_WORKAROUND( BOOST_MSVC, < 1930 )
template<class T> explicit X( T&& t ): variant( std::forward<T>( t ) ) {};
#else
using variant::variant;
#endif
};
template<class... T> struct Y: boost::variant2::variant<T...>
{
using boost::variant2::variant<T...>::variant;
};
int main()
{
{
X v1( 1 );
X const v2( 3.14f );
BOOST_TEST_EQ( (visit( []( int x1, float x2 ){ return (int)(x1 * 1000) + (int)(x2 * 100); }, v1, v2 )), 1314 );
visit( []( int x1, float x2 ){ BOOST_TEST_EQ( x1, 1 ); BOOST_TEST_EQ( x2, 3.14f ); }, v1, v2 );
visit( []( int x1, float x2 ){ BOOST_TEST_EQ( x1, 1 ); BOOST_TEST_EQ( x2, 3.14f ); }, std::move(v1), std::move(v2) );
}
{
Y<int, float> v1( 1 );
Y<int, float> const v2( 3.14f );
BOOST_TEST_EQ( (visit( []( int x1, float x2 ){ return (int)(x1 * 1000) + (int)(x2 * 100); }, v1, v2 )), 1314 );
visit( []( int x1, float x2 ){ BOOST_TEST_EQ( x1, 1 ); BOOST_TEST_EQ( x2, 3.14f ); }, v1, v2 );
visit( []( int x1, float x2 ){ BOOST_TEST_EQ( x1, 1 ); BOOST_TEST_EQ( x2, 3.14f ); }, std::move(v1), std::move(v2) );
}
return boost::report_errors();
}
| mit |
synewaves/starlight | src/Starlight/Component/StdLib/StorageBucket.php | 3413 | <?php
/*
* This file is part of the Starlight framework.
*
* (c) Matthew Vince <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Starlight\Component\StdLib;
/**
* Generic storage bucket
*/
class StorageBucket implements \ArrayAccess, \IteratorAggregate
{
/**
* Bucket contents
* @var array
*/
protected $contents;
/**
* Constructor
* @param array $contents contents
*/
public function __construct(array $contents = array())
{
$this->replace($contents);
}
/**
* Returns the contents
* @return array contents
*/
public function all()
{
return $this->contents;
}
/**
* Returns the contents keys
* @return array contents keys
*/
public function keys()
{
return array_keys($this->contents);
}
/**
* Replaces the current contents with a new set
* @param array $contents contents
* @return StorageBucket this instance
*/
public function replace(array $contents = array())
{
$this->contents = $contents;
return $this;
}
/**
* Adds contents
* @param array $contents contents
* @return StorageBucket this instance
*/
public function add(array $contents = array())
{
$this->contents = array_replace($this->contents, $contents);
return $this;
}
/**
* Returns content by name
* @param string $key The key
* @param mixed $default default value
* @return mixed value
*/
public function get($key, $default = null)
{
return array_key_exists($key, $this->contents) ? $this->contents[$key] : $default;
}
/**
* Sets content by name
* @param string $key The key
* @param mixed $value value
* @return StorageBucket this instance
*/
public function set($key, $value)
{
$this->contents[$key] = $value;
return $this;
}
/**
* Returns true if the content is defined
* @param string $key The key
* @return boolean true if the contents exists, false otherwise
*/
public function has($key)
{
return array_key_exists($key, $this->contents);
}
/**
* Deletes a content
* @param string $key key
* @return StorageBucket this instance
*/
public function delete($key)
{
if ($this->has($key)) {
unset($this->contents[$key]);
}
return $this;
}
// --------------------------
// ArrayAccess implementation
// --------------------------
public function offsetExists($offset)
{
return $this->has($offset);
}
public function offsetGet($offset)
{
return $this->get($offset);
}
public function offsetSet($offset, $value)
{
return $this->set($offset, $value);
}
public function offsetUnset($offset)
{
return $this->delete($offset);
}
// --------------------------------
// IteratorAggregate implementation
// --------------------------------
public function getIterator()
{
return new \ArrayIterator($this->all());
}
}
| mit |
sshnet/SSH.NET | src/Renci.SshNet/Security/BouncyCastle/math/ec/multiplier/WNafL2RMultiplier.cs | 3350 | using System;
namespace Renci.SshNet.Security.Org.BouncyCastle.Math.EC.Multiplier
{
/**
* Class implementing the WNAF (Window Non-Adjacent Form) multiplication
* algorithm.
*/
internal class WNafL2RMultiplier
: AbstractECMultiplier
{
/**
* Multiplies <code>this</code> by an integer <code>k</code> using the
* Window NAF method.
* @param k The integer by which <code>this</code> is multiplied.
* @return A new <code>ECPoint</code> which equals <code>this</code>
* multiplied by <code>k</code>.
*/
protected override ECPoint MultiplyPositive(ECPoint p, BigInteger k)
{
// Clamp the window width in the range [2, 16]
int width = System.Math.Max(2, System.Math.Min(16, GetWindowSize(k.BitLength)));
WNafPreCompInfo wnafPreCompInfo = WNafUtilities.Precompute(p, width, true);
ECPoint[] preComp = wnafPreCompInfo.PreComp;
ECPoint[] preCompNeg = wnafPreCompInfo.PreCompNeg;
int[] wnaf = WNafUtilities.GenerateCompactWindowNaf(width, k);
ECPoint R = p.Curve.Infinity;
int i = wnaf.Length;
/*
* NOTE: We try to optimize the first window using the precomputed points to substitute an
* addition for 2 or more doublings.
*/
if (i > 1)
{
int wi = wnaf[--i];
int digit = wi >> 16, zeroes = wi & 0xFFFF;
int n = System.Math.Abs(digit);
ECPoint[] table = digit < 0 ? preCompNeg : preComp;
// Optimization can only be used for values in the lower half of the table
if ((n << 2) < (1 << width))
{
int highest = LongArray.BitLengths[n];
// TODO Get addition/doubling cost ratio from curve and compare to 'scale' to see if worth substituting?
int scale = width - highest;
int lowBits = n ^ (1 << (highest - 1));
int i1 = ((1 << (width - 1)) - 1);
int i2 = (lowBits << scale) + 1;
R = table[i1 >> 1].Add(table[i2 >> 1]);
zeroes -= scale;
//Console.WriteLine("Optimized: 2^" + scale + " * " + n + " = " + i1 + " + " + i2);
}
else
{
R = table[n >> 1];
}
R = R.TimesPow2(zeroes);
}
while (i > 0)
{
int wi = wnaf[--i];
int digit = wi >> 16, zeroes = wi & 0xFFFF;
int n = System.Math.Abs(digit);
ECPoint[] table = digit < 0 ? preCompNeg : preComp;
ECPoint r = table[n >> 1];
R = R.TwicePlus(r);
R = R.TimesPow2(zeroes);
}
return R;
}
/**
* Determine window width to use for a scalar multiplication of the given size.
*
* @param bits the bit-length of the scalar to multiply by
* @return the window size to use
*/
protected virtual int GetWindowSize(int bits)
{
return WNafUtilities.GetWindowSize(bits);
}
}
}
| mit |
th3oSMith/camion | app/routes/papsables.server.routes.js | 596 | 'use strict';
module.exports = function(app) {
var users = require('../../app/controllers/users');
var papsables = require('../../app/controllers/papsables');
// Papsables Routes
app.route('/papsables')
.get(papsables.list)
.post(users.requiresLogin, papsables.create);
app.route('/papsables/:papsableId')
.get(papsables.read)
.put(users.requiresLogin, papsables.hasAuthorization, papsables.update)
.delete(users.requiresLogin, papsables.hasAuthorization, papsables.delete);
// Finish by binding the Papsable middleware
app.param('papsableId', papsables.papsableByID);
}; | mit |
yuncms/yii2-user | ModuleTrait.php | 424 | <?php
/**
* @link http://www.tintsoft.com/
* @copyright Copyright (c) 2012 TintSoft Technology Co. Ltd.
* @license http://www.tintsoft.com/license/
*/
namespace yuncms\user;
use Yii;
/**
* Trait ModuleTrait
* @property-read Module $module
* @package yuncms\user
*/
trait ModuleTrait
{
/**
* @return Module
*/
public function getModule()
{
return Yii::$app->getModule('user');
}
} | mit |
alsemyonov/vk | lib/vk/api/audio/methods/get_albums.rb | 1296 | # frozen_string_literal: true
require 'vk/api/methods'
module Vk
module API
class Audio < Vk::Schema::Namespace
module Methods
# Returns a list of audio albums of a user or community.
class GetAlbums < Schema::Method
# @!group Properties
self.open = false
self.method = 'audio.getAlbums'
# @method initialize(arguments)
# @param [Hash] arguments
# @option arguments [Integer] :owner_id ID of the user or community that owns the audio file.
# @option arguments [Integer] :offset Offset needed to return a specific subset of albums.
# @option arguments [Integer] :count Number of albums to return.
# @return [Audio::Methods::GetAlbums]
# @!group Arguments
# @return [Integer] ID of the user or community that owns the audio file.
attribute :owner_id, API::Types::Coercible::Int.optional.default(nil)
# @return [Integer] Offset needed to return a specific subset of albums.
attribute :offset, API::Types::Coercible::Int.optional.default(nil)
# @return [Integer] Number of albums to return.
attribute :count, API::Types::Coercible::Int.optional.default(50)
end
end
end
end
end
| mit |
vsheyanov/asana-template-uploader | client/modules/new-template/new-template.js | 1848 | /**
* Created by Victor on 25.11.2015.
*/
angular.module('asana-template-uploader')
.controller('NewTemplateController', ['$scope', function($scope){
function parseContent(textContent){
var json = Papa.parse(textContent);
var nameIndex = json.data[0].indexOf("Name");
var notesIndex = json.data[0].indexOf("Notes");
var tasks = [];
for (var i = 1; i < json.data.length; i++){
tasks.push(new Task(json.data[i][nameIndex], json.data[i][notesIndex]));
}
return tasks;
}
function Task(name, notes){
this.name = name;
this.notes = notes;
}
$scope.onFileSelected = function($fileContent){
console.log($fileContent);
$scope.selectedTasks = parseContent($fileContent);
};
$scope.createTemplate = function(){
Meteor.call('asanaCreateTemplate',
$scope.templateName,
$scope.templateDescription,
$scope.isPrivate,
$scope.selectedTasks);
};
}]);
angular.module('asana-template-uploader').directive('onReadFile', function ($parse) {
return {
restrict: 'A',
scope: false,
link: function(scope, element, attrs) {
var fn = $parse(attrs.onReadFile);
element.on('change', function(onChangeEvent) {
var reader = new FileReader();
reader.onload = function(onLoadEvent) {
scope.$apply(function() {
fn(scope, {$fileContent:onLoadEvent.target.result});
});
};
reader.readAsText((onChangeEvent.srcElement || onChangeEvent.target).files[0]);
});
}
};
}); | mit |
capotej/migration_for | test/migration_for_test.rb | 159 | require 'test_helper'
class MigrationForTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
| mit |
Wellington475/agil-framework | app/task/form_edit_item.php | 1530 | <?php
require_once 'init.php';
use Agil\View\View as View;
$request = View::route($_GET);
$pk = $request['pk'];
$sql = array(
"id_project_task_items" => $pk,
"status" => 1
);
$fields = array("title", "comment");
$model = new ProjectTaskItems();
$model->fields = $fields;
$rs = $model->get($sql);
$rs = $rs[0];
?>
<div class="modal-content">
<div class="modal-header">
<button class="close" onclick="boss.removeClass('modal_dialog', 'active')">x</button>
<h3 class="modal-title font-open-sans">Editar Tarefa</h3>
</div>
<form action="/app/task/edit_item/" method="post" target="compiler">
<input type="hidden" id="pk" name="pk" value="<?php echo $pk;?>">
<input type="hidden" id="delete" name="delete" value="0">
<div class="modal-body">
<div class="container">
<div class="form-group">
<label>Título da tarefa</label>
<input name="title" type="text" value="<?php echo $rs['title'];?>" placeholder="<?php echo $rs['title'];?>" class="form-control">
</div>
<div class="form-group">
<label>Descrição da tarefa</label>
<textarea name="comment" type="text" value="<?php echo $rs['comment'];?>"class="form-control"><?php echo $rs['comment'];?></textarea>
</div>
</div>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-success" value="Editar tarefa">
<input type="submit" class="btn btn-danger" value="Deletar" onclick="$('#delete').attr('value', '1');">
</div>
</form>
</div> | mit |
Dimimo/Booklet | resources/lang/nl/passwords.php | 1055 | <?php
/**
* Copyright (c) 2017. Puerto Parrot Booklet. Written by Dimitri Mostrey for www.puertoparrot.com
* Contact me at [email protected] or [email protected]
*/
return [/*
|--------------------------------------------------------------------------
| Password Reminder Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'password' => 'Wachtwoord moet minimaal zes tekens lang zijn en de wachtwoorden moeten overeenkomen.',
'user' => 'Geen gebruiker bekend met dat e-mailadres.',
'token' => 'Dit wachtwoordresettoken is niet geldig.',
'sent' => 'We hebben een e-mail verstuurd met instructies om een nieuw wachtwoord in te stellen.',
'reset' => 'Het wachtwoord van uw account is gewijzigd.',
];
| mit |
KunmiaoYang/expertiza | app/controllers/roles_controller.rb | 1516 | class RolesController < ApplicationController
def action_allowed?
current_role_name.eql?("Super-Administrator")
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify method: :post, only: [:destroy, :create, :update], redirect_to: Role
def index
@roles = Role.order(:name)
end
def list
redirect_to Role
end
def show
@role = Role.find(params[:id])
@roles = @role.get_parents
foreign
end
def new
@role = Role.new
foreign
end
def create
@role = Role.new(role_params)
if @role.save
Role.rebuild_cache
flash[:notice] = 'The role was successfully created.'
redirect_to Role
else
foreign
render action: 'new'
end
end
def edit
@role = Role.find(params[:id])
foreign
end
def update
@role = Role.find(params[:id])
if @role.update_with_params(params[:role])
Role.rebuild_cache
@role = Role.find(params[:id])
flash[:notice] = 'The role was successfully updated.'
redirect_to action: 'show', id: @role.id
else
foreign
render action: 'edit'
end
end
def destroy
Role.find(params[:id]).destroy
redirect_to Role
end
protected
def foreign
@other_roles = @role.other_roles
@users = @role.users
end
private
def role_params
params.require(:question).permit(:name, :parent_id, :description, :default_page_id,
:created_at, :updated_at)
end
end
| mit |
jrasky/half2 | src/main.rs | 32387 | #![feature(core)]
#![feature(hash)]
#![feature(collections)]
#![feature(dir_entry_ext)]
#![feature(path_relative_from)]
#![feature(associated_consts)]
#![feature(test)]
#[macro_use]
extern crate log;
extern crate env_logger;
extern crate test;
extern crate rustc_serialize;
// general TODO:
// - create our own error type and use that everywhere
// - unify error handling to be more descriptive (replace try!, unwrap)
// - move fileops into a separate module so we can mock it out for testing
use std::path::PathBuf;
use std::collections::HashSet;
use std::iter::FromIterator;
use std::cmp::Ordering;
use std::hash::{hash, SipHasher};
use std::io::{BufReader, BufRead, Read, Write};
use rustc_serialize::json;
use std::fmt;
use std::fs;
use std::io;
use std::mem;
use std::env;
use tree::*;
mod tree;
const INDEX_PLACES_SIZE: usize = 4;
const FILE_TREE_WIDTH: usize = 6;
const FILE_BLOCK_LENGTH: usize = 1;
#[derive(Debug)]
struct Stage {
path: PathBuf
}
#[derive(Debug)]
struct Checkout {
pub path: PathBuf
}
struct PathInfo {
path: PathBuf,
pub id: PathBuf,
pub metadata: fs::Metadata
}
#[derive(Debug)]
struct Logs {
path: PathBuf
}
#[derive(Debug, Clone, Copy)]
struct IndexPlace {
node: usize,
offset: isize
}
// TODO: Improve this structure to include more caching
struct IndexItem {
hash: u64,
order: usize,
count: usize,
places: [IndexPlace; INDEX_PLACES_SIZE]
}
#[derive(RustcDecodable, RustcEncodable)]
struct FileMeta {
node_count: usize
}
impl fmt::Debug for IndexItem {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
try!(write!(f, "IndexItem {{ hash: {:?}, order: {:?}, count: {:?}, places: [",
self.hash, self.order, self.count));
if self.count > 0 {
try!(write!(f, "{:?}", self.places[0]));
}
if self.count > 1 {
for i in 1..self.count as usize {
try!(write!(f, ", {:?}", self.places[i]));
}
}
write!(f, "] }}")
}
}
impl Copy for IndexItem {}
impl Clone for IndexItem {
fn clone(&self) -> IndexItem {
*self
}
}
impl Eq for IndexItem {}
impl PartialEq for IndexItem {
fn eq(&self, other: &IndexItem) -> bool {
self.hash == other.hash && self.order == other.order
}
}
impl Ord for IndexItem {
fn cmp(&self, other: &IndexItem) -> Ordering {
if self.hash < other.hash {
Ordering::Less
} else if self.hash > other.hash {
Ordering::Greater
} else if self.order < other.order {
Ordering::Less
} else if self.order > other.order {
Ordering::Greater
} else {
Ordering::Equal
}
}
}
impl PartialOrd for IndexItem {
fn partial_cmp(&self, other: &IndexItem) -> Option<Ordering> {
Some(self.cmp(other))
}
}
impl fmt::Debug for PathInfo {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "PathInfo {{ path: {:?}, id: {:?}, metadata: {{...}} }}", self.path, self.id)
}
}
impl PathInfo {
pub fn new<T: Into<PathBuf>, V: Into<PathBuf>>(path: T, id: V, metadata: fs::Metadata) -> PathInfo {
PathInfo {
path: path.into(),
id: id.into(),
metadata: metadata
}
}
pub fn get_buffer(&self) -> Result<fs::File, io::Error> {
fs::File::open(&self.path)
}
pub fn copy<T: Into<PathBuf>>(&self, to: T) -> Result<(), io::Error> {
if self.metadata.is_dir() {
trace!("Copying as directory");
self.copy_dir(to)
} else if self.metadata.is_file() {
trace!("Copying as file");
self.copy_file(to)
} else {
error!("{} is neither a file nor a directory", self.path.display());
unimplemented!()
}
}
fn copy_dir<T: Into<PathBuf>>(&self, to: T) -> Result<(), io::Error> {
let dest_path = to.into().join(&self.id);
debug!("Creating directory at {:?}", &dest_path);
match fs::create_dir_all(dest_path) {
Err(e) => {
error!("Failed to create directory: {}", e);
Err(e)
},
Ok(_) => {
trace!("Directory created successfully");
Ok(())
}
}
}
fn copy_file<T: Into<PathBuf>>(&self, to: T) -> Result<(), io::Error> {
let dest_path = to.into().join(&self.id);
debug!("Creating parent directory for path");
match fs::create_dir_all(dest_path.parent().unwrap()) {
Err(e) => {
error!("Failed to create parent directory: {}", e);
return Err(e);
},
Ok(_) => {
trace!("Directory created");
}
}
debug!("Copying {:?} to {:?}", &self.path, &dest_path);
match fs::copy(&self.path, &dest_path) {
Err(e) => {
error!("Failed to copy {} to {}: {}", self.path.display(), dest_path.display(), e);
Err(e)
},
Ok(_) => {
trace!("Copy succeeded");
Ok(())
}
}
}
}
impl Default for Stage {
fn default() -> Stage {
Stage::new("./.h2/stage")
}
}
impl Stage {
pub fn new<T: Into<PathBuf>>(path: T) -> Stage {
Stage {
path: path.into(),
}
}
pub fn init(&mut self) -> Result<(), io::Error> {
info!("Creating Stage");
match fs::create_dir_all(&self.path) {
Err(ref e) if e.kind() == io::ErrorKind::AlreadyExists => {
trace!("Directory already existed");
Ok(())
},
Err(e) => {
error!("Failed to create directory \"{}\": {}", self.path.display(), e);
Err(e)
},
Ok(_) => {
trace!("Directory created");
Ok(())
}
}
}
pub fn add_path(&mut self, path: &PathInfo) -> Result<(), io::Error> {
// initial implementation. Overwrites anything.
info!("Adding path {:?}", path);
// copy the path to the stage
path.copy(&self.path)
}
}
impl Default for Checkout {
fn default() -> Checkout {
Checkout::new(".")
}
}
impl Checkout {
pub fn new<T: Into<PathBuf>>(path: T) -> Checkout {
Checkout {
path: path.into()
}
}
pub fn init(&mut self) -> Result<(), io::Error> {
info!("Creating checkout");
match fs::create_dir_all(&self.path) {
Err(ref e) if e.kind() == io::ErrorKind::AlreadyExists => {
trace!("Directory already existed");
Ok(())
},
Err(e) => {
error!("Failed to create directory \"{}\": {}", self.path.display(), e);
Err(e)
},
Ok(_) => {
trace!("Directory created");
Ok(())
}
}
}
}
impl Default for Logs {
fn default() -> Logs {
Logs::new("./.h2/logs")
}
}
impl Logs {
pub fn new<T: Into<PathBuf>>(path: T) -> Logs {
Logs {
path: path.into()
}
}
pub fn init(&mut self) -> Result<(), io::Error> {
info!("Creating logs");
match fs::create_dir_all(&self.path) {
Err(ref e) if e.kind() == io::ErrorKind::AlreadyExists => {
trace!("Directory already existed");
Ok(())
},
Err(e) => {
error!("Failed to create directory \"{}\": {}", self.path.display(), e);
Err(e)
},
Ok(_) => {
trace!("Directory created");
Ok(())
}
}
}
pub fn diff_path(&self, path: &PathInfo) -> io::Result<()> {
let dest_path = self.path.join(&path.id);
if !path.metadata.is_file() {
// only diff files and then a change
error!("Path was not a file: {:?}", path);
return Ok(());
} else {
info!("Diffing file: {:?}", path);
}
debug!("Reading tree at {:?} for file {:?}", &dest_path, path);
trace!("Opening meta info file");
let mut meta_buf = match fs::OpenOptions::new().read(true).write(false).open(dest_path.join("meta")) {
Err(e) => {
error!("Failed to open meta file: {}", e);
return Err(e);
},
Ok(b) => {
trace!("Successfully opened meta file");
b
}
};
let mut meta_str = String::new();
trace!("Reading metadata file");
match meta_buf.read_to_string(&mut meta_str) {
Err(e) => {
error!("Failed to read meta info: {}", e);
return Err(e);
},
Ok(s) => {
trace!("Successfully read meta file");
s
}
};
trace!("Decoding object");
let mut meta: FileMeta = match json::decode(meta_str.as_ref()) {
Err(e) => {
panic!("Failed to decode meta object: {}", e);
},
Ok(obj) => {
trace!("Successfully decoded meta object");
obj
}
};
trace!("Opening tree file");
let tree_buf = match fs::File::open(dest_path.join("content")) {
Err(e) => {
error!("Failed to open content buffer: {}", e);
return Err(e);
},
Ok(b) => {
trace!("Opened tree file");
b
}
};
trace!("Creating tree object");
let mut tree: BufTree<_, IndexItem> = match unsafe {BufTree::from_buffer(tree_buf)} {
Err(e) => {
error!("Failed to create tree object: {}", e);
return Err(e);
},
Ok(t) => {
trace!("Tree object created successfully");
t
}
};
debug!("Opening original file");
let mut orig = match path.get_buffer() {
Err(e) => {
error!("Failed to open file: {}", e);
return Err(e);
},
Ok(b) => {
trace!("Successfully opened file");
// wrap in a buffreader so we can read_line
BufReader::new(b)
}
};
debug!("Comparing lines");
let mut offset: isize = 0;
let mut new_offset: isize = 0;
let mut counter = 0;
let mut line = Vec::new();
loop {
unsafe {line.set_len(0)};
trace!("Reading line");
match orig.read_until(b'\n', &mut line) {
Ok(0) => {
trace!("Done with this file");
break;
},
Ok(_) => {
trace!("Got new line: {:?}", String::from_utf8_lossy(&line));
},
Err(e) => {
error!("Failed to read line: {}", e);
return Err(e);
}
}
trace!("Creating initial item");
debug!("Counter {}: {:?}", counter, String::from_utf8_lossy(&line));
let mut item = IndexItem {
hash: hash::<_, SipHasher>(&line),
order: 0,
count: 0,
places: unsafe {mem::zeroed()}
};
trace!("Searching in tree");
match tree.get(&item) {
Err(e) => {
error!("Failed to get item: {}", e);
return Err(e);
},
Ok(None) => {
info!("New node {}: {:?}", meta.node_count, String::from_utf8_lossy(&line));
if offset != meta.node_count as isize - counter as isize {
info!("Counter {}: offset {}", (counter - 1),
meta.node_count as isize - counter as isize - offset);
new_offset += meta.node_count as isize - counter as isize - offset;
offset = meta.node_count as isize - counter as isize;
}
meta.node_count += 1;
},
Ok(Some(tree_item)) => {
trace!("Found existing item: {:?}", &tree_item);
// iterate through the places we have
let mut next = None;
let mut place = tree_item.places[0];
let mut diff = new_offset + tree_item.places[0].node as isize - counter as isize - offset;
debug!("Starting place: {:?}", place);
debug!("Starting difference: {}", diff);
for i in 0..tree_item.count {
debug!("Considering place {:?}", tree_item.places[i]);
if counter as isize + offset + tree_item.places[i].offset == tree_item.places[i].node as isize {
// we've foun a match
next = Some(tree_item.places[i]);
debug!("Found a match: {:?}", &tree_item.places[i]);
break;
} else if (new_offset + tree_item.places[i].node as isize -
counter as isize - offset).abs() < diff.abs() {
diff = new_offset + tree_item.places[i].node as isize -
counter as isize - offset;
place = tree_item.places[i];
debug!("offset {} new_offset {} place.offset {} place.node {}", offset, new_offset, place.offset, place.node);
debug!("Found a better solution {}: {:?}", diff, place);
}
}
// iterate through the next ones if they exist
if next.is_none() {
trace!("Checking for sub-items");
}
while next.is_none() {
item.order += 1;
match tree.get(&item) {
Err(e) => {
error!("Failed to get item: {}", e);
return Err(e);
},
Ok(None) => {
trace!("Iterated through all sub-items");
break;
},
Ok(Some(other_item)) => {
trace!("Found other sub-item: {:?}", &other_item);
for i in 0..other_item.count {
debug!("Considering place {:?}", other_item.places[i]);
if counter as isize + offset + other_item.places[i].offset == other_item.places[i].node as isize {
// we've foun a match
next = Some(other_item.places[i]);
debug!("Found a match: {:?}", &other_item.places[i]);
break;
} else if (new_offset + other_item.places[i].node as isize -
counter as isize - offset).abs() < diff.abs() {
diff = new_offset + other_item.places[i].node as isize -
counter as isize - offset;
place = tree_item.places[i];
debug!("offset {} new_offset {} place.offset {} place.node {}", offset, new_offset, place.offset, place.node);
debug!("Found a better solution {}: {:?}", diff, place);
}
}
}
}
}
trace!("Finalizing decision");
match next {
Some(place) => {
// our best path doesn't need an offset
trace!("Found matching place");
offset += place.offset;
},
None => {
// new next element
trace!("No matching place, creating new one");
debug!("Closest place: {:?}", place);
info!("Counter {}: offset {}", (counter - 1),
place.node as isize - counter as isize - offset);
new_offset += place.node as isize - counter as isize - offset;
offset = place.node as isize - counter as isize;
}
}
}
}
trace!("Incrementing counter");
counter += 1;
}
// TODO: actually change the tree to match, write out info
Ok(())
}
pub fn add_path(&mut self, path: &PathInfo) -> io::Result<()> {
let dest_path = self.path.join(&path.id);
if !path.metadata.is_file() {
// only create an index for a file
return Ok(());
}
debug!("Creating log directory");
match fs::create_dir_all(&dest_path) {
Err(e) => {
error!("Failed to create parent directory: {}", e);
return Err(e);
},
Ok(_) => {
trace!("Parent directory created");
}
}
debug!("Creating tree at {:?} from {:?}", &dest_path, path);
trace!("Creating meta file");
let mut meta = match fs::File::create(dest_path.join("meta")) {
Err(e) => {
error!("Failed to create meta buffer: {}", e);
return Err(e);
},
Ok(b) => {
trace!("Successfully created meta buffer");
b
}
};
trace!("Creating destination buffer");
let dest = match fs::OpenOptions::new().read(true).write(true).create(true).open(dest_path.join("content")) {
Err(e) => {
error!("Failed to create destination buffer: {}", e);
return Err(e);
},
Ok(b) => {
trace!("Successfully created destination buffer");
b
}
};
trace!("Creating tree object");
let mut tree: BufTree<_, IndexItem> = match BufTree::new(dest, FILE_TREE_WIDTH) {
Err(e) => {
error!("Failed to create tree: {}", e);
return Err(e);
},
Ok(t) => {
trace!("Successfully created tree");
t
}
};
trace!("Opening original file");
let mut orig = match path.get_buffer() {
Err(e) => {
error!("Failed to open file: {}", e);
return Err(e);
},
Ok(b) => {
trace!("Successfully opened file");
// wrap in a buffreader so we can read_line
BufReader::new(b)
}
};
debug!("Inserting original lines into tree");
let mut line = Vec::new();
let mut counter = 0;
let mut item;
loop {
unsafe {line.set_len(0)};
trace!("Reading line");
match orig.read_until(b'\n', &mut line) {
Ok(0) => {
trace!("Done with this file");
break;
},
Ok(_) => {
trace!("Got new line: {:?}", String::from_utf8_lossy(&line));
},
Err(e) => {
error!("Failed to read line: {}", e);
return Err(e);
}
}
trace!("Creating initial item");
item = IndexItem {
hash: hash::<_, SipHasher>(&line),
order: 0,
count: 0,
// create zeroed memory so it compresses better
places: unsafe {mem::zeroed()}
};
trace!("Merging with tree");
loop {
match tree.get(&item) {
Err(e) => {
error!("Failed to get tree item: {}", e);
return Err(e);
},
Ok(None) => {
trace!("Creating new tree item");
break;
},
Ok(Some(tree_item)) => {
if tree_item.count >= INDEX_PLACES_SIZE {
trace!("Found full item, incrementing");
item.order += 1;
} else {
trace!("Found item with space, merging");
item = tree_item;
break;
}
}
}
}
trace!("Inserting element");
item.places[item.count] = IndexPlace {
node: counter,
offset: 0
};
item.count += 1;
debug!("Counter {}: {:?}", counter, String::from_utf8_lossy(&line));
trace!("Inserting item into tree");
match tree.insert(item) {
Ok(_) => {
trace!("Inserted element successfully");
},
Err(e) => {
error!("Failed to insert element: {}", e);
return Err(e);
}
}
trace!("Incrementing counter");
counter += 1;
}
trace!("Finished inserting lines");
debug!("Saving meta info");
trace!("Creating meta object");
let meta_info = FileMeta {
node_count: counter
};
trace!("Creating json");
let data = match json::encode(&meta_info) {
Err(e) => {
panic!("Failed to encode to json: {}", e)
},
Ok(d) => {
trace!("Data encoded successfully");
d
}
};
trace!("Writing to file");
match meta.write_all(data.as_ref()) {
Err(e) => {
error!("Failed to write meta info to file: {}", e);
return Err(e);
},
Ok(()) => {
trace!("Meta info written to file successfully");
}
}
Ok(())
}
}
fn main() {
// start up logging
match env_logger::init() {
Ok(()) => {
trace!("Logger initialization successful");
},
Err(e) => {
panic!("Failed to start up logging: {}", e);
}
}
trace!("Getting command-line arguments");
let args: Vec<String> = env::args().collect();
if args.len() > 1 && args[1] == "init" {
info!("Init in current directory");
match init() {
Ok(()) => {
trace!("Init successful");
},
Err(e) => {
panic!("Init failed: {}", e);
}
}
} else {
let checkout = Checkout::default();
//let stage = Stage::default();
let logs = Logs::default();
info!("Walking current directory");
match diff_dir_all(&checkout, &logs, PathBuf::from("."), vec![".h2", ".git", "target", "perf.data", "src"]) {
Ok(()) => {
debug!("Walk successful");
},
Err(e) => {
panic!("Walk failed: {}", e);
}
}
}
}
fn init() -> Result<(), io::Error> {
info!("Creating half2 directories");
debug!("Creating ./.h2");
match fs::create_dir("./.h2") {
Err(e) => {
error!("Failed to create directory \".h2\": {}", e);
return Err(e);
},
Ok(_) => {
trace!("Directory created");
}
}
trace!("Creating checkout object");
let mut checkout = Checkout::default();
debug!("Initializing checkout");
match checkout.init() {
Ok(()) => {
trace!("Checkout creation successful");
},
Err(e) => {
error!("Checkout creation failed: {}", e);
return Err(e);
}
}
trace!("Creating Stage object");
let mut stage = Stage::default();
debug!("Initializing stage");
match stage.init() {
Ok(()) => {
trace!("Stage creation successful");
},
Err(e) => {
error!("Stage creation failed: {}", e);
return Err(e);
}
}
trace!("Creating Logs object");
let mut logs = Logs::default();
debug!("Initializing logs");
match logs.init() {
Ok(()) => {
trace!("Logs creation successful");
},
Err(e) => {
error!("Logs creation failed: {}", e);
return Err(e);
}
}
info!("Walking current directory");
match stage_dir_all(&checkout, &mut logs, &mut stage, PathBuf::from("."), vec![".h2", ".git", "target", "perf.data", "src"]) {
Ok(()) => {
debug!("Walk successful");
},
Err(e) => {
error!("Walk failed: {}", e);
return Err(e);
}
}
Ok(())
}
fn stage_dir_all<T: Into<PathBuf>, V: IntoIterator>(checkout: &Checkout, logs: &mut Logs, stage: &mut Stage, path: T, ignore: V)
-> Result<(), io::Error> where V::Item: Into<PathBuf> {
let mut to_visit = vec![checkout.path.join(path.into())];
let to_ignore: HashSet<PathBuf> = HashSet::from_iter(ignore.into_iter().map(|x| {x.into()}));
info!("Copying directory tree");
while !to_visit.is_empty() {
trace!("Popping directory from queue");
let dir = to_visit.pop().unwrap();
debug!("Reading directory {:?}", dir);
for item in match fs::read_dir(dir) {
Ok(iter) => {
trace!("Got directory iterator");
iter
},
Err(e) => {
error!("Failed to read directory: {}", e);
return Err(e);
}
} {
let entry = match item {
Ok(item) => {
trace!("No new error");
item
},
Err(e) => {
error!("Error reading directory: {}", e);
return Err(e);
}
};
trace!("Getting path relative to checkout directory");
let id = match entry.path().relative_from(&checkout.path) {
Some(id) => {
trace!("Got path relative_from successfully");
PathBuf::from(id)
},
None => {
panic!("Failed to get path relative to checkout path");
}
};
trace!("Entry path: {:?}", entry.path());
trace!("Entry id: {:?}", &id);
if to_ignore.contains(&id) {
// ignore our own directory
trace!("Path was in ignore set");
continue;
}
trace!("Getting file metadata");
let metadata = match entry.metadata() {
Ok(data) => {
trace!("Got metadata");
data
},
Err(e) => {
error!("Could not get file metadata: {}", e);
return Err(e);
}
};
if metadata.is_dir() {
trace!("Adding path to visit queue");
to_visit.push(entry.path());
} else {
trace!("Not adding path to visit queue");
}
trace!("Creating path info object");
let info = PathInfo::new(entry.path(), id, metadata);
debug!("Adding path to stage");
match stage.add_path(&info) {
Ok(()) => {
trace!("Add path succeeded");
},
Err(e) => {
error!("Add path failed: {}", e);
return Err(e);
}
}
debug!("Creating file index");
match logs.add_path(&info) {
Ok(()) => {
trace!("Index creation successful");
},
Err(e) => {
error!("Index creation failed: {}", e);
return Err(e);
}
}
}
}
trace!("Init finished");
Ok(())
}
fn diff_dir_all<T: Into<PathBuf>, V: IntoIterator>(checkout: &Checkout, logs: &Logs, path: T, ignore: V)
-> Result<(), io::Error> where V::Item: Into<PathBuf> {
let mut to_visit = vec![checkout.path.join(path.into())];
let to_ignore: HashSet<PathBuf> = HashSet::from_iter(ignore.into_iter().map(|x| {x.into()}));
info!("Diffing directory tree");
while !to_visit.is_empty() {
trace!("Popping directory from queue");
let dir = to_visit.pop().unwrap();
debug!("Reading directory {:?}", dir);
for item in match fs::read_dir(dir) {
Ok(iter) => {
trace!("Got directory iterator");
iter
},
Err(e) => {
error!("Failed to read directory: {}", e);
return Err(e);
}
} {
let entry = match item {
Ok(item) => {
trace!("No new error");
item
},
Err(e) => {
error!("Error reading directory: {}", e);
return Err(e);
}
};
trace!("Getting path relative to checkout directory");
let id = match entry.path().relative_from(&checkout.path) {
Some(id) => {
trace!("Got path relative_from successfully");
PathBuf::from(id)
},
None => {
panic!("Failed to get path relative to checkout path");
}
};
trace!("Entry path: {:?}", entry.path());
trace!("Entry id: {:?}", &id);
if to_ignore.contains(&id) {
// ignore our own directory
trace!("Path was in ignore set");
continue;
}
trace!("Getting file metadata");
let metadata = match entry.metadata() {
Ok(data) => {
trace!("Got metadata");
data
},
Err(e) => {
error!("Could not get file metadata: {}", e);
return Err(e);
}
};
if metadata.is_dir() {
trace!("Adding path to visit queue");
to_visit.push(entry.path());
} else {
trace!("Not adding path to visit queue");
}
trace!("Creating path info object");
let info = PathInfo::new(entry.path(), id, metadata);
debug!("Creating file index");
match logs.diff_path(&info) {
Ok(()) => {
trace!("Index creation successful");
},
Err(e) => {
error!("Index creation failed: {}", e);
return Err(e);
}
}
}
}
trace!("Init finished");
Ok(())
}
| mit |
opinioapp/delivery-sdk-java | src/main/java/com/opinioapp/sdk/delivery/ApiClient.java | 2068 | package com.opinioapp.sdk.delivery;
import com.opinioapp.sdk.delivery.exceptions.*;
import com.opinioapp.sdk.delivery.reponses.DeliveryOrder;
import com.opinioapp.sdk.delivery.reponses.RegisteredMerchant;
import com.opinioapp.sdk.delivery.reponses.Serviceability;
import com.opinioapp.sdk.delivery.reponses.SupportedLocalities;
import com.opinioapp.sdk.delivery.requests.CancellationRequest;
import com.opinioapp.sdk.delivery.requests.DeliveryRequest;
import com.opinioapp.sdk.delivery.requests.MerchantRegistrationRequest;
import java.io.IOException;
import java.util.Date;
import java.util.List;
/**
* Created by lokesh on 4/11/15.
*
* Client for Opinio delivery api
*/
public interface ApiClient {
void init(EnvironmentEnum environment, Credentials credentials) throws KeysNotFoundException;
RegisteredMerchant registerMerchant(MerchantRegistrationRequest request) throws PluginNotSetupException, MerchantAlreadyRegisteredException, IOException, ApiCallException;
RegisteredMerchant getMerchantStatus(String merchantId) throws PluginNotSetupException, MerchantAlreadyRegisteredException, IOException, ApiCallException;
Serviceability checkServiceability(String merchantId) throws PluginNotSetupException, IOException, ApiCallException;
SupportedLocalities getSupportedLocalities(String merchantId) throws PluginNotSetupException, IOException, ApiCallException;
DeliveryOrder requestDelivery(DeliveryRequest request) throws PluginNotSetupException, IOException, ApiCallException, NoPilotAvailableException;
DeliveryOrder getDeliveryStatus(String orderCode) throws PluginNotSetupException, IOException, ApiCallException;
DeliveryOrder updateDelivery(DeliveryRequest request) throws PluginNotSetupException, IOException, ApiCallException;
DeliveryOrder cancelDelivery(CancellationRequest request) throws PluginNotSetupException, ApiCallException, IOException;
List<DeliveryOrder> getAllDeliveries(String merchantId, Date startDate, Date endDate) throws PluginNotSetupException, IOException, ApiCallException;
}
| mit |
openforis/collect | collect-core/src/main/java/org/openforis/collect/metamodel/ui/UIColumnGroup.java | 4711 | /**
*
*/
package org.openforis.collect.metamodel.ui;
import java.util.ArrayList;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
import org.openforis.commons.collection.CollectionUtils;
import org.openforis.idm.metamodel.EntityDefinition;
import org.openforis.idm.metamodel.NodeDefinition;
/**
* @author S. Ricci
*
*/
public class UIColumnGroup extends UITableHeadingComponent implements UITableHeadingContainer, NodeDefinitionUIComponent {
private static final long serialVersionUID = 1L;
private Integer entityDefinitionId;
private EntityDefinition entityDefinition;
private List<UITableHeadingComponent> headingComponents;
public UIColumnGroup(UITableHeadingContainer parent, int id) {
super(parent, id);
}
@Override
public int getColSpan() {
return getNestedColumnsCount();
}
protected int getNestedColumnsCount() {
int result = 0;
for (UITableHeadingComponent headingComponent : headingComponents) {
if (headingComponent instanceof UIColumnGroup) {
result += ((UIColumnGroup) headingComponent).getNestedColumnsCount();
} else {
result ++;
}
}
return result;
}
protected int getNestedRowsCount() {
Deque<List<UITableHeadingComponent>> stack = new LinkedList<List<UITableHeadingComponent>>();
stack.add(headingComponents);
int currentRow = 0;
while(! stack.isEmpty()) {
currentRow ++;
List<UITableHeadingComponent> currentRowComponents = stack.pop();
List<UITableHeadingComponent> nextRowComponents = new ArrayList<UITableHeadingComponent>();
for (UITableHeadingComponent currentRowComponent : currentRowComponents) {
if (currentRowComponent instanceof UIColumnGroup) {
nextRowComponents.addAll(((UIColumnGroup) currentRowComponent).headingComponents);
}
}
if (! nextRowComponents.isEmpty()) {
stack.add(nextRowComponents);
}
}
return currentRow;
}
@Override
public int indexOf(UITableHeadingComponent component) {
return headingComponents.indexOf(component);
}
@Override
public int getNodeDefinitionId() {
return getEntityDefinitionId();
}
@Override
public NodeDefinition getNodeDefinition() {
return getEntityDefinition();
}
public Integer getEntityDefinitionId() {
return entityDefinitionId;
}
public void setEntityDefinitionId(Integer entityDefinitionId) {
this.entityDefinitionId = entityDefinitionId;
}
public EntityDefinition getEntityDefinition() {
if ( entityDefinitionId != null && entityDefinition == null ) {
this.entityDefinition = (EntityDefinition) getNodeDefinition(entityDefinitionId);
}
return entityDefinition;
}
public void setEntityDefinition(EntityDefinition entityDefinition) {
this.entityDefinition = entityDefinition;
this.entityDefinitionId = entityDefinition == null ? null: entityDefinition.getId();
}
@Override
public List<UITableHeadingComponent> getHeadingComponents() {
return CollectionUtils.unmodifiableList(headingComponents);
}
@Override
public void addHeadingComponent(UITableHeadingComponent component) {
if ( headingComponents == null ) {
headingComponents = new ArrayList<UITableHeadingComponent>();
}
headingComponents.add(component);
getUIConfiguration().attachItem(component);
}
@Override
public void removeHeadingComponent(UITableHeadingComponent component) {
headingComponents.remove(component);
getUIConfiguration().detachItem(component);
}
@Override
public UIColumn createColumn() {
UIConfiguration uiOptions = getUIConfiguration();
return createColumn(uiOptions.nextId());
}
@Override
public UIColumn createColumn(int id) {
return new UIColumn(this, id);
}
@Override
public UIColumnGroup createColumnGroup() {
UIConfiguration uiOptions = getUIConfiguration();
return createColumnGroup(uiOptions.nextId());
}
@Override
public UIColumnGroup createColumnGroup(int id) {
return new UIColumnGroup(this, id);
}
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((headingComponents == null) ? 0 : headingComponents.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
UIColumnGroup other = (UIColumnGroup) obj;
if (headingComponents == null) {
if (other.headingComponents != null)
return false;
} else if (!headingComponents.equals(other.headingComponents))
return false;
return true;
}
}
| mit |
TAurelien/accountingApp | src/components/currencies/src/events/index.js | 757 | /**
* @module Currencies Events
*
* @access private
* @author TAurelien
* @date 2015-05-02
* @version 1.0.0
*/
'use strict';
module.exports = function (options, imports, Currencies) {
var logger = imports.logger.get('Currencies events');
var prefix = 'currencies';
return {
/**
* Emit a currencies.update event on Currencies.
*
* @access private
* @author TAurelien
* @date 2015-05-02
* @version 1.0.0
* @since 1.0.0
*/
emitUpdate: function (updatedData, updatedIdArray) {
var eventName = prefix + '.update';
logger.info('Emitting', eventName);
/**
* @event Currencies#currencies.update
*/
Currencies.emit(eventName, updatedData, updatedIdArray);
}
};
}; | mit |
Antekov/simple-teacher | application/views/authentication/access_denied.php | 1595 | <html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/i/favicon.gif"/>
<title>Z95 > Authentication</title>
<link rel="stylesheet" type="text/css" href="/<?=APPPATH?>views/css/common.css" />
<link rel="stylesheet" type="text/css" href="/<?=APPPATH?>views/css/default.css" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400,300&subset=latin,cyrillic" rel="stylesheet" type="text/css"/>
<script language="JavaScript" type="text/javascript" src="/<?=APPPATH?>views/js/jquery.js"></script>
<script language="JavaScript" type="text/javascript" src="/<?=APPPATH?>views/js/global.js"></script>
<script type="text/javascript">
$(document).ready( function(){
$('#auth_dialog').css('top', ($(window).height()-$('#auth_dialog').height())/2-60);
$('#auth_dialog').css('left', ($(window).width()-$('#auth_dialog').width())/2-60);
$('#auth_dialog').fadeIn(200);
});
</script>
<style>
body { background:black url('/i/login_bg.jpg') no-repeat center center; color:white; }
#auth_dialog { display:none; }
.login_form { position:relative; width:300px; padding:30px 20px 30px 100px; background:white url('/i/auth_lock.png') no-repeat 20px 30px; }
.login_form .error { background:red; color:white; padding: 5px; }
.login_form table td { font-size:1.2em; }
.login_form table td input.big { font-size:1.8em; width:200px; }
</style>
</head>
<body>
<div style="padding:100px 0 0 20%">
<h1>Access denied</h1>
<a href="/login">Login</a>
</div>
</body>
</html> | mit |
methodfactory/vagrant-aws | Packer/cookbooks/chocolatey/libraries/matchers.rb | 630 | #
# Cookbook Name:: chocolatey
# Library:: matchers
#
# These can be used when testing for chefspec.
# Example:
# Recipe:
# chocolatey 'cool_package'
# ChefSpec:
# expect(chef_run).to install_chocolatey('cool_package')
#
if defined?(ChefSpec)
ChefSpec.define_matcher(:chocolatey)
def install_chocolatey(name)
ChefSpec::Matchers::ResourceMatcher.new(:chocolatey, :install, name)
end
def upgrade_chocolatey(name)
ChefSpec::Matchers::ResourceMatcher.new(:chocolatey, :upgrade, name)
end
def remove_chocolatey(name)
ChefSpec::Matchers::ResourceMatcher.new(:chocolatey, :remove, name)
end
end
| mit |
TorbenHaug/VS | de.haw-hamburg.vs-ws2015.spahl-haug.rest/de.haw-hamburg.vs-ws2015.spahl-haug.rest.errorhandler/src/main/java/de/haw_hamburg/vs_ws2015/spahl_haug/errorhandler/NotForSaleException.java | 179 | package de.haw_hamburg.vs_ws2015.spahl_haug.errorhandler;
public class NotForSaleException extends Exception {
public NotForSaleException(final String msg) {
super(msg);
}
}
| mit |
kjsii123/entry-hw | app/modules/byrobot_controller_4.js | 623 | const byrobot_base = require('./byrobot_base');
/***************************************************************************************
* BYROBOT E-Drone Controller
***************************************************************************************/
class byrobot_controller_4 extends byrobot_base
{
/*
생성자
*/
constructor()
{
super();
this.log('BYROBOT_E-DRONE_CCONTROLLER - constructor()');
this.targetDevice = 0x20;
this.targetDeviceID = '0F0901';
this.arrayRequestData = null;
}
}
module.exports = new byrobot_controller_4();
| mit |
farwish/php-lab | lab/via/examples/via_http_serv.php | 3965 | <?php
/**
* Via package.
*
* @license MIT
* @author farwish <[email protected]>
*/
include __DIR__ . '/../../../vendor/autoload.php';
$socket = 'tcp://0.0.0.0:8080';
$con = new \Via\Server();
$con
// Parameter.
//
// option, default is 1
->setCount(3)
// option, can also be in constructor
->setSocket($socket)
// option, default is Via
->setProcessTitle('Via')
// option, default is 100
->setBacklog(100)
// option, default is 30
->setSelectTimeout(20)
// option, default is 60
->setAcceptTimeout(30)
// Event callback.
//
// option, when client connected with server, callback trigger.
->onConnection(function($connection) {
echo "New client connected." . PHP_EOL;
})
// option, when client send message to server, callback trigger.if
->onMessage(function($connection) {
$method = '';
$url = '';
$protocol_version = '';
$request_header = [];
$content_type = 'text/html; charset=utf-8';
$content_length = 0;
$request_body = '';
$end_of_header = false;
// @see http://php.net/manual/en/function.fread.php
$buffer = fread($connection, 8192);
if (false !== $buffer) {
// Http request format check.
if (false !== strstr($buffer, "\r\n")) {
$list = explode("\r\n", $buffer);
}
if ($list) {
foreach ($list as $line) {
if ($end_of_header) {
if (strlen($line) === $content_length) {
$request_body = $line;
} else {
throw new \Exception("Content-Length {$content_length} not match request body length " . strlen($line) . "\n");
}
break;
}
if ( empty($line) ) {
$end_of_header = true;
} else {
// Header.
//
if (false === strstr($line, ': ')) {
$array = explode(' ', $line);
// Request line.
if (count($array) === 3) {
$method = $array[0];
$url = $array[1];
$protocol_version = $array[2];
}
} else {
$array = explode(': ', $line);
// Request header.
list ($key, $value) = $array;
$request_header[$key] = $value;
if ( strtolower($key) === strtolower('Content-type') ) {
$content_type = $value;
}
// Have request body.
if ($key === 'Content-Length') {
$content_length = $value;
}
}
}
}
}
}
// No request body, show buffer from read.
$response_body = $request_body ?: $buffer;
$response_header = "HTTP/1.1 200 OK\r\n";
$response_header .= "Content-type: {$content_type}\r\n";
if (empty($content_length) && (strlen($response_body) > 0)) {
$response_header .= "Content-Length: " . strlen($response_body) . "\r\n";
}
foreach ($request_header as $k => $v) {
$response_header .= "{$k}: {$v}\r\n";
}
$response_header .= "\r\n";
fwrite($connection, $response_header . $response_body);
fclose($connection);
})
// Start server.
//
->run();
| mit |
EddyVerbruggen/nativescript-pluginshowcase | app/info-modal/info-modal.ts | 1397 | import { Component, OnDestroy, OnInit } from "@angular/core";
import { Page } from "tns-core-modules/ui/page";
import { PluginInfo } from "~/shared/plugin-info";
import { openUrl } from "tns-core-modules/utils/utils";
import { PluginInfoWrapper } from "~/shared/plugin-info-wrapper";
import { addTabletCss } from "~/utils/tablet-util";
import { RouterExtensions } from "nativescript-angular";
import { ActivatedRoute } from "@angular/router";
@Component({
moduleId: module.id,
templateUrl: "./info-modal.html",
styleUrls: ["./info-modal-common.css"]
})
export class InfoModalComponent implements OnInit, OnDestroy {
pluginInfo: PluginInfoWrapper;
private queryParamsSubscription: any;
constructor(private page: Page,
private route: ActivatedRoute,
private routerExtensions: RouterExtensions) {
// if (page.android) {
// this.page.backgroundColor = new Color(50, 0, 0, 0);
// }
addTabletCss(this.page, "info-modal");
}
ngOnInit(): void {
this.queryParamsSubscription = this.route
.queryParams
.subscribe(params => this.pluginInfo = JSON.parse(params['pluginInfo']));
}
ngOnDestroy() {
this.queryParamsSubscription.unsubscribe();
}
openPluginUrl(pluginInfo: PluginInfo): void {
// open in the default browser
openUrl(pluginInfo.url);
}
back() {
this.routerExtensions.back();
}
}
| mit |
Aedificem/ontrac | client/js/work/mod_workindex.js | 3477 | /* WORK INDEX PAGE FUNCTIONALITY
* - Today's work due section
* - Next day's work due section
* - Navigation calendar
*/
modules.push({
name: "work-index",
check: function() {
return (PAGE=="/work");
},
run: function() {
$("#projectDueDate").datepicker({
dateFormat: "yy-mm-dd"
});
$("#hw-calendar").fullCalendar({
weekends: false,
header: {
left: 'prev,next',
center: 'title',
right: 'today'
},
dayClick: function(date, jsEvent, view) {
var dateString = date.format("YYYY-MM-DD");
var sd = currentUser.scheduleObject.scheduleDays[dateString];
if(sd)
window.location.href = "/work/"+dateString;
},
dayRender: function( date, cell ) {
var dateString = date.format("YYYY-MM-DD");
if(dateString == $("#upcoming").data("closest")){
cell.css("background-color", "#64e6fc");
}
var sd = currentUser.scheduleObject.scheduleDays[dateString];
if(sd !== undefined){
cell.append('<i class="left text-muted cl-sd">'+sd+'-Day</i>');
}else{
cell.css("background-color", "#ededed");
}
},
defaultView: 'month'
});
function createWorkSection(dateString, holder){
$.get("/homework/"+dateString, function(data){
var date = moment(dateString, "YYYY-MM-DD");
if(data){
if(data.error){
holder.remove();
return;
}
if(data.length > 0){
holder.find("small").text(data.length+" items");
var courses = [];
var total = data.length;
var doneC = 0;
data.forEach(function(item){
if(item.completed)
doneC += 1;
if(courses.indexOf(item.course.title) == -1)
courses.push(item.course.title);
});
var table = holder.find("table");
var hw = {};
var hwTitles = [];
var doneC = 0;
var total = data.length;
data.forEach(function(item){
if(item.completed)
doneC++;
//console.log(item.course.title);
if(hwTitles.indexOf(item.course.title) == -1)
hwTitles.push(item.course.title);
if(!hw[item.course.title])
hw[item.course.title] = [];
hw[item.course.title].push(item);
});
table.html("");
var html = "";
hwTitles.forEach(function(cTitle) {
html+="<tr><td>"+cTitle+"</td><td>"+hw[cTitle].length+" items</td></tr>";
});
table.html(html);
holder.find("p").html("<a data-toggle='tooltip' title='"+courses.join(', ')+"' class='undecorated' href='/work/"+dateString+"'><b>"+data.length+"</b> Homework items for <b>"+date.format("dddd [the] Do")+"</b><br><span class='text-muted'><b>"+Math.round((doneC/total)*1000)/10+"%</b> completed.</span></a>");
}else{
holder.find("p").html("<a data-toggle='tooltip' class='undecorated' href='/work/"+dateString+"'><span class='text-muted'>You have not yet recorded any homework items due <b>"+date.format("dddd [the] Do")+"</b>.</span></a>");
}
}
});
}
createWorkSection(moment().format("YYYY-MM-DD"), $("#due-today"));
createWorkSection($("#upcoming").data("closest"), $("#upcoming"));
}
});
| mit |
skeswa/crowdcloud | server/util/protect.js | 148 | var passport = require('passport');
module.exports = passport.authenticate('windowslive', {
successRedirect: '/',
failureRedirect: '/login'
}); | mit |
wenhulove333/ScutServer | Source/Framework/ZyGames.Framework/Plugin/Test/BaseCase.cs | 6349 | /****************************************************************************
Copyright (c) 2013-2015 scutgame.com
http://www.scutgame.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using ZyGames.Framework.Common.Log;
namespace ZyGames.Framework.Plugin.Test
{
/// <summary>
///
/// </summary>
/// <example>
/// <code>
/// public class DemoCase : BaseCase
/// {
/// public DemoCase() : base("Demo")
/// {
/// }
///
/// public void TestCase()
/// {
/// //do samething
/// }
/// }
/// </code>
/// </example>
public abstract class BaseCase
{
/// <summary>
///
/// </summary>
/// <param name="name"></param>
protected BaseCase(string name)
{
this.Name = name;
}
/// <summary>
///
/// </summary>
public string Name { get; private set; }
/// <summary>
///
/// </summary>
public abstract void TestCase();
/// <summary>
///
/// </summary>
/// <param name="value"></param>
/// <param name="equalValue"></param>
public void InspectEquals(object value, object equalValue)
{
if (!Equals(value, equalValue))
{
throw new Exception(string.Format("{0}:比较值不相等!", Name));
}
}
/// <summary>
///
/// </summary>
/// <param name="value"></param>
public void InspectIsNull(object value)
{
if (value == null)
{
throw new ArgumentNullException("value", Name + ":验证值为空!");
}
}
/// <summary>
///
/// </summary>
/// <param name="action"></param>
public void ThreadRun(ThreadStart action)
{
new Thread(action).Start();
}
/// <summary>
///
/// </summary>
/// <param name="action"></param>
/// <returns></returns>
public Task TaskRun(Action action)
{
return Task.Factory.StartNew(() =>
{
try
{
if (action != null)
{
action();
}
}
catch (Exception ex)
{
TraceLog.WriteError("TaskRun:{0}", ex);
}
});
}
/// <summary>
///
/// </summary>
/// <param name="action"></param>
/// <returns></returns>
public Task TaskRun(Action<Stopwatch> action)
{
return Task.Factory.StartNew(() =>
{
try
{
if (action != null)
{
var watch = StartNewWatch();
action(watch);
}
}
catch (Exception ex)
{
TraceLog.WriteError("TaskRun:{0}", ex);
}
});
}
/// <summary>
///
/// </summary>
/// <param name="name"></param>
/// <param name="action"></param>
/// <returns></returns>
public Task TaskRun(string name, Action<string, Stopwatch> action)
{
return Task.Factory.StartNew(() =>
{
try
{
if (action != null)
{
var watch = StartNewWatch();
action(name, watch);
}
}
catch (Exception ex)
{
TraceLog.WriteError("TaskRun:{0}", ex);
}
});
}
/// <summary>
///
/// </summary>
/// <param name="message"></param>
public void WriteLine(string message)
{
Console.WriteLine("{0}用例>>{1}", Name, message);
}
private Stopwatch StartNewWatch()
{
var watch = new Stopwatch();
watch.Start();
return watch;
}
/// <summary>
///
/// </summary>
/// <param name="msTimeout"></param>
public void ThreadSleep(int msTimeout)
{
Thread.Sleep(msTimeout);
}
/// <summary>
///
/// </summary>
/// <param name="tasks"></param>
/// <param name="timeout"></param>
/// <returns></returns>
public bool TaskWaitAll(Task[] tasks, int timeout = 0)
{
if (timeout > 0)
{
return Task.WaitAll(tasks, timeout);
}
Task.WaitAll(tasks);
return true;
}
}
} | mit |
TOMB5/TOMB5 | SPEC_PSXPC_N/ROOMLET1.H | 87 | #ifndef ROOMLETONE_H
#define ROOMLETONE_H
extern void DrawRoomletListAsmRL1();
#endif | mit |
bjsawyer/Vending-Machine-ng2 | src/app/services/product.service.ts | 1603 | import { Injectable } from '@angular/core';
import { Headers, Http } from '@angular/http';
import 'rxjs/add/operator/toPromise';
import { Product } from '../models/product/product.component';
@Injectable()
export class ProductService {
private headers = new Headers({ 'ContentType': 'application/json' });
private apiUrl = 'app/products';
constructor(private http: Http) { }
// GET all products
getProductListing(): Promise<Product[]> {
return this.http.get(this.apiUrl)
.toPromise()
.then(response => response.json().data as Product[])
.catch(this.handleError);
}
// GET product by ID
getProductById(id: number): Promise<Product> {
let getByIdUrl = this.apiUrl + '/' + id;
return this.http.get(getByIdUrl)
.toPromise()
.then(response => response.json().data as Product)
.catch(this.handleError);
}
// POST new product
addProduct(product: Product) {
return this.http
.post(this.apiUrl, JSON.stringify(product), { headers: this.headers })
.toPromise()
.then(response => response.json().data as Product)
.catch(this.handleError);
}
// PUT update existing product
updateProduct(product: Product): Promise<Product> {
const url = `${this.apiUrl}/${product.id}`;
return this.http
.put(url, JSON.stringify(product), {headers: this.headers})
.toPromise()
.then(() => product)
.catch(this.handleError);
}
private handleError(error: any): Promise<any> {
console.error('An error occurred.', error);
return Promise.reject(error.message || error);
}
}
| mit |
dexman545/TFCWaterCompatibility | src/api/Armor.java | 2174 | package com.bioxx.tfc.api;
public class Armor
{
public static Armor[] armorArray = new Armor[256];
public static Armor leather = new Armor(0, 200, 250, 300, "Leather");//Tier 0
public static Armor leatherQuiver = new Armor(10, 0, 0, 0, "Leather Quiver");//Tier 0
public static Armor copperPlate = new Armor(1, 400, 400, 250, "Copper");//Tier 0
public static Armor bismuthBronzePlate = new Armor(2, 600, 400, 330, "Bismuth Bronze");//Tier 1
public static Armor blackBronzePlate = new Armor(3, 400, 600, 330, "Black Bronze");//Tier 1
public static Armor bronzePlate = new Armor(4, 500, 500, 330, "Bronze");//Tier 1
public static Armor wroughtIronPlate = new Armor(5, 800, 800, 528, "Wrought Iron");//Tier 2
public static Armor steelPlate = new Armor(6, 1000, 1200, 660, "Steel");//Tier 3
public static Armor blackSteelPlate = new Armor(7, 2000, 1800, 1320, "Black Steel");//Tier 4
public static Armor blueSteelPlate = new Armor(8, 2500, 2000, 2000, "Blue Steel");//Tier 5
public static Armor redSteelPlate = new Armor(9, 2000, 2500, 2000, "Red Steel");//Tier 5
private int armorRatingPiercing;
private int armorRatingSlashing;
private int armorRatingCrushing;
public String metaltype;
public int[] baseDurability = new int[] {2500, 3750, 3000, 2500,0};//Helm,Chest,Legs,Boots,back
public int armorId;
public Armor(int id, int piercing, int slashing, int crushing, String material)
{
armorArray[id] = this;
armorId = id;
armorRatingPiercing = piercing;
armorRatingSlashing = slashing;
armorRatingCrushing = crushing;
metaltype = material;
}
public Armor(int id, int piercing, int slashing, int crushing, int[] dura, String material)
{
armorArray[id] = this;
armorId = id;
armorRatingPiercing = piercing;
armorRatingSlashing = slashing;
armorRatingCrushing = crushing;
metaltype = material;
baseDurability = dura.clone();
}
public int getDurability(int slot)
{
return baseDurability[slot];
}
public int getPiercingAR()
{
return armorRatingPiercing;
}
public int getSlashingAR()
{
return armorRatingSlashing;
}
public int getCrushingAR()
{
return armorRatingCrushing;
}
}
| mit |
Betweenart/fiProducts | server/config/environment/index.js | 1137 | 'use strict';
var path = require('path');
var _ = require('lodash');
function requiredProcessEnv(name) {
if(!process.env[name]) {
throw new Error('You must set the ' + name + ' environment variable');
}
return process.env[name];
}
// All configurations will extend these options
// ============================================
var all = {
env: process.env.NODE_ENV,
// Root path of server
root: path.normalize(__dirname + '/../../..'),
// Server port
port: process.env.PORT || 9000,
// Server IP
ip: process.env.IP || '0.0.0.0',
// Should we populate the DB with sample data?
seedDB: false,
// Secret for session, you will want to change this and make it an environment variable
secrets: {
session: 'fi-products-secret'
},
// List of user roles
userRoles: ['guest', 'user', 'admin'],
// MongoDB connection options
mongo: {
options: {
db: {
safe: true
}
}
},
};
// Export the config object based on the NODE_ENV
// ==============================================
module.exports = _.merge(
all,
require('./' + process.env.NODE_ENV + '.js') || {});
| mit |
Bespinoza10/CheffIt_v2.0 | app/controllers/recipes_controller.rb | 944 | class RecipesController < ApplicationController
before_action :find_recipe, only: [:edit, :show, :update, :destroy]
def index
@recipe = Recipe.all.order("created_at DESC")
end
def show
end
def new
@recipe = Recipe.new
end
def create
@recipe = Recipe.new(recipe_params)
if @recipe.save
redirect_to @recipe, notice: "Succesfully Created New Recipe"
else
render 'new'
end
end
def edit
end
def update
if @recipe.update(recipe_params)
redirect_to @recipe
else
render 'edit'
end
end
def destroy
@recipe.destroy
redirect_to root_path, notice: "Succesfully DELETED Recipe"
end
private
def recipe_params
params.require(:recipe).permit(:title, :description, :image, ingredients_attributes: [:id, :name, :_destroy], directions_attributes: [:id, :step, :_destroy])
end
def find_recipe
@recipe = Recipe.find(params[:id])
end
end
| mit |
nowphp/oFrame | oFrame/include/of/addin/oUpload/maxSize.php | 309 | <?php
//最大上传限制
$size = ini_get('upload_max_filesize');
//字节单位转换率
$bits = array('K' => 1024, 'M' => 1048576, 'G' => 1073741824);
//转换成字节
preg_match('@K|M|G@', strtoupper($size), $match) && $size = $bits[$match[0]] * $size;
//输出json
echo '{"maxSize":', (float)$size, '}'; | mit |
zdrjson/DDKit | Algorithm/TrimaBinarySearchTree.java | 655 | /**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
public TreeNode trimBST(TreeNode root, int L, int R) {
if (root == null) return null;
// val not in range, return the left/right subtrees
if (root.val < L) return trimBST(root.right, L, R);
if (root.val > R) return trimBST(root.left, L, R);
// val in [L, R], recusively trim left/right subtrees.
root.left = trimBST(root.left, L, R);
root.right = trimBST(root.right, L, R);
return root;
}
}
| mit |