code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9 values | license stringclasses 15 values | size int32 3 1.05M |
|---|---|---|---|---|---|
package Problems;
import java.io.IOException;
import java.util.Scanner;
/**
* Created by nhs0912 on 2016-12-15.
*/
public class P_10039 {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int sum = 0;
int score = 0;
for (int i = 0; i < 5; i++) {
score = sc.nextInt();
if (score < 40) {
score = 40;
}
sum += score;
}
System.out.println(sum / 5);
}
}
| nhs0912/BOJ | src/Problems/P_10039.java | Java | mit | 520 |
class Worker < ActiveRecord::Base
belongs_to :detail, polymorphic: true, touch: true
has_many :contracts, dependent: :destroy
has_many :tweets, dependent: :destroy
end
| chingor13/cache_debugging | test/dummy/app/models/worker.rb | Ruby | mit | 176 |
require File.join(File.dirname(__FILE__), 'spec_helper')
describe SmsPromote::Gateway do
it "should be possible to create a sms gateway" do
gateway = SmsPromote::Gateway.new API_KEY
gateway.service_url.to_s.should =~ /http:/
gateway.route.should == :basic
gateway = SmsPromote::Gateway.new API_KEY, :secure => true
gateway.service_url.to_s.should =~ /https:/
gateway.originator?.should be_false
gateway.route.should == :basic
gateway = SmsPromote::Gateway.new API_KEY, :originator => "0049170111222333"
gateway.originator?.should be_true
gateway.service_url.to_s.should =~ /http:/
gateway.route.should == :gold
gateway.debug?.should be_false
gateway = SmsPromote::Gateway.new API_KEY, :debug => true
gateway.debug?.should be_true
end
it "should parse responses correctly" do
gateway = SmsPromote::Gateway.new API_KEY, :debug => true
data = gateway.parse_response("100\n123456789\n0\n1\n")
data[:code].should == 100
data[:message_id].should == "123456789"
data[:cost].should == 0
data[:count].should == 1
end
it "should be possible to send a simple debug message" do
gateway = SmsPromote::Gateway.new API_KEY, :debug => true
message = SmsPromote::Message.new('001231231231123', 'Hello World')
gateway.send_message(message)
message.message_id.should_not == nil
message.delivered?.should be_true
end
it "should be possible to send a simple debug message securly" do
gateway = SmsPromote::Gateway.new API_KEY, :debug => true, :secure => true
message = SmsPromote::Message.new('001231231231123', 'Hello World')
gateway.send_message(message)
message.message_id.should_not == nil
message.delivered?.should be_true
end
it "should be possible to return the credits left" do
gateway = SmsPromote::Gateway.new API_KEY, :debug => true
gateway.credits.should >= 0
end
it "should be possible to return the credits left securly" do
gateway = SmsPromote::Gateway.new API_KEY, :debug => true, :secure => true
gateway.secure?.should be_true
gateway.credits.should >= 0
end
it "should encode the params according to the gateway spec" do
SmsPromote::Gateway.encode_params(
:message => txt_file("iso-8859-1")
).should == "message=a%20-%20%E4%0Ao%20-%20%F6%0Au" \
"%20-%20%FC%0AA%20-%20%C4%0AO%20-%20%D6%0AU%20-%20%DC%0As%20-%20%DF"
end
end | threez/smspromote | spec/gateway_spec.rb | Ruby | mit | 2,425 |
class WatchesController < ApplicationController
def create
# puts "In controller Watch.count: #{Watch.count}"
@watch = Watch.new(watch_params)
if !@watch.save
logger.error("Save failed: #{@watch.errors.full_message} #{@watch.inspect}")
end
respond_to do |format|
format.js do
# UGH: This trick puts the same label back as the page had.
@label = params[:label] || ""
render "edit", locals: { row_index: params[:row_index] }
end
end
# puts "Leaving controller Watch.count: #{Watch.count}"
end
def update
# puts "In controller Watch.count: #{Watch.count}"
@watch = current_user.watches.unscope(where: :active).find(params[:id])
if !@watch.update(watch_params)
logger.error("Save failed: #{@watch.errors.full_message} #{@watch.inspect}")
end
respond_to do |format|
format.js do
# UGH: This trick puts the same label back as the page had.
@label = params[:label] || ""
render "edit", locals: { row_index: params[:row_index] }
end
end
# puts "@watch.active: #{@watch.active}"
# puts "Leaving controller Watch.count: #{Watch.count}"
end
private
def watch_params
params.require(:watch).permit(:active,
:id,
:user_id,
:watched_id,
:watched_type)
end
end
| weenhanceit/outages | app/controllers/watches_controller.rb | Ruby | mit | 1,336 |
using System.Windows.Controls;
namespace Accelerider.Windows.Modules.NetDisk.Views.Dialogs
{
/// <summary>
/// Interaction logic for SelectNetDiskTypeDialog.xaml
/// </summary>
public partial class SelectNetDiskTypeDialog : UserControl
{
public SelectNetDiskTypeDialog()
{
InitializeComponent();
}
}
}
| ResourceHunter/BaiduPanDownloadWpf | Source/Accelerider.Windows.Modules.NetDisk/Views/Dialogs/SelectNetDiskTypeDialog.xaml.cs | C# | mit | 366 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="gl" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BillaryCoin</source>
<translation>Acerca de BillaryCoin</translation>
</message>
<message>
<location line="+39"/>
<source><b>BillaryCoin</b> version</source>
<translation>Versión <b>BillaryCoin</b> .</translation>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The BillaryCoin 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 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 (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>
Isto é software experimental.
Distribuído baixo a licencia de software MIT/X11, véxase o arquivo que acompaña COPYING ou http://www.opensource.org/licenses/mit-license.php.
Este produto inclúe software desenvolvido polo OpenSSL Project para o uso no OpenSSL Toolkit (http://www.openssl.org/) e software criptográfico escrito por Eric Young (eay@cryptsoft.com) e software UPnP escrito por Thomas Bernard.</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Libreta de direccións</translation>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Doble click para editar a dirección ou a etiqueta</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Crear unha nova dirección</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copiar a dirección seleccionada ao cartafol</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>&Nova dirección.</translation>
</message>
<message>
<location line="-46"/>
<source>These are your BillaryCoin 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>Estas son as túas dIreccións de BillaryCoin para recibir os pagos. Pode que quieras asignarlle unha a cada remitente e así reconocer quen te está a pagar.</translation>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Copiar Dirección</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>Amosar &QR Code</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a BillaryCoin address</source>
<translation>Firma a mensaxe para probar que tes unha dirección BillaryCoin</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Firmar &Mensaxe</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Borrar a dirección actualmente seleccionada da listaxe</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified BillaryCoin address</source>
<translation>Verifica a mensaxe para asegurar que foi asinada por unha concreta dirección de BillaryCoin</translation>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation>&Verificar Mensaxe.</translation>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Borrar</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Copiar &Etiqueta</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Modificar</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation>Exportar datos da libreta de direccións.</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Arquivo separado por comas (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Error exportando</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Non se puido escribir a arquivo %1</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Dirección</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(sen etiqueta)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Diálogo de Contrasinal</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Introduce contrasinal</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Novo contrasinal</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Repite novo contrasinal</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>Para "staking" só</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<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>Introduce o novo contrasinal ao moedeiro.<br/>Por favor empregue un contrasinal de <b>10 ou máis caracteres aleatorios</b>, ou <b>oito ou máis palabras</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Encriptar moedeiro</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Esta operación precisa o contrasinal do teu moedeiro para desbloquear o moedeiro.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Desbloquear moedeiro</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Esta operación precisa o contrasinal do teu moedeiro para desencriptar o moedeiro.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Desencriptar moedeiro</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Cambiar contrasinal</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Introduce o vello e novo contrasinais no moedeiro.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Confirmar encriptación de moedeiro</translation>
</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>Coidado: Se enctriptas a tua carteira e perdes o contrasinal, <b>PERDERÁS TODAS AS TÚAS MOEDAS</b>!</translation>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Estás seguro de que desexas encriptar o teu moedeiro?</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>IMPORTANTE: Calquera copia de seguridade previa que fixeses do teu arquivo de moedeiro debería ser substituída polo recén xerado arquivo encriptado de moedeiro. Por razóns de seguridade, as copias de seguridade previas de un arquivo de moedeiro desencriptado tornaránse inútiles no momento no que comeces a emprega-lo novo, encriptado, moedeiro.</translation>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Precaución: A tecla de Bloqueo de Maiúsculas está activada!</translation>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Moedeiro encriptado</translation>
</message>
<message>
<location line="-58"/>
<source>BillaryCoin 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>BillaryCoin pecharase agora para rematar o proceso de encriptación. Recorda que encriptar a túa carteira non te protexe na totalidade do roubo das tuas moedas por infeccións de malware no teu ordenador.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Encriptación de moedeiro fallida</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>A encriptación do moedeiro fallou por mor dun erro interno. O teu moedeiro non foi encriptado.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>Os contrasinais suministrados non coinciden.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>Desbloqueo de moedeiro fallido</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>O contrasinal introducido para a desencriptación do moedeiro foi incorrecto.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Desencriptación de moedeiro fallida</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Cambiouse con éxito o contrasinal do moedeiro.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+280"/>
<source>Sign &message...</source>
<translation>&Asinar mensaxe...</translation>
</message>
<message>
<location line="+242"/>
<source>Synchronizing with network...</source>
<translation>Sincronizando coa rede...</translation>
</message>
<message>
<location line="-308"/>
<source>&Overview</source>
<translation>&Vista xeral</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Amosar vista xeral do moedeiro</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Transacciones</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Navegar historial de transaccións</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation>&Libreta de Direccións</translation>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Edita a lista de direccións e etiquetas almaceadas</translation>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation>&Recibe moedas</translation>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Amosa a lista de dirección para recibir os pagos</translation>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation>&Enviar moedas</translation>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>&Saír</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Saír da aplicación</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about BillaryCoin</source>
<translation>Amosa información sobre BillaryCoin</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Acerca de &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Amosar información acerca de Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Opcións...</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>&Encriptar Moedeiro...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>Copia de &Seguridade do Moedeiro...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Cambiar contrasinal...</translation>
</message>
<message numerus="yes">
<location line="+250"/>
<source>~%n block(s) remaining</source>
<translation><numerusform>~%n bloque restante</numerusform><numerusform>~%n bloques restantes</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation>Descargado %1 de %2 bloques de historial de transaccións (%3% feito).</translation>
</message>
<message>
<location line="-247"/>
<source>&Export...</source>
<translation>&Exportar...</translation>
</message>
<message>
<location line="-62"/>
<source>Send coins to a BillaryCoin address</source>
<translation>Enviar moedas a unha dirección BillaryCoin</translation>
</message>
<message>
<location line="+45"/>
<source>Modify configuration options for BillaryCoin</source>
<translation>Modificar opcións de configuración para BillaryCoin</translation>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation>Exportar datos da pestana actual a un arquivo</translation>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation>Encriptar ou desencriptar carteira</translation>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation>Facer copia de seguridade do moedeiro noutra localización</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Cambiar o contrasinal empregado para a encriptación do moedeiro</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation>Ventana de &Depuración</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Abrir consola de depuración e diagnóstico</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Verificar mensaxe...</translation>
</message>
<message>
<location line="-200"/>
<source>BillaryCoin</source>
<translation>BillaryCoin</translation>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Moedeiro</translation>
</message>
<message>
<location line="+178"/>
<source>&About BillaryCoin</source>
<translation>&Sobre BillaryCoin</translation>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Amosar/Agachar</translation>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation>Desbloquear carteira</translation>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation>&Bloquear Carteira</translation>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation>Bloquear carteira</translation>
</message>
<message>
<location line="+34"/>
<source>&File</source>
<translation>&Arquivo</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>Axus&tes</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>A&xuda</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Barra de ferramentas</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>BillaryCoin client</source>
<translation>Cliente BillaryCoin</translation>
</message>
<message numerus="yes">
<location line="+70"/>
<source>%n active connection(s) to BillaryCoin network</source>
<translation><numerusform>%n conexión activa á red de BillaryCoin</numerusform><numerusform>%n conexións activas á red de BillaryCoin</numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation>Descargados %1 bloques do historial de transaccións.</translation>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation>"Staking".<br>O teu peso na rede é %1<br>O peso da rede é %2<br>Tempo esperado para gañar a recompensa %3</translation>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation>Non "staking" porque a carteira está bloqueada</translation>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation>Non "staking" porque a carteira está sen conexión</translation>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation>Non "staking" porque a carteira está a sincronizar.</translation>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation>Non "staking" porque non tes moedas maduras</translation>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation><numerusform>Fai %n segundo</numerusform><numerusform>Fai %n segundos</numerusform></translation>
</message>
<message>
<location line="-284"/>
<source>&Unlock Wallet...</source>
<translation>&Desbloquear Carteira...</translation>
</message>
<message numerus="yes">
<location line="+288"/>
<source>%n minute(s) ago</source>
<translation><numerusform>Fai %n minuto</numerusform><numerusform>Fai %n minutos</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation><numerusform>Fai %n hora</numerusform><numerusform>Fai %n horas</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation><numerusform>Fai %n día</numerusform><numerusform>Fai %n días</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Actualizado</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Poñendo ao día...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation>Último bloque recibido foi generado %1.</translation>
</message>
<message>
<location line="+59"/>
<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="+5"/>
<source>Confirm transaction fee</source>
<translation>Confirmar cuota da transacción</translation>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Transacción enviada</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Transacción entrante</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Data: %1
Cantidade: %2
Tipo: %3
Dirección: %4
</translation>
</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 BillaryCoin address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>O moedeiro está <b>encriptado</b> e actualmente <b>desbloqueado</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>O moedeiro está <b>encriptado</b> e actualmente <b>bloqueado</b></translation>
</message>
<message>
<location line="+25"/>
<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="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation><numerusform>%n hora</numerusform><numerusform>%n horas</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n día</numerusform><numerusform>%n días</numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation>Non "staking"</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. BillaryCoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Alerta de Rede</translation>
</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>Cantidade:</translation>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Importe:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation>Prioridade:</translation>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation>Pago:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation>non</translation>
</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>Cambiar:</translation>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation>(des)selecciona todo</translation>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation>Modo árbore</translation>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation>Modo lista</translation>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Cantidade</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Dirección</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation>Confirmacións</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Confirmado</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation>Prioridade</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Copiar dirección</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar etiqueta</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Copiar cantidade</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation>Copiar ID de transacción</translation>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation>Copiar cantidade</translation>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation>Copiar pago</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Copiar despóis do pago</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Copiar prioridade</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Copiar cambio</translation>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation>O máis alto</translation>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation>alto</translation>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation>medio-alto</translation>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation>medio-baixo</translation>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation>baixo</translation>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation>o máis baixo</translation>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation>Si</translation>
</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="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(sen etiqueta)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation>(cambio)</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Modificar Dirección</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Etiqueta</translation>
</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>&Dirección</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 type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Nova dirección para recibir</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Nova dirección para enviar</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Modificar dirección para recibir</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Modificar dirección para enviar</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>A dirección introducida "%1" xa está no libro de direccións.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid BillaryCoin address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Non se puido desbloquear o moedeiro.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>A xeración de nova clave fallou.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>BillaryCoin-Qt</source>
<translation>BillaryCoin-Qt</translation>
</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>Opcións 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>Comezar minimizado</translation>
</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>Opcións</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Principal</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. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Pagar &tarifa da transacción</translation>
</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>Reserva</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start BillaryCoin after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start BillaryCoin on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Rede</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the BillaryCoin 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>Mapear porto empregando &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the BillaryCoin 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>&IP do Proxy:</translation>
</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>&Porto:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Porto do proxy (exemplo: 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>&Version de SOCKS:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>Versión SOCKS del proxy (exemplo: 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Xanela</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Amosar so un icono na bandexa tras minimiza-la xanela.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimizar á bandexa en lugar de á barra de tarefas.</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>Minimizar en lugar de saír da aplicación cando se pecha a xanela. Cando se habilita esta opción, a aplicación so se pechará tras seleccionar Saír no menú.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimizar ao pechar</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Visualización</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>&Linguaxe de interface de usuario:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting BillaryCoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Unidade na que amosar as cantidades:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Escolle a unidade de subdivisión por defecto para amosar na interface e ao enviar moedas.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show BillaryCoin addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Visualizar direccións na listaxe de transaccións</translation>
</message>
<message>
<location line="+7"/>
<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="+71"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Cancelar</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>por defecto</translation>
</message>
<message>
<location line="+149"/>
<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 BillaryCoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>A dirección de proxy suministrada é inválida.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Formulario</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the BillaryCoin network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>Sen confirmar:</translation>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Moedeiro</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation>O teu balance actualmente dispoñible</translation>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation>Inmaduro:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>O balance minado todavía non madurou</translation>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation>Total:</translation>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation>O teu balance actual total</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Transaccións recentes</b></translation>
</message>
<message>
<location line="-108"/>
<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="-29"/>
<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="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>non sincronizado</translation>
</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>Nome do cliente</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="+348"/>
<source>N/A</source>
<translation>N/A</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Versión do cliente</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Información</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Usar versión OpenSSL</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Tempo de arranque</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Rede</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Número de conexións</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Cadea de bloques</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Número actual de bloques</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Bloques totais estimados</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Hora do último bloque</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Abrir</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the BillaryCoin-Qt help message to get a list with possible BillaryCoin 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>&Consola</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Data de construción</translation>
</message>
<message>
<location line="-104"/>
<source>BillaryCoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>BillaryCoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Arquivo de log de depuración</translation>
</message>
<message>
<location line="+7"/>
<source>Open the BillaryCoin 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>Limpar consola</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the BillaryCoin 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>Emprega as flechas arriba e abaixo para navegar polo historial, e <b>Ctrl-L</b> para limpar a pantalla.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Escribe <b>axuda</b> para unha vista xeral dos comandos dispoñibles.</translation>
</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>Moedas Enviadas</translation>
</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>Cantidade:</translation>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Importe:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 BC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation>Prioridade:</translation>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation>Pago:</translation>
</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>Enviar a múltiples receptores á vez</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Engadir &Receptor</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>Limpar &Todo</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Balance:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 BC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Confirmar a acción de envío</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>&Enviar</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a BillaryCoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation>Copiar cantidade</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Copiar cantidade</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation>Copiar pago</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Copiar despóis do pago</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Copiar prioridade</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Copiar cambio</translation>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Confirmar envío de moedas</translation>
</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>A dirección de recepción non é válida, por favor compróbea.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>A cantidade a pagar debe ser maior que 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>A cantidade sobrepasa o teu balance.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>O total sobrepasa o teu balance cando se inclúe a tarifa de transacción %1.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Atopouse dirección duplicada, so se pode enviar a cada dirección unha vez por operación.</translation>
</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="+251"/>
<source>WARNING: Invalid BillaryCoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(sen etiqueta)</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>&Cantidade:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Pagar &A:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Introduce unha etiqueta para esta dirección para engadila ao teu libro de direccións</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Etiqueta:</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</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>Pegar dirección dende portapapeis</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 type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a BillaryCoin 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>Sinaturas - Asinar / Verificar unha Mensaxe</translation>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation>&Asinar Mensaxe</translation>
</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>Podes asinar mensaxes coas túas direccións para probar que ti as posees. Ten conta de non asinar nada vago, xa que hai ataques de phishing que tentarán que asines coa túa identidade por riba deles. Asina únicamente declaracións totalmente detalladas coas que esteas de acordo.</translation>
</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>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Pegar dirección dende portapapeis</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>Introduce a mensaxe que queres asinar aquí</translation>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Copiar a sinatura actual ao portapapeis do sistema</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this BillaryCoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation>Restaurar todos os campos de sinatura de mensaxe</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Limpar &Todo</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation>&Verificar Mensaxe</translation>
</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>Introduce a dirección coa que asinar, a mensaxe (asegúrate de copiar exactamente os saltos de liña, espacios, tabulacións, etc.) e a sinatura debaixo para verificar a mensaxe. Ten coidado de non ler máis na sinatura do que hai no mensaxe asinado mesmo, a fin de evitar ser cazado nun ataque de home no medio.</translation>
</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 BillaryCoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation>Restaurar todos os campos de verificación de mensaxe</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a BillaryCoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Click en "Asinar Mensaxe" para xerar sinatura</translation>
</message>
<message>
<location line="+3"/>
<source>Enter BillaryCoin signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>A dirección introducida é inválida.</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>Por favor comproba a dirección e proba de novo.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>A dirección introducida non se refire a ninguna clave.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>Cancelouse o desbloqueo do moedeiro.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>A clave privada da dirección introducida non está dispoñible.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Fallou a sinatura da mensaxe.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Mensaxe asinada.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>A sinatura non puido ser decodificada.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Por favor revise a sinatura e probe de novo.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>A sinatura non coincide co resumo da mensaxe.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>A verificación da mensaxe fallou.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Mensaxe verificada.</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Aberto ata %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/fóra de liña</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/sen confirmar</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 confirmacións</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Estado</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, propagado a % nodo</numerusform><numerusform>, propagado a % nodos</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Orixe</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Xerado</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Dende</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>A</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>dirección propia</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>etiqueta</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Crédito</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>madura nun bloque máis</numerusform><numerusform>madura en %n bloques máis</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>non aceptado</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Débito</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Tarifa de transacción</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Cantidade neta</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Mensaxe</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Comentario</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID de Transacción</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 type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Información de depuración</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Transacción</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation>Entradas</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Cantidade</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>verdadeiro</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>falso</translation>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, non foi propagado con éxito todavía</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>descoñecido</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Detalles de transacción</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Este panel amosa unha descripción detallada da transacción</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Dirección</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Cantidade</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Aberto ata %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Confirmado (%1 confirmacións)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Abrir para %n bloque máis</numerusform><numerusform>Abrir para %n bloques máis</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>Este bloque non foi recibido por ningún outro nodo e probablemente non será aceptado!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Xerado pero non aceptado</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Recibido con</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Recibido de</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Enviado a</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Pago a ti mesmo</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Minado</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(n/a)</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Estado da transacción. Pasa por riba deste campo para amosar o número de confirmacións.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Data e hora na que foi recibida a transacción.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Tipo de transacción.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Dirección de destino da transacción.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Cantidade borrada ou engadida no balance.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Todo</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Hoxe</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Esta semana</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Este mes</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>O último mes</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Este ano</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Periodo...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Recibido con</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Enviado a</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>A ti mesmo</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Minado</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Outro</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Introduce dirección ou etiqueta para buscar</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Cantidade mínima</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Copiar dirección</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar etiqueta</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Copiar cantidade</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Copiar ID de transacción</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Modificar etiqueta</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Amosar detalles da transacción</translation>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Arquivo separado por comas (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Confirmado</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Dirección</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Cantidade</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</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>Periodo:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>a</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>BillaryCoin version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Emprego:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or billarycoind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Listar comandos</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Obter axuda para un comando</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Opcións:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: billarycoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: billarycoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation>Especificar arquivo do moedeiro (dentro do directorio de datos)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Especificar directorio de datos</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Fixar tamaño da caché da base de datos en megabytes (por defecto: 25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 6791 or testnet: 16791)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Manter como moito <n> conexións con pares (por defecto: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Conectar a nodo para recuperar direccións de pares, e desconectar</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Especificar a túa propia dirección pública</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Umbral para desconectar pares con mal comportamento (por defecto: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Número de segundos para manter sen reconectar aos pares con mal comportamento (por defecto: 86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>Ocorreu un erro mentres se establecía o porto RPC %u para escoitar sobre IPv4: %s</translation>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<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="-5"/>
<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="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 6792 or testnet: 16792)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Aceptar liña de comandos e comandos JSON-RPC</translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Executar no fondo como un demo e aceptar comandos</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Empregar a rede de proba</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Aceptar conexións de fóra (por defecto: 1 se non -proxy ou -connect)</translation>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>Ocorreu un erro mentres se establecía o porto RPC %u para escoitar sobre IPv6, voltando a IPv4: %s</translation>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>Precaución: -paytxfee está posto moi algo! Esta é a tarifa de transacción que ti pagarás se envías unha transacción.</translation>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong BillaryCoin will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation>Precaución: erro lendo wallet.dat! Tódalas claves lidas correctamente, pero os datos de transacción ou as entradas do libro de direccións podrían estar ausentes ou incorrectos.</translation>
</message>
<message>
<location line="-18"/>
<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>Precaución: wallet.dat corrupto, datos salvagardados! O wallet.dat orixinal foi gardado como wallet.{timestamp}.bak en %s; se o teu balance ou transaccións son incorrectas deberías restauralas dende unha copia de seguridade.</translation>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Tentar recuperar claves privadas dende un wallet.dat corrupto</translation>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation>Opcións de creación de bloque:</translation>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation>Conectar so ao(s) nodo(s) especificado(s)</translation>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Descobrir dirección IP propia (por defecto: 1 se á escoita e non -externalip)</translation>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Fallou escoitar en calquera porto. Emprega -listen=0 se queres esto.</translation>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<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="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Máximo buffer por-conexión para recibir, <n>*1000 bytes (por defecto: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Máximo buffer por-conexión para enviar, <n>*1000 bytes (por defecto: 1000)</translation>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>Conectar so a nodos na rede <net> (IPv4, IPv6 ou Tor)</translation>
</message>
<message>
<location line="+28"/>
<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="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation>Opcións SSL: (ver ńa Wiki Bitcoin as instrucción de configuración de SSL)</translation>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Enviar traza/información de depuración á consola en lugar de ao arquivo debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<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>Fixar tamaño mínimo de bloque en bytes (por defecto: 0)</translation>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Recortar o arquivo debug.log ao arrancar o cliente (por defecto: 1 cando no-debug)</translation>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Especificar tempo límite da conexión en milisegundos (por defecto: 5000)</translation>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Usar UPnP para mapear o porto de escoita (por defecto: 0)</translation>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Usar UPnP para mapear o porto de escoita (por defecto: 1 se á escoita)</translation>
</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="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>Nome de usuario para conexións JSON-RPC</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Precaución: Esta versión é obsoleta, precísase unha actualización!</translation>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat corrupto, fallou o gardado</translation>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>Contrasinal para conexións JSON-RPC</translation>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=billarycoinrpc
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 "BillaryCoin Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<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="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Permitir conexións JSON-RPC dende direccións IP especificadas</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Enviar comandos a nodo executando na <ip> (por defecto: 127.0.0.1)</translation>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Executar comando cando o mellor bloque cambie (%s no comando é sustituído polo hash do bloque)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Executar comando cando unha transacción do moedeiro cambia (%s no comando é substituído por TxID)</translation>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</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>Actualizar moedeiro ao formato máis recente</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Fixar tamaño do pool de claves a <n> (por defecto: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Rescanear transaccións ausentes na cadea de bloques</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<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="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Empregar OpenSSL (https) para conexións JSON-RPC</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Arquivo de certificado do servidor (por defecto: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Clave privada do servidor (por defecto: server.perm)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Esta mensaxe de axuda</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. BillaryCoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>BillaryCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Imposible enlazar con %s neste ordenador (enlace devolveu erro %d, %s)</translation>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Permitir lookup de DNS para -addnote, -seednote e -connect</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Cargando direccións...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Erro cargando wallet.dat: Moedeiro corrupto</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of BillaryCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart BillaryCoin to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Erro cargando wallet.dat</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Dirección -proxy inválida: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Rede descoñecida especificada en -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Versión solicitada de proxy -socks descoñecida: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Non se pode resolver a dirección -bind: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Non se pode resolver dirección -externalip: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Cantidade inválida para -paytxfee=<cantidade>: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Cantidade inválida</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Fondos insuficientes</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Cargando índice de bloques...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Engadir un nodo ao que conectarse e tentar manter a conexión aberta</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. BillaryCoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Cargando moedeiro...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>Non se pode desactualizar o moedeiro</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>Non se pode escribir a dirección por defecto</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Rescaneando...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Carga completa</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>Empregar a opción %s</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Erro</translation>
</message>
<message>
<location line="+6"/>
<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>Debes fixar rpcpassword=<contrasinal> no arquivo de configuración:
%s
Se o arquivo non existe, debes crealo con permisos de so lectura para o propietario.</translation>
</message>
</context>
</TS> | Billary/BillaryCoinSource | src/qt/locale/bitcoin_gl.ts | TypeScript | mit | 120,750 |
(function(window, factory) {
if (typeof define === 'function' && define.amd) {
define([], function() {
return factory();
});
} else if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = factory();
} else {
(window.LocaleData || (window.LocaleData = {}))['de_LU@euro'] = factory();
}
}(typeof window !== "undefined" ? window : this, function() {
return {
"LC_ADDRESS": {
"postal_fmt": "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N",
"country_name": "Luxemburg",
"country_post": null,
"country_ab2": "LU",
"country_ab3": "LUX",
"country_num": 442,
"country_car": "L",
"country_isbn": null,
"lang_name": "Deutsch",
"lang_ab": "de",
"lang_term": "deu",
"lang_lib": "ger"
},
"LC_MEASUREMENT": {
"measurement": 1
},
"LC_MESSAGES": {
"yesexpr": "^[+1jJyY]",
"noexpr": "^[-0nN]",
"yesstr": "ja",
"nostr": "nein"
},
"LC_MONETARY": {
"currency_symbol": "\u20ac",
"mon_decimal_point": ",",
"mon_thousands_sep": ".",
"mon_grouping": [
3,
3
],
"positive_sign": "",
"negative_sign": "-",
"frac_digits": 2,
"p_cs_precedes": 1,
"p_sep_by_space": 1,
"n_cs_precedes": 1,
"n_sep_by_space": 1,
"p_sign_posn": 4,
"n_sign_posn": 4,
"int_curr_symbol": "EUR ",
"int_frac_digits": 2,
"int_p_cs_precedes": null,
"int_p_sep_by_space": null,
"int_n_cs_precedes": null,
"int_n_sep_by_space": null,
"int_p_sign_posn": null,
"int_n_sign_posn": null
},
"LC_NAME": {
"name_fmt": "%d%t%g%t%m%t%f",
"name_gen": null,
"name_mr": null,
"name_mrs": null,
"name_miss": null,
"name_ms": null
},
"LC_NUMERIC": {
"decimal_point": ",",
"thousands_sep": ".",
"grouping": [
3,
3
]
},
"LC_PAPER": {
"height": 297,
"width": 210
},
"LC_TELEPHONE": {
"tel_int_fmt": "+%c %a %l",
"tel_dom_fmt": null,
"int_select": "00",
"int_prefix": "352"
},
"LC_TIME": {
"date_fmt": "%a %b %e %H:%M:%S %Z %Y",
"abday": [
"So",
"Mo",
"Di",
"Mi",
"Do",
"Fr",
"Sa"
],
"day": [
"Sonntag",
"Montag",
"Dienstag",
"Mittwoch",
"Donnerstag",
"Freitag",
"Samstag"
],
"week": [
7,
19971130,
4
],
"abmon": [
"Jan",
"Feb",
"M\u00e4r",
"Apr",
"Mai",
"Jun",
"Jul",
"Aug",
"Sep",
"Okt",
"Nov",
"Dez"
],
"mon": [
"Januar",
"Februar",
"M\u00e4rz",
"April",
"Mai",
"Juni",
"Juli",
"August",
"September",
"Oktober",
"November",
"Dezember"
],
"d_t_fmt": "%a %d %b %Y %T %Z",
"d_fmt": "%Y-%m-%d",
"t_fmt": "%T",
"am_pm": [
"",
""
],
"t_fmt_ampm": "",
"era": null,
"era_year": null,
"era_d_t_fmt": null,
"era_d_fmt": null,
"era_t_fmt": null,
"alt_digits": null,
"first_weekday": 2,
"first_workday": null,
"cal_direction": null,
"timezone": null
}
};
}));
| jsor/locale-data | data/de_LU@euro.js | JavaScript | mit | 4,447 |
/*
* AStar.hpp
*
* Created on: 10.07.2014
* Author: lowkey
*/
#ifndef ASTAR_HPP_
#define ASTAR_HPP_
#include "DungeonGenerator.hpp"
#include <vector>
#include <algorithm>
#include <cassert>
#include <iostream>
typedef std::vector<Position> Path;
template<class CostCalculatorType>
class AStar {
public:
AStar(Position limits, CostCalculatorType costCalculator=CostCalculatorType()) : _limits(limits), _costCalculator(costCalculator) {}
Path searchPath(Position start, Position target);
private:
struct Node {
Position position;
float costs;
int32_t prevFieldIndex;
uint16_t pathLength;
Node(Position position, float costs, int32_t prevFieldIndex, uint16_t pathLength)
: position(position), costs(costs), prevFieldIndex(prevFieldIndex), pathLength(pathLength) {}
bool operator>(const Node& o)const {
return costs>o.costs;
}
};
typedef std::greater<Node> NodeComp;
Path buildPath(const Node& targetNode)const;
void processSuccessor(std::size_t prevIndex, const Node& prevNode, Position posOffset, Position target);
std::vector<Node> _openList;
std::map<Position, std::size_t> _closedSet;
std::vector<Node> _closedList;
const Position _limits;
const CostCalculatorType _costCalculator;
};
template<class CostCalculatorType>
inline AStar<CostCalculatorType> createPathFinder(Position limits, CostCalculatorType costCalculator=CostCalculatorType()) {
return AStar<CostCalculatorType>(limits, costCalculator);
}
template<class CostCalculatorType>
Path AStar<CostCalculatorType>::searchPath(Position start, Position target) {
_openList.clear();
_closedList.clear();
_closedSet.clear();
_openList.emplace_back(start, 0, -1, 1);
std::push_heap(_openList.begin(), _openList.end(), NodeComp());
while( !_openList.empty() ) {
// add to closed list
auto fieldIndex = _closedList.size();
_closedList.push_back(_openList.front());
auto& field = _closedList.back();
_closedSet[field.position]=fieldIndex;
assert( _closedSet.find(field.position)!=_closedSet.end() );
// remove from open list
std::pop_heap(_openList.begin(), _openList.end(), NodeComp());
_openList.pop_back();
assert(field.costs<=_openList.front().costs);
// target reached
if( field.position==target )
return buildPath(field);
for( auto i : {-1,1} ) {
processSuccessor( fieldIndex, field, Position{i,0}, target );
processSuccessor( fieldIndex, field, Position{0,i}, target );
}
}
return Path();
}
template<class CostCalculatorType>
Path AStar<CostCalculatorType>::buildPath(const Node& targetField)const {
Path path(targetField.pathLength-1);
const Node* f = &targetField;
for(auto i=path.size()-1; f->prevFieldIndex>=0; i--, f=&_closedList[f->prevFieldIndex] ) {
assert(i>=0);
path[i] = f->position;
}
return path;
}
template<class CostCalculatorType>
void AStar<CostCalculatorType>::processSuccessor(std::size_t prevIndex, const Node& prevNode, Position posOffset, Position target) {
const Position pos = posOffset+prevNode.position;
const float costs = prevNode.costs + _costCalculator(
prevNode.prevFieldIndex>=0 ? _closedList[prevNode.prevFieldIndex].position : prevNode.position,
prevNode.position,
pos,
target);
if( pos.x<=0 || pos.x>=_limits.x-1 || pos.y<=0 || pos.y>=_limits.y-1 || costs>=10000 )
return;
if( _closedSet.find(pos)==_closedSet.end() ) {
for(std::size_t i=0; i<_openList.size(); ++i) {
Node& n = _openList[i];
if( n.position==pos ) {
// update score and path
if( costs<n.costs ) {
n.costs=costs;
n.prevFieldIndex = prevIndex;
n.pathLength = prevNode.pathLength+1;
// reorder heap
std::make_heap(_openList.begin(), _openList.end(), NodeComp());
}
return;
}
}
// not in open or closed list
_openList.emplace_back(pos, costs, prevIndex, prevNode.pathLength+1);
std::push_heap(_openList.begin(), _openList.end(), NodeComp());
}
}
#endif /* ASTAR_HPP_ */
| lowkey42/test-dungeonGen | dungeon-gen/src/AStar.hpp | C++ | mit | 3,966 |
/*
* This file is part of the Photomaton-mobile package.
*
* (c) Romain Lamarche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#include "gphotolistcamerascommand.h"
#include "gphoto/gphotocameracontroller.h"
GPhotoListCamerasCommand::GPhotoListCamerasCommand(QObject *parent) :
AbstractGPhotoCommand(parent)
{
}
void GPhotoListCamerasCommand::execute(GPhotoCameraController* controller)
{
QList<GPhotoCameraHandle> detectedCameras = controller->internalDetectCameras();
// emit camerasDetected(detectedCameras);
}
| rlamarche/photomaton-mobile | gphoto/commands/gphotolistcamerascommand.cpp | C++ | mit | 621 |
package chip8
import (
"testing"
)
func Test0xAnnn(t *testing.T) {
c := New([]byte{
0xAF, 0xFF,
})
c.Step()
if c.i != 0xFFF {
t.Error("i was not set to 0xFFF as expected")
}
}
| pmcatominey/gochip8 | chip8/instructions_a_test.go | GO | mit | 190 |
import { Component} from '@angular/core';
import {RenderingUIAbstractComponent} from "../../../main/components/rendering-iu/rendering-ui.abstract.component";
@Component({
selector:'gota-home-content',
moduleId : module.id || __moduleName,
templateUrl: './product-detail-content.component.html',
styleUrls: ['./product-detail-content.component.css']
})
export class ProductDetailContentContentComponent extends RenderingUIAbstractComponent {
renderUI() {
}
} | caohonghiep/gota | client/products/components/product-detail-content/product-detail-content.component.ts | TypeScript | mit | 485 |
#include "mouse.h"
//////////////////////////////////////////////////////////////////////////
// RAY //
//////////////////////////////////////////////////////////////////////////
RAY::RAY()
{
org = dir = D3DXVECTOR3(0.0f, 0.0f, 0.0f);
}
RAY::RAY(D3DXVECTOR3 o, D3DXVECTOR3 d)
{
org = o;
dir = d;
}
float RAY::Intersect(MESHINSTANCE iMesh)
{
if(iMesh.m_pMesh == NULL)return -1.0f;
return Intersect(iMesh.m_pMesh->m_pMesh);
}
float RAY::Intersect(BBOX bBox)
{
if(D3DXBoxBoundProbe(&bBox.min, &bBox.max, &org, &dir))
return D3DXVec3Length(&(((bBox.min + bBox.max) / 2.0f) - org));
else return -1.0f;
}
float RAY::Intersect(BSPHERE bSphere)
{
if(D3DXSphereBoundProbe(&bSphere.center, bSphere.radius, &org, &dir))
return D3DXVec3Length(&(bSphere.center - org));
else return -1.0f;
}
float RAY::Intersect(ID3DXMesh* mesh)
{
if(mesh == NULL)return -1.0f;
// Collect only the closest intersection
BOOL hit;
DWORD dwFace;
float hitU, hitV, dist;
D3DXIntersect(mesh, &org, &dir, &hit, &dwFace, &hitU, &hitV, &dist, NULL, NULL);
if(hit) return dist;
else return -1.0f;
}
//////////////////////////////////////////////////////////////////////////
// MOUSE //
//////////////////////////////////////////////////////////////////////////
MOUSE::MOUSE()
{
m_type = 0;
m_pMouseTexture = NULL;
m_pMouseDevice = NULL;
m_speed = 1.5f;
}
MOUSE::~MOUSE()
{
if(m_pMouseDevice != NULL)
m_pMouseDevice->Release();
if(m_pMouseTexture != NULL)
m_pMouseTexture->Release();
}
void MOUSE::InitMouse(IDirect3DDevice9* Dev, HWND wnd)
{
try
{
m_pDevice = Dev;
//Load texture and init sprite
D3DXCreateTextureFromFile(m_pDevice, "cursor/cursor.dds", &m_pMouseTexture);
D3DXCreateSprite(m_pDevice, &m_pSprite);
//Get directinput object
LPDIRECTINPUT8 directInput = NULL;
DirectInput8Create(GetModuleHandle(NULL), // Retrieves the application handle
0x0800, // v.8.0
IID_IDirectInput8, // Interface ID
(VOID**)&directInput, // Our DirectInput Object
NULL);
//Acquire Default System mouse
directInput->CreateDevice(GUID_SysMouse, &m_pMouseDevice, NULL);
m_pMouseDevice->SetDataFormat(&c_dfDIMouse);
m_pMouseDevice->SetCooperativeLevel(wnd, DISCL_EXCLUSIVE | DISCL_FOREGROUND);
m_pMouseDevice->Acquire();
//Get m_viewport size and init mouse location
D3DVIEWPORT9 v;
m_pDevice->GetViewport(&v);
m_viewport.left = v.X;
m_viewport.top = v.Y;
m_viewport.right = v.X + v.Width;
m_viewport.bottom = v.Y + v.Height;
x = v.X + v.Width / 2;
y = v.Y + v.Height / 2;
//Release Direct Input Object
directInput->Release();
//Create Mouse Sphere
D3DXCreateSphere(m_pDevice, 0.2f, 5, 5, &m_pSphereMesh, NULL);
//Create Ball Material
m_ballMtrl.Diffuse = D3DXCOLOR(1.0f, 1.0f, 0.0f, 1.0f);
m_ballMtrl.Specular = m_ballMtrl.Ambient = m_ballMtrl.Emissive = D3DXCOLOR(0.0f, 0.0f, 0.0f, 1.0f);
}
catch(...)
{
debug.Print("Error in MOUSE::InitMouse()");
}
}
bool MOUSE::ClickLeft()
{
return m_mouseState.rgbButtons[0] != 0;
}
bool MOUSE::ClickRight()
{
return m_mouseState.rgbButtons[1] != 0;
}
bool MOUSE::WheelUp()
{
return m_mouseState.lZ > 0.0f;
}
bool MOUSE::WheelDown()
{
return m_mouseState.lZ < 0.0f;
}
bool MOUSE::Over(RECT dest)
{
if(x < dest.left || x > dest.right)return false;
if(y < dest.top || y > dest.bottom)return false;
return true;
}
bool MOUSE::PressInRect(RECT dest)
{
return ClickLeft() && Over(dest);
}
void MOUSE::Update(TERRAIN &terrain)
{
//Retrieve mouse state
ZeroMemory(&m_mouseState, sizeof(DIMOUSESTATE));
m_pMouseDevice->GetDeviceState(sizeof(DIMOUSESTATE), &m_mouseState);
//Update pointer
x += (int)(m_mouseState.lX * m_speed);
y += (int)(m_mouseState.lY * m_speed);
//Keep mouse pointer within window
if(x < m_viewport.left) x = m_viewport.left;
if(y < m_viewport.top) y = m_viewport.top;
if(x > m_viewport.right) x = m_viewport.right;
if(y > m_viewport.bottom) y = m_viewport.bottom;
CalculateMappos(terrain);
}
void MOUSE::Paint()
{
//Draw ball
D3DXMATRIX world;
D3DXMatrixTranslation(&world, m_ballPos.x, m_ballPos.y, m_ballPos.z);
m_pDevice->SetTransform(D3DTS_WORLD, &world);
m_pDevice->SetMaterial(&m_ballMtrl);
m_pDevice->SetTexture(0, NULL);
m_pSphereMesh->DrawSubset(0);
if(m_pMouseTexture != NULL)
{
RECT src[] = {{0,0,20,20}, {0,20,20,40}, {20,20,40,40}, {0,40,20,60}, {20,40,40,60}};
m_pSprite->Begin(D3DXSPRITE_ALPHABLEND);
m_pSprite->Draw(m_pMouseTexture, &src[m_type], NULL, &D3DXVECTOR3((float)x, (float)y, 0.0f), 0xffffffff);
m_pSprite->End();
}
}
RAY MOUSE::GetRay()
{
try
{
D3DXMATRIX projectionMatrix, viewMatrix, worldViewInverse, worldMatrix;
m_pDevice->GetTransform(D3DTS_PROJECTION, &projectionMatrix);
m_pDevice->GetTransform(D3DTS_VIEW, &viewMatrix);
m_pDevice->GetTransform(D3DTS_WORLD, &worldMatrix);
float width = (float)(m_viewport.right - m_viewport.left);
float height = (float)(m_viewport.bottom - m_viewport.top);
float angle_x = (((2.0f * x) / width) - 1.0f) / projectionMatrix(0,0);
float angle_y = (((-2.0f * y) / height) + 1.0f) / projectionMatrix(1,1);
RAY ray;
ray.org = D3DXVECTOR3(0.0f, 0.0f, 0.0f);
ray.dir = D3DXVECTOR3(angle_x, angle_y, 1.0f);
D3DXMATRIX m = worldMatrix * viewMatrix;
D3DXMatrixInverse(&worldViewInverse, 0, &m);
D3DXVec3TransformCoord(&ray.org, &ray.org, &worldViewInverse);
D3DXVec3TransformNormal(&ray.dir, &ray.dir, &worldViewInverse);
D3DXVec3Normalize(&ray.dir, &ray.dir);
return ray;
}
catch(...)
{
debug.Print("Error in MOUSE::GetRay()");
}
return RAY();
}
void MOUSE::CalculateMappos(TERRAIN &terrain)
{
//Get Mouse Ray
D3DXMATRIX world;
D3DXMatrixIdentity(&world);
m_pDevice->SetTransform(D3DTS_WORLD, &world);
RAY mRay = GetRay();
float minDistance = 10000.0f;
for(int i=0;i<(int)terrain.m_patches.size();i++)
{
if(mRay.Intersect(terrain.m_patches[i]->m_BBox) > 0.0f)
{
// Collect only the closest intersection
BOOL hit;
DWORD dwFace;
float hitU, hitV, dist;
D3DXIntersect(terrain.m_patches[i]->m_pMesh, &mRay.org, &mRay.dir, &hit, &dwFace, &hitU, &hitV, &dist, NULL, NULL);
if(hit && dist < minDistance)
{
minDistance = dist;
int tiles = dwFace / 2; //Two faces to each map tile
int tilesPerRow = terrain.m_patches[i]->m_mapRect.right - terrain.m_patches[i]->m_mapRect.left;
int y = tiles / tilesPerRow, x = tiles - y * tilesPerRow;
if(dwFace % 2 == 0) //Hit upper left face
{
if(hitU > 0.5f)x++;
else if(hitV > 0.5f)y++;
}
else //Hit lower right face
{
if(hitU + hitV < 0.5f)y++;
else if(hitU > 0.5f)x++;
else {x++;y++;}
}
//Set mouse map position
m_mappos.Set(terrain.m_patches[i]->m_mapRect.left + x, terrain.m_patches[i]->m_mapRect.top + y);
m_ballPos = terrain.GetWorldPos(m_mappos);
m_uv = D3DXVECTOR2(hitU, hitV);
}
}
}
} | ericrrichards/rts | rts-master/Chapter 5/Example 5.9/mouse.cpp | C++ | mit | 6,933 |
#!/usr/bin/env python3
# Copyright (c) 2014-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the importmulti RPC.
Test importmulti by generating keys on node0, importing the scriptPubKeys and
addresses on node1 and then testing the address info for the different address
variants.
- `get_key()` and `get_multisig()` are called to generate keys on node0 and
return the privkeys, pubkeys and all variants of scriptPubKey and address.
- `test_importmulti()` is called to send an importmulti call to node1, test
success, and (if unsuccessful) test the error code and error message returned.
- `test_address()` is called to call getaddressinfo for an address on node1
and test the values returned."""
from test_framework.descriptors import descsum_create
from test_framework.script import OP_NOP, CScript
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
assert_greater_than,
assert_raises_rpc_error,
)
from test_framework.wallet_util import get_key, get_multisig, test_address
class ImportMultiTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 2
self.setup_clean_chain = True
def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
def setup_network(self, split=False):
self.setup_nodes()
def test_importmulti(self, req, success, error_code=None,
error_message=None, warnings=None):
"""Run importmulti and assert success"""
if warnings is None:
warnings = []
result = self.nodes[1].importmulti([req])
observed_warnings = []
if 'warnings' in result[0]:
observed_warnings = result[0]['warnings']
assert_equal(
"\n".join(
sorted(warnings)), "\n".join(
sorted(observed_warnings)))
assert_equal(result[0]['success'], success)
if error_code is not None:
assert_equal(result[0]['error']['code'], error_code)
assert_equal(result[0]['error']['message'], error_message)
def run_test(self):
self.log.info("Mining blocks...")
self.nodes[0].generate(1)
self.nodes[1].generate(1)
timestamp = self.nodes[1].getblock(
self.nodes[1].getbestblockhash())['mediantime']
# Sync the timestamp to the wallet, so that importmulti works
self.nodes[1].syncwithvalidationinterfacequeue()
node0_address1 = self.nodes[0].getaddressinfo(
self.nodes[0].getnewaddress())
# Check only one address
assert_equal(node0_address1['ismine'], True)
# Node 1 sync test
assert_equal(self.nodes[1].getblockcount(), 1)
# Address Test - before import
address_info = self.nodes[1].getaddressinfo(node0_address1['address'])
assert_equal(address_info['iswatchonly'], False)
assert_equal(address_info['ismine'], False)
# RPC importmulti -----------------------------------------------
# Bitcoin Address (implicit non-internal)
self.log.info("Should import an address")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": {"address": key.p2pkh_addr},
"timestamp": "now"},
success=True)
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=True,
ismine=False,
timestamp=timestamp,
ischange=False)
watchonly_address = key.p2pkh_addr
watchonly_timestamp = timestamp
self.log.info("Should not import an invalid address")
self.test_importmulti({"scriptPubKey": {"address": "not valid address"},
"timestamp": "now"},
success=False,
error_code=-5,
error_message='Invalid address \"not valid address\"')
# ScriptPubKey + internal
self.log.info("Should import a scriptPubKey with internal flag")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": key.p2pkh_script,
"timestamp": "now",
"internal": True},
success=True)
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=True,
ismine=False,
timestamp=timestamp,
ischange=True)
# ScriptPubKey + internal + label
self.log.info(
"Should not allow a label to be specified when internal is true")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": key.p2pkh_script,
"timestamp": "now",
"internal": True,
"label": "Unsuccessful labelling for internal addresses"},
success=False,
error_code=-8,
error_message='Internal addresses should not have a label')
# Nonstandard scriptPubKey + !internal
self.log.info(
"Should not import a nonstandard scriptPubKey without internal flag")
nonstandardScriptPubKey = key.p2pkh_script + CScript([OP_NOP]).hex()
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": nonstandardScriptPubKey,
"timestamp": "now"},
success=False,
error_code=-8,
error_message='Internal must be set to true for nonstandard scriptPubKey imports.')
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=False,
ismine=False,
timestamp=None)
# Address + Public key + !Internal(explicit)
self.log.info("Should import an address with public key")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": {"address": key.p2pkh_addr},
"timestamp": "now",
"pubkeys": [key.pubkey],
"internal": False},
success=True,
warnings=["Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=True,
ismine=False,
timestamp=timestamp)
# ScriptPubKey + Public key + internal
self.log.info(
"Should import a scriptPubKey with internal and with public key")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": key.p2pkh_script,
"timestamp": "now",
"pubkeys": [key.pubkey],
"internal": True},
success=True,
warnings=["Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=True,
ismine=False,
timestamp=timestamp)
# Nonstandard scriptPubKey + Public key + !internal
self.log.info(
"Should not import a nonstandard scriptPubKey without internal and with public key")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": nonstandardScriptPubKey,
"timestamp": "now",
"pubkeys": [key.pubkey]},
success=False,
error_code=-8,
error_message='Internal must be set to true for nonstandard scriptPubKey imports.')
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=False,
ismine=False,
timestamp=None)
# Address + Private key + !watchonly
self.log.info("Should import an address with private key")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": {"address": key.p2pkh_addr},
"timestamp": "now",
"keys": [key.privkey]},
success=True)
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=False,
ismine=True,
timestamp=timestamp)
self.log.info(
"Should not import an address with private key if is already imported")
self.test_importmulti({"scriptPubKey": {"address": key.p2pkh_addr},
"timestamp": "now",
"keys": [key.privkey]},
success=False,
error_code=-4,
error_message='The wallet already contains the private key for this address or script ("' + key.p2pkh_script + '")')
# Address + Private key + watchonly
self.log.info(
"Should import an address with private key and with watchonly")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": {"address": key.p2pkh_addr},
"timestamp": "now",
"keys": [key.privkey],
"watchonly": True},
success=True,
warnings=["All private keys are provided, outputs will be considered spendable. If this is intentional, do not specify the watchonly flag."])
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=False,
ismine=True,
timestamp=timestamp)
# ScriptPubKey + Private key + internal
self.log.info(
"Should import a scriptPubKey with internal and with private key")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": key.p2pkh_script,
"timestamp": "now",
"keys": [key.privkey],
"internal": True},
success=True)
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=False,
ismine=True,
timestamp=timestamp)
# Nonstandard scriptPubKey + Private key + !internal
self.log.info(
"Should not import a nonstandard scriptPubKey without internal and with private key")
key = get_key(self.nodes[0])
self.test_importmulti({"scriptPubKey": nonstandardScriptPubKey,
"timestamp": "now",
"keys": [key.privkey]},
success=False,
error_code=-8,
error_message='Internal must be set to true for nonstandard scriptPubKey imports.')
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=False,
ismine=False,
timestamp=None)
# P2SH address
multisig = get_multisig(self.nodes[0])
self.nodes[1].generate(100)
self.nodes[1].sendtoaddress(multisig.p2sh_addr, 10.00)
self.nodes[1].generate(1)
timestamp = self.nodes[1].getblock(
self.nodes[1].getbestblockhash())['mediantime']
self.nodes[1].syncwithvalidationinterfacequeue()
self.log.info("Should import a p2sh")
self.test_importmulti({"scriptPubKey": {"address": multisig.p2sh_addr},
"timestamp": "now"},
success=True)
test_address(self.nodes[1],
multisig.p2sh_addr,
isscript=True,
iswatchonly=True,
timestamp=timestamp)
p2shunspent = self.nodes[1].listunspent(
0, 999999, [multisig.p2sh_addr])[0]
assert_equal(p2shunspent['spendable'], False)
assert_equal(p2shunspent['solvable'], False)
# P2SH + Redeem script
multisig = get_multisig(self.nodes[0])
self.nodes[1].generate(100)
self.nodes[1].sendtoaddress(multisig.p2sh_addr, 10.00)
self.nodes[1].generate(1)
timestamp = self.nodes[1].getblock(
self.nodes[1].getbestblockhash())['mediantime']
self.nodes[1].syncwithvalidationinterfacequeue()
self.log.info("Should import a p2sh with respective redeem script")
self.test_importmulti({"scriptPubKey": {"address": multisig.p2sh_addr},
"timestamp": "now",
"redeemscript": multisig.redeem_script},
success=True,
warnings=["Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
test_address(
self.nodes[1],
multisig.p2sh_addr,
timestamp=timestamp,
iswatchonly=True,
ismine=False,
solvable=True)
p2shunspent = self.nodes[1].listunspent(
0, 999999, [multisig.p2sh_addr])[0]
assert_equal(p2shunspent['spendable'], False)
assert_equal(p2shunspent['solvable'], True)
# P2SH + Redeem script + Private Keys + !Watchonly
multisig = get_multisig(self.nodes[0])
self.nodes[1].generate(100)
self.nodes[1].sendtoaddress(multisig.p2sh_addr, 10.00)
self.nodes[1].generate(1)
timestamp = self.nodes[1].getblock(
self.nodes[1].getbestblockhash())['mediantime']
self.nodes[1].syncwithvalidationinterfacequeue()
self.log.info(
"Should import a p2sh with respective redeem script and private keys")
self.test_importmulti({"scriptPubKey": {"address": multisig.p2sh_addr},
"timestamp": "now",
"redeemscript": multisig.redeem_script,
"keys": multisig.privkeys[0:2]},
success=True,
warnings=["Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
test_address(self.nodes[1],
multisig.p2sh_addr,
timestamp=timestamp,
ismine=False,
iswatchonly=True,
solvable=True)
p2shunspent = self.nodes[1].listunspent(
0, 999999, [multisig.p2sh_addr])[0]
assert_equal(p2shunspent['spendable'], False)
assert_equal(p2shunspent['solvable'], True)
# P2SH + Redeem script + Private Keys + Watchonly
multisig = get_multisig(self.nodes[0])
self.nodes[1].generate(100)
self.nodes[1].sendtoaddress(multisig.p2sh_addr, 10.00)
self.nodes[1].generate(1)
timestamp = self.nodes[1].getblock(
self.nodes[1].getbestblockhash())['mediantime']
self.nodes[1].syncwithvalidationinterfacequeue()
self.log.info(
"Should import a p2sh with respective redeem script and private keys")
self.test_importmulti({"scriptPubKey": {"address": multisig.p2sh_addr},
"timestamp": "now",
"redeemscript": multisig.redeem_script,
"keys": multisig.privkeys[0:2],
"watchonly": True},
success=True)
test_address(self.nodes[1],
multisig.p2sh_addr,
iswatchonly=True,
ismine=False,
solvable=True,
timestamp=timestamp)
# Address + Public key + !Internal + Wrong pubkey
self.log.info(
"Should not import an address with the wrong public key as non-solvable")
key = get_key(self.nodes[0])
wrong_key = get_key(self.nodes[0]).pubkey
self.test_importmulti({"scriptPubKey": {"address": key.p2pkh_addr},
"timestamp": "now",
"pubkeys": [wrong_key]},
success=True,
warnings=["Importing as non-solvable: some required keys are missing. If this is intentional, don't provide any keys, pubkeys or redeemscript.", "Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=True,
ismine=False,
solvable=False,
timestamp=timestamp)
# ScriptPubKey + Public key + internal + Wrong pubkey
self.log.info(
"Should import a scriptPubKey with internal and with a wrong public key as non-solvable")
key = get_key(self.nodes[0])
wrong_key = get_key(self.nodes[0]).pubkey
self.test_importmulti({"scriptPubKey": key.p2pkh_script,
"timestamp": "now",
"pubkeys": [wrong_key],
"internal": True},
success=True,
warnings=["Importing as non-solvable: some required keys are missing. If this is intentional, don't provide any keys, pubkeys or redeemscript.", "Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=True,
ismine=False,
solvable=False,
timestamp=timestamp)
# Address + Private key + !watchonly + Wrong private key
self.log.info(
"Should import an address with a wrong private key as non-solvable")
key = get_key(self.nodes[0])
wrong_privkey = get_key(self.nodes[0]).privkey
self.test_importmulti({"scriptPubKey": {"address": key.p2pkh_addr},
"timestamp": "now",
"keys": [wrong_privkey]},
success=True,
warnings=["Importing as non-solvable: some required keys are missing. If this is intentional, don't provide any keys, pubkeys or redeemscript.", "Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=True,
ismine=False,
solvable=False,
timestamp=timestamp)
# ScriptPubKey + Private key + internal + Wrong private key
self.log.info(
"Should import a scriptPubKey with internal and with a wrong private key as non-solvable")
key = get_key(self.nodes[0])
wrong_privkey = get_key(self.nodes[0]).privkey
self.test_importmulti({"scriptPubKey": key.p2pkh_script,
"timestamp": "now",
"keys": [wrong_privkey],
"internal": True},
success=True,
warnings=["Importing as non-solvable: some required keys are missing. If this is intentional, don't provide any keys, pubkeys or redeemscript.", "Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
test_address(self.nodes[1],
key.p2pkh_addr,
iswatchonly=True,
ismine=False,
solvable=False,
timestamp=timestamp)
# Importing existing watch only address with new timestamp should
# replace saved timestamp.
assert_greater_than(timestamp, watchonly_timestamp)
self.log.info("Should replace previously saved watch only timestamp.")
self.test_importmulti({"scriptPubKey": {"address": watchonly_address},
"timestamp": "now"},
success=True)
test_address(self.nodes[1],
watchonly_address,
iswatchonly=True,
ismine=False,
timestamp=timestamp)
watchonly_timestamp = timestamp
# restart nodes to check for proper serialization/deserialization of
# watch only address
self.stop_nodes()
self.start_nodes()
test_address(self.nodes[1],
watchonly_address,
iswatchonly=True,
ismine=False,
timestamp=watchonly_timestamp)
# Bad or missing timestamps
self.log.info("Should throw on invalid or missing timestamp values")
assert_raises_rpc_error(-3, 'Missing required timestamp field for key',
self.nodes[1].importmulti, [{"scriptPubKey": key.p2pkh_script}])
assert_raises_rpc_error(-3, 'Expected number or "now" timestamp value for key. got type string',
self.nodes[1].importmulti, [{
"scriptPubKey": key.p2pkh_script,
"timestamp": ""
}])
# Test that importing of a P2PKH address via descriptor without
# checksum fails
key = get_key(self.nodes[0])
self.log.info(
"Should fail to import a p2pkh address from descriptor with no checksum")
self.test_importmulti({"desc": "pkh(" + key.pubkey + ")",
"timestamp": "now",
"label": "Descriptor import test"},
success=False,
error_code=-5,
error_message='Missing checksum')
# Test ranged descriptor fails if range is not specified
xpriv = "tprv8ZgxMBicQKsPeuVhWwi6wuMQGfPKi9Li5GtX35jVNknACgqe3CY4g5xgkfDDJcmtF7o1QnxWDRYw4H5P26PXq7sbcUkEqeR4fg3Kxp2tigg"
# hdkeypath=m/0'/0'/0' and 1'
addresses = [
"ecregtest:prvn9ycvgr5atuyh49sua3mapskh2mnnzg7t9yp6dt",
"ecregtest:pp3n087yx0njv2e5wcvltahfxqst7l66rutz8ceeat"]
# pkh subscripts corresponding to the above addresses
addresses += [
"ecregtest:qqdkxd2xnzftq2p8wr3sqqyw8lntap7tncs546s6pr",
"ecregtest:qpyryy83jfaec5u0gpzldk6teadsuq8zlyqh5l30uq",
]
desc = "sh(pkh(" + xpriv + "/0'/0'/*'" + "))"
self.log.info(
"Ranged descriptor import should fail without a specified range")
self.test_importmulti({"desc": descsum_create(desc),
"timestamp": "now"},
success=False,
error_code=-8,
error_message='Descriptor is ranged, please specify the range')
# Test importing of a ranged descriptor with xpriv
self.log.info(
"Should import the ranged descriptor with specified range as solvable")
self.test_importmulti({"desc": descsum_create(desc),
"timestamp": "now",
"range": 1},
success=True)
for address in addresses:
test_address(self.nodes[1], address, solvable=True, ismine=True)
self.test_importmulti({"desc": descsum_create(desc), "timestamp": "now", "range": -1},
success=False, error_code=-8, error_message='End of range is too high')
self.test_importmulti({"desc": descsum_create(desc), "timestamp": "now", "range": [-1, 10]},
success=False, error_code=-8, error_message='Range should be greater or equal than 0')
self.test_importmulti({"desc": descsum_create(desc), "timestamp": "now", "range": [(2 << 31 + 1) - 1000000, (2 << 31 + 1)]},
success=False, error_code=-8, error_message='End of range is too high')
self.test_importmulti({"desc": descsum_create(desc), "timestamp": "now", "range": [2, 1]},
success=False, error_code=-8, error_message='Range specified as [begin,end] must not have begin after end')
self.test_importmulti({"desc": descsum_create(desc), "timestamp": "now", "range": [0, 1000001]},
success=False, error_code=-8, error_message='Range is too large')
# Test importing a descriptor containing a WIF private key
wif_priv = "cTe1f5rdT8A8DFgVWTjyPwACsDPJM9ff4QngFxUixCSvvbg1x6sh"
# Note: in Core's test, this address refers to the sh(wpkh()) address.
# For a sh(pkh()) this does not refer to a key, so we use the subscript
# address instead, which returns the same privkey.
address = "ecregtest:qzh6rch6st3wjvp0h2ud87gn7xnxvf6h8yrk8gcg8t"
desc = "sh(pkh(" + wif_priv + "))"
self.log.info(
"Should import a descriptor with a WIF private key as spendable")
self.test_importmulti({"desc": descsum_create(desc),
"timestamp": "now"},
success=True)
test_address(self.nodes[1],
address,
solvable=True,
ismine=True)
# dump the private key to ensure it matches what was imported
privkey = self.nodes[1].dumpprivkey(address)
assert_equal(privkey, wif_priv)
# Test importing of a P2PKH address via descriptor
key = get_key(self.nodes[0])
p2pkh_label = "P2PKH descriptor import"
self.log.info("Should import a p2pkh address from descriptor")
self.test_importmulti({"desc": descsum_create("pkh(" + key.pubkey + ")"),
"timestamp": "now",
"label": p2pkh_label},
success=True,
warnings=["Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
test_address(self.nodes[1],
key.p2pkh_addr,
solvable=True,
ismine=False,
labels=[p2pkh_label])
# Test import fails if both desc and scriptPubKey are provided
key = get_key(self.nodes[0])
self.log.info(
"Import should fail if both scriptPubKey and desc are provided")
self.test_importmulti({"desc": descsum_create("pkh(" + key.pubkey + ")"),
"scriptPubKey": {"address": key.p2pkh_addr},
"timestamp": "now"},
success=False,
error_code=-8,
error_message='Both a descriptor and a scriptPubKey should not be provided.')
# Test import fails if neither desc nor scriptPubKey are present
key = get_key(self.nodes[0])
self.log.info(
"Import should fail if neither a descriptor nor a scriptPubKey are provided")
self.test_importmulti({"timestamp": "now"},
success=False,
error_code=-8,
error_message='Either a descriptor or scriptPubKey must be provided.')
# Test importing of a multisig via descriptor
key1 = get_key(self.nodes[0])
key2 = get_key(self.nodes[0])
self.log.info("Should import a 1-of-2 bare multisig from descriptor")
self.test_importmulti({"desc": descsum_create("multi(1," + key1.pubkey + "," + key2.pubkey + ")"),
"timestamp": "now"},
success=True,
warnings=["Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
self.log.info(
"Should not treat individual keys from the imported bare multisig as watchonly")
test_address(self.nodes[1],
key1.p2pkh_addr,
ismine=False,
iswatchonly=False)
# Import pubkeys with key origin info
self.log.info(
"Addresses should have hd keypath and master key id after import with key origin")
pub_addr = self.nodes[1].getnewaddress()
pub_addr = self.nodes[1].getnewaddress()
info = self.nodes[1].getaddressinfo(pub_addr)
pub = info['pubkey']
pub_keypath = info['hdkeypath']
pub_fpr = info['hdmasterfingerprint']
result = self.nodes[0].importmulti(
[{
'desc': descsum_create("pkh([" + pub_fpr + pub_keypath[1:] + "]" + pub + ")"),
"timestamp": "now",
}]
)
assert result[0]['success']
pub_import_info = self.nodes[0].getaddressinfo(pub_addr)
assert_equal(pub_import_info['hdmasterfingerprint'], pub_fpr)
assert_equal(pub_import_info['pubkey'], pub)
assert_equal(pub_import_info['hdkeypath'], pub_keypath)
# Import privkeys with key origin info
priv_addr = self.nodes[1].getnewaddress()
info = self.nodes[1].getaddressinfo(priv_addr)
priv = self.nodes[1].dumpprivkey(priv_addr)
priv_keypath = info['hdkeypath']
priv_fpr = info['hdmasterfingerprint']
result = self.nodes[0].importmulti(
[{
'desc': descsum_create("pkh([" + priv_fpr + priv_keypath[1:] + "]" + priv + ")"),
"timestamp": "now",
}]
)
assert result[0]['success']
priv_import_info = self.nodes[0].getaddressinfo(priv_addr)
assert_equal(priv_import_info['hdmasterfingerprint'], priv_fpr)
assert_equal(priv_import_info['hdkeypath'], priv_keypath)
# Make sure the key origin info are still there after a restart
self.stop_nodes()
self.start_nodes()
import_info = self.nodes[0].getaddressinfo(pub_addr)
assert_equal(import_info['hdmasterfingerprint'], pub_fpr)
assert_equal(import_info['hdkeypath'], pub_keypath)
import_info = self.nodes[0].getaddressinfo(priv_addr)
assert_equal(import_info['hdmasterfingerprint'], priv_fpr)
assert_equal(import_info['hdkeypath'], priv_keypath)
# Check legacy import does not import key origin info
self.log.info("Legacy imports don't have key origin info")
pub_addr = self.nodes[1].getnewaddress()
info = self.nodes[1].getaddressinfo(pub_addr)
pub = info['pubkey']
result = self.nodes[0].importmulti(
[{
'scriptPubKey': {'address': pub_addr},
'pubkeys': [pub],
"timestamp": "now",
}]
)
assert result[0]['success']
pub_import_info = self.nodes[0].getaddressinfo(pub_addr)
assert_equal(pub_import_info['pubkey'], pub)
assert 'hdmasterfingerprint' not in pub_import_info
assert 'hdkeypath' not in pub_import_info
# Import some public keys to the keypool of a no privkey wallet
self.log.info("Adding pubkey to keypool of disableprivkey wallet")
self.nodes[1].createwallet(
wallet_name="noprivkeys",
disable_private_keys=True)
wrpc = self.nodes[1].get_wallet_rpc("noprivkeys")
addr1 = self.nodes[0].getnewaddress()
addr2 = self.nodes[0].getnewaddress()
pub1 = self.nodes[0].getaddressinfo(addr1)['pubkey']
pub2 = self.nodes[0].getaddressinfo(addr2)['pubkey']
result = wrpc.importmulti(
[{
'desc': descsum_create('pkh(' + pub1 + ')'),
'keypool': True,
"timestamp": "now",
},
{
'desc': descsum_create('pkh(' + pub2 + ')'),
'keypool': True,
"timestamp": "now",
}]
)
assert result[0]['success']
assert result[1]['success']
assert_equal(wrpc.getwalletinfo()["keypoolsize"], 2)
newaddr1 = wrpc.getnewaddress()
assert_equal(addr1, newaddr1)
newaddr2 = wrpc.getnewaddress()
assert_equal(addr2, newaddr2)
# Import some public keys to the internal keypool of a no privkey
# wallet
self.log.info(
"Adding pubkey to internal keypool of disableprivkey wallet")
addr1 = self.nodes[0].getnewaddress()
addr2 = self.nodes[0].getnewaddress()
pub1 = self.nodes[0].getaddressinfo(addr1)['pubkey']
pub2 = self.nodes[0].getaddressinfo(addr2)['pubkey']
result = wrpc.importmulti(
[{
'desc': descsum_create('pkh(' + pub1 + ')'),
'keypool': True,
'internal': True,
"timestamp": "now",
},
{
'desc': descsum_create('pkh(' + pub2 + ')'),
'keypool': True,
'internal': True,
"timestamp": "now",
}]
)
assert result[0]['success']
assert result[1]['success']
assert_equal(wrpc.getwalletinfo()["keypoolsize_hd_internal"], 2)
newaddr1 = wrpc.getrawchangeaddress()
assert_equal(addr1, newaddr1)
newaddr2 = wrpc.getrawchangeaddress()
assert_equal(addr2, newaddr2)
# Import a multisig and make sure the keys don't go into the keypool
self.log.info(
'Imported scripts with pubkeys shoud not have their pubkeys go into the keypool')
addr1 = self.nodes[0].getnewaddress()
addr2 = self.nodes[0].getnewaddress()
pub1 = self.nodes[0].getaddressinfo(addr1)['pubkey']
pub2 = self.nodes[0].getaddressinfo(addr2)['pubkey']
result = wrpc.importmulti(
[{
'desc': descsum_create('sh(multi(2,' + pub1 + ',' + pub2 + '))'),
'keypool': True,
"timestamp": "now",
}]
)
assert result[0]['success']
assert_equal(wrpc.getwalletinfo()["keypoolsize"], 0)
# Cannot import those pubkeys to keypool of wallet with privkeys
self.log.info(
"Pubkeys cannot be added to the keypool of a wallet with private keys")
wrpc = self.nodes[1].get_wallet_rpc(self.default_wallet_name)
assert wrpc.getwalletinfo()['private_keys_enabled']
result = wrpc.importmulti(
[{
'desc': descsum_create('pkh(' + pub1 + ')'),
'keypool': True,
"timestamp": "now",
}]
)
assert_equal(result[0]['error']['code'], -8)
assert_equal(
result[0]['error']['message'],
"Keys can only be imported to the keypool when private keys are disabled")
# Make sure ranged imports import keys in order
self.log.info('Key ranges should be imported in order')
wrpc = self.nodes[1].get_wallet_rpc("noprivkeys")
assert_equal(wrpc.getwalletinfo()["keypoolsize"], 0)
assert_equal(wrpc.getwalletinfo()["private_keys_enabled"], False)
xpub = "tpubDAXcJ7s7ZwicqjprRaEWdPoHKrCS215qxGYxpusRLLmJuT69ZSicuGdSfyvyKpvUNYBW1s2U3NSrT6vrCYB9e6nZUEvrqnwXPF8ArTCRXMY"
addresses = [
'ecregtest:qp0v86h53rc92hjrlpwzpjtdlgzsxu25svv6g40fpl', # m/0'/0'/0
'ecregtest:qqasy0zlkdleqt4pkn8fs4ehm5gnnz6qpgdcpt90fq', # m/0'/0'/1
'ecregtest:qp0sp4wlhctvprqvdt2dgvqcfdjssu04xgey0l3syw', # m/0'/0'/2
'ecregtest:qrhn24tegn04cptfv4ldhtkduxq55zcwrycjfdj9vr', # m/0'/0'/3
'ecregtest:qzpqhett2uwltq803vrxv7zkqhft5vsnmcjeh50v0p', # m/0'/0'/4
]
result = wrpc.importmulti(
[{
'desc': descsum_create('pkh([80002067/0h/0h]' + xpub + '/*)'),
'keypool': True,
'timestamp': 'now',
'range': [0, 4],
}]
)
self.log.info(result)
for i in range(0, 5):
addr = wrpc.getnewaddress('')
assert_equal(addr, addresses[i])
if __name__ == '__main__':
ImportMultiTest().main()
| Bitcoin-ABC/bitcoin-abc | test/functional/wallet_importmulti.py | Python | mit | 37,468 |
import os
import json
from base import BaseController
from nqueens.models import Piece, Panel, Meta
class NQueensController(BaseController):
def __init__(self, view):
super(NQueensController, self)
self._piece_data = None
self._piece_cache = None
self.view = view
@classmethod
def get_instance(cls, view):
return cls(view)
def pre_switch(self):
pass
def start(self):
dim = self.view.get_dimension()
# Cached factory, only 1 file read per list
pieces = [Piece.from_file(self._piece_data) for i in range(dim)]
panel = Panel(dim)
self.view.notify({
'func': 'update_panel',
'data': {
'pieces': {},
}
})
res = self.run(panel, pieces, idx=0, ci=0)
if res:
self.view.notify({
'func': 'update_panel',
'data': {
'pieces': panel.pieces,
}
})
else:
self.view.notify({
'func': 'display_error',
'data': {
'message': 'No solution found :(',
}
})
def run(self, panel, pieces, idx, ci):
dim = panel.dimension
# Base case
if idx == len(pieces):
return True
else:
# Ultra-fast because:
# 1. All the pieces are the same (less combinations and shit)
# 2. We start from the previous index, this makes the panel smaller
# each time
# 3. Instead of keeping track of the killing positions we do a
# check each time a piece is added in order to avoid a kill
# (which is faster)
# 4. Python dict operations are astonishingly fast
for i in range(ci, dim):
for j in range(dim):
if panel.add_piece(pieces[idx], (i, j)):
if self.run(panel, pieces, idx+1, i):
return True
else:
panel.remove_piece(pieces[idx])
return False
def piece_selected(self, piece_name):
if not self._piece_cache:
self._piece_cache = Meta.get_piece_definitions()
self._piece_data = self._piece_cache.get(piece_name)
if self._piece_data:
self._piece_data = self._piece_data[1]
self.view.notify({
'func': 'enable_run',
'data': {
'enable': bool(self._piece_data),
}
})
@staticmethod
def get_pieces_attr(attr):
candidates = Meta.get_piece_definitions()
if all(attr in candidate[0].keys() for candidate in candidates.values()):
return [candidate[0][attr] for candidate in candidates.values()]
else:
return []
| PereBal/advanced-algorithms | nqueens/controller.py | Python | mit | 2,927 |
var React = require('react');
var _ = require('underscore');
var List = React.createClass({
render: function() {
var listItems = [];
_.each(this.props.value, function(data, index) {
listItems.push(<li>{JSON.stringify(data)}</li>);
});
return (
<div>
<strong>{this.props.title}:</strong>
<ol>{listItems}</ol>
</div>
);
}
});
module.exports = List; | jmather/scope.js | client/components/Displays/List.react.js | JavaScript | mit | 466 |
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
*
* 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 hudson.model;
import hudson.ExtensionPoint;
import hudson.Launcher;
import hudson.Plugin;
import hudson.tasks.BuildStep;
import hudson.tasks.Builder;
import hudson.tasks.Publisher;
import hudson.tasks.BuildStepMonitor;
import java.io.IOException;
import org.kohsuke.stapler.export.ExportedBean;
/**
* Extensible property of {@link Job}.
*
* <p>
* {@link Plugin}s can extend this to define custom properties
* for {@link Job}s. {@link JobProperty}s show up in the user
* configuration screen, and they are persisted with the job object.
*
* <p>
* Configuration screen should be defined in <tt>config.jelly</tt>.
* Within this page, the {@link JobProperty} instance is available
* as <tt>instance</tt> variable (while <tt>it</tt> refers to {@link Job}.
*
* <p>
* Starting 1.150, {@link JobProperty} implements {@link BuildStep},
* meaning it gets the same hook as {@link Publisher} and {@link Builder}.
* The primary intention of this mechanism is so that {@link JobProperty}s
* can add actions to the new build. The {@link #perform(AbstractBuild, Launcher, BuildListener)}
* and {@link #prebuild(AbstractBuild, BuildListener)} are invoked after those
* of {@link Publisher}s.
*
* @param <J>
* When you restrict your job property to be only applicable to a certain
* subtype of {@link Job}, you can use this type parameter to improve
* the type signature of this class. See {@link JobPropertyDescriptor#isApplicable(Class)}.
*
* @author Kohsuke Kawaguchi
* @see JobPropertyDescriptor
* @since 1.72
*/
@ExportedBean
public abstract class JobProperty<J extends Job<?,?>> implements Describable<JobProperty<?>>, BuildStep, ExtensionPoint {
/**
* The {@link Job} object that owns this property.
* This value will be set by the Hudson code.
* Derived classes can expect this value to be always set.
*/
protected transient J owner;
/**
* Hook for performing post-initialization action.
*
* <p>
* This method is invoked in two cases. One is when the {@link Job} that owns
* this property is loaded from disk, and the other is when a job is re-configured
* and all the {@link JobProperty} instances got re-created.
*/
protected void setOwner(J owner) {
this.owner = owner;
}
/**
* {@inheritDoc}
*/
public JobPropertyDescriptor getDescriptor() {
return (JobPropertyDescriptor)Hudson.getInstance().getDescriptor(getClass());
}
/**
* {@link Action} to be displayed in the job page.
*
* <p>
* Returning non-null from this method allows a job property to add an item
* to the left navigation bar in the job page.
*
* <p>
* {@link Action} can implement additional marker interface to integrate
* with the UI in different ways.
*
* @param job
* Always the same as {@link #owner} but passed in anyway for backward compatibility (I guess.)
* You really need not use this value at all.
* @return
* null if there's no such action.
* @since 1.102
* @see ProminentProjectAction
* @see PermalinkProjectAction
*/
public Action getJobAction(J job) {
return null;
}
//
// default no-op implementation
//
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener) {
return true;
}
/**
* {@inheritDoc}
*
* <p>
* Invoked after {@link Publisher}s have run.
*/
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
return true;
}
/**
* Returns {@link BuildStepMonitor#NONE} by default, as {@link JobProperty}s normally don't depend
* on its previous result.
*/
public BuildStepMonitor getRequiredMonitorService() {
return BuildStepMonitor.NONE;
}
public final Action getProjectAction(AbstractProject<?,?> project) {
return getJobAction((J)project);
}
}
| fujibee/hudson | core/src/main/java/hudson/model/JobProperty.java | Java | mit | 5,215 |
#!/usr/bin/env python
# *-* coding: UTF-8 *-*
"""
Organizaţia Internaţională a Aviaţiei Civile propune un alfabet în care
fiecărei litere îi este asignat un cuvânt pentru a evita problemele în
înțelegerea mesajelor critice.
Pentru a se păstra un istoric al conversațiilor s-a decis transcrierea lor
conform următoarelor reguli:
- fiecare cuvânt este scris pe o singură linie
- literele din alfabet sunt separate de o virgulă
Următoarea sarcină ți-a fost asignată:
Scrie un program care să primească un fișier ce conține mesajul
brut (scris folosind alfabetul ICAO) și generează un fișier
numit icao_intrare ce va conține mesajul inițial.
Mai jos găsiți un dicționar ce conține o versiune a alfabetului ICAO:
"""
ICAO = {
'a': 'alfa', 'b': 'bravo', 'c': 'charlie', 'd': 'delta', 'e': 'echo',
'f': 'foxtrot', 'g': 'golf', 'h': 'hotel', 'i': 'india', 'j': 'juliett',
'k': 'kilo', 'l': 'lima', 'm': 'mike', 'n': 'november', 'o': 'oscar',
'p': 'papa', 'q': 'quebec', 'r': 'romeo', 's': 'sierra', 't': 'tango',
'u': 'uniform', 'v': 'victor', 'w': 'whiskey', 'x': 'x-ray', 'y': 'yankee',
'z': 'zulu'
}
def din_icao(fisier_intrare):
"""Funcția va primi calea către fișierul ce conține mesajul brut și
va genera un fișier numit icao_intrare ce va conține mesajul inițial.
"""
try:
in_file = open(fisier_intrare, 'r')
content = in_file.read()
in_file.close()
except IOError:
print "Error! Could not open file."
return
final_message = ''
for line in content.splitlines():
for word in line.split():
for key, value in ICAO.iteritems():
if value == word:
final_message += key
final_message += ' '
print final_message
if __name__ == "__main__":
din_icao("mesaj.icao")
| iulianbute/labs | python/solutii/iulian_andrei/icao/from_icao.py | Python | mit | 1,888 |
var Helper = require("@kaoscript/runtime").Helper;
module.exports = function() {
var path = require("path");
require("../require/require.string.ks")(Helper.cast(path.join(__dirname, "foobar.txt"), "String", false, null, "String"));
}; | kaoscript/kaoscript | test/fixtures/compile/import/import.parameter.expression.default.js | JavaScript | mit | 236 |
var phonecatControllers = angular.module('phonecatControllers', []);
phonecatControllers.controller('PhoneListCtrl', ['$scope', '$http',
function ($scope, $http) {
$http.get('phones/phones.json').success(function(data) {
$scope.phones = data;
});
$scope.orderProp = 'age';
}]);
phonecatControllers.controller('PhoneDetailCtrl', ['$scope', '$routeParams', '$http',
function($scope, $routeParams, $http) {
$http.get('phones/' + $routeParams.phoneId + '.json').success(function(data) {
$scope.phone = data;
$scope.mainImageUrl = data.images[0];
});
$scope.setImage = function(imageUrl) {
$scope.mainImageUrl = imageUrl;
}
}]);
| dlamoureux/angularaxa | app/js/controllers.js | JavaScript | mit | 696 |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using Raptor.Library.Common;
using Raptor.Library.Enums;
using Raptor.Library.WebAPI.Transports.Content;
using Raptor.WebAPI.BusinessLayer.Managers;
using Raptor.WebAPI.BusinessLayer.Settings;
using Raptor.WebAPI.CustomAttributes;
namespace Raptor.WebAPI.Controllers {
public class ContentSyncController : BaseController {
public ContentSyncController(IOptions<GlobalSettings> globalSettings, IMemoryCache memoryCache) : base(globalSettings.Value, memoryCache) { }
[HttpGet]
[TypeFilter(typeof(Cachable), Arguments = new object[] { WEBAPI_REQUESTS.SERVERCONTENT_GET })]
public ReturnSet<List<ContentSyncServerResponseItem>> Get() => ReturnHandler(new ContentManager(MANAGER_CONTAINER.GSetings).GetServerContentListing(), WEBAPI_REQUESTS.SERVERCONTENT_GET);
[HttpGet("{files}")]
public ReturnSet<List<ContentSyncFileResponseItem>> Get(string files) => ReturnHandler(new ContentManager(MANAGER_CONTAINER.GSetings).GetFiles(files.Split(',').Select(a => Convert.ToInt32(a)).ToList()), WEBAPI_REQUESTS.SERVERCONTENT_PULLDOWN);
}
} | jcapellman/Raptor | Src/Raptor.WebAPI/Controllers/ContentSyncController.cs | C# | mit | 1,295 |
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
elixir(function(mix) {
mix.sass('app.scss');
});
elixir(function(mix) {
mix.scriptsIn('resources/assets/js/');
}); | Beyond-Game/Raffaello | gulpfile.js | JavaScript | mit | 572 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="la" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Termocoin</source>
<translation>Informatio de Termocoin</translation>
</message>
<message>
<location line="+39"/>
<source><b>Termocoin</b> version</source>
<translation><b>Termocoin</b> versio</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 (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>Hoc est experimentale programma.
Distributum sub MIT/X11 licentia programmatum, vide comitantem plicam COPYING vel http://www.opensource.org/licenses/mit-license.php.
Hoc productum continet programmata composita ab OpenSSL Project pro utendo in OpenSSL Toolkit (http://www.openssl.org/) et programmata cifrarum scripta ab Eric Young (eay@cryptsoft.com) et UPnP programmata scripta ab Thomas Bernard.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation>Copyright</translation>
</message>
<message>
<location line="+0"/>
<source>The Termocoin developers</source>
<translation>Termocoin curatores</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Liber Inscriptionum</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>Dupliciter-clicca ut inscriptionem vel titulum mutes</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Crea novam inscriptionem</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copia inscriptionem iam selectam in latibulum systematis</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>&Nova Inscriptio</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your Termocoin 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>Haec sunt inscriptiones Termocoin tuae pro accipendo pensitationes. Cupias variam ad quemque mittentem dare ut melius scias quem tibi pensare.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation>&Copia Inscriptionem</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>Monstra codicem &QR</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Termocoin address</source>
<translation>Signa nuntium ut demonstres inscriptionem Termocoin a te possessam esse</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Signa &Nuntium</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Dele active selectam inscriptionem ex enumeratione</translation>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation>Exporta data in hac tabella in plicam</translation>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation>&Exporta</translation>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified Termocoin address</source>
<translation>Verifica nuntium ut cures signatum esse cum specificata inscriptione Termocoin</translation>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation>&Verifica Nuntium</translation>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Dele</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your Termocoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation>Hae sunt inscriptiones mittendi pensitationes. Semper inspice quantitatem et inscriptionem accipiendi antequam nummos mittis.</translation>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation>Copia &Titulum</translation>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation>&Muta</translation>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation>Mitte &Nummos</translation>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>Exporta Data Libri Inscriptionum</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Comma Separata Plica (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Error exportandi</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Non potuisse scribere in plicam %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Titulus</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Inscriptio</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(nullus titulus)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Dialogus Tesserae</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Insere tesseram</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Nova tessera</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Itera novam tesseram</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>Insero novam tesseram cassidili.<br/>Sodes tessera <b>10 pluriumve fortuitarum litterarum</b> utere aut <b>octo pluriumve verborum</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Cifra cassidile</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Huic operationi necesse est tessera cassidili tuo ut cassidile reseret.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Resera cassidile</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Huic operationi necesse est tessera cassidili tuo ut cassidile decifret.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Decifra cassidile</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Muta tesseram</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Insero veterem novamque tesseram cassidili.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Confirma cifrationem cassidilis</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR RAZORS</b>!</source>
<translation>Monitio: Si cassidile tuum cifras et tesseram amittis, tu <b>AMITTES OMNES TUOS NUMMOS BITOS</b>!</translation>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Certusne es te velle tuum cassidile cifrare?</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>GRAVE: Oportet ulla prioria conservata quae fecisti de plica tui cassidilis reponi a nove generata cifrata plica cassidilis. Propter securitatem, prioria conservata de plica non cifrata cassidilis inutilia fiet simul atque incipis uti novo cifrato cassidili.</translation>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Monitio: Litterae ut capitales seratae sunt!</translation>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Cassidile cifratum</translation>
</message>
<message>
<location line="-56"/>
<source>Termocoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your razors from being stolen by malware infecting your computer.</source>
<translation>Termocoin iam desinet ut finiat actionem cifrandi. Memento cassidile cifrare non posse cuncte curare ne tui nummi clepantur ab malis programatibus in tuo computatro.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Cassidile cifrare abortum est</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Cassidile cifrare abortum est propter internum errorem. Tuum cassidile cifratum non est.</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>Tesserae datae non eaedem sunt.</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>Cassidile reserare abortum est.</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Tessera inserta pro cassidilis decifrando prava erat.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Cassidile decifrare abortum est.</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Tessera cassidilis successa est in mutando.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation>Signa &nuntium...</translation>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>Synchronizans cum rete...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>&Summarium</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Monstra generale summarium cassidilis</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&Transactiones</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Inspicio historiam transactionum</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Muta indicem salvatarum inscriptionum titulorumque</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Monstra indicem inscriptionum quibus pensitationes acceptandae</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation>E&xi</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Exi applicatione</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about Termocoin</source>
<translation>Monstra informationem de Termocoin</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Informatio de &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Monstra informationem de Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Optiones</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation>&Cifra Cassidile...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Conserva Cassidile...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Muta tesseram...</translation>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation>Importans frusta ab disco...</translation>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation>Recreans indicem frustorum in disco...</translation>
</message>
<message>
<location line="-347"/>
<source>Send coins to a Termocoin address</source>
<translation>Mitte nummos ad inscriptionem Termocoin</translation>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for Termocoin</source>
<translation>Muta configurationis optiones pro Termocoin</translation>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation>Conserva cassidile in locum alium</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Muta tesseram utam pro cassidilis cifrando</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation>Fenestra &Debug</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Aperi terminalem debug et diagnosticalem</translation>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation>&Verifica nuntium...</translation>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>Termocoin</source>
<translation>Termocoin</translation>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation>Cassidile</translation>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation>&Mitte</translation>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation>&Accipe</translation>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation>&Inscriptiones</translation>
</message>
<message>
<location line="+22"/>
<source>&About Termocoin</source>
<translation>&Informatio de Termocoin</translation>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Monstra/Occulta</translation>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation>Monstra vel occulta Fenestram principem</translation>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation>Cifra claves privatas quae cassidili tui sunt</translation>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your Termocoin addresses to prove you own them</source>
<translation>Signa nuntios cum tuis inscriptionibus Termocoin ut demonstres te eas possidere</translation>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified Termocoin addresses</source>
<translation>Verifica nuntios ut certus sis eos signatos esse cum specificatis inscriptionibus Termocoin</translation>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&Plica</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>&Configuratio</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>&Auxilium</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Tabella instrumentorum "Tabs"</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+47"/>
<source>Termocoin client</source>
<translation>Termocoin cliens</translation>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to Termocoin network</source>
<translation><numerusform>%n activa conexio ad rete Termocoin</numerusform><numerusform>%n activae conexiones ad rete Termocoin</numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation>Nulla fons frustorum absens...</translation>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation>Perfecta %1 de %2 (aestimato) frusta historiae transactionum.</translation>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation>Processae %1 frusta historiae transactionum.</translation>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation><numerusform>%n hora</numerusform><numerusform>%n horae</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n dies</numerusform><numerusform>%n dies</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation><numerusform>%n hebdomas</numerusform><numerusform>%n hebdomades</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation>%1 post</translation>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation>Postremum acceptum frustum generatum est %1 abhinc.</translation>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation>Transactiones post hoc nondum visibiles erunt.</translation>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation>Error</translation>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation>Monitio</translation>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation>Informatio</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>Haec transactio maior est quam limen magnitudinis. Adhuc potes id mittere mercede %1, quae it nodis qui procedunt tuam transactionem et adiuvat sustinere rete. Visne mercedem solvere?</translation>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>Recentissimo</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>Persequens...</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation>Confirma mercedem transactionis</translation>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>Transactio missa</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>Transactio incipiens</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Dies: %1
Quantitas: %2
Typus: %3
Inscriptio: %4
</translation>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation>Tractatio URI</translation>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid Termocoin address or malformed URI parameters.</source>
<translation>URI intellegi non posse! Huius causa possit inscriptionem Termocoin non validam aut URI parametra maleformata.</translation>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Cassidile <b>cifratum</b> est et iam nunc <b>reseratum</b></translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Cassidile <b>cifratum</b> est et iam nunc <b>seratum</b></translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. Termocoin can no longer continue safely and will quit.</source>
<translation>Error fatalis accidit. Termocoin nondum pergere tute potest, et exibit.</translation>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation>Monitio Retis</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Muta Inscriptionem</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Titulus</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>Titulus associatus huic insertione libri inscriptionum</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Inscriptio</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>Titulus associatus huic insertione libri inscriptionum. Haec tantum mutari potest pro inscriptionibus mittendi</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>Nova inscriptio accipiendi</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Nova inscriptio mittendi</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Muta inscriptionem accipiendi</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Muta inscriptionem mittendi</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Inserta inscriptio "%1" iam in libro inscriptionum est.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Termocoin address.</source>
<translation>Inscriptio inserta "%1" non valida inscriptio Termocoin est.</translation>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Non potuisse cassidile reserare</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Generare novam clavem abortum est.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>Termocoin-Qt</source>
<translation>Termocoin-Qt</translation>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation>versio</translation>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>Usus:</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation>Optiones mandati intiantis</translation>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>UI optiones</translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>Constitue linguam, exempli gratia "de_DE" (praedefinitum: lingua systematis)</translation>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation>Incipe minifactum ut icon</translation>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>Monstra principem imaginem ad initium (praedefinitum: 1)</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Optiones</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Princeps</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>Optionalis merces transactionum singulis kB quae adiuvat curare tuas transactiones processas esse celeriter. Plurimi transactiones 1kB sunt.</translation>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Solve &mercedem transactionis</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start Termocoin after logging in to the system.</source>
<translation>Pelle Termocoin per se postquam in systema inire.</translation>
</message>
<message>
<location line="+3"/>
<source>&Start Termocoin on system login</source>
<translation>&Pelle Termocoin cum inire systema</translation>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation>Reconstitue omnes optiones clientis ad praedefinita.</translation>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation>&Reconstitue Optiones</translation>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation>&Rete</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Termocoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>Aperi per se portam clientis Termocoin in itineratore. Hoc tantum effectivum est si itineratrum tuum supportat UPnP et id activum est.</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Designa portam utendo &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the Termocoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation>Connecte ad rete Termocoin per SOCKS vicarium (e.g. quando conectens per Tor).</translation>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation>&Conecte per SOCKS vicarium:</translation>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>&IP vicarii:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>Inscriptio IP vicarii (e.g. 127.0.0.1)</translation>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Porta:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Porta vicarii (e.g. 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>SOCKS &Versio:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>SOCKS versio vicarii (e.g. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Fenestra</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Monstra tantum iconem in tabella systematis postquam fenestram minifactam est.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minifac in tabellam systematis potius quam applicationum</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>Minifac potius quam exire applicatione quando fenestra clausa sit. Si haec optio activa est, applicatio clausa erit tantum postquam selegeris Exi in menu.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inifac ad claudendum</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&UI</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>&Lingua monstranda utenti:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Termocoin.</source>
<translation>Lingua monstranda utenti hic constitui potest. Haec configuratio effectiva erit postquam Termocoin iterum initiatum erit.</translation>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Unita qua quantitates monstrare:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Selige praedefinitam unitam subdivisionis monstrare in interfacie et quando nummos mittere</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show Termocoin addresses in the transaction list or not.</source>
<translation>Num monstrare inscriptiones Termocoin in enumeratione transactionum.</translation>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Monstra inscriptiones in enumeratione transactionum</translation>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Cancella</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation>&Applica</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation>praedefinitum</translation>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation>Confirma optionum reconstituere</translation>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation>Aliis configurationibus fortasse necesse est clientem iterum initiare ut effectivae sint.</translation>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation>Vis procedere?</translation>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation>Monitio</translation>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Termocoin.</source>
<translation>Haec configuratio effectiva erit postquam Termocoin iterum initiatum erit.</translation>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Inscriptio vicarii tradita non valida est.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Schema</translation>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Termocoin network after a connection is established, but this process has not completed yet.</source>
<translation>Monstrata informatio fortasse non recentissima est. Tuum cassidile per se synchronizat cum rete Termocoin postquam conexio constabilita est, sed hoc actio nondum perfecta est.</translation>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation>Pendendum:</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>Non confirmata:</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>Cassidile</translation>
</message>
<message>
<location line="+107"/>
<source>Immature:</source>
<translation>Immatura:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>Fossum pendendum quod nondum maturum est</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Recentes transactiones</b></translation>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation>Tuum pendendum iam nunc</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>Totali nummi transactionum quae adhuc confirmandae sunt, et nondum afficiunt pendendum</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation>non synchronizato</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start Termocoin: click-to-pay handler</source>
<translation>Termocoin incipere non potest: cliccare-ad-pensandum handler</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation>Dialogus QR Codicis</translation>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>Posce Pensitationem</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>Quantitas:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>Titulus:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>Nuntius:</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>&Salva ut...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation>Error codificandi URI in codicem QR.</translation>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation>Inserta quantitas non est valida, sodes proba.</translation>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation>Resultato URI nimis longo, conare minuere verba pro titulo / nuntio.</translation>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation>Salva codicem QR</translation>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation>Imagines PNG (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Nomen clientis</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>Versio clientis</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informatio</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Utens OpenSSL versione</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Tempus initiandi</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Rete</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Numerus conexionum</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation>In testnet</translation>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Catena frustorum</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Numerus frustorum iam nunc</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Aestimatus totalis numerus frustorum</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Hora postremi frusti</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Aperi</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation>Optiones mandati initiantis</translation>
</message>
<message>
<location line="+7"/>
<source>Show the Termocoin-Qt help message to get a list with possible Termocoin command-line options.</source>
<translation>Monstra nuntium auxilii Termocoin-Qt ut videas enumerationem possibilium optionum Termocoin mandati initiantis.</translation>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation>&Monstra</translation>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Terminale</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Dies aedificandi</translation>
</message>
<message>
<location line="-104"/>
<source>Termocoin - Debug window</source>
<translation>Termocoin - Fenestra debug</translation>
</message>
<message>
<location line="+25"/>
<source>Termocoin Core</source>
<translation>Termocoin Nucleus</translation>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Debug catalogi plica</translation>
</message>
<message>
<location line="+7"/>
<source>Open the Termocoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation>Aperi plicam catalogi de Termocoin debug ex activo indice datorum. Hoc possit pauca secunda pro plicis magnis catalogi.</translation>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Vacuefac terminale</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the Termocoin RPC console.</source>
<translation>Bene ventio in terminale RPC de Termocoin.</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>Utere sagittis sursum deorsumque ut per historiam naviges, et <b>Ctrl+L</b> ut scrinium vacuefacias.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Scribe <b>help</b> pro summario possibilium mandatorum.</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>Mitte Nummos</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>Mitte pluribus accipientibus simul</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Adde &Accipientem</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation>Remove omnes campos transactionis</translation>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>Vacuefac &Omnia</translation>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>Pendendum:</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>Confirma actionem mittendi</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>&Mitte</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> ad %2 (%3)</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Confirma mittendum nummorum</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Certus es te velle mittere %1?</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation>et</translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>Inscriptio accipientis non est valida, sodes reproba.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Oportet quantitatem ad pensandum maiorem quam 0 esse.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Quantitas est ultra quod habes.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Quantitas est ultra quod habes cum merces transactionis %1 includitur.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Geminata inscriptio inventa, tantum posse mittere ad quamque inscriptionem semel singulare operatione.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation>Error: Creare transactionem abortum est!</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>Error: transactio reiecta est. Hoc fiat si alii nummorum in tuo cassidili iam soluti sunt, ut si usus es exemplar de wallet.dat et nummi soluti sunt in exemplari sed non hic notati ut soluti.</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>Schema</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>&Quantitas:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Pensa &Ad:</translation>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>Inscriptio cui mittere pensitationem (e.g. 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>Insero titulum huic inscriptioni ut eam in tuum librum inscriptionum addas.</translation>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&Titulus:</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation>Selige inscriptionem ex libro inscriptionum</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>Conglutina inscriptionem ex latibulo</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>Remove hunc accipientem</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Termocoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>Insero inscriptionem Termocoin (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Signationes - Signa / Verifica nuntium</translation>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation>&Signa Nuntium</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>Potes nuntios signare inscriptionibus tuis ut demonstres te eas possidere. Cautus es non amibiguum signare, quia impetus phiscatorum conentur te fallere ut signes identitatem tuam ad eos. Solas signa sententias cuncte descriptas quibus convenis.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>Inscriptio qua signare nuntium (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation>Selige inscriptionem ex librum inscriptionum</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>Glutina inscriptionem ex latibulo</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>Insere hic nuntium quod vis signare</translation>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation>Signatio</translation>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Copia signationem in latibulum systematis</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Termocoin address</source>
<translation>Signa nuntium ut demonstres hanc inscriptionem Termocoin a te possessa esse</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Signa &Nuntium</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation>Reconstitue omnes campos signandi nuntii</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Vacuefac &Omnia</translation>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation>&Verifica Nuntium</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>Insere inscriptionem signantem, nuntium (cura ut copias intermissiones linearum, spatia, tabs, et cetera exacte) et signationem infra ut nuntium verifices. Cautus esto ne magis legas in signationem quam in nuntio signato ipso est, ut vites falli ab impetu homo-in-medio.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>Inscriptio qua nuntius signatus est (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Termocoin address</source>
<translation>Verifica nuntium ut cures signatum esse cum specifica inscriptione Termocoin</translation>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation>Verifica &Nuntium</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation>Reconstitue omnes campos verificandi nuntii</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Termocoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>Insere inscriptionem Termocoin (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Clicca "Signa Nuntium" ut signatio generetur</translation>
</message>
<message>
<location line="+3"/>
<source>Enter Termocoin signature</source>
<translation>Insere signationem Termocoin</translation>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>Inscriptio inserta non valida est.</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>Sodes inscriptionem proba et rursus conare.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>Inserta inscriptio clavem non refert.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>Cassidilis reserare cancellatum est.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>Clavis privata absens est pro inserta inscriptione.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Nuntium signare abortum est.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Nuntius signatus.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Signatio decodificari non potuit.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Sodes signationem proba et rursus conare.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>Signatio non convenit digesto nuntii</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Nuntium verificare abortum est.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Nuntius verificatus.</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The Termocoin developers</source>
<translation>Termocoin curatores</translation>
</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>Apertum donec %1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation>%1/non conecto</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/non confirmata</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 confirmationes</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Status</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, disseminatum per %n nodo</numerusform><numerusform>, disseminata per %n nodis</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Dies</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Fons</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Generatum</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Ab</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Ad</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>inscriptio propria</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>titulus</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Creditum</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>maturum erit in %n plure frusto</numerusform><numerusform>maturum erit in %n pluribus frustis</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>non acceptum</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Debitum</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Transactionis merces</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Cuncta quantitas</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Nuntius</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Annotatio</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID transactionis</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 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>Nummis generatis necesse est maturitas 120 frustorum antequam illi transmitti possunt. Cum hoc frustum generavisti, disseminatum est ad rete ut addatur ad catenam frustorum. Si aboritur inire catenam, status eius mutabit in "non acceptum" et non transmittabile erit. Hoc interdum accidat si alter nodus frustum generat paucis secundis ante vel post tuum.</translation>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Informatio de debug</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Transactio</translation>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation>Lectenda</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Quantitas</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>verum</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>falsum</translation>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation>, nondum prospere disseminatum est</translation>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform>Aperi pro %n pluribus frustis</numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation>ignotum</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Particularia transactionis</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Haec tabula monstrat descriptionem verbosam transactionis</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation>Dies</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Typus</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Inscriptio</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Quantitas</translation>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Aperi pro %n plure frusto</numerusform><numerusform>Aperi pro %n pluribus frustis</numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>Apertum donec %1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation>Non conectum (%1 confirmationes)</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>Non confirmatum (%1 de %2 confirmationibus)</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Confirmatum (%1 confirmationes)</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>Fossum pendendum utibile erit quando id maturum est post %n plus frustum</numerusform><numerusform>Fossum pendendum utibile erit quando id maturum est post %n pluria frusta</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>Hoc frustum non acceptum est ab ulla alia nodis et probabiliter non acceptum erit!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Generatum sed non acceptum</translation>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation>Acceptum cum</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Acceptum ab</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Missum ad</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Pensitatio ad te ipsum</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Fossa</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>Status transactionis. Supervola cum mure ut monstretur numerus confirmationum.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Dies et tempus quando transactio accepta est.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Typus transactionis.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Inscriptio destinationis transactionis.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Quantitas remota ex pendendo aut addita ei.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation>Omne</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Hodie</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Hac hebdomade</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Hoc mense</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Postremo mense</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Hoc anno</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Intervallum...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Acceptum cum</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Missum ad</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Ad te ipsum</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Fossa</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Alia</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Insere inscriptionem vel titulum ut quaeras</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Quantitas minima</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Copia inscriptionem</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copia titulum</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Copia quantitatem</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Copia transactionis ID</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Muta titulum</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Monstra particularia transactionis</translation>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation>Exporta Data Transactionum</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Comma Separata Plica (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Confirmatum</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Dies</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Typus</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Titulus</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Inscriptio</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Quantitas</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Error exportandi</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Non potuisse scribere ad plicam %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Intervallum:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>ad</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation>Mitte Nummos</translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation>&Exporta</translation>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation>Exporta data in hac tabella in plicam</translation>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation>Conserva cassidile</translation>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation>Data cassidilis (*.dat)</translation>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation>Conservare abortum est.</translation>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation>Error erat conante salvare data cassidilis ad novum locum.</translation>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation>Successum in conservando</translation>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation>Successum in salvando data cassidilis in novum locum.</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>Termocoin version</source>
<translation>Versio de Termocoin</translation>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation>Usus:</translation>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or Termocoin</source>
<translation>Mitte mandatum ad -server vel Termocoin</translation>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation>Enumera mandata</translation>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation>Accipe auxilium pro mandato</translation>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation>Optiones:</translation>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: Termocoin.conf)</source>
<translation>Specifica configurationis plicam (praedefinitum: Termocoin.conf)</translation>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: Termocoin.pid)</source>
<translation>Specifica pid plicam (praedefinitum: Termocoin.pid)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Specifica indicem datorum</translation>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Constitue magnitudinem databasis cache in megabytes (praedefinitum: 25)</translation>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 7272 or testnet: 17272)</source>
<translation>Ausculta pro conexionibus in <porta> (praedefinitum: 7272 vel testnet: 17272)</translation>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Manutene non plures quam <n> conexiones ad paria (praedefinitum: 125)</translation>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Conecta ad nodum acceptare inscriptiones parium, et disconecte</translation>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation>Specifica tuam propriam publicam inscriptionem</translation>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Limen pro disconectendo paria improba (praedefinitum: 100)</translation>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Numerum secundorum prohibere ne paria improba reconectant (praedefinitum: 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>Error erat dum initians portam RPC %u pro auscultando in IPv4: %s</translation>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 9393 or testnet: 19393)</source>
<translation>Ausculta pro conexionibus JSON-RPC in <porta> (praedefinitum: 9393 vel testnet: 19393)</translation>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Accipe terminalis et JSON-RPC mandata.</translation>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Operare infere sicut daemon et mandata accipe</translation>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation>Utere rete experimentale</translation>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Accipe conexiones externas (praedefinitum: 1 nisi -proxy neque -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=razorrpc
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 "Termocoin Alert" admin@foo.com
</source>
<translation>%s, necesse est te rpcpassword constituere in plica configurationis:
%s
Hortatur te hanc fortuitam tesseram uti:
rpcuser=razorrpc
rpcpassword=%s
(non est necesse te hanc tesseram meminisse)
Nomen usoris et tessera eadem esse NON POSSUNT.
Si plica non existit, eam crea cum permissionibus ut eius dominus tantum sinitur id legere.
Quoque hortatur alertnotify constituere ut tu notificetur de problematibus;
exempli gratia: alertnotify=echo %%s | mail -s "Termocoin Notificatio" admin@foo.com
</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>Error erat dum initians portam RPC %u pro auscultando in IPv6, labens retrorsum ad 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>Conglutina ad inscriptionem datam et semper in eam ausculta. Utere [moderatrum]:porta notationem pro IPv6</translation>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. Termocoin is probably already running.</source>
<translation>Non posse serare datorum indicem %s. Termocoin probabiliter iam operatur.</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>Error: Transactio eiecta est! Hoc possit accidere si alii nummorum in cassidili tuo iam soluti sint, ut si usus es exemplar de wallet.dat et nummi soluti sunt in exemplari sed non hic notati ut soluti.</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>Error: Huic transactioni necesse est merces saltem %s propter eius magnitudinem, complexitatem, vel usum recentum acceptorum nummorum!</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation>Facere mandatum quotiescumque notificatio affinis accipitur (%s in mandato mutatur in nuntium) </translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Facere mandatum quotiescumque cassidilis transactio mutet (%s in mandato sbstituitur ab TxID)</translation>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation>Constitue magnitudinem maximam transactionum magnae-prioritatis/parvae-mercedis in octetis/bytes (praedefinitum: 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>Hoc est prae-dimittum experimentala aedes - utere eo periculo tuo proprio - nolite utere fodendo vel applicationibus mercatoriis</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>Monitio: -paytxfee constitutum valde magnum! Hoc est merces transactionis solves si mittis transactionem.</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>Monitio: Monstratae transactiones fortasse non recta sint! Forte oportet tibi progredere, an aliis nodis progredere.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Termocoin will not work properly.</source>
<translation>Monitio: Sodes cura ut dies tempusque computatri tui recti sunt! Si horologium tuum pravum est, Termocoin non proprie fungetur.</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>Monitio: error legendo wallet.dat! Omnes claves recte lectae, sed data transactionum vel libri inscriptionum fortasse desint vel prava sint.</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>Monitio: wallet.data corrupta, data salvata! Originalis wallet.dat salvata ut wallet.{timestamp}.bak in %s; si pendendum tuum vel transactiones pravae sunt, oportet ab conservato restituere.</translation>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Conare recipere claves privatas de corrupto wallet.dat</translation>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation>Optiones creandi frustorum:</translation>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation>Conecte sole ad nodos specificatos (vel nodum specificatum)</translation>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation>Corruptum databasum frustorum invenitur</translation>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Discooperi propriam inscriptionem IP (praedefinitum: 1 quando auscultans et nullum -externalip)</translation>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation>Visne reficere databasum frustorum iam?</translation>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation>Error initiando databasem frustorum</translation>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation>Error initiando systematem databasi cassidilis %s!</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation>Error legendo frustorum databasem</translation>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation>Error aperiendo databasum frustorum</translation>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation>Error: Inopia spatii disci!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation>Error: Cassidile seratum, non posse transactionem creare!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation>Error: systematis error:</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Non potuisse auscultare in ulla porta. Utere -listen=0 si hoc vis.</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation>Non potuisse informationem frusti legere </translation>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation>Non potuisse frustum legere</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation>Synchronizare indicem frustorum abortum est</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation>Scribere indicem frustorum abortum est</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation>Scribere informationem abortum est</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation>Scribere frustum abortum est</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation>Scribere informationem plicae abortum est</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation>Scribere databasem nummorum abortum est</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation>Scribere indicem transactionum abortum est</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation>Scribere data pro cancellando mutationes abortum est</translation>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation>Inveni paria utendo DNS quaerendo (praedefinitum: 1 nisi -connect)</translation>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation>Genera nummos (praedefinitum: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation>Quot frusta proba ad initium (praedefinitum: 288, 0 = omnia)</translation>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation>Quam perfecta frustorum verificatio est (0-4, praedefinitum: 3)</translation>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation>Inopia descriptorum plicarum.</translation>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation>Restituere indicem catenae frustorum ex activis plicis blk000??.dat</translation>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation>Constitue numerum filorum ad tractandum RPC postulationes (praedefinitum: 4)</translation>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation>Verificante frusta...</translation>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation>Verificante cassidilem...</translation>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation>Importat frusta ab externa plica 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>Constitue numerum filorum verificationis scriptorum (Maximum 16, 0 = auto, <0 = tot corda libera erunt, praedefinitum: 0)</translation>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation>Informatio</translation>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation>Inscriptio -tor non valida: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation>Quantitas non valida pro -minrelaytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation>Quantitas non valida pro -mintxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation>Manutene completam indicem transactionum (praedefinitum: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Maxima magnitudo memoriae pro datis accipendis singulis conexionibus, <n>*1000 octetis/bytes (praedefinitum: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Maxima magnitudo memoriae pro datis mittendis singulis conexionibus, <n>*1000 octetis/bytes (praedefinitum: 1000)</translation>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation>Tantum accipe catenam frustorum convenientem internis lapidibus (praedefinitum: 1)</translation>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>Tantum conecte ad nodos in rete <net> (IPv4, IPv6 aut Tor)</translation>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation>Exscribe additiciam informationem pro debug. Implicat omnes alias optiones -debug*</translation>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation>Exscribe additiciam informationem pro retis debug.</translation>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation>Antepone pittacium temporis ante exscriptum de debug </translation>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the Termocoin Wiki for SSL setup instructions)</source>
<translation>Optiones SSL: (vide vici de Termocoin pro instructionibus SSL configurationis)</translation>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation>Selige versionem socks vicarii utendam (4-5, praedefinitum: 5)</translation>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Mitte informationem vestigii/debug ad terminale potius quam plicam debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation>Mitte informationem vestigii/debug ad debugger</translation>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation>Constitue maximam magnitudinem frusti in octetis/bytes (praedefinitum: 250000)</translation>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Constitue minimam magnitudinem frusti in octetis/bytes (praedefinitum: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Diminue plicam debug.log ad initium clientis (praedefinitum: 1 nisi -debug)</translation>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation>Signandum transactionis abortum est</translation>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Specifica tempumfati conexionis in millisecundis (praedefinitum: 5000)</translation>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation>Systematis error:</translation>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation>Magnitudo transactionis nimis parva</translation>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation>Necesse est magnitudines transactionum positivas esse.</translation>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation>Transactio nimis magna</translation>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Utere UPnP designare portam auscultandi (praedefinitum: 0)</translation>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Utere UPnP designare portam auscultandi (praedefinitum: 1 quando auscultans)</translation>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation>Utere vicarium ut extendas ad tor servitia occulta (praedefinitum: idem ut -proxy)</translation>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation>Nomen utentis pro conexionibus JSON-RPC</translation>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation>Monitio</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Monitio: Haec versio obsoleta est, progressio postulata!</translation>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation>Oportet recreare databases utendo -reindex ut mutes -txindex</translation>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat corrupta, salvare abortum est</translation>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation>Tessera pro conexionibus JSON-RPC</translation>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Permitte conexionibus JSON-RPC ex inscriptione specificata</translation>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Mitte mandata nodo operanti in <ip> (praedefinitum: 127.0.0.1)</translation>
</message>
<message>
<location line="-120"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Pelle mandatum quando optissimum frustum mutat (%s in mandato substituitur ab hash frusti)</translation>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation>Progredere cassidile ad formam recentissimam</translation>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Constitue magnitudinem stagni clavium ad <n> (praedefinitum: 100)</translation>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Iterum perlege catenam frustorum propter absentes cassidilis transactiones</translation>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Utere OpenSSL (https) pro conexionibus JSON-RPC</translation>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Plica certificationis daemonis moderantis (praedefinitum: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Clavis privata daemonis moderans (praedefinitum: server.pem)</translation>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation>Acceptabiles cifrae (praedefinitum: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation>Hic nuntius auxilii</translation>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Non posse conglutinare ad %s in hoc computatro (conglutinare redidit errorem %d, %s)</translation>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation>Conecte per socks vicarium</translation>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Permitte quaerenda DNS pro -addnode, -seednode, et -connect</translation>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation>Legens inscriptiones...</translation>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Error legendi wallet.dat: Cassidile corruptum</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of Termocoin</source>
<translation>Error legendi wallet.dat: Cassidili necesse est recentior versio Termocoin</translation>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart Termocoin to complete</source>
<translation>Cassidili necesse erat rescribi: Repelle Termocoin ut compleas</translation>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation>Error legendi wallet.dat</translation>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Inscriptio -proxy non valida: '%s'</translation>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Ignotum rete specificatum in -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Ignota -socks vicarii versio postulata: %i</translation>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Non posse resolvere -bind inscriptonem: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Non posse resolvere -externalip inscriptionem: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Quantitas non valida pro -paytxfee=<quantitas>: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation>Quantitas non valida</translation>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation>Inopia nummorum</translation>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation>Legens indicem frustorum...</translation>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Adice nodum cui conectere et conare sustinere conexionem apertam</translation>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. Termocoin is probably already running.</source>
<translation>Non posse conglutinare ad %s in hoc cumputatro. Termocoin probabiliter iam operatur.</translation>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation>Merces per KB addere ad transactiones tu mittas</translation>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation>Legens cassidile...</translation>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation>Non posse cassidile regredi</translation>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation>Non posse scribere praedefinitam inscriptionem</translation>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation>Iterum perlegens...</translation>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation>Completo lengendi</translation>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation>Ut utaris optione %s</translation>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation>Error</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>Necesse est te rpcpassword=<tesseram> constituere in plica configurationum:
%s
Si plica non existat, crea eam cum permissionibus ut solus eius dominus eam legere sinatur.</translation>
</message>
</context>
</TS> | Termocoin/Termocoin | src/qt/locale/bitcoin_la.ts | TypeScript | mit | 117,262 |
module PostsWithCollectionAndFilesHelper
end
| AskDiana/uploadcare-rails | spec/dummy/app/helpers/posts_with_collection_and_files_helper.rb | Ruby | mit | 45 |
namespace App.Common.Enums
{
public enum ResourceFileVersion
{
Version1 = 1,
Version2 = 2
}
}
| Digiman/AzureBillingViewer | App.Common/Enums/ResourceFileVersion.cs | C# | mit | 125 |
package modulo0.tree;
public class Declare extends Stat {
public Declare(Var x, Expr e, Stat s) {
super("Declare", new M0Node[] { x, e, s });
}
@Override
protected Stat copy() {
return new Declare((Var) getChild(0), (Expr) getChild(1), (Stat) getChild(2));
}
}
| nuthatchery/modulo0 | modulo0/src/modulo0/tree/Declare.java | Java | mit | 275 |
<?php
/**
* @copyright Copyright (C) 2015-2018 AIZAWA Hina
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
* @author AIZAWA Hina <hina@fetus.jp>
*/
use app\components\db\Migration;
use app\components\db\WeaponMigration;
class m180420_090724_longblaster_custom extends Migration
{
use WeaponMigration;
public function safeUp()
{
$this->upWeapon(
'longblaster_custom',
'Custom Range Blaster',
'blaster',
'curlingbomb',
'bubble',
'longblaster',
null,
221
);
}
public function safeDown()
{
$this->downWeapon('longblaster_custom');
}
}
| fetus-hina/stat.ink | migrations/m180420_090724_longblaster_custom.php | PHP | mit | 714 |
package telebot
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"mime/multipart"
"net/http"
"os"
"strconv"
"strings"
"time"
)
// Raw lets you call any method of Bot API manually.
// It also handles API errors, so you only need to unwrap
// result field from json data.
func (b *Bot) Raw(method string, payload interface{}) ([]byte, error) {
url := b.URL + "/bot" + b.Token + "/" + method
var buf bytes.Buffer
if err := json.NewEncoder(&buf).Encode(payload); err != nil {
return nil, err
}
resp, err := b.client.Post(url, "application/json", &buf)
if err != nil {
return nil, wrapError(err)
}
resp.Close = true
defer resp.Body.Close()
data, err := ioutil.ReadAll(resp.Body)
if err != nil {
return nil, wrapError(err)
}
if b.verbose {
body, _ := json.Marshal(payload)
body = bytes.ReplaceAll(body, []byte(`\"`), []byte(`"`))
body = bytes.ReplaceAll(body, []byte(`"{`), []byte(`{`))
body = bytes.ReplaceAll(body, []byte(`}"`), []byte(`}`))
indent := func(b []byte) string {
buf.Reset()
json.Indent(&buf, b, "", "\t")
return buf.String()
}
log.Printf("[verbose] telebot: sent request\n"+
"Method: %v\nParams: %v\nResponse: %v",
method, indent(body), indent(data))
}
// returning data as well
return data, extractOk(data)
}
func (b *Bot) sendFiles(method string, files map[string]File, params map[string]string) ([]byte, error) {
rawFiles := make(map[string]interface{})
for name, f := range files {
switch {
case f.InCloud():
params[name] = f.FileID
case f.FileURL != "":
params[name] = f.FileURL
case f.OnDisk():
rawFiles[name] = f.FileLocal
case f.FileReader != nil:
rawFiles[name] = f.FileReader
default:
return nil, fmt.Errorf("telebot: file for field %s doesn't exist", name)
}
}
if len(rawFiles) == 0 {
return b.Raw(method, params)
}
pipeReader, pipeWriter := io.Pipe()
writer := multipart.NewWriter(pipeWriter)
go func() {
defer pipeWriter.Close()
for field, file := range rawFiles {
if err := addFileToWriter(writer, files[field].fileName, field, file); err != nil {
pipeWriter.CloseWithError(err)
return
}
}
for field, value := range params {
if err := writer.WriteField(field, value); err != nil {
pipeWriter.CloseWithError(err)
return
}
}
if err := writer.Close(); err != nil {
pipeWriter.CloseWithError(err)
return
}
}()
url := b.URL + "/bot" + b.Token + "/" + method
resp, err := b.client.Post(url, writer.FormDataContentType(), pipeReader)
if err != nil {
err = wrapError(err)
pipeReader.CloseWithError(err)
return nil, err
}
resp.Close = true
defer resp.Body.Close()
if resp.StatusCode == http.StatusInternalServerError {
return nil, ErrInternal
}
data, err := ioutil.ReadAll(resp.Body)
if err != nil {
return nil, wrapError(err)
}
return data, extractOk(data)
}
func addFileToWriter(writer *multipart.Writer, filename, field string, file interface{}) error {
var reader io.Reader
if r, ok := file.(io.Reader); ok {
reader = r
} else if path, ok := file.(string); ok {
f, err := os.Open(path)
if err != nil {
return err
}
defer f.Close()
reader = f
} else {
return fmt.Errorf("telebot: file for field %v should be io.ReadCloser or string", field)
}
part, err := writer.CreateFormFile(field, filename)
if err != nil {
return err
}
_, err = io.Copy(part, reader)
return err
}
func (b *Bot) sendText(to Recipient, text string, opt *SendOptions) (*Message, error) {
params := map[string]string{
"chat_id": to.Recipient(),
"text": text,
}
b.embedSendOptions(params, opt)
data, err := b.Raw("sendMessage", params)
if err != nil {
return nil, err
}
return extractMessage(data)
}
func (b *Bot) sendMedia(media Media, params map[string]string, files map[string]File) (*Message, error) {
kind := media.MediaType()
what := "send" + strings.Title(kind)
if kind == "videoNote" {
kind = "video_note"
}
sendFiles := map[string]File{kind: *media.MediaFile()}
for k, v := range files {
sendFiles[k] = v
}
data, err := b.sendFiles(what, sendFiles, params)
if err != nil {
return nil, err
}
return extractMessage(data)
}
func (b *Bot) getMe() (*User, error) {
data, err := b.Raw("getMe", nil)
if err != nil {
return nil, err
}
var resp struct {
Result *User
}
if err := json.Unmarshal(data, &resp); err != nil {
return nil, wrapError(err)
}
return resp.Result, nil
}
func (b *Bot) getUpdates(offset, limit int, timeout time.Duration, allowed []string) ([]Update, error) {
params := map[string]string{
"offset": strconv.Itoa(offset),
"timeout": strconv.Itoa(int(timeout / time.Second)),
}
if limit != 0 {
params["limit"] = strconv.Itoa(limit)
}
if len(allowed) > 0 {
data, _ := json.Marshal(allowed)
params["allowed_updates"] = string(data)
}
data, err := b.Raw("getUpdates", params)
if err != nil {
return nil, err
}
var resp struct {
Result []Update
}
if err := json.Unmarshal(data, &resp); err != nil {
return nil, wrapError(err)
}
return resp.Result, nil
}
| tucnak/telebot | api.go | GO | mit | 5,082 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import * as _ from 'vs/base/parts/tree/browser/tree';
import * as Mouse from 'vs/base/browser/mouseEvent';
export class ElementsDragAndDropData implements _.IDragAndDropData {
private elements: any[];
constructor(elements: any[]) {
this.elements = elements;
}
public update(event: Mouse.DragMouseEvent): void {
// no-op
}
public getData(): any {
return this.elements;
}
}
export class ExternalElementsDragAndDropData implements _.IDragAndDropData {
private elements: any[];
constructor(elements: any[]) {
this.elements = elements;
}
public update(event: Mouse.DragMouseEvent): void {
// no-op
}
public getData(): any {
return this.elements;
}
}
export class DesktopDragAndDropData implements _.IDragAndDropData {
private types: any[];
private files: any[];
constructor() {
this.types = [];
this.files = [];
}
public update(event: Mouse.DragMouseEvent): void {
if (event.dataTransfer.types) {
this.types = [];
Array.prototype.push.apply(this.types, event.dataTransfer.types);
}
if (event.dataTransfer.files) {
this.files = [];
Array.prototype.push.apply(this.files, event.dataTransfer.files);
this.files = this.files.filter(f => f.size || f.type);
}
}
public getData(): any {
return {
types: this.types,
files: this.files
};
}
} | rishii7/vscode | src/vs/base/parts/tree/browser/treeDnd.ts | TypeScript | mit | 1,682 |
import Vue from 'vue';
import Router from 'vue-router';
import Home from '@/views/Home.vue';
import Sms from '@/views/SMS.vue';
import Services from '@/views/Services.vue';
import Settings from '@/views/Settings.vue';
import Wlan from '@/views/settings/wlan.vue';
import DialUp from '@/views/settings/dialup.vue';
import AppSettings from '@/views/AppSettings.vue';
Vue.use(Router);
export default new Router({
routes: [
{
path: '/',
redirect: { name: 'home' },
},
{
path: '/home',
name: 'home',
component: Home,
},
{
path: '/sms',
name: 'sms',
component: Sms,
},
{
path: '/statistics',
name: 'statistics',
},
{
path: '/services',
name: 'services',
component: Services,
},
{
path: '/settings',
name: 'settings',
component: Settings,
redirect: { name: 'settings/wlan' },
children: [
{
path: 'wlan',
name: 'settings/wlan',
component: Wlan,
label: 'WLAN',
},
{
path: 'dialup',
name: 'settings/dialup',
component: DialUp,
label: 'Dial-up',
},
],
},
{
path: '/app-settings',
name: 'appSettings',
component: AppSettings,
},
],
});
| nextgensparx/quantum-router | src/vue-router/index.js | JavaScript | mit | 1,330 |
<?php
namespace Mpay24\Responses;
/**
* The AbstractPaymentResponse class contains all the parameters, returned with the confirmation from mPAY24
*
* Class AbstractPaymentResponse
* @package Mpay24\Responses
*
* @author mPAY24 GmbH <support@mpay24.com>
* @author Stefan Polzer <develop@ps-webdesign.com>
* @filesource AbstractPaymentResponse.php
* @license MIT
*/
abstract class AbstractPaymentResponse extends AbstractResponse
{
/**
* @var int
*/
protected $mpayTid;
/**
* @var int
*/
protected $errNo;
/**
* @var string
*/
protected $errText;
/**
* @var string
*/
protected $location;
/**
* AbstractPaymentResponse constructor.
*
* @param string $response
*/
public function __construct($response)
{
parent::__construct($response);
}
/**
* @return int
*/
public function getMpayTid()
{
return $this->mpayTid;
}
/**
* @return int
*/
public function getErrNo()
{
return $this->errNo;
}
/**
* @return string
*/
public function getErrText()
{
return $this->errText;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Parse the SelectPaymentResponse message and save the data to the corresponding attributes
*
* @param \DOMElement $body
*/
protected function parseResponse($body)
{
if (!$body instanceof \DOMElement) {
return;
}
if ($body->getElementsByTagName('mpayTID')->length > 0) {
$this->mpayTid = (int)$body->getElementsByTagName('mpayTID')->item(0)->nodeValue;
}
if ($body->getElementsByTagName('errNo')->length > 0) {
$this->errNo = (int)$body->getElementsByTagName('errNo')->item(0)->nodeValue;
}
if ($body->getElementsByTagName('errText')->length > 0) {
$this->errText = $body->getElementsByTagName('errText')->item(0)->nodeValue;
}
if ($body->getElementsByTagName('location')->length > 0) {
$this->location = $body->getElementsByTagName('location')->item(0)->nodeValue;
}
}
}
| mpay24/mpay24-php | src/Responses/AbstractPaymentResponse.php | PHP | mit | 2,290 |
module Wocket
module Bindable
def available_bindings
raise NotImplementedError
end
def bind(name, &callback)
raise "Invalid binding: #{name}" unless available_bindings.include? name
@callbacks[name] = callback
end
def trigger(name, *args)
@callbacks[name].call *args if @callbacks[name]
end
end
end
| bradylove/wocket | lib/wocket/bindable.rb | Ruby | mit | 353 |
package main.java.test;
import java.util.Optional;
import main.java.modul.Catalog;
import main.java.modul.Categorie;
import main.java.modul.Oferta;
import main.java.modul.Produs;
import main.java.service.Log;
import main.java.util.Printer;
import main.java.util.Sort;
import main.java.util.SortUtil1;
import main.java.util.Sorter;
import main.java.util.Streams;
import main.java.util.TVAprice;
/**
*
* @author mancim
*/
public class Test {
public static void main(String[] args) {
addProduse(Catalog.getInstanec());
//Sort.orderPrice7(Catalog.getInstanec().getProduse());
//Sort.orderPrice8(Catalog.getInstanec().getProduse(), SortUtil1::Sort);
//Sorter s = new Sorter();
//s.Sort(Catalog.getInstanec().getProduse());
new Oferta(1231, 20);
new Oferta(1712, 5);
new Oferta(2334, 10);
//Streams.L();
//Streams.M();
//Streams.N();
//Streams.O();
//Streams.P();
//Streams.Q();
//Streams.R();
//Streams.S();
//Streams.T();
//Streams.U();
//Streams.V();
Catalog.getInstanec().getProduse().stream().forEach(Log.logger::trace);
//System.out.println(TVAprice.addTVARON(100.0, 19.0));
//System.out.println(TVAprice.addTVAEURO(100.0, 24.0));
//System.out.println(TVAprice.addTVARON(100.0, 19.0));
//System.out.println(TVAprice.TVAEURO(100.0, 24.0));
}
public static void addProduse(Catalog catalog) {
catalog.addProdus(new Produs(1712, "Electrocasnic 1", 234.99, Categorie.ELECTROCASNICE));
catalog.addProdus(new Produs(1231, "Electrocasnic 2", 4234.99, Categorie.ELECTROCASNICE));
catalog.addProdus(new Produs(1773, "Electrocasnic 3", 99.99, Categorie.ELECTROCASNICE));
catalog.addProdus(new Produs(1221, "Electrocasnic 4", 56.99, Categorie.ELECTROCASNICE));
catalog.addProdus(new Produs(1956, "Electrocasnic 5", 233.99, Categorie.ELECTROCASNICE));
catalog.addProdus(new Produs(1918, "Electrocasnic 6", 564.99, Categorie.ELECTROCASNICE));
catalog.addProdus(new Produs(2334, "Telefon 1", 2189.99, Categorie.TELEFON));
catalog.addProdus(new Produs(2231, "Telefon 2", 1449.99, Categorie.TELEFON));
catalog.addProdus(new Produs(2456, "Telefon 3", 649.99, Categorie.TELEFON));
catalog.addProdus(new Produs(2528, "Telefon 4", 899.99, Categorie.TELEFON));
catalog.addProdus(new Produs(2445, "Telefon 5", 467.99, Categorie.TELEFON));
catalog.addProdus(new Produs(2149, "Telefon 6", 355.99, Categorie.TELEFON));
catalog.addProdus(new Produs(2859, "Telefon 7", 3578.99, Categorie.TELEFON));
catalog.addProdus(new Produs(2995, "Telefon 8", 344.99, Categorie.TELEFON));
catalog.addProdus(new Produs(3412, "Calculator 1", 2189.99, Categorie.CALCULATOR));
catalog.addProdus(new Produs(3419, "Calculator 2", 2289.99, Categorie.CALCULATOR));
catalog.addProdus(new Produs(3742, "Calculator 3", 999.99, Categorie.CALCULATOR));
catalog.addProdus(new Produs(3316, "Calculator 4", 1189.99, Categorie.CALCULATOR));
catalog.addProdus(new Produs(3123, "Calculator 5", 949.99, Categorie.CALCULATOR));
}
}
| stoiandan/msg-code | Marius/Day6/src/main/java/test/Test.java | Java | mit | 3,349 |
const Promise = require('bluebird');
const fs = require('fs-extra');
const debug = require('ghost-ignition').debug('api:themes');
const common = require('../../lib/common');
const themeService = require('../../services/themes');
const settingsCache = require('../../services/settings/cache');
const models = require('../../models');
module.exports = {
docName: 'themes',
browse: {
permissions: true,
query() {
return themeService.toJSON();
}
},
activate: {
headers: {
cacheInvalidate: true
},
options: [
'name'
],
validation: {
options: {
name: {
required: true
}
}
},
permissions: true,
query(frame) {
let themeName = frame.options.name;
let checkedTheme;
const newSettings = [{
key: 'active_theme',
value: themeName
}];
const loadedTheme = themeService.list.get(themeName);
if (!loadedTheme) {
return Promise.reject(new common.errors.ValidationError({
message: common.i18n.t('notices.data.validation.index.themeCannotBeActivated', {themeName: themeName}),
errorDetails: newSettings
}));
}
return themeService.validate.checkSafe(loadedTheme)
.then((_checkedTheme) => {
checkedTheme = _checkedTheme;
// @NOTE: we use the model, not the API here, as we don't want to trigger permissions
return models.Settings.edit(newSettings, frame.options);
})
.then(() => {
debug('Activating theme (method B on API "activate")', themeName);
themeService.activate(loadedTheme, checkedTheme);
return themeService.toJSON(themeName, checkedTheme);
});
}
},
upload: {
headers: {},
permissions: {
method: 'add'
},
query(frame) {
// @NOTE: consistent filename uploads
frame.options.originalname = frame.file.originalname.toLowerCase();
let zip = {
path: frame.file.path,
name: frame.file.originalname,
shortName: themeService.storage.getSanitizedFileName(frame.file.originalname.split('.zip')[0])
};
let checkedTheme;
// check if zip name is casper.zip
if (zip.name === 'casper.zip') {
throw new common.errors.ValidationError({
message: common.i18n.t('errors.api.themes.overrideCasper')
});
}
return themeService.validate.checkSafe(zip, true)
.then((_checkedTheme) => {
checkedTheme = _checkedTheme;
return themeService.storage.exists(zip.shortName);
})
.then((themeExists) => {
// CASE: delete existing theme
if (themeExists) {
return themeService.storage.delete(zip.shortName);
}
})
.then(() => {
// CASE: store extracted theme
return themeService.storage.save({
name: zip.shortName,
path: checkedTheme.path
});
})
.then(() => {
// CASE: loads the theme from the fs & sets the theme on the themeList
return themeService.loadOne(zip.shortName);
})
.then((loadedTheme) => {
// CASE: if this is the active theme, we are overriding
if (zip.shortName === settingsCache.get('active_theme')) {
debug('Activating theme (method C, on API "override")', zip.shortName);
themeService.activate(loadedTheme, checkedTheme);
// CASE: clear cache
this.headers.cacheInvalidate = true;
}
common.events.emit('theme.uploaded');
// @TODO: unify the name across gscan and Ghost!
return themeService.toJSON(zip.shortName, checkedTheme);
})
.finally(() => {
// @TODO: we should probably do this as part of saving the theme
// CASE: remove extracted dir from gscan
// happens in background
if (checkedTheme) {
fs.remove(checkedTheme.path)
.catch((err) => {
common.logging.error(new common.errors.GhostError({err: err}));
});
}
});
}
},
download: {
options: [
'name'
],
validation: {
options: {
name: {
required: true
}
}
},
permissions: {
method: 'read'
},
query(frame) {
let themeName = frame.options.name;
const theme = themeService.list.get(themeName);
if (!theme) {
return Promise.reject(new common.errors.BadRequestError({
message: common.i18n.t('errors.api.themes.invalidThemeName')
}));
}
return themeService.storage.serve({
name: themeName
});
}
},
destroy: {
statusCode: 204,
headers: {
cacheInvalidate: true
},
options: [
'name'
],
validation: {
options: {
name: {
required: true
}
}
},
permissions: true,
query(frame) {
let themeName = frame.options.name;
if (themeName === 'casper') {
throw new common.errors.ValidationError({
message: common.i18n.t('errors.api.themes.destroyCasper')
});
}
if (themeName === settingsCache.get('active_theme')) {
throw new common.errors.ValidationError({
message: common.i18n.t('errors.api.themes.destroyActive')
});
}
const theme = themeService.list.get(themeName);
if (!theme) {
throw new common.errors.NotFoundError({
message: common.i18n.t('errors.api.themes.themeDoesNotExist')
});
}
return themeService.storage.delete(themeName)
.then(() => {
themeService.list.del(themeName);
});
}
}
};
| Gargol/Ghost | core/server/api/v2/themes.js | JavaScript | mit | 7,109 |
import React, {PropTypes, Component} from 'react';
import { NavGroup } from 'react-photonkit'
/*class NavGroup extends Component {
static propTypes = {
children: PropTypes.any
}
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<nav className="nav-group">
{this.props.children}
</nav>
);
}
}*/
export default NavGroup
| z81/PolarOS_Next | src/components/Elements/NavGroup/NavGroup.js | JavaScript | mit | 397 |
var Vector;
(function (Vector) {
function clean(n) {
var vector = [];
for (var i = 0; i < n; i++) {
vector[i] = 0;
}
return vector;
}
Vector.clean = clean;
function create() {
var values = [];
for (var _i = 0; _i < arguments.length; _i++) {
values[_i - 0] = arguments[_i];
}
var vector = [];
for (var i = 0; i < values.length; i++) {
vector[i] = values[i];
}
return vector;
}
Vector.create = create;
function dot(vec1, vec2) {
var dot = 0;
for (var i = 0; i < vec1.length; i++) {
dot += vec1[i] * vec2[i];
}
return dot;
}
Vector.dot = dot;
function magnitude(vec) {
return Math.sqrt(Vector.dot(vec, vec));
}
Vector.magnitude = magnitude;
function angle(vec1, vec2) {
return Math.acos(Vector.dot(vec1, vec2) / (Vector.magnitude(vec1) * Vector.magnitude(vec2)));
}
Vector.angle = angle;
var Vec2;
(function (Vec2) {
function clean() {
return [0, 0];
}
Vec2.clean = clean;
function create(x, y) {
return [x, y];
}
Vec2.create = create;
function dot(vec1, vec2) {
return vec1[0] * vec2[0] + vec1[1] * vec2[1];
}
Vec2.dot = dot;
})(Vec2 = Vector.Vec2 || (Vector.Vec2 = {}));
var Vec3;
(function (Vec3) {
function clean() {
return [0, 0, 0];
}
Vec3.clean = clean;
function create(x, y, z) {
return [x, y, z];
}
Vec3.create = create;
function dot(vec1, vec2) {
return vec1[0] * vec2[0] + vec1[1] * vec2[1] + vec1[2] * vec2[2];
}
Vec3.dot = dot;
})(Vec3 = Vector.Vec3 || (Vector.Vec3 = {}));
var Vec4;
(function (Vec4) {
function clean() {
return [0, 0, 0, 0];
}
Vec4.clean = clean;
function create(x, y, z, w) {
return [x, y, z, w];
}
Vec4.create = create;
function dot(vec1, vec2) {
return vec1[0] * vec2[0] + vec1[1] * vec2[1] + vec1[2] * vec2[2] + vec1[3] * vec2[3];
}
Vec4.dot = dot;
})(Vec4 = Vector.Vec4 || (Vector.Vec4 = {}));
})(Vector || (Vector = {}));
var Matrix;
(function (Matrix) {
function clean(size) {
return Vector.clean(size * size);
}
Matrix.clean = clean;
function identity(size) {
var mat = [];
for (var i = 0; i < size * size; i++) {
mat[i] = (Math.floor(i / size) - i % size) == 0 ? 1 : 0;
}
return mat;
}
Matrix.identity = identity;
function copy(mat) {
return mat.slice();
}
Matrix.copy = copy;
function getRow(mat, row) {
var size = Matrix.size(mat);
var vec = [];
for (var i = 0; i < size; i++) {
vec[i] = mat[row + i * size];
}
return vec;
}
Matrix.getRow = getRow;
function getColom(mat, colom) {
var size = Matrix.size(mat);
var vec = [];
for (var i = 0; i < size; i++) {
vec[i] = mat[colom * size + i];
}
return vec;
}
Matrix.getColom = getColom;
function getValue(mat, row, colom) {
var size = Matrix.size(mat);
return mat[row + colom * size];
}
Matrix.getValue = getValue;
function setRow(mat, row, value) {
var size = Matrix.size(mat);
for (var i = 0; i < size; i++) {
mat[row + i * size] = value[i];
}
return mat;
}
Matrix.setRow = setRow;
function setColom(mat, colom, value) {
var size = Matrix.size(mat);
for (var i = 0; i < size; i++) {
mat[colom * size + i] = value[i];
}
return mat;
}
Matrix.setColom = setColom;
function setvalue(mat, row, colom, value) {
var size = Matrix.size(mat);
mat[row + colom * size] = value;
return mat;
}
Matrix.setvalue = setvalue;
function size(mat) {
return Math.sqrt(mat.length);
}
Matrix.size = size;
function getTranspose(mat) {
var size = Matrix.size(mat);
var matOut = Matrix.clean(size);
for (var i = 0; i < size; i++) {
Matrix.setColom(matOut, i, Matrix.getRow(mat, i));
}
return matOut;
}
Matrix.getTranspose = getTranspose;
var Mat4;
(function (Mat4) {
function identity() {
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
}
Mat4.identity = identity;
function mul(mat1, mat2) {
return [
mat1[0] * mat2[0] + mat1[4] * mat2[1] + mat1[8] * mat2[2] + mat1[12] * mat2[3],
mat1[1] * mat2[0] + mat1[5] * mat2[1] + mat1[9] * mat2[2] + mat1[13] * mat2[3],
mat1[2] * mat2[0] + mat1[6] * mat2[1] + mat1[10] * mat2[2] + mat1[14] * mat2[3],
mat1[3] * mat2[0] + mat1[7] * mat2[1] + mat1[11] * mat2[2] + mat1[15] * mat2[3],
mat1[0] * mat2[4] + mat1[4] * mat2[5] + mat1[8] * mat2[6] + mat1[12] * mat2[7],
mat1[1] * mat2[4] + mat1[5] * mat2[5] + mat1[9] * mat2[6] + mat1[13] * mat2[7],
mat1[2] * mat2[4] + mat1[6] * mat2[5] + mat1[10] * mat2[6] + mat1[14] * mat2[7],
mat1[3] * mat2[4] + mat1[7] * mat2[5] + mat1[11] * mat2[6] + mat1[15] * mat2[7],
mat1[0] * mat2[8] + mat1[4] * mat2[9] + mat1[8] * mat2[10] + mat1[12] * mat2[11],
mat1[1] * mat2[8] + mat1[5] * mat2[9] + mat1[9] * mat2[10] + mat1[13] * mat2[11],
mat1[2] * mat2[8] + mat1[6] * mat2[9] + mat1[10] * mat2[10] + mat1[14] * mat2[11],
mat1[3] * mat2[8] + mat1[7] * mat2[9] + mat1[11] * mat2[10] + mat1[15] * mat2[11],
mat1[0] * mat2[12] + mat1[4] * mat2[13] + mat1[8] * mat2[14] + mat1[12] * mat2[15],
mat1[1] * mat2[12] + mat1[5] * mat2[13] + mat1[9] * mat2[14] + mat1[13] * mat2[15],
mat1[2] * mat2[12] + mat1[6] * mat2[13] + mat1[10] * mat2[14] + mat1[14] * mat2[15],
mat1[3] * mat2[12] + mat1[7] * mat2[13] + mat1[11] * mat2[14] + mat1[15] * mat2[15]
];
}
Mat4.mul = mul;
function translate(p1, p2, p3) {
if (typeof p3 == "number") {
var x = p2;
var y = p3;
var mat = p1;
var newColom = Vector.Vec4.create(mat[0] * x + mat[4] * y + mat[12], mat[1] * x + mat[5] * y + mat[13], mat[2] * x + mat[6] * y + mat[14], mat[3] * x + mat[7] * y + mat[15]);
return setColom(mat, 3, newColom);
}
else {
var x = p1;
var y = p2;
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x, y, 0, 1];
}
}
Mat4.translate = translate;
function scale(p1, p2, p3) {
if (typeof p3 == "number") {
var width = p2;
var height = p3;
var mat = p1;
var newColom1 = Vector.Vec4.create(mat[0] * width, mat[1] * width, mat[2] * width, mat[3] * width);
var newColom2 = Vector.Vec4.create(mat[4] * height, mat[5] * height, mat[6] * height, mat[7] * height);
setColom(mat, 0, newColom1);
setColom(mat, 1, newColom2);
return mat;
}
else {
var width = p1;
var height = p2;
return [width, 0, 0, 0, 0, height, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
}
}
Mat4.scale = scale;
function rotate(p1, p2) {
if (typeof p2 == "number") {
var rad = p2;
var mat = p1;
var newColom1 = Vector.Vec4.create(mat[0] * Math.cos(rad) + mat[4] * Math.sin(rad), mat[1] * Math.cos(rad) + mat[5] * Math.sin(rad), mat[2] * Math.cos(rad) + mat[6] * Math.sin(rad), mat[3] * Math.cos(rad) + mat[7] * Math.sin(rad));
var newColom2 = Vector.Vec4.create(mat[0] * -Math.sin(rad) + mat[4] * Math.cos(rad), mat[1] * -Math.sin(rad) + mat[5] * Math.cos(rad), mat[2] * -Math.sin(rad) + mat[6] * Math.cos(rad), mat[3] * -Math.sin(rad) + mat[7] * Math.cos(rad));
setColom(mat, 0, newColom1);
setColom(mat, 1, newColom2);
return mat;
}
else {
var rad = p1;
return [Math.cos(rad), Math.sin(rad), 0, 0, -Math.sin(rad), Math.cos(rad), 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
}
}
Mat4.rotate = rotate;
function ortho(left, right, bottom, top) {
return [2 / (right - left), 0, 0, 0, 0, 2 / (top - bottom), 0, 0, 0, 0, -2 / (-1 - 1), 0, -(right + left) / (right - left), -(top + bottom) / (top - bottom), -(-1 + 1) / (-1 - 1), 1];
}
Mat4.ortho = ortho;
})(Mat4 = Matrix.Mat4 || (Matrix.Mat4 = {}));
var Mat3;
(function (Mat3) {
function identity() {
return [1, 0, 0, 0, 1, 0, 0, 0, 1];
}
Mat3.identity = identity;
function mul(mat1, mat2) {
return [
mat1[0] * mat2[0] + mat1[3] * mat2[1] + mat1[6] * mat2[2],
mat1[1] * mat2[0] + mat1[4] * mat2[1] + mat1[7] * mat2[2],
mat1[2] * mat2[0] + mat1[5] * mat2[1] + mat1[8] * mat2[2],
mat1[0] * mat2[3] + mat1[3] * mat2[4] + mat1[6] * mat2[5],
mat1[1] * mat2[3] + mat1[4] * mat2[4] + mat1[7] * mat2[5],
mat1[2] * mat2[3] + mat1[5] * mat2[4] + mat1[8] * mat2[5],
mat1[0] * mat2[6] + mat1[3] * mat2[7] + mat1[6] * mat2[8],
mat1[1] * mat2[6] + mat1[4] * mat2[7] + mat1[7] * mat2[8],
mat1[2] * mat2[6] + mat1[5] * mat2[7] + mat1[8] * mat2[8],
];
}
Mat3.mul = mul;
})(Mat3 = Matrix.Mat3 || (Matrix.Mat3 = {}));
var Mat2;
(function (Mat2) {
function identity() {
return [1, 0, 0, 1];
}
Mat2.identity = identity;
function mul(mat1, mat2) {
return [
mat1[0] * mat2[0] + mat1[2] * mat2[1],
mat1[1] * mat2[0] + mat1[3] * mat2[1],
mat1[0] * mat2[2] + mat1[2] * mat2[3],
mat1[1] * mat2[2] + mat1[3] * mat2[3],
];
}
Mat2.mul = mul;
})(Mat2 = Matrix.Mat2 || (Matrix.Mat2 = {}));
})(Matrix || (Matrix = {}));
var MMath;
(function (MMath) {
var SEED = 0;
var TO_RAD = (Math.PI * 2) / 360;
var TO_DEG = 360 / (Math.PI * 2);
function setRandomSeed(seed) {
SEED = seed;
}
MMath.setRandomSeed = setRandomSeed;
function random(min, max) {
if (min === void 0) { min = 0; }
if (max === void 0) { max = 1; }
SEED = (SEED * 9301 + 49297) % 233280;
var rnd = SEED / 233280;
return min + rnd * (max - min);
}
MMath.random = random;
function toRad(deg) {
return deg * TO_RAD;
}
MMath.toRad = toRad;
function toDeg(rad) {
return rad * TO_DEG;
}
MMath.toDeg = toDeg;
function mod(num, max) {
return ((num % max) + max) % max;
}
MMath.mod = mod;
function logN(base, num) {
return Math.log(num) / Math.log(base);
}
MMath.logN = logN;
function isPowerOf2(n) {
if (n == 0)
return false;
else
return (n & (n - 1)) == 0;
}
MMath.isPowerOf2 = isPowerOf2;
})(MMath || (MMath = {}));
//# sourceMappingURL=math.js.map | Rikmuld/Atlas | public/scripts/libs/plena/math.js | JavaScript | mit | 11,693 |
using Microsoft.DirectX;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TGC.Core.SceneLoader;
namespace TGC.Group.Model.Entities
{
class EntityPlayerItemNightVisionDevice : EntityPlayerItem
{
public EntityPlayerItemNightVisionDevice(List<TgcMesh> meshes) : base(meshes)
{
}
public override void updateItemDuration(float elapsedTime){}
protected override Vector3 getLightPosition()
{
return this.position;
}
protected override Vector3 getLightDirection()
{
return new Vector3(0f, -1f, 0f);
}
}
}
| AVinitzca/0FPS | TGC.Group/Model/Entities/EntityPlayerItemNightVisionDevice.cs | C# | mit | 695 |
package svc.managers;
import javax.inject.Inject;
import org.springframework.stereotype.Component;
import svc.data.users.UserDAO;
import svc.models.User;
@Component
public class UserManager {
@Inject
private UserDAO userDAO;
public User Login(String userId, String pwd) {
return userDAO.checkUserLogin(userId, pwd);
}
public User GetUserByPhone(String phone) {
return userDAO.getUserByPhone(phone);
}
}
| gh6-team/less-homelessness-api | src/main/java/svc/managers/UserManager.java | Java | mit | 431 |
<?php use_helper('Pagination'); ?>
<script type="text/javascript" src="/js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="/css/jquery.lightbox-0.5.css" media="screen" />
<script type="text/javascript">
$(function() {
$('a.lightbox').lightBox(); // Select all links with lightbox class
});
</script>
<div id="doc4" class="yui-t7" style="padding-top:10px;-moz-border-radius: 3px;-webkit-border-radius: 3px;background: rgba(10, 10, 10, 0.7); ">
<?php include_partial('header',array('action_name' => $action_name)) ?>
<div id="bd" role="main">
<div class="yui-g">
<!-- TOP BREADCRUMB/PAGINATION CONTAINER -->
<div style="width:100%;margin:5px 0 5px 0">
<!-- BREADCRUMB -->
<div class="gallery_container">
<h3><a href="<?php echo url_for("@homepage");?>">Home</a> >> Photo Gallery</h3>
</div>
<!-- PAGINATION -->
<div style="float:right;margin:0 10px 0 0">
<?php echo pager_navigation($pager, '@gallery_page') ?>
</div>
<div style="clear:both"></div>
</div>
<div class="gallery_container">
<h2>Photo Gallery</h2>
<?php $photo_counter = 1; ?>
<?php foreach ($pager->getResults() as $photo) { ?>
<?php $photo_counter = 1; ?>
<div class="<?php echo ($photo_counter == 1 )?"photo_first":"photo"; ?>">
<a title="<?php echo $photo->getName();?>" href="<?php print $photo->getHomePagePhotoLightbox();?>" class="lightbox"><img class="img_border" src="/images.php?img=<?php print $photo->getHomePagePhoto();?>"/>
<p style="font-size:10px;margin: 0px; color: #fff;"><?php echo $photo->getName();?></p></a>
</div>
<?php $photo_counter++ ?>
<?php } ?>
<div style="clear:both"></div>
</div>
<!-- BOTTOM BREADCRUMB/PAGINATION CONTAINER -->
<?php if($pager->count() > 10) { ?>
<div class="gallery_container" >
<!-- PAGINATION -->
<div style="float:right;margin:0 10px 0 0">
<?php echo pager_navigation($pager, '@gallery_page') ?>
</div>
<div style="clear:both"></div>
</div>
<?php } ?>
</div>
</div>
<?php include_partial('footer') ?>
</div>
| phpchap/symfony14-beauty-salon | apps/frontend/modules/content/templates/gallerySuccess.php | PHP | mit | 2,587 |
<?php
/*
* This file is part of HkApps.
*
* (c) Hiroto Kitazawa <hiro.yo.yo1610@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HkApps\App\Http\Middleware;
use Closure;
/**
* Class HttpsProtocol.
*
* @package HkApps\App\Http\Middleware
*/
class HttpsProtocol
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param Closure $next
*
* @return \Illuminate\Http\RedirectResponse
*/
public function handle($request, Closure $next)
{
if (env('APP_HTTPS') && !env('APP_DEBUG') && !$request->secure()) {
return redirect()->secure($request->getRequestUri());
}
return $next($request);
}
}
| Hiroto-K/HkApps | app/Http/Middleware/HttpsProtocol.php | PHP | mit | 837 |
package conqueror.security;
import io.jsonwebtoken.JwtException;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.filter.GenericFilterBean;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
class StatelessAuthenticationFilter extends GenericFilterBean {
private final TokenAuthenticationService tokenAuthenticationService;
StatelessAuthenticationFilter(TokenAuthenticationService tokenAuthenticationService) {
this.tokenAuthenticationService = tokenAuthenticationService;
}
@Override
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
try {
Authentication authentication = tokenAuthenticationService.getAuthentication((HttpServletRequest) req);
SecurityContextHolder.getContext().setAuthentication(authentication);
chain.doFilter(req, res);
SecurityContextHolder.getContext().setAuthentication(null);
} catch (AuthenticationException | JwtException e) {
SecurityContextHolder.clearContext();
((HttpServletResponse) res).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
}
}
}
| moonik/conqueror | src/main/java/conqueror/security/StatelessAuthenticationFilter.java | Java | mit | 1,573 |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {Component, DebugElement} from '@angular/core';
import {By} from '@angular/platform-browser';
import {ViewportRuler} from '@angular/cdk/scrolling';
import {FakeViewportRuler} from '@angular/cdk/testing';
import {MdButtonModule} from './index';
import {MdRipple} from '@angular/material/core';
describe('MdButton', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [MdButtonModule],
declarations: [TestApp],
providers: [
{provide: ViewportRuler, useClass: FakeViewportRuler},
]
});
TestBed.compileComponents();
}));
// General button tests
it('should apply class based on color attribute', () => {
let fixture = TestBed.createComponent(TestApp);
let testComponent = fixture.debugElement.componentInstance;
let buttonDebugElement = fixture.debugElement.query(By.css('button'));
let aDebugElement = fixture.debugElement.query(By.css('a'));
testComponent.buttonColor = 'primary';
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.classList.contains('mat-primary')).toBe(true);
expect(aDebugElement.nativeElement.classList.contains('mat-primary')).toBe(true);
testComponent.buttonColor = 'accent';
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.classList.contains('mat-accent')).toBe(true);
expect(aDebugElement.nativeElement.classList.contains('mat-accent')).toBe(true);
testComponent.buttonColor = null;
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.classList).not.toContain('mat-accent');
expect(aDebugElement.nativeElement.classList).not.toContain('mat-accent');
});
it('should should not clear previous defined classes', () => {
let fixture = TestBed.createComponent(TestApp);
let testComponent = fixture.debugElement.componentInstance;
let buttonDebugElement = fixture.debugElement.query(By.css('button'));
buttonDebugElement.nativeElement.classList.add('custom-class');
testComponent.buttonColor = 'primary';
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.classList.contains('mat-primary')).toBe(true);
expect(buttonDebugElement.nativeElement.classList.contains('custom-class')).toBe(true);
testComponent.buttonColor = 'accent';
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.classList.contains('mat-primary')).toBe(false);
expect(buttonDebugElement.nativeElement.classList.contains('mat-accent')).toBe(true);
expect(buttonDebugElement.nativeElement.classList.contains('custom-class')).toBe(true);
});
describe('button[md-fab]', () => {
it('should have accent palette by default', () => {
const fixture = TestBed.createComponent(TestApp);
const fabButtonDebugEl = fixture.debugElement.query(By.css('button[md-fab]'));
fixture.detectChanges();
expect(fabButtonDebugEl.nativeElement.classList)
.toContain('mat-accent', 'Expected fab buttons to use accent palette by default');
});
});
describe('button[md-mini-fab]', () => {
it('should have accent palette by default', () => {
const fixture = TestBed.createComponent(TestApp);
const miniFabButtonDebugEl = fixture.debugElement.query(By.css('button[md-mini-fab]'));
fixture.detectChanges();
expect(miniFabButtonDebugEl.nativeElement.classList)
.toContain('mat-accent', 'Expected mini-fab buttons to use accent palette by default');
});
});
// Regular button tests
describe('button[md-button]', () => {
it('should handle a click on the button', () => {
let fixture = TestBed.createComponent(TestApp);
let testComponent = fixture.debugElement.componentInstance;
let buttonDebugElement = fixture.debugElement.query(By.css('button'));
buttonDebugElement.nativeElement.click();
expect(testComponent.clickCount).toBe(1);
});
it('should not increment if disabled', () => {
let fixture = TestBed.createComponent(TestApp);
let testComponent = fixture.debugElement.componentInstance;
let buttonDebugElement = fixture.debugElement.query(By.css('button'));
testComponent.isDisabled = true;
fixture.detectChanges();
buttonDebugElement.nativeElement.click();
expect(testComponent.clickCount).toBe(0);
});
it('should disable the native button element', () => {
let fixture = TestBed.createComponent(TestApp);
let buttonNativeElement = fixture.nativeElement.querySelector('button');
expect(buttonNativeElement.disabled).toBeFalsy('Expected button not to be disabled');
fixture.componentInstance.isDisabled = true;
fixture.detectChanges();
expect(buttonNativeElement.disabled).toBeTruthy('Expected button to be disabled');
});
});
// Anchor button tests
describe('a[md-button]', () => {
it('should not redirect if disabled', () => {
let fixture = TestBed.createComponent(TestApp);
let testComponent = fixture.debugElement.componentInstance;
let buttonDebugElement = fixture.debugElement.query(By.css('a'));
testComponent.isDisabled = true;
fixture.detectChanges();
buttonDebugElement.nativeElement.click();
});
it('should remove tabindex if disabled', () => {
let fixture = TestBed.createComponent(TestApp);
let testComponent = fixture.debugElement.componentInstance;
let buttonDebugElement = fixture.debugElement.query(By.css('a'));
expect(buttonDebugElement.nativeElement.getAttribute('tabIndex')).toBe(null);
testComponent.isDisabled = true;
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.getAttribute('tabIndex')).toBe('-1');
});
it('should add aria-disabled attribute if disabled', () => {
let fixture = TestBed.createComponent(TestApp);
let testComponent = fixture.debugElement.componentInstance;
let buttonDebugElement = fixture.debugElement.query(By.css('a'));
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.getAttribute('aria-disabled')).toBe('false');
testComponent.isDisabled = true;
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.getAttribute('aria-disabled')).toBe('true');
});
it('should not add aria-disabled attribute if disabled is false', () => {
let fixture = TestBed.createComponent(TestApp);
let testComponent = fixture.debugElement.componentInstance;
let buttonDebugElement = fixture.debugElement.query(By.css('a'));
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.getAttribute('aria-disabled'))
.toBe('false', 'Expect aria-disabled="false"');
expect(buttonDebugElement.nativeElement.getAttribute('disabled'))
.toBeNull('Expect disabled="false"');
testComponent.isDisabled = false;
fixture.detectChanges();
expect(buttonDebugElement.nativeElement.getAttribute('aria-disabled'))
.toBe('false', 'Expect no aria-disabled');
expect(buttonDebugElement.nativeElement.getAttribute('disabled'))
.toBeNull('Expect no disabled');
});
});
// Ripple tests.
describe('button ripples', () => {
let fixture: ComponentFixture<TestApp>;
let testComponent: TestApp;
let buttonDebugElement: DebugElement;
let buttonRippleDebugElement: DebugElement;
let buttonRippleInstance: MdRipple;
let anchorDebugElement: DebugElement;
let anchorRippleDebugElement: DebugElement;
let anchorRippleInstance: MdRipple;
beforeEach(() => {
fixture = TestBed.createComponent(TestApp);
fixture.detectChanges();
testComponent = fixture.componentInstance;
buttonDebugElement = fixture.debugElement.query(By.css('button[md-button]'));
buttonRippleDebugElement = buttonDebugElement.query(By.directive(MdRipple));
buttonRippleInstance = buttonRippleDebugElement.injector.get<MdRipple>(MdRipple);
anchorDebugElement = fixture.debugElement.query(By.css('a[md-button]'));
anchorRippleDebugElement = anchorDebugElement.query(By.directive(MdRipple));
anchorRippleInstance = anchorRippleDebugElement.injector.get<MdRipple>(MdRipple);
});
it('should disable the ripple if mdRippleDisabled input is set', () => {
expect(buttonRippleInstance.disabled).toBeFalsy();
testComponent.rippleDisabled = true;
fixture.detectChanges();
expect(buttonRippleInstance.disabled).toBeTruthy();
});
it('should disable the ripple when the button is disabled', () => {
expect(buttonRippleInstance.disabled).toBeFalsy(
'Expected an enabled button[md-button] to have an enabled ripple'
);
expect(anchorRippleInstance.disabled).toBeFalsy(
'Expected an enabled a[md-button] to have an enabled ripple'
);
testComponent.isDisabled = true;
fixture.detectChanges();
expect(buttonRippleInstance.disabled).toBeTruthy(
'Expected a disabled button[md-button] not to have an enabled ripple'
);
expect(anchorRippleInstance.disabled).toBeTruthy(
'Expected a disabled a[md-button] not to have an enabled ripple'
);
});
});
});
/** Test component that contains an MdButton. */
@Component({
selector: 'test-app',
template: `
<button md-button type="button" (click)="increment()"
[disabled]="isDisabled" [color]="buttonColor" [disableRipple]="rippleDisabled">
Go
</button>
<a href="http://www.google.com" md-button [disabled]="isDisabled" [color]="buttonColor">Link</a>
<button md-fab>Fab Button</button>
<button md-mini-fab>Mini Fab Button</button>
`
})
class TestApp {
clickCount: number = 0;
isDisabled: boolean = false;
rippleDisabled: boolean = false;
increment() {
this.clickCount++;
}
}
| shaunak1111/material2 | src/lib/button/button.spec.ts | TypeScript | mit | 9,914 |
require "fanny_pack/version"
require "fanny_pack/assets"
FannyPack::Assets::Sprockets.auto_detect | polleverywhere/fannypack | lib/fanny_pack.rb | Ruby | mit | 98 |
'use strict';
/*!
* V4Fire Client Core
* https://github.com/V4Fire/Client
*
* Released under the MIT license
* https://github.com/V4Fire/Client/blob/master/LICENSE
*/
const
$C = require('collection.js');
const
{getThemes} = include('build/ds'),
{getThemedPathChunks, checkDeprecated} = include('build/stylus/ds/helpers');
/**
* Returns a function to register Stylus plugins by the specified options
*
* @param {DesignSystem} ds - design system object prepared to use with Stylus
* @param {!Object} cssVariables - dictionary of CSS variables
* @param {boolean=} [useCSSVarsInRuntime] - true, if the design system object values provided
* to style files as css-variables
*
* @param {string=} [theme] - current theme value
* @param {(Array<string>|boolean)=} [includeThemes] - list of themes to include or
* `true` (will include all available themes)
*
* @param {Object=} [stylus] - link to a Stylus package instance
* @returns {!Function}
*/
module.exports = function getPlugins({
ds,
cssVariables,
useCSSVarsInRuntime,
theme,
includeThemes,
stylus = require('stylus')
}) {
const
isBuildHasTheme = Object.isString(theme),
themedFields = $C(ds).get('meta.themedFields') || undefined;
let
buildThemes = includeThemes;
if (!buildThemes) {
buildThemes = isBuildHasTheme ? [theme] : [];
}
const
themesList = getThemes(ds.raw, buildThemes),
isThemesIncluded = themesList != null && themesList.length > 0,
isOneTheme = Object.isArray(themesList) && themesList.length === 1 && themesList[0] === theme;
if (!isThemesIncluded) {
if (Object.isString(theme)) {
console.log(`[stylus] Warning: the design system package has no theme "${theme}"`);
}
if (includeThemes != null) {
console.log(
`[stylus] Warning: the design system package has no themes for the provided "includeThemes" value: "${includeThemes}"`
);
}
}
const
isFieldThemed = (name) => Object.isArray(themedFields) ? themedFields.includes(name) : true;
return function addPlugins(api) {
/**
* Injects additional options to component mixin options ($p)
*
* @param {string} string - component name
* @returns {!Object}
*
* @example
* ```stylus
* injector('bButton')
*
* // If `useCSSVarsInRuntime` is enabled
* //
* // {
* // values: {
* // mods: {
* // size: {
* // s: {
* // offset: {
* // top: 'var(--bButton-mods-size-s-offset-top)'
* // }
* // }
* // }
* // }
* // }
*
* // Otherwise
* //
* // {
* // values: {
* // mods: {
* // size: {
* // s: {
* // offset: {
* // top: 5px
* // }
* // }
* // }
* // }
* // }
* ```
*/
api.define('injector', ({string}) => {
const
values = $C(useCSSVarsInRuntime || isThemesIncluded ? cssVariables : ds).get(`components.${string}`);
if (values) {
const
__diffVars__ = $C(cssVariables).get(`diff.components.${string}`);
return stylus.utils.coerce({
values,
__diffVars__
}, true);
}
return {};
});
/**
* Returns design system CSS variables with their values
*
* @param {string} [theme]
* @returns {!Object}
*
* @example
* ```stylus
* getDSVariables()
*
* // {
* // '--colors-primary': #0F9
* // }
* ```
*/
api.define('getDSVariables', ({string: theme} = {}) => {
const
obj = {},
iterator = Object.isString(theme) ? cssVariables.map[theme] : cssVariables.map;
Object.forEach(iterator, (val) => {
const [key, value] = val;
obj[key] = value;
});
return stylus.utils.coerce(obj, true);
});
/**
* Returns a value from the design system by the specified group and path.
* If passed only the first argument, the function returns parameters for the whole group,
* but not just the one value. If no arguments are passed, it returns the whole design system object.
*
* @param {string} [group] - first level field name (colors, rounding, etc.)
* @param {!Object} [path] - dot-delimited path to the value
* @returns {!Object}
*
* @example
* ```stylus
* getDSValue(colors "green.0") // rgba(0, 255, 0, 1)
* ```
*/
api.define('getDSValue', ({string: group} = {}, {string: path} = {}) => {
if (group === undefined) {
return ds;
}
checkDeprecated(ds, group);
const
getCSSVar = () => $C(cssVariables).get([].concat([group], path || []).join('.'));
if (isOneTheme || !isBuildHasTheme) {
return useCSSVarsInRuntime ?
stylus.utils.coerce(getCSSVar()) :
$C(ds).get([].concat(getThemedPathChunks(group, theme, isFieldThemed(group)), path || []).join('.'));
}
return stylus.utils.coerce(getCSSVar());
});
/**
* Returns an object with text styles for the specified style name
*
* @param {string} name
* @returns {!Object}
*
* @example
* ```stylus
* getDSTextStyles(Small)
*
* // Notice, all values are Stylus types
* //
* // {
* // fontFamily: 'Roboto',
* // fontWeight: 400,
* // fontSize: '14px',
* // lineHeight: '16px'
* // }
* ```
*/
api.define('getDSTextStyles', ({string: name}) => {
const
head = 'text',
isThemed = isFieldThemed(head),
path = [...getThemedPathChunks(head, theme, isThemed), name];
checkDeprecated(ds, path);
if (!isOneTheme && isThemesIncluded && isThemed) {
const
initial = $C(ds).get(path);
if (!Object.isDictionary(initial)) {
throw new Error(`getDSTextStyles: the design system has no "${theme}" styles for the specified name: ${name}`);
}
const
res = {};
Object.forEach(initial, (value, key) => {
res[key] = $C(cssVariables).get([head, name, key]);
});
return stylus.utils.coerce(res, true);
}
const
from = useCSSVarsInRuntime ? cssVariables : ds;
return stylus.utils.coerce($C(from).get(path), true);
});
/**
* Returns color(s) from the design system by the specified name and identifier (optional)
*
* @param {!Object} name
* @param {!Object} [id]
* @returns {(!Object|!Array)}
*
* @example
* ```stylus
* getDSColor("blue", 1) // rgba(0, 0, 255, 1)
* ```
*/
api.define('getDSColor', (name, id) => {
name = name.string || name.name;
if (!name) {
return;
}
const
path = isOneTheme ? getThemedPathChunks('colors', theme, isFieldThemed('colors')) : ['colors'];
if (id) {
id = id.string || id.val;
if (Object.isNumber(id)) {
id -= 1;
}
}
path.push(name);
if (id !== undefined) {
path.push(String(id));
}
checkDeprecated(ds, path);
return isThemesIncluded || useCSSVarsInRuntime ?
stylus.utils.coerce($C(cssVariables).get(path)) :
$C(ds).get(path);
});
/**
* Returns the current theme value
* @returns {!string}
*/
api.define('defaultTheme', () => theme);
/**
* Returns a list of available themes
* @returns {!Array<string>}
*/
api.define('availableThemes', () => themesList);
};
};
| V4Fire/Client | build/stylus/ds/plugins.js | JavaScript | mit | 7,150 |
/*Copyright (c) 2011 Anton Yakimov.
GELF created by Lennart Koopmann, Aleksey Palazhchenko.
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 org.graylog2;
import org.json.simple.JSONValue;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.nio.ByteBuffer;
import java.util.*;
import java.util.zip.GZIPOutputStream;
public class GelfMessage {
private static final String ID_NAME = "id";
private static final String GELF_VERSION = "1.0";
private static final byte[] GELF_CHUNKED_ID = new byte[]{0x1e, 0x0f};
private static final int MAXIMUM_CHUNK_SIZE = 1420;
private static final BigDecimal TIME_DIVISOR = new BigDecimal(1000);
private String version = GELF_VERSION;
private String host;
private byte[] hostBytes = lastFourAsciiBytes("none");
private String shortMessage;
private String fullMessage;
private long javaTimestamp;
private String level;
private String facility = "gelf-java";
private String line;
private String file;
private Map<String, Object> additonalFields = new HashMap<String, Object>();
public GelfMessage() {
}
// todo: merge these constructors.
public GelfMessage(String shortMessage, String fullMessage, Date timestamp, String level) {
this.shortMessage = shortMessage;
this.fullMessage = fullMessage;
this.javaTimestamp = timestamp.getTime();
this.level = level;
}
public GelfMessage(String shortMessage, String fullMessage, Long timestamp, String level, String line, String file) {
this.shortMessage = shortMessage;
this.fullMessage = fullMessage;
this.javaTimestamp = timestamp;
this.level = level;
this.line = line;
this.file = file;
}
public String toJson() {
Map<String, Object> map = new HashMap<String, Object>();
map.put("version", getVersion());
map.put("host", getHost());
map.put("short_message", getShortMessage());
map.put("full_message", getFullMessage());
map.put("timestamp", getTimestamp());
map.put("level", getLevel());
map.put("facility", getFacility());
if( null != getFile() )
{
map.put("file", getFile());
}
if( null != getLine() )
{
map.put("line", getLine());
}
for (Map.Entry<String, Object> additionalField : additonalFields.entrySet()) {
if (!ID_NAME.equals(additionalField.getKey())) {
map.put("_" + additionalField.getKey(), additionalField.getValue());
}
}
return JSONValue.toJSONString(map);
}
public List<byte[]> toDatagrams() {
byte[] messageBytes = gzipMessage(toJson());
List<byte[]> datagrams = new ArrayList<byte[]>();
if (messageBytes.length > MAXIMUM_CHUNK_SIZE) {
sliceDatagrams(messageBytes, datagrams);
} else {
datagrams.add(messageBytes);
}
return datagrams;
}
private void sliceDatagrams(byte[] messageBytes, List<byte[]> datagrams) {
int messageLength = messageBytes.length;
byte[] messageId = ByteBuffer.allocate(8)
.putInt((int) System.currentTimeMillis()) // 4 least-significant-bytes of the time in millis
.put(hostBytes) // 4 least-significant-bytes of the host
.array();
int num = ((Double) Math.ceil((double) messageLength / MAXIMUM_CHUNK_SIZE)).intValue();
for (int idx = 0; idx < num; idx++) {
byte[] header = concatByteArray(GELF_CHUNKED_ID, concatByteArray(messageId, new byte[]{(byte) idx, (byte) num}));
int from = idx * MAXIMUM_CHUNK_SIZE;
int to = from + MAXIMUM_CHUNK_SIZE;
if (to >= messageLength) {
to = messageLength;
}
byte[] datagram = concatByteArray(header, Arrays.copyOfRange(messageBytes, from, to));
datagrams.add(datagram);
}
}
private byte[] gzipMessage(String message) {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
try {
GZIPOutputStream stream = new GZIPOutputStream(bos);
stream.write(message.getBytes());
stream.finish();
stream.close();
byte[] zipped = bos.toByteArray();
bos.close();
return zipped;
} catch (IOException e) {
return null;
}
}
private byte[] lastFourAsciiBytes(String host) {
final String shortHost = host.length() >= 4 ? host.substring(host.length() - 4) : host;
try {
return shortHost.getBytes("ASCII");
} catch (UnsupportedEncodingException e) {
throw new RuntimeException("JVM without ascii support?", e);
}
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
this.hostBytes = lastFourAsciiBytes(host);
}
public String getShortMessage() {
return shortMessage;
}
public void setShortMessage(String shortMessage) {
this.shortMessage = shortMessage;
}
public String getFullMessage() {
return fullMessage;
}
public void setFullMessage(String fullMessage) {
this.fullMessage = fullMessage;
}
public String getTimestamp() {
return new BigDecimal(javaTimestamp).divide(TIME_DIVISOR).toPlainString();
}
public Long getJavaTimestamp() {
return javaTimestamp;
}
public void setJavaTimestamp(long javaTimestamp) {
this.javaTimestamp = javaTimestamp;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public String getFacility() {
return facility;
}
public void setFacility(String facility) {
this.facility = facility;
}
public String getLine() {
return line;
}
public void setLine(String line) {
this.line = line;
}
public String getFile() {
return file;
}
public void setFile(String file) {
this.file = file;
}
public GelfMessage addField(String key, String value) {
getAdditonalFields().put(key, value);
return this;
}
public GelfMessage addField(String key, Object value) {
getAdditonalFields().put(key, value);
return this;
}
public Map<String, Object> getAdditonalFields() {
return additonalFields;
}
public void setAdditonalFields(Map<String, Object> additonalFields) {
this.additonalFields = additonalFields;
}
public boolean isValid() {
return !isEmpty(version) && !isEmpty(host) && !isEmpty(shortMessage) && !isEmpty(facility);
}
public boolean isEmpty(String str) {
return str == null || "".equals(str.trim());
}
private byte[] concatByteArray(byte[] first, byte[] second) {
byte[] result = Arrays.copyOf(first, first.length + second.length);
System.arraycopy(second, 0, result, first.length, second.length);
return result;
}
}
| krisachai/GelfLogger | src/org/graylog2/GelfMessage.java | Java | mit | 8,476 |
package com.mypodcasts.support.injection;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.ImageLoader;
import javax.inject.Inject;
import javax.inject.Provider;
public class ImageLoaderProvider implements Provider<ImageLoader> {
@Inject
private ImageLoader.ImageCache imageCache;
@Inject
private RequestQueue requestQueue;
@Override
public ImageLoader get() {
ImageLoader imageLoader = new ImageLoader(requestQueue, imageCache);
return imageLoader;
}
}
| alabeduarte/mypodcasts-android | app/src/main/java/com/mypodcasts/support/injection/ImageLoaderProvider.java | Java | mit | 506 |
var model = require('model');
var adapter = require('./..').adapter;
var Issue = function () {
this.adapter = adapter;
this.property('assignees','string');
this.property('htmlUrl','string');
this.property('number','number');
this.property('state','string');
this.property('title','string');
this.property('body','string');
this.property('user','object');
this.property('labels','object');
this.property('assignee','object');
this.property('milestone','object');
this.property('comments','number');
this.property('pullRequest','object');
this.property('closedAt','date');
this.property('createdAt','date');
this.property('updatedAt','date');
this.property('trckrState','string');
this.property('trckrLastReview','date');
this.property('trckrPingback','string'); // ping me back in a specific future
};
model.register('Issue', Issue); | diasdavid/issue-tracker | db/models/meta.js | JavaScript | mit | 873 |
<TS language="hu" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>A cím vagy címke szerkeszteséhez kattintson a jobb gombbal</translation>
</message>
<message>
<source>Create a new address</source>
<translation>Új cím létrehozása</translation>
</message>
<message>
<source>&New</source>
<translation>&Új</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
<translation>A kiválasztott cím másolása a vágólapra</translation>
</message>
<message>
<source>&Copy</source>
<translation>&Másolás</translation>
</message>
<message>
<source>C&lose</source>
<translation>&Bezárás</translation>
</message>
<message>
<source>Delete the currently selected address from the list</source>
<translation>Kiválasztott cím törlése a listából</translation>
</message>
<message>
<source>Export the data in the current tab to a file</source>
<translation>Jelenlegi nézet exportálása fájlba</translation>
</message>
<message>
<source>&Export</source>
<translation>&Exportálás</translation>
</message>
<message>
<source>&Delete</source>
<translation>&Törlés</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<source>Passphrase Dialog</source>
<translation>Jelszó párbeszédablak</translation>
</message>
<message>
<source>Enter passphrase</source>
<translation>Add meg a jelszót</translation>
</message>
<message>
<source>New passphrase</source>
<translation>Új jelszó</translation>
</message>
<message>
<source>Repeat new passphrase</source>
<translation>Új jelszó újra</translation>
</message>
</context>
<context>
<name>BanTableModel</name>
<message>
<source>IP/Netmask</source>
<translation>IP-cím/maszk</translation>
</message>
<message>
<source>Banned Until</source>
<translation>Kitiltás vége</translation>
</message>
</context>
<context>
<name>SmartcoinGUI</name>
<message>
<source>Sign &message...</source>
<translation>Üzenet aláírása...</translation>
</message>
<message>
<source>Synchronizing with network...</source>
<translation>Szinkronizálás a hálózattal...</translation>
</message>
<message>
<source>&Overview</source>
<translation>&Áttekintés</translation>
</message>
<message>
<source>Node</source>
<translation>Csomópont</translation>
</message>
<message>
<source>Show general overview of wallet</source>
<translation>Tárca általános áttekintése</translation>
</message>
<message>
<source>&Transactions</source>
<translation>&Tranzakciók</translation>
</message>
<message>
<source>Browse transaction history</source>
<translation>Tranzakciós előzmények megtekintése</translation>
</message>
<message>
<source>E&xit</source>
<translation>&Kilépés</translation>
</message>
<message>
<source>Quit application</source>
<translation>Kilépés az alkalmazásból</translation>
</message>
<message>
<source>&About %1</source>
<translation>&A %1-ról</translation>
</message>
<message>
<source>About &Qt</source>
<translation>A &Qt-ról</translation>
</message>
<message>
<source>Show information about Qt</source>
<translation>Információk a Qt-ról</translation>
</message>
<message>
<source>&Options...</source>
<translation>&Opciók...</translation>
</message>
<message>
<source>&Encrypt Wallet...</source>
<translation>Tárca &titkosítása...</translation>
</message>
<message>
<source>&Backup Wallet...</source>
<translation>&Bisztonsági másolat készítése a Tárcáról</translation>
</message>
<message>
<source>&Change Passphrase...</source>
<translation>Jelszó &megváltoztatása...</translation>
</message>
<message>
<source>Such &sending addresses...</source>
<translation>&Küldési címek...</translation>
</message>
<message>
<source>Much &receiving addresses...</source>
<translation>&Fogadó címek...</translation>
</message>
<message>
<source>Open &URI...</source>
<translation>&URI azonosító megnyitása...</translation>
</message>
<message>
<source>Reindexing blocks on disk...</source>
<translation>Lemezen lévő blokkok újraindexelése...</translation>
</message>
<message>
<source>Send coins to a Smartcoin address</source>
<translation>Smartcoin küldése megadott címre</translation>
</message>
<message>
<source>Backup wallet to another location</source>
<translation>Biztonsági másolat készítése a tárcáról egy másik helyre</translation>
</message>
<message>
<source>Change the passphrase used for wallet encryption</source>
<translation>Tárca-titkosító jelszó megváltoztatása</translation>
</message>
<message>
<source>&Debug window</source>
<translation>&Debug ablak</translation>
</message>
<message>
<source>Open debugging and diagnostic console</source>
<translation>Hibakereső és diagnosztikai konzol megnyitása</translation>
</message>
<message>
<source>&Verify message...</source>
<translation>Üzenet &valódiságának ellenőrzése</translation>
</message>
<message>
<source>Smartcoin</source>
<translation>Smartcoin</translation>
</message>
<message>
<source>Wallet</source>
<translation>Tárca</translation>
</message>
<message>
<source>&Send</source>
<translation>&Küldés</translation>
</message>
<message>
<source>&Receive</source>
<translation>&Fogadás</translation>
</message>
<message>
<source>&Show / Hide</source>
<translation>&Mutat / Elrejt</translation>
</message>
<message>
<source>Show or hide the main Window</source>
<translation>Főablakot mutat/elrejt</translation>
</message>
<message>
<source>Encrypt the private keys that belong to your wallet</source>
<translation>A tárcádhoz tartozó privát kulcsok titkosítása</translation>
</message>
<message>
<source>Sign messages with your Smartcoin addresses to prove you own them</source>
<translation>Üzenetek aláírása a Smartcoin-címmeiddel, amivel bizonyítod, hogy a cím a sajátod</translation>
</message>
<message>
<source>Verify messages to ensure they were signed with specified Smartcoin addresses</source>
<translation>Üzenetek ellenőrzése, hogy valóban a megjelölt Smartcoin-címekkel vannak-e aláírva</translation>
</message>
<message>
<source>&File</source>
<translation>&Fájl</translation>
</message>
<message>
<source>&Settings</source>
<translation>&Beállítások</translation>
</message>
<message>
<source>&Help</source>
<translation>&Súgó</translation>
</message>
<message>
<source>Tabs toolbar</source>
<translation>Fül eszköztár</translation>
</message>
<message>
<source>Request payments (generates QR codes and smartcoin: URIs)</source>
<translation>Fizetési kérelem (QR-kódot és "smartcoin:" URI azonosítót hoz létre)</translation>
</message>
<message>
<source>Show the list of used sending addresses and labels</source>
<translation>A használt küldési címek és címkék megtekintése</translation>
</message>
<message>
<source>Show the list of used receiving addresses and labels</source>
<translation>A használt fogadó címek és címkék megtekintése</translation>
</message>
<message>
<source>Open a smartcoin: URI or payment request</source>
<translation>"smartcoin:" URI azonosító vagy fizetési kérelem megnyitása</translation>
</message>
<message>
<source>&Command-line options</source>
<translation>Paran&cssor kapcsolók</translation>
</message>
<message numerus="yes">
<source>%n active connection(s) to Smartcoin network</source>
<translation><numerusform>%n aktív kapcsolat a Smartcoin hálózathoz</numerusform><numerusform>%n aktív kapcsolat a Smartcoin hálózathoz</numerusform></translation>
</message>
<message numerus="yes">
<source>Processed %n block(s) of transaction history.</source>
<translation><numerusform>%n blokk feldolgozva a tranzakció előzményből.</numerusform><numerusform>%n blokk feldolgozva a tranzakció előzményből.</numerusform></translation>
</message>
<message>
<source>%1 behind</source>
<translation>%1 lemaradás</translation>
</message>
<message>
<source>Last received block was generated %1 ago.</source>
<translation>Az utolsóként kapott blokk kora: %1.</translation>
</message>
<message>
<source>Transactions after this will not yet be visible.</source>
<translation>Ez utáni tranzakciók még nem lesznek láthatóak. </translation>
</message>
<message>
<source>Error</source>
<translation>Hiba</translation>
</message>
<message>
<source>Warning</source>
<translation>Figyelem</translation>
</message>
<message>
<source>Information</source>
<translation>Információ</translation>
</message>
<message>
<source>Up to date</source>
<translation>Naprakész</translation>
</message>
<message>
<source>Catching up...</source>
<translation>Frissítés...</translation>
</message>
<message>
<source>Date: %1
</source>
<translation>Dátum: %1
</translation>
</message>
<message>
<source>Amount: %1
</source>
<translation>Összeg: %1
</translation>
</message>
<message>
<source>Type: %1
</source>
<translation>Típus: %1
</translation>
</message>
<message>
<source>Label: %1
</source>
<translation>Címke: %1
</translation>
</message>
<message>
<source>Address: %1
</source>
<translation>Cím: %1
</translation>
</message>
<message>
<source>Sent transaction</source>
<translation>Tranzakció elküldve.</translation>
</message>
<message>
<source>Incoming transaction</source>
<translation>Beérkező tranzakció</translation>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>A tárca <b>titkosítva</b> és jelenleg <b>nyitva</b>.</translation>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Tárca <b>kódolva</b> és jelenleg <b>zárva</b>.</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<source>Coin Selection</source>
<translation>Érme Választás</translation>
</message>
<message>
<source>Quantity:</source>
<translation>Mennyiség:</translation>
</message>
<message>
<source>Bytes:</source>
<translation>Bájtok:</translation>
</message>
<message>
<source>Amount:</source>
<translation>Összeg:</translation>
</message>
<message>
<source>Fee:</source>
<translation>Díj:</translation>
</message>
<message>
<source>Dust:</source>
<translation>Por-határ:</translation>
</message>
<message>
<source>After Fee:</source>
<translation>Utólagos díj:</translation>
</message>
<message>
<source>Change:</source>
<translation>Visszajáró:</translation>
</message>
<message>
<source>(un)select all</source>
<translation>mindent kiválaszt/elvet</translation>
</message>
<message>
<source>Tree mode</source>
<translation>Fa nézet</translation>
</message>
<message>
<source>List mode</source>
<translation>Lista nézet</translation>
</message>
<message>
<source>Amount</source>
<translation>Összeg</translation>
</message>
<message>
<source>Received with label</source>
<translation>Címkével érkezett</translation>
</message>
<message>
<source>Received with address</source>
<translation>Címmel érkezett</translation>
</message>
<message>
<source>Date</source>
<translation>Dátum</translation>
</message>
<message>
<source>Confirmations</source>
<translation>Megerősítések</translation>
</message>
<message>
<source>Confirmed</source>
<translation>Megerősítve</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<source>Edit Address</source>
<translation>Cím szerkesztése</translation>
</message>
<message>
<source>&Label</source>
<translation>Cím&ke</translation>
</message>
<message>
<source>The label associated with this address list entry</source>
<translation>Ehhez a listaelemhez rendelt címke </translation>
</message>
<message>
<source>The address associated with this address list entry. This can only be modified for sending addresses.</source>
<translation>Ehhez a címlistaelemhez rendelt cím. Csak a küldő címek módosíthatók.</translation>
</message>
<message>
<source>&Address</source>
<translation>&Cím</translation>
</message>
</context>
<context>
<name>FreespaceChecker</name>
<message>
<source>A new data directory will be created.</source>
<translation>Új adatkönyvtár lesz létrehozva.</translation>
</message>
<message>
<source>name</source>
<translation>Név</translation>
</message>
<message>
<source>Path already exists, and is not a directory.</source>
<translation>Az elérési út létezik, de nem egy könyvtáré.</translation>
</message>
<message>
<source>Cannot create data directory here.</source>
<translation>Adatkönyvtár nem hozható itt létre.</translation>
</message>
</context>
<context>
<name>HelpMessageDialog</name>
<message>
<source>version</source>
<translation>verzió</translation>
</message>
<message>
<source>(%1-bit)</source>
<translation>(%1-bit)</translation>
</message>
<message>
<source>Command-line options</source>
<translation>Parancssoros opciók</translation>
</message>
<message>
<source>Usage:</source>
<translation>Használat:</translation>
</message>
<message>
<source>command-line options</source>
<translation>parancssoros opciók</translation>
</message>
</context>
<context>
<name>Intro</name>
<message>
<source>Welcome</source>
<translation>Üdvözlünk</translation>
</message>
<message>
<source>Use the default data directory</source>
<translation>Az alapértelmezett adat könyvtár használata</translation>
</message>
<message>
<source>Use a custom data directory:</source>
<translation>Saját adatkönyvtár használata:</translation>
</message>
<message>
<source>Error: Specified data directory "%1" cannot be created.</source>
<translation>Hiba: A megadott "%1" adatkönyvtár nem hozható létre. </translation>
</message>
<message>
<source>Error</source>
<translation>Hiba</translation>
</message>
<message numerus="yes">
<source>%n GB of free space available</source>
<translation><numerusform>%n GB elérhető szabad hely</numerusform><numerusform>%n GB elérhető szabad hely</numerusform></translation>
</message>
</context>
<context>
<name>ModalOverlay</name>
<message>
<source>Form</source>
<translation>Űrlap</translation>
</message>
<message>
<source>Last block time</source>
<translation>Utolsó blokk ideje</translation>
</message>
<message>
<source>Hide</source>
<translation>Elrejtés</translation>
</message>
</context>
<context>
<name>OpenURIDialog</name>
<message>
<source>Open URI</source>
<translation>URI megnyitása</translation>
</message>
<message>
<source>Open payment request from URI or file</source>
<translation>Fizetési kérelem megnyitása URI azonosítóból vagy fájlból</translation>
</message>
<message>
<source>URI:</source>
<translation>URI:</translation>
</message>
<message>
<source>Select payment request file</source>
<translation>Fizetési kérelmi fájl kiválasztása</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<source>Options</source>
<translation>Opciók</translation>
</message>
<message>
<source>&Main</source>
<translation>&Fő</translation>
</message>
<message>
<source>Size of &database cache</source>
<translation>A&datbázis gyorsítótár mérete</translation>
</message>
<message>
<source>MB</source>
<translation>MB</translation>
</message>
<message>
<source>Accept connections from outside</source>
<translation>Külső kapcsolatok elfogadása</translation>
</message>
<message>
<source>Allow incoming connections</source>
<translation>Bejövő kapcsolatok engedélyezése</translation>
</message>
<message>
<source>IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)</source>
<translation>A proxy IP címe (pl.: IPv4: 127.0.0.1 / IPv6: ::1)</translation>
</message>
<message>
<source>Third party transaction URLs</source>
<translation>Harmadik fél tranzakció URL-ek</translation>
</message>
<message>
<source>Reset all client options to default.</source>
<translation>Minden kliensbeállítás alapértelmezettre állítása.</translation>
</message>
<message>
<source>&Reset Options</source>
<translation>Beállítások tö&rlése</translation>
</message>
<message>
<source>&Network</source>
<translation>&Hálózat</translation>
</message>
<message>
<source>W&allet</source>
<translation>T&árca</translation>
</message>
<message>
<source>Expert</source>
<translation>Szakértő</translation>
</message>
<message>
<source>Automatically open the Smartcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>A Smartcoin-kliens portjának automatikus megnyitása a routeren. Ez csak akkor működik, ha a routered támogatja az UPnP-t és az engedélyezve is van rajta.</translation>
</message>
<message>
<source>Map port using &UPnP</source>
<translation>&UPnP port-feltérképezés</translation>
</message>
<message>
<source>Connect to the Smartcoin network through a SOCKS5 proxy.</source>
<translation>Csatlakozás a Smartcoin hálózatához SOCKS5 proxyn keresztül</translation>
</message>
<message>
<source>Proxy &IP:</source>
<translation>Proxy &IP:</translation>
</message>
<message>
<source>&Port:</source>
<translation>&Port:</translation>
</message>
<message>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Proxy portja (pl.: 9050)</translation>
</message>
<message>
<source>IPv4</source>
<translation>IPv4</translation>
</message>
<message>
<source>IPv6</source>
<translation>IPv6</translation>
</message>
<message>
<source>Tor</source>
<translation>Tor</translation>
</message>
<message>
<source>&Window</source>
<translation>&Ablak</translation>
</message>
<message>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Kicsinyítés után csak eszköztár-ikont mutass</translation>
</message>
<message>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Kicsinyítés a tálcára az eszköztár helyett</translation>
</message>
<message>
<source>M&inimize on close</source>
<translation>K&icsinyítés záráskor</translation>
</message>
<message>
<source>&Display</source>
<translation>&Megjelenítés</translation>
</message>
<message>
<source>User Interface &language:</source>
<translation>Felhasználófelület nye&lve:</translation>
</message>
<message>
<source>&Unit to show amounts in:</source>
<translation>&Mértékegység:</translation>
</message>
<message>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Válaszd ki az interfészen és érmék küldésekor megjelenítendő alapértelmezett alegységet.</translation>
</message>
<message>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<source>&Cancel</source>
<translation>Megszakítás</translation>
</message>
<message>
<source>default</source>
<translation>alapértelmezett</translation>
</message>
<message>
<source>none</source>
<translation>semmi</translation>
</message>
<message>
<source>Confirm options reset</source>
<translation>Beállítások törlésének jóváhagyása.</translation>
</message>
<message>
<source>Client restart required to activate changes.</source>
<translation>A változtatások aktiválásahoz újra kell indítani a klienst.</translation>
</message>
<message>
<source>The supplied proxy address is invalid.</source>
<translation>A megadott proxy cím nem érvényes.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<source>Form</source>
<translation>Űrlap</translation>
</message>
<message>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Smartcoin network after a connection is established, but this process has not completed yet.</source>
<translation>A kijelzett információ lehet, hogy elavult. A pénztárcája automatikusan szinkronizálja magát a Smartcoin hálózattal miután a kapcsolat létrejön, de ez e folyamat még nem fejeződött be.</translation>
</message>
<message>
<source>Watch-only:</source>
<translation>Csak megfigyelés</translation>
</message>
<message>
<source>Available:</source>
<translation>Elérhető:</translation>
</message>
<message>
<source>Your current spendable balance</source>
<translation>Jelenlegi egyenleg</translation>
</message>
<message>
<source>Pending:</source>
<translation>Küldés:</translation>
</message>
<message>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source>
<translation>Még megerősítésre váró, a jelenlegi egyenlegbe be nem számított tranzakciók</translation>
</message>
<message>
<source>Immature:</source>
<translation>Éretlen:</translation>
</message>
<message>
<source>Mined balance that has not yet matured</source>
<translation>Bányászott egyenleg amely még nem érett be.</translation>
</message>
<message>
<source>Balances</source>
<translation>Egyenlegek</translation>
</message>
<message>
<source>Total:</source>
<translation>Összesen:</translation>
</message>
<message>
<source>Your current total balance</source>
<translation>Aktuális egyenleged</translation>
</message>
<message>
<source>Spendable:</source>
<translation>Elkölthető:</translation>
</message>
<message>
<source>Recent transactions</source>
<translation>A legutóbbi tranzakciók</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
</context>
<context>
<name>PeerTableModel</name>
<message>
<source>User Agent</source>
<translation>User Agent</translation>
</message>
</context>
<context>
<name>QObject</name>
<message>
<source>Amount</source>
<translation>Összeg</translation>
</message>
<message>
<source>Enter a Smartcoin address (e.g. %1)</source>
<translation>Ad meg egy Smartcoin címet (pl: %1)</translation>
</message>
<message>
<source>%1 d</source>
<translation>%1 n</translation>
</message>
<message>
<source>%1 h</source>
<translation>%1 ó</translation>
</message>
<message>
<source>%1 m</source>
<translation>%1 p</translation>
</message>
<message>
<source>%1 s</source>
<translation>%1 mp</translation>
</message>
<message>
<source>None</source>
<translation>Semmi</translation>
</message>
<message>
<source>N/A</source>
<translation>Nem elérhető</translation>
</message>
<message>
<source>%1 ms</source>
<translation>%1 ms</translation>
</message>
<message>
<source>%1 and %2</source>
<translation>%1 és %2</translation>
</message>
</context>
<context>
<name>QObject::QObject</name>
</context>
<context>
<name>QRImageWidget</name>
</context>
<context>
<name>RPCConsole</name>
<message>
<source>N/A</source>
<translation>Nem elérhető</translation>
</message>
<message>
<source>Client version</source>
<translation>Kliens verzió</translation>
</message>
<message>
<source>&Information</source>
<translation>&Információ</translation>
</message>
<message>
<source>Debug window</source>
<translation>Debug ablak</translation>
</message>
<message>
<source>General</source>
<translation>Általános</translation>
</message>
<message>
<source>Using BerkeleyDB version</source>
<translation>Használt BerkeleyDB verzió</translation>
</message>
<message>
<source>Startup time</source>
<translation>Bekapcsolás ideje</translation>
</message>
<message>
<source>Network</source>
<translation>Hálózat</translation>
</message>
<message>
<source>Name</source>
<translation>Név</translation>
</message>
<message>
<source>Number of connections</source>
<translation>Kapcsolatok száma</translation>
</message>
<message>
<source>Block chain</source>
<translation>Blokklánc</translation>
</message>
<message>
<source>Current number of blocks</source>
<translation>Aktuális blokkok száma</translation>
</message>
<message>
<source>Memory usage</source>
<translation>Memóriahasználat</translation>
</message>
<message>
<source>Received</source>
<translation>Fogadott</translation>
</message>
<message>
<source>Sent</source>
<translation>Küldött</translation>
</message>
<message>
<source>&Peers</source>
<translation>&Peerek</translation>
</message>
<message>
<source>Banned peers</source>
<translation>Kitiltott felek</translation>
</message>
<message>
<source>Select a peer to view detailed information.</source>
<translation>Peer kijelölése a részletes információkért</translation>
</message>
<message>
<source>Version</source>
<translation>Verzió</translation>
</message>
<message>
<source>User Agent</source>
<translation>User Agent</translation>
</message>
<message>
<source>Services</source>
<translation>Szolgáltatások</translation>
</message>
<message>
<source>Connection Time</source>
<translation>Csatlakozás ideje</translation>
</message>
<message>
<source>Last Send</source>
<translation>Legutóbbi küldés</translation>
</message>
<message>
<source>Last Receive</source>
<translation>Legutóbbi fogadás</translation>
</message>
<message>
<source>Ping Time</source>
<translation>Ping idő</translation>
</message>
<message>
<source>Last block time</source>
<translation>Utolsó blokk ideje</translation>
</message>
<message>
<source>&Open</source>
<translation>&Megnyitás</translation>
</message>
<message>
<source>&Console</source>
<translation>&Konzol</translation>
</message>
<message>
<source>&Network Traffic</source>
<translation>&Hálózati forgalom</translation>
</message>
<message>
<source>&Clear</source>
<translation>&Törlés</translation>
</message>
<message>
<source>Totals</source>
<translation>Összesen:</translation>
</message>
<message>
<source>In:</source>
<translation>Be:</translation>
</message>
<message>
<source>Out:</source>
<translation>Ki:</translation>
</message>
<message>
<source>Debug log file</source>
<translation>Debug naplófájl</translation>
</message>
<message>
<source>Clear console</source>
<translation>Konzol törlése</translation>
</message>
<message>
<source>1 &hour</source>
<translation>1 &óra</translation>
</message>
<message>
<source>1 &day</source>
<translation>1 &nap</translation>
</message>
<message>
<source>1 &week</source>
<translation>1 &hét</translation>
</message>
<message>
<source>1 &year</source>
<translation>1 &év</translation>
</message>
<message>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Navigálhat a fel és le nyilakkal, és <b>Ctrl-L</b> -vel törölheti a képernyőt.</translation>
</message>
<message>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Írd be azt, hogy <b>help</b> az elérhető parancsok áttekintéséhez.</translation>
</message>
<message>
<source>%1 B</source>
<translation>%1 B</translation>
</message>
<message>
<source>%1 KB</source>
<translation>%1 KB</translation>
</message>
<message>
<source>%1 MB</source>
<translation>%1 MB</translation>
</message>
<message>
<source>%1 GB</source>
<translation>%1 GB</translation>
</message>
<message>
<source>via %1</source>
<translation>%1 által</translation>
</message>
<message>
<source>never</source>
<translation>soha</translation>
</message>
<message>
<source>Inbound</source>
<translation>Bejövő</translation>
</message>
<message>
<source>Outbound</source>
<translation>Kimenő</translation>
</message>
<message>
<source>Yes</source>
<translation>Igen</translation>
</message>
<message>
<source>No</source>
<translation>Nem</translation>
</message>
<message>
<source>Unknown</source>
<translation>Ismeretlen</translation>
</message>
</context>
<context>
<name>ReceiveCoinsDialog</name>
<message>
<source>&Amount:</source>
<translation>&Összeg:</translation>
</message>
<message>
<source>&Label:</source>
<translation>Címke:</translation>
</message>
<message>
<source>&Message:</source>
<translation>&Üzenet:</translation>
</message>
<message>
<source>Clear all fields of the form.</source>
<translation>Minden mező törlése</translation>
</message>
<message>
<source>Clear</source>
<translation>Törlés</translation>
</message>
<message>
<source>Requested payments history</source>
<translation>A kért kifizetések története</translation>
</message>
<message>
<source>&Request payment</source>
<translation>&Fizetés kérése</translation>
</message>
<message>
<source>Show</source>
<translation>Mutat</translation>
</message>
<message>
<source>Remove the selected entries from the list</source>
<translation>A kijelölt elemek törlése a listáról</translation>
</message>
<message>
<source>Remove</source>
<translation>Eltávolítás</translation>
</message>
</context>
<context>
<name>ReceiveRequestDialog</name>
<message>
<source>QR Code</source>
<translation>QR kód</translation>
</message>
<message>
<source>Copy &URI</source>
<translation>&URI másolása</translation>
</message>
<message>
<source>Copy &Address</source>
<translation>&Cím másolása</translation>
</message>
<message>
<source>&Save Image...</source>
<translation>&Kép mentése</translation>
</message>
</context>
<context>
<name>RecentRequestsTableModel</name>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<source>Send Coins</source>
<translation>Érmék küldése</translation>
</message>
<message>
<source>Inputs...</source>
<translation>Bemenetek...</translation>
</message>
<message>
<source>automatically selected</source>
<translation>automatikusan kiválasztva</translation>
</message>
<message>
<source>Insufficient funds!</source>
<translation>Fedezethiány!</translation>
</message>
<message>
<source>Quantity:</source>
<translation>Mennyiség:</translation>
</message>
<message>
<source>Bytes:</source>
<translation>Bájtok:</translation>
</message>
<message>
<source>Amount:</source>
<translation>Összeg:</translation>
</message>
<message>
<source>Fee:</source>
<translation>Díjak:</translation>
</message>
<message>
<source>After Fee:</source>
<translation>Utólagos díj:</translation>
</message>
<message>
<source>Change:</source>
<translation>Visszajáró:</translation>
</message>
<message>
<source>Transaction Fee:</source>
<translation>Tranzakciós díj</translation>
</message>
<message>
<source>Choose...</source>
<translation>Válassz...</translation>
</message>
<message>
<source>per kilobyte</source>
<translation>kilobájtonként</translation>
</message>
<message>
<source>Hide</source>
<translation>Elrejtés</translation>
</message>
<message>
<source>Recommended:</source>
<translation>Ajánlott:</translation>
</message>
<message>
<source>Custom:</source>
<translation>Egyéni:</translation>
</message>
<message>
<source>normal</source>
<translation>normál</translation>
</message>
<message>
<source>fast</source>
<translation>gyors</translation>
</message>
<message>
<source>Send to multiple recipients at once</source>
<translation>Küldés több címzettnek egyszerre</translation>
</message>
<message>
<source>Add &Recipient</source>
<translation>&Címzett hozzáadása</translation>
</message>
<message>
<source>Clear all fields of the form.</source>
<translation>Minden mező törlése</translation>
</message>
<message>
<source>Dust:</source>
<translation>Por-határ:</translation>
</message>
<message>
<source>Clear &All</source>
<translation>Mindent &töröl</translation>
</message>
<message>
<source>Balance:</source>
<translation>Egyenleg:</translation>
</message>
<message>
<source>Confirm the send action</source>
<translation>Küldés megerősítése</translation>
</message>
<message>
<source>S&end</source>
<translation>&Küldés</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<source>A&mount:</source>
<translation>Összeg:</translation>
</message>
<message>
<source>Pay &To:</source>
<translation>Címzett:</translation>
</message>
<message>
<source>&Label:</source>
<translation>Címke:</translation>
</message>
<message>
<source>Choose previously used address</source>
<translation>Válassz egy korábban már használt címet</translation>
</message>
<message>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<source>Paste address from clipboard</source>
<translation>Cím beillesztése a vágólapról</translation>
</message>
<message>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<source>Remove this entry</source>
<translation>Ez a bejegyzés eltávolítása</translation>
</message>
<message>
<source>Message:</source>
<translation>Üzenet:</translation>
</message>
<message>
<source>Pay To:</source>
<translation>Címzett:</translation>
</message>
<message>
<source>Memo:</source>
<translation>Jegyzet:</translation>
</message>
</context>
<context>
<name>SendConfirmationDialog</name>
</context>
<context>
<name>ShutdownWindow</name>
<message>
<source>Do not shut down the computer until this window disappears.</source>
<translation>Ne állítsd le a számítógépet amíg ez az ablak el nem tűnik.</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<source>Signatures - Sign / Verify a Message</source>
<translation>Aláírások - üzenet aláírása/ellenőrzése</translation>
</message>
<message>
<source>&Sign Message</source>
<translation>Üzenet aláírása...</translation>
</message>
<message>
<source>Choose previously used address</source>
<translation>Válassz egy korábban már használt címet</translation>
</message>
<message>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<source>Paste address from clipboard</source>
<translation>Cím beillesztése a vágólapról</translation>
</message>
<message>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<source>Enter the message you want to sign here</source>
<translation>Ide írja az aláírandó üzenetet</translation>
</message>
<message>
<source>Signature</source>
<translation>Aláírás</translation>
</message>
<message>
<source>Copy the current signature to the system clipboard</source>
<translation>A jelenleg kiválasztott aláírás másolása a rendszer-vágólapra</translation>
</message>
<message>
<source>Sign the message to prove you own this Smartcoin address</source>
<translation>Üzenet </translation>
</message>
<message>
<source>Sign &Message</source>
<translation>Üzenet &aláírása</translation>
</message>
<message>
<source>Clear &All</source>
<translation>Mindent &töröl</translation>
</message>
<message>
<source>&Verify Message</source>
<translation>Üzenet ellenőrzése</translation>
</message>
<message>
<source>Verify &Message</source>
<translation>Üzenet ellenőrzése</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<source>[testnet]</source>
<translation>[teszthálózat]</translation>
</message>
</context>
<context>
<name>TrafficGraphWidget</name>
<message>
<source>KB/s</source>
<translation>KB/s</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<source>This pane shows a detailed description of the transaction</source>
<translation>Ez a mező a tranzakció részleteit mutatja</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
</context>
<context>
<name>TransactionView</name>
</context>
<context>
<name>UnitDisplayStatusBarControl</name>
</context>
<context>
<name>WalletFrame</name>
</context>
<context>
<name>WalletModel</name>
</context>
<context>
<name>WalletView</name>
</context>
<context>
<name>smartcoin-core</name>
<message>
<source>Options:</source>
<translation>Opciók
</translation>
</message>
<message>
<source>Specify data directory</source>
<translation>Adatkönyvtár
</translation>
</message>
<message>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Kapcsolódás egy csomóponthoz a peerek címeinek megszerzése miatt, majd szétkapcsolás</translation>
</message>
<message>
<source>Specify your own public address</source>
<translation>Adja meg az Ön saját nyilvános címét</translation>
</message>
<message>
<source>Accept command line and JSON-RPC commands</source>
<translation>Parancssoros és JSON-RPC parancsok elfogadása
</translation>
</message>
<message>
<source>Run in the background as a daemon and accept commands</source>
<translation>Háttérben futtatás daemonként és parancsok elfogadása
</translation>
</message>
<message>
<source>Smartcoin Core</source>
<translation>Smartcoin Core</translation>
</message>
<message>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Parancs, amit akkor hajt végre, amikor egy tárca-tranzakció megváltozik (%s a parancsban lecserélődik a blokk TxID-re)</translation>
</message>
<message>
<source>Use UPnP to map the listening port (default: 1 when listening and no -proxy)</source>
<translation>UPnP használata porttovábbításra (alapértelmezett: 1, amikor kiszolgál és nem használt a -proxy)</translation>
</message>
<message>
<source>Corrupted block database detected</source>
<translation>Sérült blokk-adatbázis észlelve</translation>
</message>
<message>
<source>Do you want to rebuild the block database now?</source>
<translation>Újra akarod építeni a blokk adatbázist most?</translation>
</message>
<message>
<source>Error initializing block database</source>
<translation>A blokkadatbázis inicializálása nem sikerült</translation>
</message>
<message>
<source>Error initializing wallet database environment %s!</source>
<translation>A tárca-adatbázis inicializálása nem sikerült: %s!</translation>
</message>
<message>
<source>Error loading block database</source>
<translation>Hiba a blokk adatbázis betöltése közben.</translation>
</message>
<message>
<source>Error opening block database</source>
<translation>Hiba a blokk adatbázis megnyitása közben.</translation>
</message>
<message>
<source>Error: Disk space is low!</source>
<translation>Hiba: kevés a hely a lemezen!</translation>
</message>
<message>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Egyik hálózati porton sem sikerül hallgatni. Használja a -listen=0 kapcsolót, ha ezt szeretné.</translation>
</message>
<message>
<source>Importing...</source>
<translation>Importálás</translation>
</message>
<message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation>Helytelen vagy nemlétező genézis blokk. Helytelen hálózati adatkönyvtár?</translation>
</message>
<message>
<source>Loading banlist...</source>
<translation>Tiltólista betöltése...</translation>
</message>
<message>
<source>Not enough file descriptors available.</source>
<translation>Nincs elég fájlleíró. </translation>
</message>
<message>
<source>Verifying blocks...</source>
<translation>Blokkok ellenőrzése...</translation>
</message>
<message>
<source>Verifying wallet...</source>
<translation>Tárca ellenőrzése...</translation>
</message>
<message>
<source>Wallet options:</source>
<translation>Tárca beállítások:</translation>
</message>
<message>
<source>Discover own IP addresses (default: 1 when listening and no -externalip or -proxy)</source>
<translation>Saját IP-cím felfedezése (alapértelmezett: 1, amikor kiszolgál és nem használt a -externalip)</translation>
</message>
<message>
<source>Whitelisted peers cannot be DoS banned and their transactions are always relayed, even if they are already in the mempool, useful e.g. for a gateway</source>
<translation>A fehérlistán szereplő felek nem lesznek automatikusan kitiltva és a tranzakcióik is mindig továbbítva lesznek, akkor is ha már a megerősítésre váró listán (mempool) vannak. Hasznos például összekötő csomópontokon (gateway).</translation>
</message>
<message>
<source>(default: %u)</source>
<translation>(alapértelmezett: %u)</translation>
</message>
<message>
<source>Error reading from database, shutting down.</source>
<translation>Hiba az adatbázis olvasásakor, leállítás</translation>
</message>
<message>
<source>Information</source>
<translation>Információ</translation>
</message>
<message>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>trace/debug információ küldése a konzolra a debog.log fájl helyett</translation>
</message>
<message>
<source>Signing transaction failed</source>
<translation>Tranzakció aláírása sikertelen</translation>
</message>
<message>
<source>This is experimental software.</source>
<translation>Ez egy kísérleti szoftver.</translation>
</message>
<message>
<source>Transaction amount too small</source>
<translation>Tranzakció összege túl alacsony</translation>
</message>
<message>
<source>Transaction too large</source>
<translation>Túl nagy tranzakció</translation>
</message>
<message>
<source>Username for JSON-RPC connections</source>
<translation>Felhasználói név JSON-RPC csatlakozásokhoz
</translation>
</message>
<message>
<source>Warning</source>
<translation>Figyelem</translation>
</message>
<message>
<source>Password for JSON-RPC connections</source>
<translation>Jelszó JSON-RPC csatlakozásokhoz
</translation>
</message>
<message>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Parancs, amit akkor hajt végre, amikor a legjobb blokk megváltozik (%s a cmd-ban lecserélődik a blokk hash-re)</translation>
</message>
<message>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>DNS-kikeresés engedélyezése az addnode-nál és a connect-nél</translation>
</message>
<message>
<source>Loading addresses...</source>
<translation>Címek betöltése...</translation>
</message>
<message>
<source>(default: %s)</source>
<translation>(alapértelmezett: %s)</translation>
</message>
<message>
<source>Include IP addresses in debug output (default: %u)</source>
<translation>IP-címek megjelenítése a naplóban (alapértelmezett: %u)</translation>
</message>
<message>
<source>Invalid -proxy address: '%s'</source>
<translation>Érvénytelen -proxy cím: '%s'</translation>
</message>
<message>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Ismeretlen hálózat lett megadva -onlynet: '%s'</translation>
</message>
<message>
<source>Insufficient funds</source>
<translation>Nincs elég smartcoinod.</translation>
</message>
<message>
<source>Loading block index...</source>
<translation>Blokkindex betöltése...</translation>
</message>
<message>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Elérendő csomópont megadása and attempt to keep the connection open</translation>
</message>
<message>
<source>Loading wallet...</source>
<translation>Tárca betöltése...</translation>
</message>
<message>
<source>Cannot downgrade wallet</source>
<translation>Nem sikerült a Tárca visszaállítása a korábbi verzióra</translation>
</message>
<message>
<source>Cannot write default address</source>
<translation>Nem sikerült az alapértelmezett címet írni.</translation>
</message>
<message>
<source>Rescanning...</source>
<translation>Újraszkennelés...</translation>
</message>
<message>
<source>Done loading</source>
<translation>Betöltés befejezve.</translation>
</message>
<message>
<source>Error</source>
<translation>Hiba</translation>
</message>
</context>
</TS> | psionin/smartcoin | src/qt/locale/bitcoin_hu.ts | TypeScript | mit | 52,718 |
<div class="form-input">
<input class="form-line-text" type="text" id="{name}" name="data[{name}]" value="{{ (old('data.{name}')) ? old('data.{name}') : $item->{name} }}" {params} />
</div>
<label class="form-line-label" for="{name}">{label}</label> | SafiStudio/LaravelGenerators | templates/elements/inputs/text.php | PHP | mit | 313 |
package seedu.address.logic.commands;
import seedu.address.commons.core.IndexPrefix;
import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.Model;
import seedu.address.model.task.DeadlineTask;
import seedu.address.model.task.DeadlineTaskBuilder;
public class MarkDeadlineUnfinishedCommand implements Command {
private static final String MSG_SUCCESS = "Deadline task " + IndexPrefix.DEADLINE.getPrefixString()
+ "%s unfinished.";
private final int targetIndex;
public MarkDeadlineUnfinishedCommand(int targetIndex) {
this.targetIndex = targetIndex;
}
public int getTargetIndex() {
return targetIndex;
}
@Override
public CommandResult execute(Model model) throws CommandException {
assert model != null;
final DeadlineTask oldDeadlineTask;
try {
oldDeadlineTask = model.getDeadlineTask(targetIndex);
} catch (IllegalValueException e) {
throw new CommandException(e);
}
final DeadlineTask finishedDeadlineTask = new DeadlineTaskBuilder(oldDeadlineTask)
.setFinished(false)
.build();
try {
model.setDeadlineTask(targetIndex, finishedDeadlineTask);
} catch (IllegalValueException e) {
throw new AssertionError("The target deadline cannot be missing", e);
}
return new CommandResult(String.format(MSG_SUCCESS, targetIndex));
}
}
| snehasp13/main | src/main/java/seedu/address/logic/commands/MarkDeadlineUnfinishedCommand.java | Java | mit | 1,602 |
'use strict';
angular.module('core').controller('HomeController', ['$scope', 'Authentication',
function($scope, Authentication) {
// This provides Authentication context.
$scope.authentication = Authentication;
$scope.alerts = [
{
icon: 'glyphicon-user',
colour: 'btn-success',
total: '20,408',
description: 'TOTAL CUSTOMERS'
},
{
icon: 'glyphicon-calendar',
colour: 'btn-primary',
total: '8,382',
description: 'UPCOMING EVENTS'
},
{
icon: 'glyphicon-edit',
colour: 'btn-success',
total: '527',
description: 'NEW CUSTOMERS IN 24H'
},
{
icon: 'glyphicon-record',
colour: 'btn-info',
total: '85,000',
description: 'EMAILS SENT'
},
{
icon: 'glyphicon-eye-open',
colour: 'btn-warning',
total: '268',
description: 'FOLLOW UPS REQUIRED'
},
{
icon: 'glyphicon-flag',
colour: 'btn-danger',
total: '348',
description: 'REFERRALS TO MODERATE'
}
];
}
]); | jamesynz/mapp | public/modules/core/controllers/home.client.controller.js | JavaScript | mit | 952 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media.Effects;
using SimulaDesign.WPFCustomUI.Util;
namespace SimulaDesign.WPFCustomUI.Converters
{
public class ShadowConverter : IValueConverter
{
private static readonly IDictionary<ShadowDepth, DropShadowEffect> ShadowsDictionary;
public static readonly ShadowConverter Instance = new ShadowConverter();
static ShadowConverter()
{
var resourceDictionary = new ResourceDictionary
{
Source = new Uri(
"pack://application:,,,/SimulaDesign.WPFCustomUI;component/Styles/Controls.MaterialShadows.xaml",
UriKind.Absolute)
};
ShadowsDictionary = new Dictionary<ShadowDepth, DropShadowEffect>
{
{ ShadowDepth.Depth1, (DropShadowEffect)resourceDictionary["MaterialDesignShadowDepth1"] },
{ ShadowDepth.Depth2, (DropShadowEffect)resourceDictionary["MaterialDesignShadowDepth2"] },
{ ShadowDepth.Depth3, (DropShadowEffect)resourceDictionary["MaterialDesignShadowDepth3"] },
{ ShadowDepth.Depth4, (DropShadowEffect)resourceDictionary["MaterialDesignShadowDepth4"] },
{ ShadowDepth.Depth5, (DropShadowEffect)resourceDictionary["MaterialDesignShadowDepth5"] },
};
}
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (!(value is ShadowDepth)) return null;
return Clone(ShadowsDictionary[(ShadowDepth) value]);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
private static DropShadowEffect Clone(DropShadowEffect dropShadowEffect)
{
return new DropShadowEffect()
{
BlurRadius = dropShadowEffect.BlurRadius,
Color = dropShadowEffect.Color,
Direction = dropShadowEffect.Direction,
Opacity = dropShadowEffect.Opacity,
RenderingBias = dropShadowEffect.RenderingBias,
ShadowDepth = dropShadowEffect.ShadowDepth
};
}
}
}
| FinchYang/test | AecPrivateCloud.ALL/Client/SimulaDesign.WPFCustomUI/Converters/ShadowConverter.cs | C# | mit | 2,398 |
var Vector = function(values) {
// An N-Dimensional vector.
//
// Args:
// values: A list of values for each dimension of the vector.
var self = this;
self.values = values;
self.hash = function() {
// Generate a hash of the vector.
//
// Returns:
// A hash of the vector.
var r = '';
var i;
for (i = 0; i < self.values.length; i++) {
r += String(self.values[i]) + ','
}
return '[' + r + ']';
};
self.copy = function() {
// Get a duplicate vector.
return (new Vector(self.values.slice()));
};
self.divide = function(c) {
// Divide the vector by a constant.
//
// Args:
// c: A constant.
//
// Returns:
// A new vector with each value divided by c.
return self.multiply(1 / c);
};
self.multiply = function(c) {
// Multiply the vector by a constant.
//
// Args:
// c: A constant.
//
// Returns:
// A new vector with each value multiplied by c.
var copy = self.copy();
var i;
for (i = 0; i < self.values.length; i++) {
copy.values[i] *= c;
}
return copy;
};
self.add = function(other) {
// Add another vector to self.
//
// Args:
// other: Another vector.
//
// Returns:
// The resultant vector.
var values = [];
var i;
if (self.dimension() != other.dimension()) {
var msg = "Cannot add two vectors of different dimensionality.";
log(loglevel.error, msg);
throw (new Error(msg));
}
for (i = 0; i < self.values.length; i++) {
values.push(self.values[i] + other.values[i]);
}
return (new Vector(values));
};
self.subtract = function(other) {
// Subtract another vector from self.
//
// Args:
// other: Another vector.
//
// Returns:
// The resultant vector from other to self.
var values = [];
var i;
if (self.dimension() != other.dimension()) {
var msg = "Cannot subtract two vectors of different dimensionality.";
log(loglevel.error, msg);
throw (new Error(msg));
}
for (i = 0; i < self.values.length; i++) {
values.push(self.values[i] - other.values[i]);
}
return (new Vector(values));
};
self.dimension = function() {
// Get the dimension of the vector.
return self.values.length;
};
self.magnitude = function() {
// Get the magnitude of this vector.
var s = 0;
var i;
var dimension = self.dimension();
for (i = 0; i < self.values.length; i++) {
s += Math.pow(self.values[i], dimension)
}
return Math.pow(s, 1 / dimension);
};
self.unit = function() {
// Get a unit vector in the direction of this vector.
return self.divide(self.magnitude());
};
};
| astex/nbody.js | vector.js | JavaScript | mit | 2,770 |
// -----------------------------------------------------------------------
// <copyright file="PuntConverter.cs" company="Nathan Miller">
// The MIT License (MIT)
//
// Copyright(c) 2015 Nathan Miller
//
// 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.
// </copyright>
// -----------------------------------------------------------------------
namespace NFLToy.Conversion.Offense
{
using System;
using System.Collections.Generic;
using NFLToy.Data.Events;
using NFLToy.Data.Events.Offense;
using NFLToy.GameCenter;
/// <summary>
/// Punt converter.
/// </summary>
public class PuntConverter : ConverterBase, IEventConverter
{
/// <summary>
/// Set of stats we can convert.
/// </summary>
private static readonly StatId[] Supported =
{
StatId.OffensePuntingYards,
StatId.OffensePuntIntoEndZone,
StatId.OffensePuntWithTouchback,
StatId.OffensePuntBlock,
};
/// <inheritdoc/>
public override IEnumerable<StatId> SupportedStats => Supported;
/// <inheritdoc/>
public override GameEvent Convert(ConverterData data)
{
this.EnsureValid(data, Supported);
var res = new PuntEvent();
this.Populate(res, data);
var playEvent = data.PlayEvent;
var play = data.Play;
res.Yards = playEvent.Yards;
res.Inside20 = this.FindPlayerForStatIds(play, StatId.OffensePuntInside20) != null;
res.IntoEndZone = this.FindPlayerForStatIds(play, StatId.OffensePuntIntoEndZone) != null;
res.Touchback = this.FindPlayerForStatIds(play, StatId.OffensePuntWithTouchback) != null;
res.OutOfBounds = this.FindPlayerForStatIds(play, StatId.OffensePuntOutOfBounds) != null;
res.Downed = this.FindPlayerForStatIds(play, StatId.OffensePuntDownedNoReturn) != null;
res.FairCatch = this.FindPlayerForStatIds(play, StatId.OffensePuntFairCatch) != null;
if (playEvent.StatId == StatId.OffensePuntBlock)
{
var blocker = this.FindPlayerForStatIds(play, StatId.DefensePuntBlock);
if (blocker == null)
{
throw new ArgumentException("Unable to find blocker for blocked punt.");
}
res.Blocked = true;
res.BlockerPlayerId = blocker.PlayerId;
}
return res;
}
}
}
| nathankmiller/NFLToy | Conversion/Offense/PuntConverter.cs | C# | mit | 3,555 |
require 'rails_helper'
RSpec.describe SoundcloudController, type: :controller do
end
| rorykoehler/soundcloud_radio_channels | spec/controllers/soundcloud_controller_spec.rb | Ruby | mit | 87 |
# frozen_string_literal: true
module DropletKit
class Links < BaseModel
attribute :myself
attribute :first
attribute :next
attribute :prev
attribute :last
end
end
| digitalocean/droplet_kit | lib/droplet_kit/models/links.rb | Ruby | mit | 188 |
/**
* Plugin Name: Autocomplete for Textarea
* Author: Amir Harel
* Copyright: amir harel (harel.amir1@gmail.com)
* Twitter: @amir_harel
* Version 1.4
* Published at : http://www.amirharel.com/2011/03/07/implementing-autocomplete-jquery-plugin-for-textarea/
*/
(function($){
/**
* @param obj
* @attr wordCount {Number} the number of words the user want to for matching it with the dictionary
* @attr mode {String} set "outter" for using an autocomplete that is being displayed in the outter layout of the textarea, as opposed to inner display
* @attr on {Object} containing the followings:
* @attr query {Function} will be called to query if there is any match for the user input
*/
$.fn.autocomplete = function(obj){
if( typeof $.browser.msie != 'undefined' ) obj.mode = 'outter';
this.each(function(index,element){
if( element.nodeName == 'TEXTAREA' ){
makeAutoComplete(element,obj);
}
});
}
var browser = {isChrome: $.browser.webkit };
function getTextAreaSelectionEnd(ta) {
var textArea = ta;//document.getElementById('textarea1');
if (document.selection) { //IE
var bm = document.selection.createRange().getBookmark();
var sel = textArea.createTextRange();
sel.moveToBookmark(bm);
var sleft = textArea.createTextRange();
sleft.collapse(true);
sleft.setEndPoint("EndToStart", sel);
return sleft.text.length + sel.text.length;
}
return textArea.selectionEnd; //ff & chrome
}
function getDefaultCharArray(){
return {
'`':0,
'~':0,
'1':0,
'!':0,
'2':0,
'@':0,
'3':0,
'#':0,
'4':0,
'$':0,
'5':0,
'%':0,
'6':0,
'^':0,
'7':0,
'&':0,
'8':0,
'*':0,
'9':0,
'(':0,
'0':0,
')':0,
'-':0,
'_':0,
'=':0,
'+':0,
'q':0,
'Q':0,
'w':0,
'W':0,
'e':0,
'E':0,
'r':0,
'R':0,
't':0,
'T':0,
'y':0,
'Y':0,
'u':0,
'U':0,
'i':0,
'I':0,
'o':0,
'O':0,
'p':0,
'P':0,
'[':0,
'{':0,
']':0,
'}':0,
'a':0,
'A':0,
's':0,
'S':0,
'd':0,
'D':0,
'f':0,
'F':0,
'g':0,
'G':0,
'h':0,
'H':0,
'j':0,
'J':0,
'k':0,
'K':0,
'l':0,
'L':0,
';':0,
':':0,
'\'':0,
'"':0,
'\\':0,
'|':0,
'z':0,
'Z':0,
'x':0,
'X':0,
'c':0,
'C':0,
'v':0,
'V':0,
'b':0,
'B':0,
'n':0,
'N':0,
'm':0,
'M':0,
',':0,
'<':0,
'.':0,
'>':0,
'/':0,
'?':0,
' ':0
};
}
function setCharSize(data){
for( var ch in data.chars ){
if( ch == ' ' ) $(data.clone).html("<span id='test-width_"+data.id+"' style='line-block'> </span>");
else $(data.clone).html("<span id='test-width_"+data.id+"' style='line-block'>"+ch+"</span>");
var testWidth = $("#test-width_"+data.id).width();
data.chars[ch] = testWidth;
}
}
var _data = {};
var _count = 0;
function makeAutoComplete(ta,obj){
_count++;
_data[_count] = {
id:"auto_"+_count,
ta:ta,
wordCount:obj.wordCount,
wrap: obj.wrap,
on:obj.on,
clone:null,
lineHeight:0,
list:null,
charInLines:{},
mode:obj.mode,
chars:getDefaultCharArray()};
var clone = createClone(_count);
_data[_count].clone = clone;
setCharSize(_data[_count]);
//_data[_count].lineHeight = $(ta).css("font-size");
_data[_count].list = createList(_data[_count]);
registerEvents(_data[_count]);
}
function createList(data){
var ul = document.createElement("ul");
$(ul).addClass("auto-list");
document.body.appendChild(ul);
return ul;
}
function createClone(id){
var data = _data[id];
var div = document.createElement("div");
var offset = $(data.ta).offset();
offset.top = offset.top - parseInt($(data.ta).css("margin-top"));
offset.left = offset.left - parseInt($(data.ta).css("margin-left"));
//console.log("createClone: offset.top=",offset.top," offset.left=",offset.left);
$(div).css({
position:"absolute",
top: offset.top,
left: offset.left,
"overflow-x" : "hidden",
"overflow-y" : "hidden",
"z-index" : -10
});
data.chromeWidthFix = (data.ta.clientWidth - $(data.ta).width());
data.lineHeight = $(data.ta).css("line-height");
if( isNaN(parseInt(data.lineHeight)) ) data.lineHeight = parseInt($(data.ta).css("font-size"))+2;
document.body.appendChild(div);
return div;
}
function getWords(data){
var selectionEnd = getTextAreaSelectionEnd(data.ta);//.selectionEnd;
var text = data.ta.value;
text = text.substr(0,selectionEnd);
if( text.charAt(text.length-1) == ' ' || text.charAt(text.length-1) == '\n' ) return "";
var ret = [];
var wordsFound = 0;
var pos = text.length-1;
while( wordsFound < data.wordCount && pos >= 0 && text.charAt(pos) != '\n'){
ret.unshift(text.charAt(pos));
pos--;
if( text.charAt(pos) == ' ' || pos < 0 ){
wordsFound++;
}
}
return ret.join("");
}
function showList(data,list,text){
if( !data.listVisible ){
data.listVisible = true;
var pos = getCursorPosition(data);
$(data.list).css({
left: pos.left+"px",
top: pos.top+"px",
display: "block"
});
}
var html = "";
var regEx = new RegExp("("+text+")");
var taWidth = $(data.ta).width()-5;
var width = data.mode == "outter" ? "style='width:"+taWidth+"px;'" : "";
for( var i=0; i< list.length; i++ ){
//var a = list[i].replace(regEx,"<mark>$1</mark>");
html += "<li data-value='"+list[i]+"' "+width+">"+list[i].replace(regEx,"<mark>$1</mark>")+"</li>";
}
$(data.list).html(html);
}
function breakLines(text,data){
var lines = [];
var width = $(data.clone).width();
var line1 = "";
var line1Width = 0;
var line2Width = 0;
var line2 = "";
var chSize = data.chars;
var len = text.length;
for( var i=0; i<len; i++){
var ch = text.charAt(i);
line2 += ch.replace(" "," ");
var size = (typeof chSize[ch] == 'undefined' ) ? 0 : chSize[ch];
line2Width += size;
if( ch == ' '|| ch == '-' ){
if( line1Width + line2Width < width-1 ){
line1 = line1 + line2;
line1Width = line1Width + line2Width;
line2 = "";
line2Width = 0;
}
else{
lines.push(line1);
line1= line2;
line1Width = line2Width;
line2= "";
line2Width = 0;
}
}
if( ch == '\n'){
if( line1Width + line2Width < width-1 ){
lines.push(line1 + line2);
}
else{
lines.push(line1);
lines.push(line2);
}
line1 = "";
line2 = "";
line1Width = 0;
line2Width = 0;
}
//else{
//line2 += ch;
//}
}
if( line1Width + line2Width < width-1 ){
lines.push(line1 + line2);
}
else{
lines.push(line1);
lines.push(line2);
}
return lines;
}
function getCursorPosition(data){
if( data.mode == "outter" ){
return getOuterPosition(data);
}
//console.log("getCursorPosition: ta width=",$(data.ta).css("width")," ta clientWidth=",data.ta.clientWidth, "scrollWidth=",data.ta.scrollWidth," offsetWidth=",data.ta.offsetWidth," jquery.width=",$(data.ta).width());
if( browser.isChrome ){
$(data.clone).width(data.ta.clientWidth-data.chromeWidthFix);
}
else{
$(data.clone).width(data.ta.clientWidth);
}
var ta = data.ta;
var selectionEnd = getTextAreaSelectionEnd(data.ta);
var text = ta.value;//.replace(/ /g," ");
var subText = text.substr(0,selectionEnd);
var restText = text.substr(selectionEnd,text.length);
var lines = breakLines(subText,data);//subText.split("\n");
var miror = $(data.clone);
miror.html("");
for( var i=0; i< lines.length-1; i++){
miror.append("<div style='height:"+(parseInt(data.lineHeight))+"px"+";'>"+lines[i]+"</div>");
}
miror.append("<span id='"+data.id+"' style='display:inline-block;'>"+lines[lines.length-1]+"</span>");
miror.append("<span id='rest' style='max-width:'"+data.ta.clientWidth+"px'>"+restText.replace(/\n/g,"<br/>")+" </span>");
miror.get(0).scrollTop = ta.scrollTop;
var span = miror.children("#"+data.id);
var offset = span.offset();
return {top:offset.top+span.height(),left:offset.left+span.width()};
}
function getOuterPosition(data){
var offset = $(data.ta).offset();
return {top:offset.top+$(data.ta).height()+8,left:offset.left};
}
function hideList(data){
if( data.listVisible ){
$(data.list).css("display","none");
data.listVisible = false;
}
}
function setSelected(dir,data){
var selected = $(data.list).find("[data-selected=true]");
if( selected.length != 1 ){
if( dir > 0 ) $(data.list).find("li:first-child").attr("data-selected","true");
else $(data.list).find("li:last-child").attr("data-selected","true");
return;
}
selected.attr("data-selected","false");
if( dir > 0 ){
selected.next().attr("data-selected","true");
}
else{
selected.prev().attr("data-selected","true");
}
}
function getCurrentSelected(data){
var selected = $(data.list).find("[data-selected=true]");
if( selected.length == 1) return selected.get(0);
return null;
}
function onUserSelected(li,data){
var seletedText = $(li).attr("data-value");
var selectionEnd = getTextAreaSelectionEnd(data.ta);//.selectionEnd;
var text = data.ta.value;
text = text.substr(0,selectionEnd);
//if( text.charAt(text.length-1) == ' ' || text.charAt(text.length-1) == '\n' ) return "";
//var ret = [];
var wordsFound = 0;
var pos = text.length-1;
while( wordsFound < data.wordCount && pos >= 0 && text.charAt(pos) != '\n'){
//ret.unshift(text.charAt(pos));
pos--;
if( text.charAt(pos) == ' ' || pos < 0 ){
wordsFound++;
}
}
var a = data.ta.value.substr(0,pos+1);
var c = data.ta.value.substr(selectionEnd,data.ta.value.length);
var scrollTop = data.ta.scrollTop;
if(data.wrap.length > 0){
seletedText = "["+data.wrap+"]"+seletedText+"[/"+data.wrap+"] ";
}
data.ta.value = a+seletedText+c;
data.ta.scrollTop = scrollTop;
data.ta.selectionEnd = pos+1+seletedText.length;
hideList(data);
$(data.ta).focus();
}
function registerEvents(data){
$(data.list).delegate("li","click",function(e){
var li = this;
onUserSelected(li,data);
e.stopPropagation();
e.preventDefault();
return false;
});
$(data.ta).blur(function(e){
setTimeout(function(){
hideList(data);
},400);
});
$(data.ta).click(function(e){
hideList(data);
});
$(data.ta).keydown(function(e){
//console.log("keydown keycode="+e.keyCode);
if( data.listVisible ){
switch(e.keyCode){
case 13:
case 40:
case 38:
e.stopImmediatePropagation();
e.preventDefault();
return false;
case 27: //esc
hideList(data);
}
}
});
$(data.ta).keyup(function(e){
if( data.listVisible ){
//console.log("keCode=",e.keyCode);
if( e.keyCode == 40 ){//down key
setSelected(+1,data);
e.stopImmediatePropagation();
e.preventDefault();
return false;
}
if( e.keyCode == 38 ){//up key
setSelected(-1,data);
e.stopImmediatePropagation();
e.preventDefault();
return false;
}
if( e.keyCode == 13 ){//enter key
var li = getCurrentSelected(data);
if( li ){
e.stopImmediatePropagation();
e.preventDefault();
hideList(data);
onUserSelected(li,data);
return false;
}
hideList(data);
}
if( e.keyCode == 27 ){
e.stopImmediatePropagation();
e.preventDefault();
return false;
}
}
switch( e.keyCode ){
case 27:
return true;
}
var text = getWords(data);
//console.log("getWords return ",text);
if( text != "" ){
data.on.query(text,function(list){
//console.log("got list = ",list);
if( list.length ){
showList(data,list,text);
}
else{
hideList(data);
}
});
}
else{
hideList(data);
}
});
$(data.ta).scroll(function(e){
var ta = e.target;
var miror = $(data.clone);
miror.get(0).scrollTop = ta.scrollTop;
});
}
})(jQuery);
| tygarimew/Mana-Haven | global/js/auto_suggest.js | JavaScript | mit | 12,043 |
using System.Linq;
using Xunit;
namespace Farity.Tests
{
public class FilterTests
{
[Fact]
public void FilterFiltersElementsInTheList()
{
var expected = new[] {1, 2, 3};
var actual = F.Filter(x => x < 4, new[] {1, 2, 3, 4, 5});
Assert.Equal(expected, actual);
}
[Fact]
public void FilterWorksWithTrueAndFalse()
{
var expected = new[] { 1, 2, 3, 4, 5 };
var actual = F.Filter(F.True, new[] { 1, 2, 3, 4, 5 });
Assert.Equal(expected, actual);
expected = new int[] {};
actual = F.Filter(F.False, new[] { 1, 2, 3, 4, 5 });
Assert.Equal(expected, actual);
}
}
} | farity/farity | Farity.Tests/FilterTests.cs | C# | mit | 745 |
"""
Django settings for apps project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
from local_settings import SECRET_KEY, DATABASES, DEBUG
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
SECRET_KEY = SECRET_KEY
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = DEBUG
ALLOWED_HOSTS = [
'learningdjango.in',
'localhost',
'127.0.0.1'
]
# Application definition
INSTALLED_APPS = [
'home.apps.HomeConfig',
'polls.apps.PollsConfig',
'blog.apps.BlogConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
MIDDLEWARE_CLASSES = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'apps.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'apps.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
DATABASES = DATABASES
# Password validation
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/1.9/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Asia/Kolkata'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# Media Files
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
| pattu777/LearningDjango | apps/apps/settings.py | Python | mit | 3,307 |
package com.zhanghedr.mvc;
/**
* Created by zhanghedr on 1/2/17.
*/
public class User {
private String name;
private String email;
public User(String name, String email) {
this.name = name;
this.email = email;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}
| zhanghedr/design-pattern | src/main/java/com/zhanghedr/mvc/User.java | Java | mit | 518 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Ponscoin</source>
<translation>O Ponscoinu</translation>
</message>
<message>
<location line="+39"/>
<source><b>Ponscoin</b> version</source>
<translation><b>Ponscoin</b> verzija</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 (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The Ponscoin developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Adresar</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your Ponscoin 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 filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Ponscoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</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 Ponscoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your Ponscoin 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 type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</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="+144"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<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 LITECOINS</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 type="unfinished"/>
</message>
<message>
<location line="-56"/>
<source>Ponscoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your ponscoins 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 type="unfinished"/>
</message>
<message>
<location line="-54"/>
<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="+48"/>
<source>The supplied passphrases do not match.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<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="+233"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<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 Ponscoin</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="+6"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</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 Ponscoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for Ponscoin</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 type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>Ponscoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation type="unfinished"/>
</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 Ponscoin</source>
<translation type="unfinished"/>
</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 Ponscoin 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 Ponscoin addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Ponscoin client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to Ponscoin network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></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><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform><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 type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<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="+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 Ponscoin 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 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 filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. Ponscoin 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 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 Ponscoin 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="+424"/>
<location line="+12"/>
<source>Ponscoin-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.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start Ponscoin after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start Ponscoin on system login</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Ponscoin 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="+7"/>
<source>Connect to the Ponscoin 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 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="+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 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 Ponscoin.</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 Ponscoin addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</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="+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 Ponscoin.</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="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Ponscoin 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 type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation type="unfinished"/>
</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 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 ponscoin: 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"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation type="unfinished"/>
</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 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="+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 Ponscoin-Qt help message to get a list with possible Ponscoin 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>Ponscoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Ponscoin 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 Ponscoin 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="-30"/>
<source>Welcome to the Ponscoin 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>
</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 type="unfinished"/>
</message>
<message>
<location line="+50"/>
<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="+20"/>
<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="+22"/>
<source>Balance:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<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="-59"/>
<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="+23"/>
<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>
</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. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</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 Ponscoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</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"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-203"/>
<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="+7"/>
<source>Signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<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 Ponscoin address</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</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. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Ponscoin address</source>
<translation type="unfinished"/>
</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 Ponscoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</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 Ponscoin signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<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>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The Ponscoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<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="+18"/>
<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><numerusform></numerusform><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="+17"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<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="+37"/>
<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><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 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 120 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="+3"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<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="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+70"/>
<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="+225"/>
<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 type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"/>
</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><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 type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+43"/>
<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="+199"/>
<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="+52"/>
<location line="+16"/>
<source>All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<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="+11"/>
<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="+139"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation type="unfinished"/>
</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="+193"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</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>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>Ponscoin version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or ponscoind</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 type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: ponscoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: ponscoind.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: 9333 or testnet: 19333)</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: 9332 or testnet: 19332)</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=ponscoinrpc
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 "Ponscoin Alert" admin@foo.com
</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. Ponscoin 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 Ponscoin 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 type="unfinished"/>
</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 Ponscoin 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 type="unfinished"/>
</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 Ponscoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart Ponscoin 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 type="unfinished"/>
</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 type="unfinished"/>
</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. Ponscoin 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 type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation type="unfinished"/>
</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>
| fcanbolat/ponscoin | src/qt/locale/bitcoin_bs.ts | TypeScript | mit | 96,738 |
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System;
using System.Text;
using System.IO;
using System.Collections;
using System.Text.RegularExpressions;
[InitializeOnLoad]
public class NoesisUpdater: EditorWindow
{
static NoesisUpdater()
{
EditorApplication.update += CheckVersion;
}
static void CheckVersion()
{
EditorApplication.update -= CheckVersion;
if (UnityEditorInternal.InternalEditorUtility.inBatchMode || EditorApplication.isPlayingOrWillChangePlaymode)
{
return;
}
string localVersion = NoesisVersion.GetCached();
string version = NoesisVersion.Get();
if (localVersion != version && version != "0.0.0")
{
var window = (NoesisUpdater)ScriptableObject.CreateInstance(typeof(NoesisUpdater));
#if UNITY_4_6 || UNITY_5_0
window.title = "NoesisGUI";
#else
window.titleContent = new GUIContent("NoesisGUI");
#endif
window.position = new Rect(Screen.currentResolution.width / 2 - 250, Screen.currentResolution.height / 2 - 22, 500, 55);
window.minSize = new Vector2(500, 55);
window.maxSize = new Vector2(500, 55);
window.localVersion_ = localVersion;
window.version_ = version;
if (localVersion != "")
{
window.label_ = "Upgrading NoesisGUI " + localVersion + " -> " + version;
}
else
{
window.label_ = "Installing NoesisGUI " + version;
}
window.ShowUtility();
}
}
private string localVersion_;
private string version_;
private string label_;
private string state_;
private float progress_ = 0.0f;
private IEnumerator updater_;
void OnEnable()
{
updater_ = UpdateVersion();
}
void OnGUI()
{
GUI.Label(new Rect (5, 5, 420, 20), label_);
EditorGUI.ProgressBar(new Rect(5, 25, 490, 20), progress_, state_);
}
void OnInspectorUpdate()
{
if (updater_.MoveNext())
{
Repaint();
}
else
{
Close();
}
}
private IEnumerator UpdateVersion()
{
GoogleAnalyticsHelper.LogEvent("Install", version_, 0);
progress_ = 0.05f;
state_ = "Upgrading project";
yield return null;
Upgrade(localVersion_);
progress_ = 0.10f;
state_ = "Cleaning resources";
yield return null;
Noesis.BuildToolKernel.BuildBegin();
Noesis.BuildToolKernel.Clean();
progress_ = 0.20f;
string[] activePlatforms = NoesisSettings.ActivePlatforms;
foreach (var platform in activePlatforms)
{
state_ = "Regenerating " + platform + " resources";
yield return null;
using (var builder = new Noesis.BuildToolKernel(platform))
{
builder.BuildAll();
}
progress_ = 0.20f + 0.60f * (1 + ArrayUtility.IndexOf(activePlatforms, platform)) / activePlatforms.Length;
}
state_ = "Updating version";
yield return null;
NoesisVersion.SetCached(version_);
progress_ = 0.85f;
state_ = "Extracting documentation...\n";
yield return null;
ExtractDocumentation();
progress_ = 0.99f;
state_ = "Opening Welcome Window...\n";
yield return null;
EditorWindow.GetWindow(typeof(NoesisWelcome), true, "Welcome to NoesisGUI!");
progress_ = 1.0f;
Debug.Log("NoesisGUI v" + version_ + " successfully installed");
}
private static string NormalizeVersion(string version)
{
string pattern = @"^(\d+).(\d+).(\d+)((a|b|rc|f)(\d*))?$";
var match = Regex.Match(version.ToLower(), pattern);
string normalized = "";
if (match.Success)
{
normalized += match.Groups[1].Value.PadLeft(2, '0');
normalized += ".";
normalized += match.Groups[2].Value.PadLeft(2, '0');
normalized += ".";
normalized += match.Groups[3].Value.PadLeft(2, '0');
if (match.Groups[4].Length > 0)
{
if (match.Groups[5].Value == "a")
{
normalized += ".0.";
}
else if (match.Groups[5].Value == "b")
{
normalized += ".1.";
}
else if (match.Groups[5].Value == "rc")
{
normalized += ".2.";
}
else if (match.Groups[5].Value == "f")
{
normalized += ".3.";
}
normalized += match.Groups[6].Value.PadLeft(2, '0');
}
else
{
normalized += ".3.00";
}
}
else
{
Debug.LogError("Unexpected version format " + version);
}
return normalized;
}
private static bool PatchNeeded(string from, string to)
{
if (from.Length == 0)
{
return false;
}
else
{
return String.Compare(NormalizeVersion(from), NormalizeVersion(to)) < 0;
}
}
private static void Upgrade(string version)
{
if (PatchNeeded(version, "1.1.9"))
{
Upgrade_1_1_9();
}
if (PatchNeeded(version, "1.1.12"))
{
Upgrade_1_1_12();
}
if (PatchNeeded(version, "1.2.0b1"))
{
Upgrade_1_2_0b1();
}
if (PatchNeeded(version, "1.2.0b6"))
{
Upgrade_1_2_0b6();
}
if (PatchNeeded(version, "1.2.0b7"))
{
Upgrade_1_2_0b7();
}
if (PatchNeeded(version, "1.2.0b8"))
{
Upgrade_1_2_0b8();
}
if (PatchNeeded(version, "1.2.2"))
{
Upgrade_1_2_2();
}
if (PatchNeeded(version, "1.2.4"))
{
Upgrade_1_2_4();
}
if (PatchNeeded(version, "1.2.5f2"))
{
Upgrade_1_2_5f2();
}
if (PatchNeeded(version, "1.2.6f1"))
{
Upgrade_1_2_6f1();
}
FixPluginImporterSettings();
}
private static void Upgrade_1_1_9()
{
AssetDatabase.DeleteAsset("Assets/Plugins/x86/UnityRenderHook.dll");
AssetDatabase.DeleteAsset("Assets/Plugins/x86_64/UnityRenderHook.dll");
AssetDatabase.DeleteAsset("Assets/Plugins/x86/libUnityRenderHook.so");
AssetDatabase.DeleteAsset("Assets/Plugins/UnityRenderHook.bundle");
}
private static void Upgrade_1_1_12()
{
EditorPrefs.DeleteKey("NoesisReviewStatus");
EditorPrefs.DeleteKey("NoesisReviewDate");
}
private static void Upgrade_1_2_0b1()
{
AssetDatabase.DeleteAsset("Assets/meta.ANDROID.cache");
AssetDatabase.DeleteAsset("Assets/meta.GL.cache");
AssetDatabase.DeleteAsset("Assets/meta.IOS.cache");
AssetDatabase.DeleteAsset("Assets/meta.DX9.cache");
AssetDatabase.DeleteAsset("Assets/NoesisGUI.build.ANDROID.log");
AssetDatabase.DeleteAsset("Assets/NoesisGUI.build.GL.log");
AssetDatabase.DeleteAsset("Assets/NoesisGUI.build.IOS.log");
AssetDatabase.DeleteAsset("Assets/NoesisGUI.build.DX9.log");
AssetDatabase.DeleteAsset("Assets/NoesisGUI.play.log");
AssetDatabase.DeleteAsset("Assets/Editor/NoesisGUI/Build_.cs");
string[] makes = Directory.GetFiles(UnityEngine.Application.dataPath, "*.make", SearchOption.AllDirectories);
foreach (string make in makes)
{
string asset = ("Assets" + make.Substring(UnityEngine.Application.dataPath.Length)).Replace('\\', '/');
AssetDatabase.DeleteAsset(asset);
}
string[] fonts = Directory.GetFiles(UnityEngine.Application.dataPath, "*.font", SearchOption.AllDirectories);
foreach (string font in fonts)
{
string asset = ("Assets" + font.Substring(UnityEngine.Application.dataPath.Length)).Replace('\\', '/');
AssetDatabase.DeleteAsset(asset);
}
EditorPrefs.DeleteKey("NoesisDelayedBuildDoScan");
EditorPrefs.DeleteKey("NoesisDelayedBuildDoBuild");
}
private static void Upgrade_1_2_0b6()
{
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Docs/Images.zip");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Docs/Integration.zip");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Docs/Shapes.zip");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Docs/Text.zip");
}
private static void Upgrade_1_2_0b7()
{
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Samples/ControlGallery/Samples/Images/blog_compose.png");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Samples/ControlGallery/Samples/Images/button_blue_pause.png");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Samples/ControlGallery/Samples/Images/button_blue_play.png");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Samples/ControlGallery/Samples/Images/calculator.png");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Samples/ControlGallery/Samples/Images/calendar.png");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Samples/ControlGallery/Samples/Images/camera.png");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Samples/ControlGallery/Samples/Images/folder_open.png");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Samples/ControlGallery/Samples/Images/notepad.png");
}
private static void Upgrade_1_2_0b8()
{
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Samples/ControlGallery/Samples/Images/space.jpg");
}
private static void Upgrade_1_2_2()
{
AssetDatabase.DeleteAsset("Assets/Editor/NoesisGUI/BuildTool/tbb.dll");
AssetDatabase.DeleteAsset("Assets/Plugins/x86/tbb.dll");
}
private static void Upgrade_1_2_4()
{
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Docs/Touch.zip");
}
private static void Upgrade_1_2_5f2()
{
AssetDatabase.DeleteAsset("Assets/NoesisGUI/Docs");
AssetDatabase.DeleteAsset("Assets/NoesisGUI/index.html");
AssetDatabase.DeleteAsset("Assets/Plugins/Metro/Win81/arm/NoesisUnityRenderHook.dll");
AssetDatabase.DeleteAsset("Assets/Plugins/Metro/Win81/x86/NoesisUnityRenderHook.dll");
AssetDatabase.DeleteAsset("Assets/Plugins/Metro/WindowsPhone81/arm/NoesisUnityRenderHook.dll");
AssetDatabase.DeleteAsset("Assets/Plugins/Metro/WindowsPhone81/x86/NoesisUnityRenderHook.dll");
AssetDatabase.DeleteAsset("Assets/Plugins/x86/libNoesisUnityRenderHook.so");
AssetDatabase.DeleteAsset("Assets/Plugins/x86_64/libNoesisUnityRenderHook.so");
// Unity is still quite buggy about this. We need to manually patch previous settings
var importer = AssetImporter.GetAtPath("Assets/Plugins/NoesisUnityRenderHook.bundle") as PluginImporter;
if (importer != null)
{
importer.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXUniversal, false);
importer.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel, false);
importer.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel64, false);
importer.SaveAndReimport();
}
}
private static void Upgrade_1_2_6f1()
{
EnsureFolder("Assets/Plugins/Android/libs");
EnsureFolder("Assets/Plugins/Android/libs/armeabi-v7a");
EnsureFolder("Assets/Plugins/Android/libs/x86");
AssetDatabase.MoveAsset(
"Assets/Plugins/Android/libNoesis.so",
"Assets/Plugins/Android/libs/armeabi-v7a/libNoesis.so");
}
private static void FixPluginImporterSettings()
{
#if UNITY_5_0
// http://issuetracker.unity3d.com/issues/plugin-importer-settings-do-not-persist-when-exporting-a-unitypackage
// Fixed in Unity 5.1.0
PluginImporter importer;
importer = AssetImporter.GetAtPath("Assets/Plugins/Noesis.bundle") as PluginImporter;
if (importer != null)
{
importer.SetCompatibleWithAnyPlatform(false);
importer.SetCompatibleWithEditor(false);
importer.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXUniversal, true);
importer.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel, true);
importer.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel64, true);
importer.SaveAndReimport();
}
importer = AssetImporter.GetAtPath("Assets/Plugins/NoesisUnityRenderHook.bundle") as PluginImporter;
if (importer != null)
{
importer.SetCompatibleWithAnyPlatform(false);
importer.SetCompatibleWithEditor(true);
importer.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXUniversal, false);
importer.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel, false);
importer.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel64, false);
importer.SaveAndReimport();
}
importer = AssetImporter.GetAtPath("Assets/Editor/NoesisGUI/BuildTool/Noesis.bundle") as PluginImporter;
if (importer != null)
{
importer.SetCompatibleWithAnyPlatform(false);
importer.SetCompatibleWithEditor(true);
importer.SaveAndReimport();
}
#endif
}
private static void EnsureFolder(string path)
{
if (!AssetDatabase.IsValidFolder(path))
{
string parentFolder = System.IO.Path.GetDirectoryName(path);
string newFolder = System.IO.Path.GetFileName(path);
AssetDatabase.CreateFolder(parentFolder, newFolder);
}
}
private static string TarLocation = "NoesisGUI/Doc.tar";
private static void ExtractDocumentation()
{
string tarPath = Path.Combine(Application.dataPath, TarLocation);
if (File.Exists(tarPath))
{
string destPath = Application.dataPath + "/../NoesisDoc";
byte[] buffer = new byte[512];
try
{
if (Directory.Exists(destPath))
{
Directory.Delete(destPath, true);
}
}
catch (Exception) { }
using (var tar = File.OpenRead(tarPath))
{
while (tar.Read(buffer, 0, 512) > 0)
{
string filename = Encoding.ASCII.GetString(buffer, 0, 100).Trim((char)0);
if (!String.IsNullOrEmpty(filename))
{
long size = Convert.ToInt64(Encoding.ASCII.GetString(buffer, 124, 11).Trim(), 8);
if (size > 0)
{
string path = destPath + "/" + filename;
Directory.CreateDirectory(Path.GetDirectoryName(path));
using (var file = File.Create(path))
{
long blocks = (size + 511) / 512;
for (int i = 0; i < blocks; i++)
{
tar.Read(buffer, 0, 512);
file.Write(buffer, 0, (Int32)Math.Min(size, 512));
size -= 512;
}
}
}
}
}
}
AssetDatabase.DeleteAsset(Path.Combine("Assets", TarLocation));
}
}
}
| JinkiJung/PAUT | VRAT/vrat/Assets/Editor/NoesisGUI/NoesisUpdater.cs | C# | mit | 15,876 |
#include <set>
#include <map>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <cmath>
#include <list>
#include <cassert>
#include <climits>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <fstream>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <stdexcept>
using namespace std;
#define LL long long
#define F first
#define S second
#define PB push_back
#define PF push front
#define MP make_pair
#define REP(x, n) for(int x=0; x<(n); ++x)
#define FOR(x, b, e) for(int x=b; x<=(e); ++x)
#define FORD(x, b, e) for(int x=b; x>=(e); --x)
#define VAR(v,n) __typeof(n) v=(n)
#define FOREACH(i,c) for(VAR(i,(c).begin());i!=(c).end();++i)
#define MOD(x, n) ((x)%(n)+(n))%(n)
#define SZ(x) (int((x).size()))
#define ALL(x) ((x).begin()),((x).end())
#define SORT(v) sort((v).begin(),(v).end())
#define UNIQUE(v) SORT(v),(v).erase(unique((v).begin(),(v).end()),(v).end())
LL GCD( LL a , LL b ) { while( b ) b ^= a ^= b ^= a %= b ; return a ; }
LL LCM( LL a , LL b ) { return a * ( b / GCD( a , b ) ) ; }
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<LL> VLL;
typedef vector<bool> VB;
typedef vector<double> VD;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef vector<PII> VPII;
typedef pair<LL, LL> PLL;
typedef vector<PLL> VPLL;
typedef list<int> LI;
const double EPS = 10e-9;
const double INF = (1LL << 30);
using namespace std;
std::string int2str( int n )
{
std::ostringstream result;
result << n;
return result.str();
}
int str2int( const std::string& s )
{
int result;
std::istringstream ss( s );
ss >> result;
if (!ss) throw std::invalid_argument( "StrToInt" );
return result;
}
int main() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
#endif
return 0;
}
| bolatov/contests | codeforces.ru/cf183/p4.cpp | C++ | mit | 1,861 |
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Command for spanner databases create."""
from googlecloudsdk.api_lib.spanner import database_operations
from googlecloudsdk.api_lib.spanner import databases
from googlecloudsdk.calliope import base
from googlecloudsdk.command_lib.spanner import flags
class Create(base.CreateCommand):
"""Cloud Spanner databases create command."""
@staticmethod
def Args(parser):
"""Args is called by calliope to gather arguments for this command.
Please add arguments in alphabetical order except for no- or a clear-
pair for that argument which can follow the argument itself.
Args:
parser: An argparse parser that you can use to add arguments that go
on the command line after this command. Positional arguments are
allowed.
"""
flags.Instance(positional=False).AddToParser(parser)
flags.Database().AddToParser(parser)
flags.Ddl(help_text='Semi-colon separated DDL (data definition language) '
'statements to run inside the '
'newly created database. If there is an error in any statement, '
'the database is not created. Full DDL specification is at '
'https://cloud.google.com/spanner/docs/data-definition-language'
).AddToParser(parser)
base.ASYNC_FLAG.AddToParser(parser)
def Run(self, args):
"""This is what gets called when the user runs this command.
Args:
args: an argparse namespace. All the arguments that were provided to this
command invocation.
Returns:
Some value that we want to have printed later.
"""
op = databases.Create(
args.instance, args.database, flags.FixDdl(args.ddl or []))
if args.async:
return op
return database_operations.Await(op, 'Creating database')
| Sorsly/subtle | google-cloud-sdk/lib/surface/spanner/databases/create.py | Python | mit | 2,377 |
class HomeController < ApplicationController
def index
end
def playgame
@orientation = ""
@waiting_players = []
if params[:nick_name]
# This user gave us a nickname and is looking for other players
@looking = true
#register user
nick_name = params[:nick_name]
@u = User.find_or_initialize_by(nick_name: nick_name)
@u.save!
# get list of available players
players = User.where('connection_id is not null')
@waiting_players = players - [@u]
elsif params[:game_id]
# This user came from a link and doesn't have a nickname
@looking = false
@game = Game.find(params[:game_id])
@u = User.find_or_initialize_by(nick_name: User.make_random_name)
@u.save!
if !@game.white
#first player gets white
@game.white = @u.id
@orientation = "white"
elsif !@game.black
#second player gets black
@game.black = @u.id
@orientation = "black"
else
#already 2 players?
render "gamefull"
return
end
@game.save!
end
end
def replay
@game = Game.find(params[:game_id])
moves = Move.where("game_id = ?", @game.id)
@fens = moves.map{ |move| move.fen}
end
def creategame
@game = Game.create
@link = @game.generate_play_link request.host_with_port
end
end
| sdb1228/chess | app/controllers/home_controller.rb | Ruby | mit | 1,377 |
package com.almasb.fxglgames.geowars.component;
import com.almasb.fxgl.dsl.FXGL;
import com.almasb.fxgl.dsl.components.HealthIntComponent;
import com.almasb.fxgl.entity.component.Component;
import com.almasb.fxgl.texture.Texture;
import com.almasb.fxgl.time.LocalTimer;
import com.almasb.fxglgames.geowars.GeoWarsApp;
import com.almasb.fxglgames.geowars.GeoWarsType;
import javafx.geometry.Rectangle2D;
import javafx.util.Duration;
import static com.almasb.fxgl.dsl.FXGL.*;
/**
* @author Almas Baimagambetov (almaslvl@gmail.com)
*/
public class MineComponent extends Component {
private Texture overlay;
private LocalTimer beepTimer = newLocalTimer();
@Override
public void onAdded() {
overlay = texture("mine_red.png", 315 * 0.25, 315 * 0.25);
beepTimer.capture();
}
@Override
public void onUpdate(double tpf) {
if (beepTimer.elapsed(Duration.seconds(0.25))) {
if (overlay.getParent() == null) {
entity.getViewComponent().addChild(overlay);
} else {
entity.getViewComponent().removeChild(overlay);
}
beepTimer.capture();
}
}
public void explode() {
getGameWorld().getEntitiesInRange(entity.getBoundingBoxComponent().range(150, 150))
.stream()
.filter(e -> e.hasComponent(HealthIntComponent.class))
.forEach(e -> FXGL.<GeoWarsApp>getAppCast().killEnemy(e));
getGameWorld().getSingleton(GeoWarsType.GRID).getComponent(GridComponent.class)
.applyExplosiveForce(2500, entity.getCenter(), 150);
}
@Override
public boolean isComponentInjectionRequired() {
return false;
}
}
| AlmasB/FXGLGames | GeometryWars/src/main/java/com/almasb/fxglgames/geowars/component/MineComponent.java | Java | mit | 1,735 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = fn;
var _includes = require('utilise/includes');
var _includes2 = _interopRequireDefault(_includes);
var _client = require('utilise/client');
var _client2 = _interopRequireDefault(_client);
var _all = require('utilise/all');
var _all2 = _interopRequireDefault(_all);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// register custom element prototype (render is automatic)
function fn(ripple) {
return function (res) {
if (!customs || !customEl(res) || registered(res)) return (0, _all2.default)(res.name + ':not([inert])\n ,[is="' + res.name + '"]:not([inert])').map(ripple.draw);
var proto = Object.create(HTMLElement.prototype),
opts = { prototype: proto };
proto.attachedCallback = ripple.draw;
document.registerElement(res.name, opts);
};
}
var registered = function registered(res) {
return document.createElement(res.name).attachedCallback;
};
var customs = _client2.default && !!document.registerElement,
customEl = function customEl(d) {
return (0, _includes2.default)('-')(d.name);
}; | lems111/bittrex-node-client | node_modules/rijs/node_modules/rijs.components/dist/types/fn.js | JavaScript | mit | 1,205 |
'use strict';
/* jshint -W098 */
angular.module('mean.rules').controller('RulesController', ['$scope', '$stateParams', '$location', '$http','Global', 'Rules', 'MeanUser','Circles','Groups',
function($scope, $stateParams, $location, $http, Global, Rules, MeanUser,Circles,Groups) {
$scope.global = Global;
$scope.rules = {};
$scope.rule = {};
$scope.groups={};
$scope.sortType = 'name'; // set the default sort type
$scope.sortReverse = false; // set the default sort order
$scope.searchFish = ''; // set the default search/filter term
$scope.hasAuthorization = function(rule) {
if (!rule || !rule.user) return false;
return MeanUser.isAdmin || rule.user._id === MeanUser.user._id;
};
$scope.popup1 = {
opened: false
};
$scope.testdataerror=false;
$scope.popup2 = {
opened: false
};
$scope.testdataresult='';
$scope.openpicker1 = function() {
$scope.popup1.opened = true;
};
$scope.openpicker2 = function() {
$scope.popup2.opened = true;
};
$scope.availableCircles = [];
Circles.mine(function(acl) {
$scope.availableCircles = acl.allowed;
$scope.allDescendants = acl.descendants;
});
$scope.showDescendants = function(permission) {
var temp = $('.ui-select-container .btn-primary').text().split(' ');
temp.shift(); //remove close icon
var selected = temp.join(' ');
$scope.descendants = $scope.allDescendants[selected];
};
$scope.selectPermission = function() {
$scope.descendants = [];
};
$scope.create = function(isValid) {
if (isValid) {
// $scope.article.permissions.push('test test');
var rule = new Rules($scope.rule);
rule.$save(function(response) {
$location.path('rules/' + response._id);
});
$scope.rules = {};
} else {
$scope.submitted = true;
}
};
$scope.remove = function(rule) {
if (rule) {
rule.$remove(function(response) {
for (var i in $scope.rules) {
if ($scope.rules[i] === rule) {
$scope.rules.splice(i, 1);
}
}
$location.path('rules');
});
} else {
$scope.rules.$remove(function(response) {
$location.path('rules');
});
}
};
$scope.update = function(isValid) {
if (isValid) {
var rule = $scope.rule;
if (!rule.updated) {
rule.updated = [];
}
rule.updated.push(new Date().getTime());
rule.$update(function() {
$location.path('rules/' + rule._id);
});
} else {
$scope.submitted = true;
}
};
$scope.findGroups = function() {
Groups.query(function(groups) {
$scope.groups = groups;
});
};
$scope.find = function() {
Rules.query(function(rules) {
$scope.rules = rules;
});
};
$scope.findOne = function() {
Rules.get({
ruleId: $stateParams.ruleId
}, function(rule) {
$scope.rule = rule;
});
};
$scope.documentupdate = function(testdata) {
$scope.testdataerror=false;
try{
testdata = JSON.parse(testdata);
} catch (ex) {
$scope.testdataerror=true;
}
}
$scope.cmdtestdata = function (testdata,execIf,execThen,execElse) {
var td={};
$scope.testdataerror=false;
try{
td = JSON.parse(testdata);
} catch (ex) {
$scope.testdataerror=true;
return;
}
$scope.testdataresult = '';
$http({
method: 'PUT',
url: '/api/rulesprocessor/testdata' ,
headers: {
'Content-Type': 'application/json'
},
data: {
"document": td,
"execIf":execIf,
"execThen":execThen,
"execElse":execElse
}
}).then(function successCallback(response) {
if (response.data === undefined) {
$scope.testdataresult = '';
} else {
$scope.testdataresult = '' +
'IF() evaluated to: ' + response.data.resExecIf.var0 +
'\nThen() evaluated to: ' + JSON.stringify(response.data.resExecThen) +
'\nElse() evaluated to: ' + JSON.stringify(response.data.resExecElse);
}
}, function errorCallback(response) {
$scope.testdataresult = 'Error: (HTTP ' + response.status + ') ' + response.data.error;
});
}
}
]); | jenavarro/AllRules | packages/custom/rules/public/controllers/rules.js | JavaScript | mit | 4,812 |
var utilities = (function(window, $){
/**
* Draws a rounded rectangle using the current state of the canvas.
* If you omit the last three params, it will draw a rectangle
* outline with a 5 pixel border radius
* @param {CanvasRenderingContext2D} ctx
* @param {Number} x The top left x coordinate
* @param {Number} y The top left y coordinate
* @param {Number} width The width of the rectangle
* @param {Number} height The height of the rectangle
* @param {Number} radius The corner radius. Defaults to 5;
* @param {Boolean} fill Whether to fill the rectangle. Defaults to false.
* @param {Boolean} stroke Whether to stroke the rectangle. Defaults to true.
*/
function roundRect(ctx, x, y, width, height, radius, fill, stroke) {
if (typeof stroke == "undefined" ) {
stroke = true;
}
if (typeof radius === "undefined") {
radius = 5;
}
ctx.beginPath();
ctx.moveTo(x + radius, y);
ctx.lineTo(x + width - radius, y);
ctx.quadraticCurveTo(x + width, y, x + width, y + radius);
ctx.lineTo(x + width, y + height - radius);
ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
ctx.lineTo(x + radius, y + height);
ctx.quadraticCurveTo(x, y + height, x, y + height - radius);
ctx.lineTo(x, y + radius);
ctx.quadraticCurveTo(x, y, x + radius, y);
ctx.closePath();
if (stroke) {
ctx.stroke();
}
if (fill) {
ctx.fill();
}
}
/**
* Draws a rounded rectangle using the current state of the canvas.
* If you omit the last three params, it will draw a rectangle
* outline with a 5 pixel border radius
* @param {CanvasRenderingContext2D} ctx
* @param {Number} x The top left x coordinate
* @param {Number} y The top left y coordinate
* @param {Number} width The width of the rectangle
* @param {Number} height The height of the rectangle
* @param {Number} radius The corner radius. Defaults to 5;
* @param {Boolean} fill Whether to fill the rectangle. Defaults to false.
* @param {Boolean} stroke Whether to stroke the rectangle. Defaults to true.
*/
function topHalfRoundRect(ctx, x, y, width, height, radius, fill, stroke) {
if (typeof stroke == "undefined" ) {
stroke = true;
}
if (typeof radius === "undefined") {
radius = 5;
}
ctx.beginPath();
ctx.moveTo(x, y);
ctx.lineTo(x + width, y);
ctx.lineTo(x + width, y + height - radius);
ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
ctx.lineTo(x + radius, y + height);
ctx.quadraticCurveTo(x, y + height, x, y + height - radius);
ctx.lineTo(x, y);
ctx.closePath();
if (stroke) {
ctx.stroke();
}
if (fill) {
ctx.fill();
}
}
/**
* Draws a rounded rectangle using the current state of the canvas.
* If you omit the last three params, it will draw a rectangle
* outline with a 5 pixel border radius
* @param {CanvasRenderingContext2D} ctx
* @param {Number} x The top left x coordinate
* @param {Number} y The top left y coordinate
* @param {Number} width The width of the rectangle
* @param {Number} height The height of the rectangle
* @param {Number} radius The corner radius. Defaults to 5;
* @param {Boolean} fill Whether to fill the rectangle. Defaults to false.
* @param {Boolean} stroke Whether to stroke the rectangle. Defaults to true.
*/
function bottomHalfRoundRect(ctx, x, y, width, height, radius, fill, stroke) {
if (typeof stroke == "undefined" ) {
stroke = true;
}
if (typeof radius === "undefined") {
radius = 5;
}
ctx.beginPath();
ctx.moveTo(x + radius, y);
ctx.lineTo(x + width - radius, y);
ctx.quadraticCurveTo(x + width, y, x + width, y + radius);
ctx.lineTo(x + width, y + height);
ctx.lineTo(x, y + height);
ctx.lineTo(x, y + radius);
ctx.quadraticCurveTo(x, y, x + radius, y);
ctx.closePath();
if (stroke) {
ctx.stroke();
}
if (fill) {
ctx.fill();
}
}
return {
drawRoundRect: roundRect,
drawTopHalfRoundRect: topHalfRoundRect,
drawBottomHalfRoundRect: bottomHalfRoundRect
}
})(window, $); | paradite/GestFly | js/app/utilities.js | JavaScript | mit | 4,614 |
require 'forwardable'
module Gimlet
module Queryable
module API
extend Forwardable
def select(options = {})
selecting = @instances
options[:where].each do |attribute, operator, argument|
selecting = selecting.select do |id, instance|
instance[attribute].send(operator, argument)
end
end
selecting.values
end
def new_query
current_scope || Query.new(self)
end
def_delegators :new_query, :all, :where, :first, :last, :count
end
class Query
include Enumerable
extend Forwardable
def initialize(model)
@model = model
@where = []
end
def where(hash)
hash.each do |attribute, value|
case value
when Array
@where.push([attribute, :in?, value]) # should be :== ?
when Regexp
@where.push([attribute, :=~, value])
else
@where.push([attribute, :==, value])
end
end
self
end
def all
@model.select(:where => @where)
end
def method_missing(method, *args, &block)
if @model.respond_to?(method)
scoping { @model.send(method, *args, &block) }
else
super
end
end
def scoping
previous, @model.current_scope = @model.current_scope, self
yield
ensure
@model.current_scope = previous
end
def_delegators :all, :each, :first, :last
end
end
end
| darashi/gimlet-model | lib/gimlet/queryable.rb | Ruby | mit | 1,545 |
package graphql.analysis;
import graphql.PublicApi;
import graphql.language.Argument;
import graphql.language.Node;
import graphql.schema.GraphQLArgument;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLSchema;
import graphql.util.TraverserContext;
import java.util.Map;
@PublicApi
public interface QueryVisitorFieldArgumentEnvironment {
GraphQLSchema getSchema();
GraphQLFieldDefinition getFieldDefinition();
GraphQLArgument getGraphQLArgument();
Argument getArgument();
Object getArgumentValue();
Map<String, Object> getVariables();
QueryVisitorFieldEnvironment getParentEnvironment();
TraverserContext<Node> getTraverserContext();
}
| graphql-java/graphql-java | src/main/java/graphql/analysis/QueryVisitorFieldArgumentEnvironment.java | Java | mit | 706 |
#!/usr/local/bin/python3
from zeroconf import Zeroconf, ServiceInfo
import socket
import configparser
from . import hazc_cmd
# import pdb
class hazc_device:
#Forward constants
NO_PARAM = hazc_cmd.NO_PARAM
BOOL = hazc_cmd.BOOL
FLOAT = hazc_cmd.FLOAT
STRING = hazc_cmd.STRING
INT = hazc_cmd.INT
global running
running = False
def __init__(self, ipaddr):
self.version = "0.1"
self.config = configparser.ConfigParser()
self.config.read('config.ini')
self.MSGLEN = 1024
self.END_OF_MSG = '*'
self.ip = ipaddr
self.buffer = 20
# self.commands = {'version?':self.version_cmd,'commands?':self.commands_cmd,'status?':self.status_cmd}
hcvc = hazc_cmd.hazc_cmd('version?', self.version_cmd, self.NO_PARAM)
hccc = hazc_cmd.hazc_cmd('commands?', self.commands_cmd, self.NO_PARAM)
hcsc = hazc_cmd.hazc_cmd('status?', self.status_cmd, self.STRING)
self.commands = {'version': hcvc, 'commands': hccc, 'status': hcsc}
# probably want to add a debug log status
self.status = {'exec_status': self.exec_status}
#Adds a function - not as preferred as addControl
#Does NOT auto add status
def addFunction(self, name, handler, paramtype):
# pdb.settrace()
#log("This is not the preferred way to add controls, see addControl")
if not('?' in name or '!' in name):
# log("Function name requires a '?' or '!', assuming '!'")
name += '!'
self.commands[name] = hazc_cmd.hazc_cmd(name, handler, paramtype)
#Adds a control vector
#controlname should just be a name like 'temp' or 'position' - it'll be the same for the status
def addControl(self, controlname, handler, statushandler, paramtype=NO_PARAM):
cmd_name = 'set-'+controlname
self.commands[cmd_name] = hazc_cmd.hazc_cmd(cmd_name+'?', handler, paramtype)
self.addStatus(controlname, statushandler)
#adds a unique status not already included in control vector. name is just the name, as in 'temp'
def addStatus(self, name, handler):
self.status[name] = handler
def advertise(self):
postfix = self.config['global']['service_prefix']
self.port = int(self.config['global']['port'])
#print(self.config['device']['hostname']+postfix)
info = ServiceInfo(postfix, self.config['device']['hostname']+"."+postfix,
socket.inet_aton(self.ip), self.port, 0, 0,
{'info': self.config['device']['description']}, "hazc.local.")
self.bindConnection()
zeroconf = Zeroconf()
zeroconf.register_service(info)
try:
while True:
# try:
print("Ready")
self.conn, self.addr = self.webcontrol.accept()
self.listen()
self.conn.close()
except KeyboardInterrupt:
pass
finally:
print()
print("Unregistering...")
zeroconf.unregister_service(info)
zeroconf.close()
try:
print("Shutting down socket")
self.webcontrol.shutdown(socket.SHUT_RDWR)
except Exception as e:
print(e)
def listen(self):
data = bytes()
rbytes = 0
while rbytes < self.MSGLEN:
d = self.conn.recv(self.buffer)
if not d: break
data += d
rbytes += len(d)
# print data.decode('utf-8')
self.handledata(data)
def handledata(self, data):
command, param = self.cleanandstringdata(data)
print('->' + command + ';' + param)
# replystr = "ERROR"
try:
replystr = self.commands[command].execute(param)
except KeyError:
if(command==''):
command = "(empty string)"
print("ERROR! Unknown command: " + command)
replystr = ""
# replystr = self.commands['version'].execute('')
if(replystr == None):
print("WARNING! " + command + " should return a string to send to the master. Sending 'NO_REPLY'")
replystr = 'NO_REPLY'
print(replystr)
self.reply(replystr)
def reply(self, msg):
longmsg = msg
while len(longmsg) < self.MSGLEN:
longmsg += self.END_OF_MSG
# print(longmsg)
self.conn.send(longmsg.encode('utf-8'))
def cleanandstringdata(self, data):
dstr = data.decode('utf-8')
full = dstr.strip(self.END_OF_MSG)
if '?' in full:
li = full.split('?')
param = li[-1]
cmd = li[0]
elif '!' in full:
li = full.split('!')
param = li[-1]
cmd = li[0]
else:
param = ''
cmd = full
return (cmd, param)
def bindConnection(self):
try:
self.webcontrol = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.webcontrol.bind((self.ip, self.port))
self.webcontrol.listen(1)
except OSError as e:
print(e)
quit()
def exec_status(self):
return "Running"
def version_cmd(self):
return self.version
def paramtype_tostring(self, paramnum):
if paramnum == self.BOOL:
return 'BOOL'
elif paramnum == self.FLOAT:
return 'FLOAT'
elif paramnum == self.STRING:
return 'STRING'
elif paramnum == self.INT:
return 'INT'
else:
return 'PARAM_ERROR'
def commands_cmd(self):
rstr = ""
for key in self.commands:
rstr += key
if self.commands[key].paramtype is not self.NO_PARAM:
# pdb.set_trace()
rstr += ':' + self.paramtype_tostring(self.commands[key].paramtype)
rstr += ";"
return rstr
def status_cmd(self, specific_status=''):
str = ''
if len(specific_status) > 0:
str = self.status[specific_status]
else:
for st in self.status:
str += st + ',' + self.status[st]() + ';'
return str[:self.MSGLEN-1]
# Some debugging methods
def debug_cmds(self):
print("Commands: " + str(self.commands))
print("Statuses: " + str(self.status)) | ArcAwe/hazc | hazc_device.py | Python | mit | 6,518 |
require 'spec_helper'
def department_in_index?(d)
Department.__elasticsearch__.refresh_index!
Department.__elasticsearch__.search(query: { match: { '_id' => d.id.to_s } }).count == 1
end
describe Department do
let(:attrs) { {} }
subject(:department) { build :department, attrs }
# relationships
it { should have_many :child_departments }
it { should belong_to :parent_department }
it { should embed_many :gallery_photos }
it { should embed_many :social_media }
it { should embed_many :department_contacts }
it { should embed_many :memberships }
it { should embed_one :address }
it { should belong_to :campus_location }
it { should have_and_belong_to_many :academic_subjects }
it { should have_and_belong_to_many :events }
it { should have_and_belong_to_many :articles }
it { should have_and_belong_to_many :publications }
# fields
it { should have_field(:title).of_type String }
it { should have_field(:slug).of_type String }
it { should have_field(:label).of_type(String).with_default_value_of('Department') }
it { should have_field(:hr_title).of_type String}
it { should have_field(:service_content).of_type String }
it { should have_field(:description).of_type String}
it { should have_field(:location).of_type String }
it { should have_field(:location_details).of_type String }
it { should have_field(:website).of_type String }
it { should have_field(:email).of_type String }
it { should have_field(:phone).of_type String }
it { should have_field(:fax).of_type String }
it { should have_field(:open_hours).of_type String }
it { should have_field(:published).of_type(Mongoid::Boolean).with_default_value_of(true) }
it { should have_field(:banner) }
it { should have_field(:logo) }
it { should have_field(:forms_department_id).of_type Integer }
it { should have_field(:categories).of_type Array }
# validations
it { should validate_presence_of :title }
it { should validate_presence_of :slug }
it { should validate_uniqueness_of :slug }
it { should validate_uniqueness_of :title}
it { should validate_uniqueness_of :hr_title}
describe 'parent_department' do
before do
@parent_department = Department.new(title: 'Papa')
@child_department = Department.new(title: 'Son', parent_department: @parent_department)
end
it 'should return the title of the parent department' do
expect(@child_department.parent_department.title).to eq('Papa')
end
it 'should return the title of the child department' do
expect(@parent_department.child_departments.first.title).to eq('Son')
end
end
describe 'website validation' do
context 'valid url' do
let(:attrs) { {website: 'http://biola.edu/it'} }
it { should be_valid }
end
context 'invalid url' do
let(:attrs) { {website: 'biola.edu/it'} }
it { should be_invalid }
end
end
# class methods
describe '.custom_search for the following query' do
let!(:it) { create :department, title: 'Information Technology', aliases: ['IT'] }
let!(:hr) { create :department, title: 'Human Resources', aliases: ['HR'] }
let(:query) { '' }
subject { Department.custom_search(query).map{|d| d.aliases.to_a.first } }
[
{ query: 'in', yes: ['IT'], no: ['HR'] },
{ query: 'information t', yes: ['IT'], no: ['HR'] },
{ query: 'tech', yes: ['IT'], no: ['HR'] },
{ query: 'it', yes: ['IT'], no: ['HR'] },
{ query: 'hr', yes: ['HR'], no: ['IT'] },
{ query: 'r', yes: ['IT', 'HR'], no: [] },
{ query: '', yes: ['IT', 'HR'], no: [] },
{ query: nil, yes: ['IT', 'HR'], no: [] },
].each do |q|
context "'#{q[:query]}'" do
let(:query) { q[:query] }
it { should include(*q[:yes]) }
it { should_not include(*q[:no]) }
end
end
end
# instance methods and behavior
describe '.to_s' do
it 'returns title' do
expect(department.to_s).to eq(department.title)
end
end
describe '.hr_title' do
it 'can be blank' do
department = FactoryGirl.build :department, hr_title: ""
expect(department).to be_valid
end
it 'can be nil' do
department = FactoryGirl.build :department, hr_title: nil
expect(department).to be_valid
end
end
describe '#first_or_create_by_hr_title' do
before(:all) { Department.destroy_all }
let(:hr_title) { "Bursar" }
let!(:department) { create :department, hr_title: hr_title }
context 'when matching hr_title exists' do
it 'returns a Department' do
expect(Department.first_or_create_by_hr_title(hr_title)).to be_a Department
end
it 'returns the matching department' do
expect(Department.first_or_create_by_hr_title(hr_title).id).to eq department.id
end
end
context 'when matching hr_title does not exist' do
it 'creates a new department' do
expect{Department.first_or_create_by_hr_title("not bursar")}.to change{Department.count}.by(1)
end
it 'uses .hr_title for .title' do
expect(Department.first_or_create_by_hr_title("another title").title).to eq("another title")
end
end
end
describe '.actors' do
let(:department) { create :department, attrs}
it 'returns an array' do
expect(department.actors).to be_a Array
end
it 'returns all permission actors' do
people = []
5.times do
p = FactoryGirl.create :person
people << p
department.permissions.create(actor_type: p.class.to_s, actor_id: p.id, ability: :edit)
end
expect(department.actors - people).to be_empty
end
end
context 'when ManagedByPermissions...' do
# methods
describe '.new_permissions_for' do
let(:department) { create :department }
let(:object) { create :person }
subject(:permission) {department.new_permissions_for object}
it 'returns a Permission' do
expect(permission).to be_a Permission
end
it 'populates actor_type with class of passed object' do
expect(permission.actor_type).to eq object.class.to_s
end
it 'populates actor_id with id of passed object' do
expect(permission.actor_id).to eq object.id.to_s
end
it 'sets the parent object' do
expect(permission.department).to eq department
end
end
describe '.authorize!' do
let(:department) { create :department }
let(:object) { create :person }
let(:ability) { :edit }
it 'requires an ability parameter' do
expect{department.authorize!(object)}.to raise_error(ArgumentError)
end
it 'creates a permission for the given object' do
expect(department.authorize!(object, ability)).to be_truthy
end
end
# scopes
describe '.by_actor(actor) scope' do
before(:each) do
viewable_department.permissions.create(actor_type: person.class.to_s, actor_id: person.id, ability: :view)
editable_department.permissions.create(actor_type: person.class.to_s, actor_id: person.id, ability: :edit)
end
let(:person) { create :person }
let(:viewable_department) { create :department }
let(:editable_department) { create :department }
it 'includes objects with a permission containing the given actor' do
# expect(view_permission).to be_valid
expect(Department.by_actor(person).to_a).to include(viewable_department)
end
it 'excludes objects without a permission containing the given actor' do
department_with_no_permissions = FactoryGirl.create :department
expect(Department.by_actor(person).to_a).to_not include(department_with_no_permissions)
end
end
describe '.with_permission_to(ability, actor) scope' do
before(:each) do
viewable_department.permissions.create(actor_type: person.class.to_s, actor_id: person.id, ability: :view)
editable_department.permissions.create(actor_type: person.class.to_s, actor_id: person.id, ability: :edit)
end
let(:person) { create :person }
let(:viewable_department) { create :department }
let(:editable_department) { create :department }
it 'includes objects with a permission containing the given ability' do
# expect(Department.by_actor(person).with_permission_to(:view).to_a).to include(viewable_department)
expect(Department.with_permission_to(:view, person).to_a).to include(viewable_department)
end
it 'excludes objects with a permission containing a different given ability' do
expect(Department.with_permission_to(:view, person).to_a).to_not include(editable_department)
end
end
end
describe 'indexation' do
let(:privacy) { false }
context 'when published is initially false' do
let(:attrs) { {published: false} }
context 'department' do
it 'does not get indexed' do
department.save!
expect(department_in_index?(department)).to be false
end
context 'but now are published' do
it 'gets added to index' do
department.save!
expect(department_in_index?(department)).to be false
department.update_attribute(:published, true)
expect(department_in_index?(department)).to be true
end
end
end
end
context 'when published is initially true' do
context 'department' do
it 'gets indexed' do
department.save!
expect(department_in_index?(department)).to be true
end
context 'but now arent published' do
it 'gets removed from index' do
department.save!
expect(department_in_index?(department)).to be true
department.update_attribute(:published, false)
expect(department_in_index?(department)).to be false
end
end
end
end
end
describe '.slug' do
it 'should make a slug out of .title' do
department = FactoryGirl.create :department, { title: "Cat Sitters" }
expect(department.slug).to eq('cat-sitters')
end
end
end
| biola/buweb-content-models | spec/lib/buweb/department_spec.rb | Ruby | mit | 10,147 |
var c = require("./config").twitter;
var Twit = require('twit');
//console.log(c);
console.log(c.apiKey);
console.log(c.apiSecret);
console.log(c.accessToken);
console.log(c.accessTokenSecret);
var T = new Twit({
consumer_key: c.apiKey,
consumer_secret: c.apiSecret,
access_token: c.accessToken,
access_token_secret: c.accessTokenSecret
});
/*
T.post('statuses/update', { status: 'hello world!' }, function(err, data, response) {
console.log(err);
})
*/
//console.log(T);
//
// tweet 'hello world!'
//
T.get('search/tweets', { q: 'banana since:2011-11-11', count: 100 }, function(err, data, res) {
console.log(data);
//console.log(err);
//console.log(res);
});
| russjohnson09/rdjgvus | twit.js | JavaScript | mit | 691 |
// These are the pages you can go to.
// They are all wrapped in the App component, which should contain the navbar etc
// See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information
// about the code splitting business
import { getAsyncInjectors } from './utils/asyncInjectors';
const errorLoading = (err) => {
console.error('Dynamic page loading failed', err); // eslint-disable-line no-console
};
const loadModule = (cb) => (componentModule) => {
cb(null, componentModule.default);
};
export default function createRoutes(store) {
// create reusable async injectors using getAsyncInjectors factory
const { injectReducer, injectSagas } = getAsyncInjectors(store);
return [
{
path: '/',
name: 'home',
getComponent(nextState, cb) {
const importModules = Promise.all([
import('containers/HomePage/reducer'),
import('containers/HomePage/sagas'),
import('containers/HomePage'),
]);
const renderRoute = loadModule(cb);
importModules.then(([reducer, sagas, component]) => {
injectReducer('home', reducer.default);
injectSagas(sagas.default);
renderRoute(component);
});
importModules.catch(errorLoading);
},
}, {
path: '/features',
name: 'features',
getComponent(nextState, cb) {
import('containers/FeaturePage')
.then(loadModule(cb))
.catch(errorLoading);
},
}, {
path: '/login',
name: 'login',
getComponent(nextState, cb) {
const importModules = Promise.all([
import('containers/LoginPage/reducer'),
import('containers/LoginPage/sagas'),
import('containers/LoginPage'),
]);
const renderRoute = loadModule(cb);
importModules.then(([reducer, sagas, component]) => {
injectReducer('loginPage', reducer.default);
injectSagas(sagas.default);
renderRoute(component);
});
importModules.catch(errorLoading);
},
}, {
path: '/signup',
name: 'signup',
getComponent(nextState, cb) {
const importModules = Promise.all([
import('containers/SignupPage/reducer'),
import('containers/SignupPage/sagas'),
import('containers/SignupPage'),
]);
const renderRoute = loadModule(cb);
importModules.then(([reducer, sagas, component]) => {
injectReducer('signupPage', reducer.default);
injectSagas(sagas.default);
renderRoute(component);
});
importModules.catch(errorLoading);
},
}, {
path: '/restorepassword',
name: 'restorepassword',
getComponent(nextState, cb) {
const importModules = Promise.all([
import('containers/PasswordRestorePage/reducer'),
import('containers/PasswordRestorePage/sagas'),
import('containers/PasswordRestorePage'),
]);
const renderRoute = loadModule(cb);
importModules.then(([reducer, sagas, component]) => {
injectReducer('passwordRestorePage', reducer.default);
injectSagas(sagas.default);
renderRoute(component);
});
importModules.catch(errorLoading);
},
}, {
path: '/trackingpage',
name: 'trackingpage',
getComponent(nextState, cb) {
const importModules = Promise.all([
import('containers/TrackingPage/reducer'),
import('containers/TrackingPage/sagas'),
import('containers/TrackingPage'),
]);
const renderRoute = loadModule(cb);
importModules.then(([reducer, sagas, component]) => {
injectReducer('trackingPage', reducer.default);
injectSagas(sagas.default);
renderRoute(component);
});
importModules.catch(errorLoading);
},
}, {
path: '/userprofile',
name: 'userprofilepage',
getComponent(nextState, cb) {
const importModules = Promise.all([
import('containers/UserProfilePage/reducer'),
import('containers/UserProfilePage/sagas'),
import('containers/UserProfilePage'),
]);
const renderRoute = loadModule(cb);
importModules.then(([reducer, sagas, component]) => {
injectReducer('userProfilePage', reducer.default);
injectSagas(sagas.default);
renderRoute(component);
});
importModules.catch(errorLoading);
},
}, {
path: '*',
name: 'notfound',
getComponent(nextState, cb) {
import('containers/NotFoundPage')
.then(loadModule(cb))
.catch(errorLoading);
},
},
];
}
| mikejong0815/Temp | app/routes.js | JavaScript | mit | 4,755 |
/**
* Fac.js
* (c) 2017 Owen Luke
* https://github.com/tasjs/fac
* Released under the MIT License.
*/
var copy = require('./copy');
var chain = require('./chain');
var super_ = require('./super');
var core = {
new: function(options){
typeof options === 'string' && (options = {name: options});
var obj = chain.create(this, options);
obj.protoName = this.name;
obj.model = this;
obj.super = super_;
chain.init(obj.parent, options, obj);
return obj;
},
extends: function(proto, p1){
var obj = chain.create(this, {});
var options = proto;
if (typeof p1 !== 'undefined') {
var args = Array.prototype.slice.call(arguments);
for (var i = 0, len = args.length - 1; i < len; i ++) {
options = args[i];
copy.do(obj, options);
}
options = args[i];
}
copy.do(obj, options);
obj.protoName = options.name;
obj.super = super_;
typeof options.default === 'function' && options.default.call(obj, options);
return obj;
},
ext: function(options){
copy.do(this, options);
return this;
},
spawn: function(options) {
typeof options === 'string' && (options = {name: options});
var obj = Object.create(this);
copy.do(obj, options);
chain.init(this, options, obj);
return obj;
},
isChildOf: function(obj){
return chain.isChildOf(obj, this);
},
isParentOf: function(obj){
return chain.isParentOf(obj, this);
},
isAncestorOf: function(obj){
return chain.isAncestorOf(obj, this);
},
isDescendantOf: function(obj){
return chain.isDescendantOf(obj, this);
},
isModelOf: function(obj){
return this === obj.model;
},
isCopyOf: function(obj){
return this.model === obj;
}
};
module.exports = core;
| tasjs/fac | lib/core/core.js | JavaScript | mit | 1,691 |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Net;
using System.Threading.Tasks;
using System.Xml;
namespace Kitechan
{
public class UserInfo
{
public struct ImagePath
{
public string ImageUrl { get; set; }
public string CachedImagePath { get; set; }
}
public event EventHandler<ImageLoadedEventArgs> ImageLoadedEvent;
public int Id { get; private set; }
public string Name { get; set; }
public string ImageUrl { get; private set; }
public string CachedImagePath { get; set; }
public List<string> Aliases { get; private set; }
public List<ImagePath> PriorImages { get; private set; }
public Image UserImage { get; private set; }
private UserInfo()
{
this.Aliases = new List<string>();
this.PriorImages = new List<ImagePath>();
}
public UserInfo(int id, string name, string imageUrl)
{
this.Id = id;
this.Name = name;
this.ImageUrl = imageUrl;
this.CachedImagePath = null;
this.UserImage = null;
this.Aliases = new List<string>();
this.PriorImages = new List<ImagePath>();
}
public void UpdateUser(string name, string imageUrl)
{
if (!this.Name.Equals(name, StringComparison.InvariantCultureIgnoreCase))
{
this.Aliases.Add(this.Name);
this.Name = name;
}
if (!this.ImageUrl.Equals(imageUrl, StringComparison.InvariantCultureIgnoreCase))
{
this.PriorImages.Add(new ImagePath() { ImageUrl = this.ImageUrl, CachedImagePath = this.CachedImagePath });
this.ImageUrl = imageUrl;
this.CachedImagePath = null;
this.UserImage = null;
}
}
public void LoadImage()
{
Task.Factory.StartNew(() => this.PerformLoadImage());
}
private void PerformLoadImage()
{
if (File.Exists(this.CachedImagePath))
{
this.UserImage = Image.FromFile(this.CachedImagePath);
this.ImageLoadedEvent(this, new ImageLoadedEventArgs(this.Id, false));
}
else
{
using (WebClient webClient = new WebClient())
{
try
{
Stream imageStream = webClient.OpenRead(this.ImageUrl);
Image image = Image.FromStream(imageStream);
imageStream.Close();
this.UserImage = image;
this.CachedImagePath = Path.Combine(Engine.ImageCacheDir, this.Id + "_" + DateTime.Now.ToString("yyMMddHHmmss"));
this.UserImage.Save(this.CachedImagePath);
this.ImageLoadedEvent(this, new ImageLoadedEventArgs(this.Id, true));
}
catch
{
this.UserImage = null;
}
}
}
}
public void WriteXml(XmlWriter writer)
{
writer.WriteStartElement("user");
writer.WriteElementString("id", this.Id.ToString());
writer.WriteElementString("name", this.Name);
writer.WriteElementString("imageUrl", this.ImageUrl);
writer.WriteElementString("cachedImagePath", this.CachedImagePath);
foreach (string alias in this.Aliases)
{
writer.WriteElementString("alias", alias);
}
foreach (ImagePath image in this.PriorImages)
{
writer.WriteStartElement("priorImage");
writer.WriteAttributeString("url", image.ImageUrl);
writer.WriteAttributeString("cache", image.CachedImagePath);
writer.WriteEndElement();
}
writer.WriteEndElement(); // user
}
public static UserInfo FromXml(XmlNode node)
{
UserInfo ret = new UserInfo();
if (node.Name == "user")
{
foreach (XmlNode innerNode in node.ChildNodes)
{
switch (innerNode.Name)
{
case "id":
ret.Id = int.Parse(innerNode.InnerText);
break;
case "name":
ret.Name = innerNode.InnerText;
break;
case "imageUrl":
ret.ImageUrl = innerNode.InnerText;
break;
case "cachedImagePath":
ret.CachedImagePath = innerNode.InnerText;
break;
case "alias":
ret.Aliases.Add(innerNode.InnerText);
break;
case "priorImage":
ret.PriorImages.Add(new ImagePath() { ImageUrl = innerNode.Attributes["url"].InnerText, CachedImagePath = innerNode.Attributes["cache"].InnerText });
break;
}
}
}
return ret;
}
}
}
| Asky314159/kitechan | UserInfo.cs | C# | mit | 5,514 |
from victor.exceptions import (
FieldValidationException,
FieldTypeConversionError,
FieldRequiredError,
VectorInputTypeError
)
class Field(object):
required = True
"""Field is required and an exception will be raised if missing"""
missing_value = None
"""Value to use when field is missing and not required"""
strict = False
"""Field value must pass validation or an exception will be raised"""
cast_cls = None
data = None
def __init__(self, required=True, missing_value=None, strict=False):
self.required = required
self.missing_value = missing_value
self.strict = strict
def _validate(self, value):
return True
def _cast_type(self, value):
return self.cast_cls(value)
def set_data(self, value):
if self.strict:
if not self._validate(value):
raise FieldValidationException('%s does not '
'except this value'
% self.__class__.__name__)
elif self.cast_cls is not None:
value = self._cast_type(value)
self.data = value
class CharField(Field):
pass
class StringField(Field):
cast_cls = str
def _validate(self, value):
if not isinstance(value, (str, unicode)):
return False
return True
class IntField(Field):
cast_cls = int
_cast_fallback_value = 0
def __init__(self, *args, **kwargs):
super(IntField, self).__init__(*args, **kwargs)
if self.missing_value is None:
self.missing_value = self._cast_fallback_value
def _cast_type(self, value):
try:
return self.cast_cls(value)
except ValueError, exc:
if self.missing_value is False:
raise FieldTypeConversionError('Could not convert '
'data or use missing_value: %s'
% exc)
return self.missing_value
class FloatField(IntField):
cast_class = float
_cast_fallback_value = 0.0
class ListField(Field):
cls = None
"""Field class to represent list items"""
def __init__(self, cls, *args, **kwargs):
assert isinstance(cls, Field), 'cls is not a valid Field instance'
self.cls = cls
super(ListField, self).__init__(*args, **kwargs)
def _validate(self, value):
if not isinstance(value, (list, tuple)):
raise FieldValidationException('ListField requires data '
'to be a sequence type')
for x in value:
self.cls.set_data(value)
self.data = value
return True
class Vector(object):
def __init__(self):
self.input_data = {}
self._fields = {}
self._map = {}
self._required = []
self._setup_fields()
def get_name(self):
return self.__class__.__name__
def __call__(self, data):
return self.input(data)
def input(self, data):
self._map = {}
if not isinstance(data, dict):
raise VectorInputTypeError('Vector input not a dictionary')
self._validate(data)
self._map_attrs(data)
def _setup_fields(self):
self._fields = {}
for a in dir(self):
v = getattr(self, a)
if isinstance(v, Field):
self._fields[a] = v
if v.required:
self._required.append(a)
self._reset_fields()
def _reset_fields(self):
for f in self.get_fields():
setattr(self, f, None)
def _validate(self, input_data):
for f in self._required:
if f not in input_data:
raise FieldRequiredError('Missing field %s is a required field'
% f)
for k, v in input_data.iteritems():
if k in self.get_fields():
f = self.get_field(k)
f.set_data(v)
def _map_attrs(self, input_data):
self.input_data = input_data
for k, v in self.input_data.iteritems():
if k in self.get_fields():
# setattr(self, k, self.get_field(k).data)
self._map[k] = self.get_field(k).data
else:
# setattr(self, k, v)
self._map[k] = v
for k, v in self._map.iteritems():
setattr(self, k, v)
def get_fields(self):
return self._fields
def get_field(self, name):
return self._fields[name]
@property
def data(self):
return self._map
| alexph/victor | victor/vector.py | Python | mit | 4,717 |
/*
Copyright 2017 Coin Foundry (coinfoundry.org)
Authors: Oliver Weichhold (oliver@weichhold.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;
namespace MiningCore.Stratum
{
public enum StratumError
{
Other = 20,
JobNotFound = 21, // stale
DuplicateShare = 22,
LowDifficultyShare = 23,
UnauthorizedWorker = 24,
NotSubscribed = 25,
MinusOne = -1
}
public class StratumException : Exception
{
public StratumException(StratumError code, string message) : base(message)
{
Code = code;
}
public StratumError Code { get; set; }
}
}
| shtse8/miningcore | src/MiningCore/Stratum/StratumError.cs | C# | mit | 1,708 |
// Copyright (c) 2011-2016 The Flericoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "Globals.h"
#include "CryptoNoteCore/Account.h"
#include "CryptoNoteCore/CryptoNoteFormatUtils.h"
#include "CryptoNoteCore/CryptoNoteTools.h"
#include "CryptoNoteCore/TransactionApi.h"
#include "Transfers/TransfersSynchronizer.h"
#include "Transfers/BlockchainSynchronizer.h"
#include <mutex>
#include <condition_variable>
#include <future>
#include <atomic>
#include "../IntegrationTestLib/TestWalletLegacy.h"
using namespace CryptoNote;
using namespace Crypto;
using namespace Tests::Common;
class IInterruptable {
public:
virtual void interrupt() = 0;
};
class WalletLegacyObserver : public IWalletLegacyObserver {
public:
virtual void actualBalanceUpdated(uint64_t actualBalance) override {
std::cout << "Actual balance updated = " << currency.formatAmount(actualBalance) << std::endl;
m_actualBalance = actualBalance;
m_sem.notify();
}
virtual void sendTransactionCompleted(TransactionId transactionId, std::error_code result) override {
std::cout << "Transaction sent, result = " << result << std::endl;
}
std::atomic<uint64_t> m_actualBalance;
Tests::Common::Semaphore m_sem;
};
class TransactionConsumer : public IBlockchainConsumer {
public:
TransactionConsumer() {
syncStart.timestamp = time(nullptr);
syncStart.height = 0;
}
virtual SynchronizationStart getSyncStart() override {
return syncStart;
}
virtual void onBlockchainDetach(uint32_t height) override {
std::lock_guard<std::mutex> lk(m_mutex);
auto it = m_transactions.lower_bound(height);
m_transactions.erase(it, m_transactions.end());
}
virtual bool onNewBlocks(const CompleteBlock* blocks, uint32_t startHeight, uint32_t count) override {
std::lock_guard<std::mutex> lk(m_mutex);
for(size_t i = 0; i < count; ++i) {
for (const auto& tx : blocks[i].transactions) {
m_transactions[startHeight + i].insert(tx->getTransactionHash());
}
}
m_cv.notify_all();
return true;
}
bool waitForTransaction(const Hash& txHash) {
std::unique_lock<std::mutex> lk(m_mutex);
while (!hasTransaction(txHash)) {
m_cv.wait_for(lk, std::chrono::seconds(1));
}
return true;
}
std::error_code onPoolUpdated(const std::vector<std::unique_ptr<ITransactionReader>>& addedTransactions, const std::vector<Crypto::Hash>& deletedTransactions) override {
//stub
return std::error_code();
}
const std::unordered_set<Crypto::Hash>& getKnownPoolTxIds() const override {
//stub
static std::unordered_set<Crypto::Hash> empty;
return empty;
}
std::error_code addUnconfirmedTransaction(const ITransactionReader& /*transaction*/) override {
throw std::runtime_error("Not implemented");
}
void removeUnconfirmedTransaction(const Crypto::Hash& /*transactionHash*/) override {
throw std::runtime_error("Not implemented");
}
virtual void addObserver(IBlockchainConsumerObserver* observer) override {
//stub
}
virtual void removeObserver(IBlockchainConsumerObserver* observer) override {
//stub
}
private:
bool hasTransaction(const Hash& txHash) {
for (const auto& kv : m_transactions) {
if (kv.second.count(txHash) > 0)
return true;
}
return false;
}
std::mutex m_mutex;
std::condition_variable m_cv;
std::map<uint64_t, std::unordered_set<Hash>> m_transactions;
SynchronizationStart syncStart;
};
class TransfersObserver : public ITransfersObserver, public IInterruptable {
public:
virtual void onTransactionUpdated(ITransfersSubscription* object, const Hash& transactionHash) override {
{
std::lock_guard<std::mutex> lk(m_mutex);
m_transfers.push_back(transactionHash);
auto key = object->getAddress().spendPublicKey;
std::string address = Common::toHex(&key, sizeof(key));
LOG_DEBUG("Transfer to " + address);
}
m_cv.notify_all();
}
bool waitTransfer() {
std::unique_lock<std::mutex> lk(m_mutex);
size_t prevSize = m_transfers.size();
while (!m_interrupted && m_transfers.size() == prevSize) {
m_cv.wait_for(lk, std::chrono::seconds(10));
}
return true;
}
bool waitTransactionTransfer(const Hash& transactionHash) {
std::unique_lock<std::mutex> lk(m_mutex);
while (!m_interrupted) {
auto it = std::find(m_transfers.begin(), m_transfers.end(), transactionHash);
if (it == m_transfers.end()) {
m_cv.wait_for(lk, std::chrono::seconds(10));
} else {
m_transfers.erase(it);
break;
}
}
return true;
}
private:
bool hasTransaction(const Hash& transactionHash) {
return std::find(m_transfers.begin(), m_transfers.end(), transactionHash) != m_transfers.end();
}
void interrupt() override {
std::lock_guard<std::mutex> lock(m_mutex);
m_interrupted = true;
m_cv.notify_all();
}
private:
std::mutex m_mutex;
std::condition_variable m_cv;
std::vector<Hash> m_transfers;
bool m_interrupted = false;
};
class AccountGroup {
public:
enum {
TRANSACTION_SPENDABLE_AGE = 5
};
AccountGroup(ITransfersSynchronizer& sync) :
m_sync(sync) {}
void generateAccounts(size_t count) {
CryptoNote::AccountBase acc;
while (count--) {
acc.generate();
AccountSubscription sub;
sub.keys = reinterpret_cast<const AccountKeys&>(acc.getAccountKeys());
sub.syncStart.timestamp = 0;
sub.syncStart.height = 0;
sub.transactionSpendableAge = TRANSACTION_SPENDABLE_AGE;
m_accounts.push_back(sub);
m_addresses.push_back(currency.accountAddressAsString(acc));
}
}
void subscribeAll() {
m_observers.reset(new TransfersObserver[m_accounts.size()]);
for (size_t i = 0; i < m_accounts.size(); ++i) {
m_sync.addSubscription(m_accounts[i]).addObserver(&m_observers[i]);
}
}
std::vector<AccountPublicAddress> getAddresses() {
std::vector<AccountPublicAddress> addr;
for (const auto& acc : m_accounts) {
addr.push_back(acc.keys.address);
}
return addr;
}
ITransfersContainer& getTransfers(size_t idx) {
return m_sync.getSubscription(m_accounts[idx].keys.address)->getContainer();
}
std::vector<AccountSubscription> m_accounts;
std::vector<std::string> m_addresses;
ITransfersSynchronizer& m_sync;
std::unique_ptr<TransfersObserver[]> m_observers;
};
class MultisignatureTest : public TransfersTest {
public:
virtual void SetUp() override {
launchTestnet(2);
}
};
template <typename R>
class FutureGuard {
public:
FutureGuard(std::future<R>&& f) : m_future(std::move(f)) {
}
~FutureGuard() {
if (m_future.valid()) {
try {
m_future.get();
} catch (...) {
}
}
}
R get() {
return m_future.get();
}
private:
std::future<R> m_future;
};
class Interrupter {
public:
Interrupter(IInterruptable& interrpuptable) : m_interrpuptable(interrpuptable) {
}
~Interrupter() {
if (!m_cancelled) {
m_interrpuptable.interrupt();
}
}
void cancel() {
m_cancelled = true;
}
private:
IInterruptable& m_interrpuptable;
bool m_cancelled = false;
};
TEST_F(TransfersTest, base) {
uint64_t TRANSFER_AMOUNT;
currency.parseAmount("500000.5", TRANSFER_AMOUNT);
launchTestnet(2);
std::unique_ptr<CryptoNote::INode> node1;
std::unique_ptr<CryptoNote::INode> node2;
nodeDaemons[0]->makeINode(node1);
nodeDaemons[1]->makeINode(node2);
CryptoNote::AccountBase dstAcc;
dstAcc.generate();
AccountKeys dstKeys = reinterpret_cast<const AccountKeys&>(dstAcc.getAccountKeys());
BlockchainSynchronizer blockSync(*node2.get(), currency.genesisBlockHash());
TransfersSyncronizer transferSync(currency, blockSync, *node2.get());
TransfersObserver transferObserver;
WalletLegacyObserver walletObserver;
AccountSubscription sub;
sub.syncStart.timestamp = 0;
sub.syncStart.height = 0;
sub.keys = dstKeys;
sub.transactionSpendableAge = 5;
ITransfersSubscription& transferSub = transferSync.addSubscription(sub);
ITransfersContainer& transferContainer = transferSub.getContainer();
transferSub.addObserver(&transferObserver);
Tests::Common::TestWalletLegacy wallet1(m_dispatcher, m_currency, *node1);
ASSERT_FALSE(static_cast<bool>(wallet1.init()));
wallet1.wallet()->addObserver(&walletObserver);
ASSERT_TRUE(mineBlocks(*nodeDaemons[0], wallet1.address(), 1));
ASSERT_TRUE(mineBlocks(*nodeDaemons[0], wallet1.address(), currency.minedMoneyUnlockWindow()));
wallet1.waitForSynchronizationToHeight(static_cast<uint32_t>(2 + currency.minedMoneyUnlockWindow()));
// start syncing and wait for a transfer
FutureGuard<bool> waitFuture(std::async(std::launch::async, [&transferObserver] { return transferObserver.waitTransfer(); }));
Interrupter transferObserverInterrupter(transferObserver);
blockSync.start();
Hash txId;
ASSERT_FALSE(static_cast<bool>(wallet1.sendTransaction(currency.accountAddressAsString(dstAcc), TRANSFER_AMOUNT, txId)));
ASSERT_TRUE(mineBlocks(*nodeDaemons[0], wallet1.address(), 1));
ASSERT_TRUE(waitFuture.get());
transferObserverInterrupter.cancel();
std::cout << "Received transfer: " << currency.formatAmount(transferContainer.balance(ITransfersContainer::IncludeAll)) << std::endl;
ASSERT_EQ(TRANSFER_AMOUNT, transferContainer.balance(ITransfersContainer::IncludeAll));
ASSERT_GT(transferContainer.getTransactionOutputs(txId, ITransfersContainer::IncludeAll).size(), 0);
blockSync.stop();
}
std::unique_ptr<ITransaction> createTransferToMultisignature(
ITransfersContainer& tc, // money source
uint64_t amount,
uint64_t fee,
const AccountKeys& senderKeys,
const std::vector<AccountPublicAddress>& recipients,
uint32_t requiredSignatures) {
std::vector<TransactionOutputInformation> transfers;
tc.getOutputs(transfers, ITransfersContainer::IncludeAllUnlocked | ITransfersContainer::IncludeStateSoftLocked);
auto tx = createTransaction();
std::vector<std::pair<TransactionTypes::InputKeyInfo, KeyPair>> inputs;
uint64_t foundMoney = 0;
for (const auto& t : transfers) {
TransactionTypes::InputKeyInfo info;
info.amount = t.amount;
TransactionTypes::GlobalOutput globalOut;
globalOut.outputIndex = t.globalOutputIndex;
globalOut.targetKey = t.outputKey;
info.outputs.push_back(globalOut);
info.realOutput.outputInTransaction = t.outputInTransaction;
info.realOutput.transactionIndex = 0;
info.realOutput.transactionPublicKey = t.transactionPublicKey;
KeyPair kp;
tx->addInput(senderKeys, info, kp);
inputs.push_back(std::make_pair(info, kp));
foundMoney += info.amount;
if (foundMoney >= amount + fee) {
break;
}
}
// output to receiver
tx->addOutput(amount, recipients, requiredSignatures);
// change
uint64_t change = foundMoney - amount - fee;
if (change) {
tx->addOutput(change, senderKeys.address);
}
for (size_t inputIdx = 0; inputIdx < inputs.size(); ++inputIdx) {
tx->signInputKey(inputIdx, inputs[inputIdx].first, inputs[inputIdx].second);
}
return tx;
}
std::error_code submitTransaction(INode& node, ITransactionReader& tx) {
auto data = tx.getTransactionData();
CryptoNote::Transaction outTx;
fromBinaryArray(outTx, data);
LOG_DEBUG("Submitting transaction " + Common::toHex(tx.getTransactionHash().data, 32));
std::promise<std::error_code> result;
node.relayTransaction(outTx, [&result](std::error_code ec) { result.set_value(ec); });
auto err = result.get_future().get();
if (err) {
LOG_DEBUG("Error: " + err.message());
} else {
LOG_DEBUG("Submitted successfully");
}
return err;
}
std::unique_ptr<ITransaction> createTransferFromMultisignature(
AccountGroup& consilium, const AccountPublicAddress& receiver, const Hash& txHash, uint64_t amount, uint64_t fee) {
auto& tc = consilium.getTransfers(0);
std::vector<TransactionOutputInformation> transfers = tc.getTransactionOutputs(txHash,
ITransfersContainer::IncludeTypeMultisignature |
ITransfersContainer::IncludeStateSoftLocked |
ITransfersContainer::IncludeStateUnlocked);
EXPECT_FALSE(transfers.empty());
const TransactionOutputInformation& out = transfers[0];
auto tx = createTransaction();
MultisignatureInput msigInput;
msigInput.amount = out.amount;
msigInput.outputIndex = out.globalOutputIndex;
msigInput.signatureCount = out.requiredSignatures;
tx->addInput(msigInput);
tx->addOutput(amount, receiver);
uint64_t change = out.amount - amount - fee;
tx->addOutput(change, consilium.getAddresses(), out.requiredSignatures);
for (size_t i = 0; i < out.requiredSignatures; ++i) {
tx->signInputMultisignature(0, out.transactionPublicKey, out.outputInTransaction, consilium.m_accounts[i].keys);
}
return tx;
}
TEST_F(MultisignatureTest, createMulitisignatureTransaction) {
std::unique_ptr<CryptoNote::INode> node1;
std::unique_ptr<CryptoNote::INode> node2;
nodeDaemons[0]->makeINode(node1);
nodeDaemons[1]->makeINode(node2);
BlockchainSynchronizer blockSync(*node2.get(), currency.genesisBlockHash());
TransfersSyncronizer transferSync(currency, blockSync, *node2.get());
// add transaction collector
TransactionConsumer txConsumer;
blockSync.addConsumer(&txConsumer);
AccountGroup sender(transferSync);
AccountGroup consilium(transferSync);
sender.generateAccounts(1);
sender.subscribeAll();
consilium.generateAccounts(3);
consilium.subscribeAll();
auto senderSubscription = transferSync.getSubscription(sender.m_accounts[0].keys.address);
auto& senderContainer = senderSubscription->getContainer();
blockSync.start();
AccountPublicAddress senderAddress;
ASSERT_TRUE(currency.parseAccountAddressString(sender.m_addresses[0], senderAddress));
ASSERT_TRUE(mineBlocks(*nodeDaemons[0], senderAddress, 1 + currency.minedMoneyUnlockWindow()));
// wait for incoming transfer
while (senderContainer.balance() == 0) {
sender.m_observers[0].waitTransfer();
auto unlockedBalance = senderContainer.balance(ITransfersContainer::IncludeAllUnlocked | ITransfersContainer::IncludeStateSoftLocked);
auto totalBalance = senderContainer.balance(ITransfersContainer::IncludeAll);
LOG_DEBUG("Balance: " + currency.formatAmount(unlockedBalance) + " (" + currency.formatAmount(totalBalance) + ")");
}
uint64_t fundBalance = 0;
for (int iteration = 1; iteration <= 3; ++iteration) {
LOG_DEBUG("***** Iteration " + std::to_string(iteration) + " ******");
auto sendAmount = senderContainer.balance() / 2;
LOG_DEBUG("Creating transaction with amount = " + currency.formatAmount(sendAmount));
auto tx2msig = createTransferToMultisignature(
senderContainer, sendAmount, currency.minimumFee(), sender.m_accounts[0].keys, consilium.getAddresses(), 3);
auto txHash = tx2msig->getTransactionHash();
// Use node1, in order to tx will be in its pool when next block is being created
auto err = submitTransaction(*node1, *tx2msig);
ASSERT_EQ(std::error_code(), err);
ASSERT_TRUE(mineBlocks(*nodeDaemons[0], senderAddress, 1));
LOG_DEBUG("Waiting for transaction to be included in block...");
txConsumer.waitForTransaction(txHash);
LOG_DEBUG("Transaction in blockchain, waiting for observers to receive transaction...");
uint64_t expectedFundBalance = fundBalance + sendAmount;
// wait for consilium to receive the transfer
for (size_t i = 0; i < consilium.m_accounts.size(); ++i) {
auto& observer = consilium.m_observers[i];
auto sub = transferSync.getSubscription(consilium.m_accounts[i].keys.address);
ASSERT_TRUE(sub != nullptr);
while (true) {
observer.waitTransactionTransfer(txHash);
uint64_t unlockedBalance = sub->getContainer().balance(ITransfersContainer::IncludeTypeMultisignature |
ITransfersContainer::IncludeStateSoftLocked | ITransfersContainer::IncludeStateUnlocked);
if (unlockedBalance == expectedFundBalance) {
break;
}
}
}
LOG_DEBUG("Creating transaction to spend multisignature output");
uint64_t returnAmount = sendAmount / 2;
auto spendMsigTx = createTransferFromMultisignature(
consilium, sender.m_accounts[0].keys.address, txHash, returnAmount, currency.minimumFee());
auto spendMsigTxHash = spendMsigTx->getTransactionHash();
err = submitTransaction(*node1, *spendMsigTx);
ASSERT_EQ(std::error_code(), err);
ASSERT_TRUE(mineBlocks(*nodeDaemons[0], senderAddress, 1));
LOG_DEBUG("Waiting for transaction to be included in block...");
txConsumer.waitForTransaction(spendMsigTxHash);
LOG_DEBUG("Checking left balances");
uint64_t leftAmount = expectedFundBalance - returnAmount - currency.minimumFee();
for (size_t i = 0; i < consilium.m_accounts.size(); ++i) {
auto& observer = consilium.m_observers[i];
for (uint64_t unlockedBalance = leftAmount + 1; unlockedBalance != leftAmount;) {
observer.waitTransactionTransfer(spendMsigTxHash);
unlockedBalance = consilium.getTransfers(i).balance(ITransfersContainer::IncludeTypeMultisignature |
ITransfersContainer::IncludeStateSoftLocked | ITransfersContainer::IncludeStateUnlocked);
}
}
fundBalance = leftAmount;
}
blockSync.stop();
LOG_DEBUG("Success!!!");
}
| flericoin-project/flericoin | tests/TransfersTests/Tests.cpp | C++ | mit | 17,519 |
const express = require('express');
const path = require('path');
const fs = require('fs');
const bodyParser = require('body-parser')
// const formidable = require('formidable');
// const createTorrent = require('create-torrent');
// const WebTorrent = require('webtorrent');
const socketController = require('./socketController');
// max # of sockets to keep open
const socketLimit = 1;
// takes in Node Server instance and returns Express Router
module.exports = function nileServer(server) {
// Pass server instance to use socket controller
const socket = new socketController(server, socketLimit);
// create nile.js mini-app through express Router
const nileServer = express.Router();
// endpoint for receiving magnet URI from Broadcaster
nileServer.post('/magnet', (req, res, next) => {
socket.emitNewMagnet(req.body.magnetURI);
res.sendStatus(200);
});
return nileServer;
} | jpmitchellpierson/nile.js | nileServer.js | JavaScript | mit | 907 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#include "ParserPch.h"
// strings for builtin names
#define HASH_NAME(name, hashCS, hashCI) \
const StaticSym g_ssym_##name = \
{ \
hashCS, \
sizeof(#name) - 1, \
OLESTR(#name) \
};
#include "objnames.h"
#undef HASH_NAME
| arunetm/ChakraCore_0114 | lib/Parser/globals.cpp | C++ | mit | 627 |
using Content.Server.Throwing;
using Content.Shared.Acts;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
namespace Content.Server.Explosion.Components
{
[RegisterComponent]
public sealed class ExplosionLaunchedComponent : Component, IExAct
{
[Dependency] private readonly IEntityManager _entMan = default!;
void IExAct.OnExplosion(ExplosionEventArgs eventArgs)
{
if (_entMan.Deleted(Owner))
return;
var sourceLocation = eventArgs.Source;
var targetLocation = _entMan.GetComponent<TransformComponent>(eventArgs.Target).Coordinates;
if (sourceLocation.Equals(targetLocation)) return;
var offset = (targetLocation.ToMapPos(_entMan) - sourceLocation.ToMapPos(_entMan));
//Don't throw if the direction is center (0,0)
if (offset == Vector2.Zero) return;
var direction = offset.Normalized;
var throwForce = eventArgs.Severity switch
{
ExplosionSeverity.Heavy => 30,
ExplosionSeverity.Light => 20,
_ => 0,
};
Owner.TryThrow(direction, throwForce);
}
}
}
| space-wizards/space-station-14 | Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs | C# | mit | 1,249 |
/* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.office.impl;
import com.wilutions.com.*;
@SuppressWarnings("all")
@CoClass(guid="{C09B8C5A-A463-DB41-5DAE-69E7A5F7FCBC}")
public class ODSOColumnImpl extends Dispatch implements com.wilutions.mslib.office.ODSOColumn {
@DeclDISPID(1610743808) public IDispatch getApplication() throws ComException {
final Object obj = this._dispatchCall(1610743808,"Application", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (IDispatch)obj;
}
@DeclDISPID(1610743809) public Integer getCreator() throws ComException {
final Object obj = this._dispatchCall(1610743809,"Creator", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (Integer)obj;
}
@DeclDISPID(1) public Integer getIndex() throws ComException {
final Object obj = this._dispatchCall(1,"Index", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (Integer)obj;
}
@DeclDISPID(2) public String getName() throws ComException {
final Object obj = this._dispatchCall(2,"Name", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (String)obj;
}
@DeclDISPID(3) public IDispatch getParent() throws ComException {
final Object obj = this._dispatchCall(3,"Parent", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (IDispatch)obj;
}
@DeclDISPID(4) public String getValue() throws ComException {
final Object obj = this._dispatchCall(4,"Value", DISPATCH_PROPERTYGET,null);
if (obj == null) return null;
return (String)obj;
}
public ODSOColumnImpl(String progId) throws ComException {
super(progId, "{000C1531-0000-0000-C000-000000000046}");
}
protected ODSOColumnImpl(long ndisp) {
super(ndisp);
}
public String toString() {
return "[ODSOColumnImpl" + super.toString() + "]";
}
}
| wolfgangimig/joa | java/joa/src-gen/com/wilutions/mslib/office/impl/ODSOColumnImpl.java | Java | mit | 1,933 |
/*
* BLITSaw_processor.cpp
*
* Copyright (c) 2014, fukuroda (https://github.com/fukuroder)
* Released under the MIT license
*/
#include "BLITSaw_processor.h"
#include "BLITSaw_guids.h"
#include "pluginterfaces/vst/ivstparameterchanges.h"
#include <algorithm>
namespace MyVst {
//
BLITSaw_processor::BLITSaw_processor()
{
setControllerClass(BLITSawControllerID);
}
//
FUnknown* BLITSaw_processor::create(void* context)
{
return (IAudioProcessor*)new BLITSaw_processor();
}
//
tresult PLUGIN_API BLITSaw_processor::initialize(FUnknown* context)
{
// base class initialization
tresult result = AudioEffect::initialize(context);
if (result != kResultOk)
{
return result;
}
// set bus
addAudioOutput(STR16("Stereo Out"), SpeakerArr::kStereo);
return kResultOk;
}
//
tresult PLUGIN_API BLITSaw_processor::setBusArrangements(
SpeakerArrangement* inputs,
int32 numIns,
SpeakerArrangement* outputs,
int32 numOuts
){
if (numIns == 0 && numOuts == 1 && outputs[0] == SpeakerArr::kStereo)
{
return AudioEffect::setBusArrangements(inputs, numIns, outputs, numOuts);
}
return kResultFalse;
}
//
tresult PLUGIN_API BLITSaw_processor::process(ProcessData& data)
{
//-------------------
// update parameters
//-------------------
if (data.inputParameterChanges)
{
int32 numParamsChanged = data.inputParameterChanges->getParameterCount();
for (int32 ii = 0; ii < numParamsChanged; ii++)
{
IParamValueQueue* paramQueue = data.inputParameterChanges->getParameterData(ii);
if (paramQueue)
{
int32 offsetSamples;
double value;
//
if (paramQueue->getPoint(paramQueue->getPointCount() - 1, offsetSamples, value) == kResultTrue)
{
ParamID id = paramQueue->getParameterId();
if (id == Leak)
{
// -> [0.99, 1.0]
double Leak = 0.99 + 0.01 * value;
blit.setLeak(Leak);
}
}
}
}
}
//----------------
// process events
//----------------
if (data.inputEvents)
{
int nEventCount = data.inputEvents->getEventCount();
for (int ii = 0; ii < nEventCount; ii++)
{
Event e;
tresult result = data.inputEvents->getEvent(ii, e);
if (result != kResultOk)continue;
if (e.type == Event::kNoteOnEvent)
{
blit.trigger(e.noteOn, e.sampleOffset, processSetup.sampleRate);
}
else if (e.type == Event::kNoteOffEvent)
{
blit.release(e.noteOff);
}
}
}
if (blit.is_silent())
{
return kResultOk;
}
//
if (data.numInputs == 0 && data.numOutputs == 1 && data.outputs[0].numChannels == 2)
{
Sample32** out = data.outputs[0].channelBuffers32;
const int32 sampleFrames = data.numSamples;
for (int ii = 0; ii < sampleFrames; ii++)
{
out[0][ii] = out[1][ii] = blit.render();
blit.next();
}
}
return kResultOk;
}
} // namespace
| fukuroder/bandlimited_sawtooth_synthesis | source/BLITSaw_processor.cpp | C++ | mit | 3,004 |
module Hideous
VERSION = "0.0.5"
end
| yabawock/hideous | lib/hideous/version.rb | Ruby | mit | 39 |
<?php
/*
Safe sample
input : get the UserData field of $_SESSION
sanitize : cast via + = 0
construction : interpretation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its documentation for
any purpose, provided that the above copyright notice and the following
three paragraphs appear in all copies of this software.
IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT,
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT
LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO
OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
MODIFICATIONS.*/
$tainted = $_SESSION['UserData'];
$tainted = $tainted + 0;
$query = "$temp = ' $tainted ';";
$res = eval($query);
?> | stivalet/PHP-Vulnerability-test-suite | Injection/CWE_95/safe/CWE_95__SESSION__CAST-cast_int_sort_of2__variable-interpretation_simple_quote.php | PHP | mit | 1,174 |
<?php
namespace StorageBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\ExecutionContextInterface;
class FileAdmin extends Admin
{
const MAX_FILES = 10;
protected $categoryPath;
protected $oldFilePath;
public function setSubject($subject) {
if ($subject->getId()) {
$filePath = $this->getFilePath($subject->getCategory());
$filePath .= $subject->getSlug();
$this->oldFilePath = $filePath;
}
$this->subject = $subject;
}
/**
* @param FormMapper $formMapper
*/
protected function configureFormFields(FormMapper $formMapper)
{
$subject = $this->getSubject();
$id = $subject->getId();
$formMapper
->add('title', 'text', array('label' => 'Title'))
->add('category', 'entity', array(
'class' => 'StorageBundle\Entity\Category',
'label' => 'Category',
'required'=>true,
'query_builder' => function($er) use ($id) {
$qb = $er->createQueryBuilder('p');
$qb->where('p.parent IS NOT NULL');
if ($id){
$qb
->andWhere('p.id <> :id')
->setParameter('id', $id);
}
$qb
->orderBy('p.root, p.lft', 'ASC');
return $qb;
},
'constraints' => array(
new Assert\Callback(array(array($this, 'validateCountInDir')))
)
))
->add('file', 'file', array(
'required' => true,
'constraints' => array(
new \Symfony\Component\Validator\Constraints\File(array('mimeTypes' => array("text/plain")))
)
))
->add('description', 'textarea', array('label' => 'Description'))
->end()
;
}
/**
* @param $event
* @param ExecutionContextInterface $context
*/
public function validateCountInDir($event, ExecutionContextInterface $context) {
$path = $this->getFilePath($context->getValue());
$countFiles = count(glob("{$path}*.*"));
if ($countFiles >= self::MAX_FILES) {
$context->addViolation("Maximum " . self::MAX_FILES . " files in the category", array(), null);
}
}
/**
* @param DatagridMapper $datagridMapper
*/
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper->add('title')
->add('slug');
}
/**
* @param ListMapper $listMapper
*/
protected function configureListFields(ListMapper $listMapper)
{
$listMapper->add('title')
->add('category.title')
->add('slug', 'file');
}
/**
* @param \StorageBundle\Entity\File $file
*/
public function prePersist($file) {
$this->saveFile($file);
}
/**
* @param \StorageBundle\Entity\File $file
*/
public function preUpdate($file) {
$this->saveFile($file);
}
/**
* @param \StorageBundle\Entity\File $file
*/
public function preRemove($file) {
$fullPath = $this->getFilePath($file->getCategory());
$fullPath .= $file->getSlug();
if (file_exists($fullPath)) {
unlink($fullPath);
};
}
/**
* @param \StorageBundle\Entity\File $file
*/
public function saveFile(\StorageBundle\Entity\File $file) {
$fullPath = $this->getFilePath($file->getCategory());
if ($this->oldFilePath && file_exists($this->oldFilePath)) {
unlink($this->oldFilePath);
}
$file->upload($fullPath);
}
private function getFilePath(\StorageBundle\Entity\Category $category) {
$em = $this->modelManager->getEntityManager($category);
$repo = $em->getRepository("StorageBundle:Category");
$fullPath = $this->request->server->get('DOCUMENT_ROOT') . DIRECTORY_SEPARATOR;
$fullPath .= implode(DIRECTORY_SEPARATOR, array_map(function(\StorageBundle\Entity\Category $object) {
return $object->getSlug();
}, $repo->getPath($category)));
$fullPath .= DIRECTORY_SEPARATOR;
return $fullPath;
}
} | vol4onok/symfony | src/StorageBundle/Admin/FileAdmin.php | PHP | mit | 4,705 |
#!/usr/bin/env python
#
# Copyright (c) 2014 Hamilton Kibbe <ham@hamiltonkib.be>
#
# 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.
""" PyAbleton
A library for creating and editing Ableton Live instrument/effect presets in Python.
"""
__author__ = 'ham@hamiltonkib.be'
__version__ = '1.0'
import presets
| hamiltonkibbe/PyAbleton | pyableton/__init__.py | Python | mit | 1,356 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace _2._1.WebForms_Sumator
{
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
} | svetlai/TelerikAcademy | Software-Technologies/ASP.NET-Web-Forms/01-Introduction-to-ASP.NET/02-WebFormsSumator/Default.aspx.cs | C# | mit | 314 |
<?php
namespace Nova\View;
use Nova\Container\Container;
use Nova\Events\Dispatcher;
use Nova\Support\Contracts\ArrayableInterface as Arrayable;
use Nova\View\Engines\EngineResolver;
use Nova\View\Layout;
use Nova\View\View;
use Nova\View\ViewFinderInterface;
use Closure;
use InvalidArgumentException;
class Factory
{
/**
* The Engines Resolver instance.
*
* @var \Nova\View\Engines\EngineResolver
*/
protected $engines;
/**
* The view finder implementation.
*
* @var \Nova\View\Contracts\ViewFinderInterface
*/
protected $finder;
/**
* The event dispatcher instance.
*
* @var \Nova\Events\Dispatcher
*/
protected $events;
/**
* The IoC container instance.
*
* @var \Nova\Container\Container
*/
protected $container;
/**
* @var array Array of shared data
*/
protected $shared = array();
/**
* Array of registered view name aliases.
*
* @var array
*/
protected $aliases = array();
/**
* All of the registered view names.
*
* @var array
*/
protected $names = array();
/**
* The extension to Engine bindings.
*
* @var array
*/
protected $extensions = array('tpl' => 'template', 'php' => 'php');
/**
* The view composer events.
*
* @var array
*/
protected $composers = array();
/**
* All of the finished, captured sections.
*
* @var array
*/
protected $sections = array();
/**
* The stack of in-progress sections.
*
* @var array
*/
protected $sectionStack = array();
/**
* The number of active rendering operations.
*
* @var int
*/
protected $renderCount = 0;
/**
* Cached information about the current Language.
*
* @var \Nova\Language\Language
*/
protected $language;
/**
* Create new View Factory instance.
*
* @param \Nova\View\Engines\EngineResolver $engines
* @param \Nova\View\Contracts\ViewFinderInterface $finder
* @param \Nova\Events\Dispatcher $events
* @return void
*/
function __construct(EngineResolver $engines, ViewFinderInterface $finder, Dispatcher $events)
{
$this->finder = $finder;
$this->events = $events;
$this->engines = $engines;
//
$this->share('__env', $this);
}
/**
* Create a View instance
*
* @param string $path
* @param mixed $data
* @param string|null $module
* @param string|null $theme
*
* @return \Nova\View\View
*/
public function make($view, $data = array(), $module = null, $theme = null)
{
if (isset($this->aliases[$view])) $view = $this->aliases[$view];
// Calculate the current Template name.
$theme = $theme ?: $this->getDefaultTheme();
// Get the View file path.
$path = $this->findViewFile($view, $module, $theme);
// Normalize the View name.
$domain = ! empty($module) ? $module : 'App';
$name = 'View/' .$domain .'::' .str_replace('/', '.', $view);
// Get the parsed View data.
$data = $this->parseData($data);
$this->callCreator($view = new View($this, $this->getEngineFromPath($path), $name, $path, $data));
return $view;
}
/**
* Create a Layout instance
*
* @param string $view
* @param string|null $theme
*
* @return \Nova\View\Layout
*/
public function makeLayout($view, $theme = null)
{
if (isset($this->aliases[$view])) $view = $this->aliases[$view];
// Calculate the current Template name.
$theme = $theme ?: $this->getDefaultTheme();
// Get the View file path.
$path = $this->findLayoutFile($view, $theme);
// Normalize the Layout name.
$name = 'Layout/' .$theme .'::' .str_replace('/', '.', $view);
$this->callCreator($layout = new Layout($this, $this->getEngineFromPath($path), $name, $path));
return $layout;
}
/**
* Create a View instance and return its rendered content.
*
* @return string
*/
public function fetch($view, $data = array(), $module = null, Closure $callback = null)
{
$instance = $this->make($view, $data, $module);
return $instance->render($callback);
}
/**
* Parse the given data into a raw array.
*
* @param mixed $data
* @return array
*/
protected function parseData($data)
{
return ($data instanceof Arrayable) ? $data->toArray() : $data;
}
/**
* Get the evaluated view contents for a named view.
*
* @param string $view
* @param mixed $data
* @return \Nova\View\View
*/
public function of($view, $data = array())
{
return $this->make($this->names[$view], $data);
}
/**
* Register a named view.
*
* @param string $view
* @param string $name
* @return void
*/
public function name($view, $name)
{
$this->names[$name] = $view;
}
/**
* Add an alias for a view.
*
* @param string $view
* @param string $alias
* @return void
*/
public function alias($view, $alias)
{
$this->aliases[$alias] = $view;
}
/**
* Check if the view file exists.
*
* @param string $view
* @return bool
*/
public function exists($view, $module = null)
{
try {
$this->find($view, $module);
} catch (InvalidArgumentException $e) {
return false;
}
return true;
}
/**
* Get the rendered contents of a partial from a loop.
*
* @param string $view
* @param array $data
* @param string $iterator
* @param string $empty
* @param string|null $module
* @return string
*/
public function renderEach($view, $data, $iterator, $empty = null, $module = null)
{
$empty = ! empty($empty) ? $empty : 'raw|';
//
$result = '';
// If is actually data in the array, we will loop through the data and append
// an instance of the partial view to the final result HTML passing in the
// iterated value of this data array, allowing the views to access them.
if (count($data) > 0) {
foreach ($data as $key => $value) {
$data = array('key' => $key, $iterator => $value);
$result .= $this->make($view, $data, $module)->render();
}
}
// If there is no data in the array, we will render the contents of the empty
// view. Alternatively, the "empty view" could be a raw string that begins
// with "raw|" for convenience and to let this know that it is a string.
else if (! starts_with($empty, 'raw|')) {
$result = $this->make($empty, array(), $module)->render();
} else {
$result = substr($empty, 4);
}
return $result;
}
/**
* Get the appropriate View Engine for the given path.
*
* @param string $path
* @return \Nova\View\Engines\EngineInterface
*/
public function getEngineFromPath($path)
{
$extension = $this->getExtension($path);
$engine = $this->extensions[$extension];
return $this->engines->resolve($engine);
}
/**
* Get the extension used by the view file.
*
* @param string $path
* @return string
*/
protected function getExtension($path)
{
$extensions = array_keys($this->extensions);
return array_first($extensions, function($key, $value) use ($path)
{
return ends_with($path, $value);
});
}
/**
* Add a piece of shared data to the Factory.
*
* @param string $key
* @param mixed $value
* @return void
*/
public function share($key, $value = null)
{
if (! is_array($key)) return $this->shared[$key] = $value;
foreach ($key as $innerKey => $innerValue) {
$this->share($innerKey, $innerValue);
}
}
/**
* Register a view creator event.
*
* @param array|string $views
* @param \Closure|string $callback
* @return array
*/
public function creator($views, $callback)
{
$creators = array();
foreach ((array) $views as $view) {
$creators[] = $this->addViewEvent($view, $callback, 'creating: ');
}
return $creators;
}
/**
* Register multiple view composers via an array.
*
* @param array $composers
* @return array
*/
public function composers(array $composers)
{
$registered = array();
foreach ($composers as $callback => $views) {
$registered = array_merge($registered, $this->composer($views, $callback));
}
return $registered;
}
/**
* Register a view composer event.
*
* @param array|string $views
* @param \Closure|string $callback
* @param int|null $priority
* @return array
*/
public function composer($views, $callback, $priority = null)
{
$composers = array();
foreach ((array) $views as $view) {
$composers[] = $this->addViewEvent($view, $callback, 'composing: ', $priority);
}
return $composers;
}
/**
* Add an event for a given view.
*
* @param string $view
* @param \Closure|string $callback
* @param string $prefix
* @param int|null $priority
* @return \Closure
*/
protected function addViewEvent($view, $callback, $prefix = 'composing: ', $priority = null)
{
if ($callback instanceof Closure) {
$this->addEventListener($prefix.$view, $callback, $priority);
return $callback;
} else if (is_string($callback)) {
return $this->addClassEvent($view, $callback, $prefix, $priority);
}
}
/**
* Register a class based view composer.
*
* @param string $view
* @param string $class
* @param string $prefix
* @param int|null $priority
* @return \Closure
*/
protected function addClassEvent($view, $class, $prefix, $priority = null)
{
$name = $prefix.$view;
// When registering a class based view "composer", we will simply resolve the
// classes from the application IoC container then call the compose method
// on the instance. This allows for convenient, testable view composers.
$callback = $this->buildClassEventCallback($class, $prefix);
$this->addEventListener($name, $callback, $priority);
return $callback;
}
/**
* Add a listener to the event dispatcher.
*
* @param string $name
* @param \Closure $callback
* @param int $priority
* @return void
*/
protected function addEventListener($name, $callback, $priority = null)
{
if (is_null($priority)) {
$this->events->listen($name, $callback);
} else {
$this->events->listen($name, $callback, $priority);
}
}
/**
* Build a class based container callback Closure.
*
* @param string $class
* @param string $prefix
* @return \Closure
*/
protected function buildClassEventCallback($class, $prefix)
{
$container = $this->container;
list($class, $method) = $this->parseClassEvent($class, $prefix);
// Once we have the class and method name, we can build the Closure to resolve
// the instance out of the IoC container and call the method on it with the
// given arguments that are passed to the Closure as the composer's data.
return function() use ($class, $method, $container)
{
$callable = array($container->make($class), $method);
return call_user_func_array($callable, func_get_args());
};
}
/**
* Parse a class based composer name.
*
* @param string $class
* @param string $prefix
* @return array
*/
protected function parseClassEvent($class, $prefix)
{
if (str_contains($class, '@')) {
return explode('@', $class);
}
$method = str_contains($prefix, 'composing') ? 'compose' : 'create';
return array($class, $method);
}
/**
* Call the composer for a given view.
*
* @param \Nova\View\View $view
* @return void
*/
public function callComposer(View $view)
{
$this->events->fire('composing: ' .$view->getName(), array($view));
}
/**
* Call the creator for a given view.
*
* @param \Nova\View\View $view
* @return void
*/
public function callCreator(View $view)
{
$this->events->fire('creating: ' .$view->getName(), array($view));
}
/**
* Start injecting content into a section.
*
* @param string $section
* @param string $content
* @return void
*/
public function startSection($section, $content = '')
{
if ($content === '') {
if (ob_start()) {
$this->sectionStack[] = $section;
}
} else {
$this->extendSection($section, $content);
}
}
/**
* Inject inline content into a section.
*
* @param string $section
* @param string $content
* @return void
*/
public function inject($section, $content)
{
return $this->startSection($section, $content);
}
/**
* Stop injecting content into a section and return its contents.
*
* @return string
*/
public function yieldSection()
{
return $this->yieldContent($this->stopSection());
}
/**
* Stop injecting content into a section.
*
* @param bool $overwrite
* @return string
*/
public function stopSection($overwrite = false)
{
$last = array_pop($this->sectionStack);
if ($overwrite) {
$this->sections[$last] = ob_get_clean();
} else {
$this->extendSection($last, ob_get_clean());
}
return $last;
}
/**
* Stop injecting content into a section and append it.
*
* @return string
*/
public function appendSection()
{
$last = array_pop($this->sectionStack);
if (isset($this->sections[$last])) {
$this->sections[$last] .= ob_get_clean();
} else {
$this->sections[$last] = ob_get_clean();
}
return $last;
}
/**
* Append content to a given section.
*
* @param string $section
* @param string $content
* @return void
*/
protected function extendSection($section, $content)
{
if (isset($this->sections[$section])) {
$content = str_replace('@parent', $content, $this->sections[$section]);
}
$this->sections[$section] = $content;
}
/**
* Get the string contents of a section.
*
* @param string $section
* @param string $default
* @return string
*/
public function yieldContent($section, $default = '')
{
$sectionContent = $default;
if (isset($this->sections[$section])) {
$sectionContent = $this->sections[$section];
}
return str_replace('@parent', '', $sectionContent);
}
/**
* Flush all of the section contents.
*
* @return void
*/
public function flushSections()
{
$this->renderCount = 0;
$this->sections = array();
$this->sectionStack = array();
}
/**
* Flush all of the section contents if done rendering.
*
* @return void
*/
public function flushSectionsIfDoneRendering()
{
if ($this->doneRendering()) {
$this->flushSections();
}
}
/**
* Increment the rendering counter.
*
* @return void
*/
public function incrementRender()
{
$this->renderCount++;
}
/**
* Decrement the rendering counter.
*
* @return void
*/
public function decrementRender()
{
$this->renderCount--;
}
/**
* Check if there are no active render operations.
*
* @return bool
*/
public function doneRendering()
{
return ($this->renderCount == 0);
}
/**
* Register a valid view extension and its engine.
*
* @param string $extension
* @param string $engine
* @param Closure $resolver
* @return void
*/
public function addExtension($extension, $engine, $resolver = null)
{
$this->finder->addExtension($extension);
if (isset($resolver)) {
$this->engines->register($engine, $resolver);
}
unset($this->extensions[$extension]);
$this->extensions = array_merge(array($extension => $engine), $this->extensions);
}
/**
* Get the extension to engine bindings.
*
* @return array
*/
public function getExtensions()
{
return $this->extensions;
}
/**
* Get the engine resolver instance.
*
* @return \Nova\View\Engines\EngineResolver
*/
public function getEngineResolver()
{
return $this->engines;
}
/**
* Get the View Finder instance.
*
* @return \Nova\View\Contracts\ViewFinderInterface
*/
public function getFinder()
{
return $this->finder;
}
/**
* Set the View Finder instance.
*
* @return void
*/
public function setFinder(ViewFinderInterface $finder)
{
$this->finder = $finder;
}
/**
* Get the event dispatcher instance.
*
* @return \Nova\Events\Dispatcher
*/
public function getDispatcher()
{
return $this->events;
}
/**
* Set the event dispatcher instance.
*
* @param \Nova\Events\Dispatcher
* @return void
*/
public function setDispatcher(Dispatcher $events)
{
$this->events = $events;
}
/**
* Get the IoC container instance.
*
* @return \Nova\Container\Container
*/
public function getContainer()
{
return $this->container;
}
/**
* Set the IoC container instance.
*
* @param \Nova\Container\Container $container
* @return void
*/
public function setContainer(Container $container)
{
$this->container = $container;
}
/**
* Get an item from the shared data.
*
* @param string $key
* @param mixed $default
* @return mixed
*/
public function shared($key, $default = null)
{
return array_get($this->shared, $key, $default);
}
/**
* Get all of the shared data for the Factory.
*
* @return array
*/
public function getShared()
{
return $this->shared;
}
/**
* Get the entire array of sections.
*
* @return array
*/
public function getSections()
{
return $this->sections;
}
/**
* Get all of the registered named views in environment.
*
* @return array
*/
public function getNames()
{
return $this->names;
}
/**
* Find the View file.
*
* @param string $view
* @param string $module
* @param string $theme
*
* @return string
*/
protected function findViewFile($view, $module, $theme = null)
{
$viewPath = str_replace('/', DS, $view);
if (! empty($theme)) {
// Try to find the View file on the override locations.
$basePath = $this->getThemePath($theme) .'Overrides';
if (! empty($module)) {
$path = $basePath .DS .'Modules' .DS .$module .DS .$viewPath;
} else {
$path = $basePath .DS .$viewPath;
}
try {
return $this->finder->find($path);
}
catch (InvalidArgumentException $e) {
// Do nothing.
}
}
// Try to find the View file on the base locations.
$viewPath = 'Views' .DS .$viewPath;
if (! empty($module)) {
$basePath = $this->getModulePath($module);
$path = $basePath .DS .$viewPath;
} else {
$path = APPDIR .$viewPath;
}
// Try to find the View file.
return $this->finder->find($path);
}
/**
* Find the Layout file.
*
* @param string $layout
* @param string $theme
*
* @return string
*/
protected function findLayoutFile($layout, $theme)
{
$language = $this->getLanguage();
// Prepare the Layout path.
$layoutPath = str_replace('/', DS, $layout);
// Calculate the path to Layouts in the requested Theme.
$basePath = $this->getThemePath($theme) .'Layouts';
if ($language->direction() == 'rtl') {
// Search for the Layout file used on the RTL languages.
$path = $basePath .DS .'RTL' .DS .$layoutPath;
try {
return $this->finder->find($path);
}
catch (InvalidArgumentException $e) {
// Do nothing.
}
}
// Search for the (main) Layout file.
$path = $basePath .DS .$layoutPath;
return $this->finder->find($path);
}
/**
* Return the Modules path, configured on Application.
*
* @param string $module
* @return string
*/
protected function getModulePath($module)
{
$config = $this->container['config'];
$basePath = $config->get('modules.path', APPDIR .'Modules');
return rtrim($basePath, DS) .DS .$module;
}
/**
* Return the qualified Theme path.
*
* @param string $theme
* @return string
*/
protected function getThemePath($theme)
{
return APPDIR .'Themes' .DS .$theme .DS;
}
/**
* Return the default Theme, configured on Application.
*
* @return string
*/
protected function getDefaultTheme()
{
$config = $this->container['config'];
return $config->get('app.theme', 'Default');
}
/**
* Return the current Language instance.
*
* @return \Language\Language
*/
protected function getLanguage()
{
if (isset($this->language)) {
return $this->language;
}
$language = $this->container['language'];
return $this->language = $language->instance();
}
}
| ignazas/ma2016 | vendor/nova-framework/system/src/View/Factory.php | PHP | mit | 23,140 |
"""
Django settings for figexample project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'pp&p7ex-&+#n4waijg96v&txz$=y*rh=t$u-!hri@(-s@6^51='
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
ROOT_URLCONF = 'figexample.urls'
WSGI_APPLICATION = 'figexample.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'postgres',
'USER': 'postgres',
'HOST': 'db_1',
'PORT': 5432,
}
}
# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_URL = '/static/'
| arbiterofcool/fig-seed | template/fig-django/figexample/settings.py | Python | mit | 2,114 |
import SqSortableList from 'sq-ember-inputs/components/sq-sortable-list';
export default SqSortableList;
| benjaminbalazs/sq-ember-inputs | app/components/sq-sortable-list.js | JavaScript | mit | 106 |
(function() {
"use strict";
angular.module('common.dragdrop', [])
.factory('DragDropHandler', [function() {
return {
dragObject: undefined,
addObject: function(object, objects, to) {
objects.splice(to, 0, object);
},
moveObject: function(objects, from, to) {
objects.splice(to, 0, objects.splice(from, 1)[0]);
}
};
}])
.directive('draggable', ['DragDropHandler', function(DragDropHandler) {
return {
scope: {
draggable: '='
},
link: function(scope, element, attrs){
element.draggable({
connectToSortable: attrs.draggableTarget,
helper: "clone",
revert: "invalid",
start: function() {
DragDropHandler.dragObject = scope.draggable;
},
stop: function() {
DragDropHandler.dragObject = undefined;
}
});
element.disableSelection();
}
};
}])
.directive('droppable', ['DragDropHandler', function(DragDropHandler) {
return {
scope: {
droppable: '=',
ngMove: '&',
ngCreate: '&'
},
link: function(scope, element, attrs){
element.sortable({
connectWith: ['.draggable','.sortable'],
});
element.disableSelection();
element.on("sortdeactivate", function(event, ui) {
var from = (angular.element(ui.item).scope()) ? angular.element(ui.item).scope().$index : undefined;
var to = element.children().index(ui.item);
var list = element.attr('id');
if (to >= 0 ){
scope.$apply(function(){
if (from >= 0) {
//item is coming from a sortable
if (!ui.sender || ui.sender[0] === element[0]) {
//item is coming from this sortable
DragDropHandler.moveObject(scope.droppable, from, to);
} else {
//item is coming from another sortable
scope.ngMove({
from: from,
to: to,
fromList: ui.sender.attr('id'),
toList: list
});
ui.item.remove();
}
} else {
//item is coming from a draggable
scope.ngCreate({
object: DragDropHandler.dragObject,
to: to,
list: list
});
ui.item.remove();
}
});
}
});
}
};
}])
;})();
| michaeljcalkins/angular-common | modules/dragdrop/dragdrop.js | JavaScript | mit | 3,374 |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _functionalCurry = require('../functional/curry');
var lt = (0, _functionalCurry.curry)(function (a, b) {
return a < b;
});
exports.lt = lt; | gonzaloruizdevilla/alicates | lib/modules/relation/lt.js | JavaScript | mit | 228 |
/**
* Blog-api.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*/
module.exports = {
attributes: {
}
};
| shubham2192/kclub | api/models/Blog-api.js | JavaScript | mit | 238 |
/**
* Palindromic Substrings
*
* Given a string, your task is to count how many palindromic substrings in this string.
*
* The substrings with different start indexes or end indexes are counted as different substrings even they consist of
* same characters.
*
* Example 1:
*
* Input: "abc"
* Output: 3
* Explanation: Three palindromic strings: "a", "b", "c".
*
* Example 2:
*
* Input: "aaa"
* Output: 6
* Explanation: Six palindromic strings: "a", "a", "a", "aa", "aa", "aaa".
*
* Note:
* The input string length won't exceed 1000.
*/
/**
* @param {string} s
* @return {number}
*/
const countSubstrings = s => {
const extendPalindrome = (s, left, right) => {
while (left >= 0 && right < s.length && s[left] === s[right]) {
count++;
left--;
right++;
}
};
if (!s || s.length === 0) {
return 0;
}
let count = 0;
for (let i = 0; i < s.length; i++) {
// i is the mid point
extendPalindrome(s, i, i); // odd length;
extendPalindrome(s, i, i + 1); // even length
}
return count;
};
export { countSubstrings };
| jeantimex/javascript-problems-and-solutions | src/string/palindromic-substrings.js | JavaScript | mit | 1,092 |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the MIT License https://raw.github.com/mit-cml/app-inventor/master/mitlicense.txt
package com.google.appinventor.components.runtime;
import android.app.Activity;
import android.net.ConnectivityManager;
import android.net.DhcpInfo;
import android.net.NetworkInfo;
import android.net.wifi.WifiManager;
import com.google.appinventor.components.annotations.DesignerComponent;
import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.annotations.SimpleObject;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.common.YaVersion;
/**
* Component for obtaining Phone Information. Currently supports
* obtaining the IP Address of the phone and whether or not it is
* connected via a WiFi connection.
*
* @author lmercer@mit.edu (Logan Mercer)
*
*/
@DesignerComponent(version = YaVersion.PHONESTATUS_COMPONENT_VERSION,
description = "Component that returns information about the phone.",
category = ComponentCategory.INTERNAL,
nonVisible = true,
iconName = "images/phoneip.png")
@SimpleObject
public class PhoneStatus extends AndroidNonvisibleComponent implements Component {
private static Activity activity;
public PhoneStatus(ComponentContainer container) {
super(container.$form());
activity = container.$context();
}
@SimpleFunction(description = "Returns the IP address of the phone in the form of a String")
public static String GetWifiIpAddress() {
DhcpInfo ip;
Object wifiManager = activity.getSystemService("wifi");
ip = ((WifiManager) wifiManager).getDhcpInfo();
int s_ipAddress= ip.ipAddress;
String ipAddress;
if (isConnected())
ipAddress = intToIp(s_ipAddress);
else
ipAddress = "Error: No Wifi Connection";
return ipAddress;
}
@SimpleFunction(description = "Returns TRUE if the phone is on Wifi, FALSE otherwise")
public static boolean isConnected() {
ConnectivityManager connectivityManager = (ConnectivityManager) activity.getSystemService("connectivity");
NetworkInfo networkInfo = null;
if (connectivityManager != null) {
networkInfo =
connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
}
return networkInfo == null ? false : networkInfo.isConnected();
}
public static String intToIp(int i) {
return (i & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + ((i >> 16) & 0xFF) + "." + ((i >>24) & 0xFF);
}
}
| rkipper/AppInventor_RK | appinventor/components/src/com/google/appinventor/components/runtime/PhoneStatus.java | Java | mit | 2,694 |
namespace do
managers = layer "managers"
users = layer "users"
environment "secrets" do
add_member "manage_variable", managers.roleid
add_member "use_variable", users.roleid
end
alice, bob, claire = %w(alice bob claire).map do |hostname|
host hostname
end
managers.add_host alice.roleid
users.add_host bob.roleid
end
| conjurdemos/secrets-management | permissions-model.rb | Ruby | mit | 362 |
/*
* The MIT License
*
* Copyright 2013 Thomas Schaffer <thomas.schaffer@epitech.eu>.
*
* 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 shaft.poker.game.table;
import shaft.poker.game.ITable;
import shaft.poker.game.ITable.*;
/**
*
* @author Thomas Schaffer <thomas.schaffer@epitech.eu>
*/
public interface IPlayerActionListener {
public void gameAction(ITable table, IPlayerData plData, ActionType type, int amount);
public void leave(ITable table, IPlayerData plData);
}
| loopfz/Lucki | src/shaft/poker/game/table/IPlayerActionListener.java | Java | mit | 1,532 |
jest.unmock('../../src/filtering/filter');
import React from 'react';
import {shallow} from 'enzyme';
import {Filter} from '../../src/filtering/filter';
describe('Filter', () => {
it('has empty filtering text by default', () => {
// when
const filter = shallow(
<Filter/>
);
// then
expect(filter.props().value).toEqual('');
});
it('changes provided filtering text', () => {
// given
const state = {
textToUse : 'abc'
};
const filter = shallow(
<Filter filteringText={state.textToUse}
onFilteringTextChange={text => state.textToUse = text}/>
);
// when
filter.simulate('change', { target : { value : 'def' } });
expect(state.textToUse).toEqual('def');
});
}); | nkoder/lol-champions | __tests__/filtering/filter.test.js | JavaScript | mit | 843 |