repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
ccphillippi/AFP
afp/sentiment/NEWS_Scrap.py
4045
import nltk from os import listdir import string import csv path="/Users/Lee/Dropbox/AFPdb/Corpus/LexisNexis/" Mon=["January","February","March","April","May","June","July","August","September","October","November","December"] dic_str_to_num=dict(zip(Mon,range(1,13))) dic_num_to_str=dict(zip(range(1,13),Mon)) keyword_path="/Users/Lee/Dropbox/AFPdb/Keywords/keywords2.csv" keyword_file=csv.reader(open(keyword_path,'rU'), delimiter=',') KeyWord=[] for row in keyword_file: KeyWord.append(filter(lambda a: a != '', row)) for keyword in KeyWord[1:]: fw=open("/Users/Lee/Dropbox/AFPdb/SparseSent/"+keyword[0]+".txt","w") year=listdir(path) if '.DS_Store' in year: year.remove('.DS_Store') for y in year: #month=listdir(path+y) #if '.DS_Store' in month: month.remove('.DS_Store') for m_num in xrange(1,13): m=dic_num_to_str[m_num] day=listdir(path+y+"/"+m) if '.DS_Store' in day: day.remove('.DS_Store') for d_num in sorted(map(int, day)): d=str(d_num) Newspaper=listdir(path+y+"/"+m+"/"+d) if '.DS_Store' in Newspaper: Newspaper.remove('.DS_Store') for np in Newspaper: News=listdir(path+y+"/"+m+"/"+d+"/"+np) if '.DS_Store' in News: News.remove('.DS_Store') for file in News: fr=open(path+y+"/"+m+"/"+d+"/"+np+"/"+file) TXT=fr.readlines() fr.close() for i in xrange(0,len(TXT)): TXT[i]=TXT[i].replace("\r", "") TXT[i]=TXT[i].replace("|", ".") TXT[i]=TXT[i].replace("\n", "") temp=nltk.sent_tokenize(TXT[i]) for t in temp: #if any(k for k in keyword if k in t.lower()): if any(k for k in keyword if k in t.lower().split()): fw.writelines(y+"/"+str(dic_str_to_num[m])+"/"+d + "@" +t.lower()+"\n") fw.close() print keyword[0]+" done" #print keyword+" : "+str(len(Sent)) #Sent=Sent+nltk.sent_tokenize(TXT) ''' for i in Sent: Sent_Split=i.lower().split() if len(Sent_Split)>0: if Sent_Split[0] in Mon: date=str(dic[Sent_Split[0]])+"/"+Sent_Split[1][0:len(Sent_Split[1])-1]+"/"+Sent_Split[2] if keyword.lower() in Sent_Split: Key_Sent.append((date,i.lower())) f=open('SP5.txt') TXT=f.readlines() temp="" art=[] for i in TXT: if i.strip()=="": art.append(temp+ "\n") temp="" else: temp=temp + " " + i[:len(i)-2] print "done with combining paragraph" TXT=art date="" Sent=[] Mon=["january","february","march","april","may","june","july","august","september","october","november","december"] dic=dict(zip(Mon,range(1,13))) for i in xrange(0,len(TXT)): TXT[i]=TXT[i].replace("\r", ""); TXT[i]=TXT[i].replace("|", "."); TXT[i]=TXT[i].replace("\n", ""); TXT[i]=TXT[i].replace("S&P 500", "S&P500"); TXT[i]=TXT[i].replace("S.&P. 500", "S&P500"); TXT[i]=TXT[i].replace("S.& P. 500", "S&P500"); TXT[i]=TXT[i].replace("Standard & Poor's 500", "S&P500"); TXT[i]=TXT[i].replace("Standard & Poor 500", "S&P500"); Sent=Sent+nltk.sent_tokenize(TXT[i]) Key_Sent=[] keyword="s&p500" for i in Sent: Sent_Split=i.lower().split() if len(Sent_Split)>0: if Sent_Split[0] in Mon: date=str(dic[Sent_Split[0]])+"/"+Sent_Split[1][0:len(Sent_Split[1])-1]+"/"+Sent_Split[2] if keyword.lower() in Sent_Split: Key_Sent.append((date,i.lower())) #f=open("news_sentence5","w") #f.writelines(Key_Sent) #f.close() for i in Key_Sent: print i[0]+" @ "+ i[1] #print len(Key_Sent) #txt=nltk.data.load('NEWS.txt','text') #print txt #S=nltk.tokenize(txt) '''
mit
xiaohan2012/lst
read_result_path.py
62
import cPickle as pkl print(pkl.load(open('.paths.pkl'))[0])
mit
gga/humboldt
features/step_definitions/script_init.rb
430
Given /^an? (\w+) script$/ do |type| @script_text = case type when 'empty' "script {}" when 'factorial' <<-EOS script do |s| s.user :fact do def fact(i) ; i == 1 ? i : i * fact(i - 1) ; end fact(50) end end EOS else ['empty'].should_include(type) end end Given /^the script$/ do |text| @script_text = text end Given /a running server$/ do @server = Humboldt::Server.new @server.start! end
mit
memorycoin/memorycoin
src/qt/locale/bitcoin_ru.ts
134848
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Bitcoin</source> <translation>&amp;О Bitcoin</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Bitcoin&lt;/b&gt; version</source> <translation>&lt;b&gt;Bitcoin&lt;/b&gt; версия</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> Это экспериментальная программа. Распространяется на правах лицензии MIT/X11, см. файл license.txt или http://www.opensource.org/licenses/mit-license.php. Этот продукт включает ПО, разработанное OpenSSL Project для использования в OpenSSL Toolkit (http://www.openssl.org/) и криптографическое ПО, написанное Eric Young (eay@cryptsoft.com) и ПО для работы с UPnP, написанное Thomas Bernard.</translation> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation>Все права защищены</translation> </message> <message> <location line="+0"/> <source>The Bitcoin developers</source> <translation>Разработчики Bitcoin</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>&amp;Адресная книга</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Для того, чтобы изменить адрес или метку, дважды кликните по изменяемому объекту</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Создать новый адрес</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Копировать текущий выделенный адрес в буфер обмена</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Новый адрес</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Bitcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>Это Ваши адреса для получения платежей. Вы можете дать разные адреса отправителям, чтобы отслеживать, кто именно вам платит.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>&amp;Копировать адрес</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Показать &amp;QR код</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Bitcoin address</source> <translation>Подписать сообщение, чтобы доказать владение адресом Bitcoin</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>&amp;Подписать сообщение</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Удалить выбранный адрес из списка</translation> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation>Экспортировать данные из вкладки в файл</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation>&amp;Экспорт</translation> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Bitcoin address</source> <translation>Проверить сообщение, чтобы убедиться, что оно было подписано указанным адресом Bitcoin</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>&amp;Проверить сообщение</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Удалить</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Bitcoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation>Ваши адреса для получения средств. Совет: проверьте сумму и адрес назначения перед переводом.</translation> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>Копировать &amp;метку</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;Правка</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation>&amp;Отправить монеты</translation> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Экспортировать адресную книгу</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Текст, разделённый запятыми (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Ошибка экспорта</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Невозможно записать в файл %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Метка</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>[нет метки]</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Диалог ввода пароля</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Введите пароль</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Новый пароль</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Повторите новый пароль</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Введите новый пароль для бумажника. &lt;br/&gt; Пожалуйста, используйте фразы из &lt;b&gt;10 или более случайных символов,&lt;/b&gt; или &lt;b&gt;восьми и более слов.&lt;/b&gt;</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Зашифровать бумажник</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Для выполнения операции требуется пароль вашего бумажника.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Разблокировать бумажник</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Для выполнения операции требуется пароль вашего бумажника.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Расшифровать бумажник</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Сменить пароль</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Введите старый и новый пароль для бумажника.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Подтвердите шифрование бумажника</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR BITCOINS&lt;/b&gt;!</source> <translation>Внимание: если вы зашифруете бумажник и потеряете пароль, вы &lt;b&gt;ПОТЕРЯЕТЕ ВСЕ ВАШИ БИТКОИНЫ&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Вы уверены, что хотите зашифровать ваш бумажник?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>ВАЖНО: все предыдущие резервные копии вашего кошелька должны быть заменены новым зашифрованным файлом. В целях безопасности предыдущие резервные копии нешифрованного кошелька станут бесполезны, как только вы начнёте использовать новый шифрованный кошелёк.</translation> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Внимание: Caps Lock включен!</translation> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Бумажник зашифрован</translation> </message> <message> <location line="-56"/> <source>Bitcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.</source> <translation>Сейчас программа закроется для завершения процесса шифрования. Помните, что шифрование вашего бумажника не может полностью защитить ваши биткоины от кражи с помощью инфицирования вашего компьютера вредоносным ПО.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Не удалось зашифровать бумажник</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Шифрование бумажника не удалось из-за внутренней ошибки. Ваш бумажник не был зашифрован.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>Введённые пароли не совпадают.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Разблокировка бумажника не удалась</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Указанный пароль не подходит.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Расшифрование бумажника не удалось</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Пароль бумажника успешно изменён.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>&amp;Подписать сообщение...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Синхронизация с сетью...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>О&amp;бзор</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Показать общий обзор действий с бумажником</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Транзакции</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Показать историю транзакций</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>Изменить список сохранённых адресов и меток к ним</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Показать список адресов для получения платежей</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>В&amp;ыход</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Закрыть приложение</translation> </message> <message> <location line="+4"/> <source>Show information about Bitcoin</source> <translation>Показать информацию о Bitcoin&apos;е</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>О &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Показать информацию о Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>Оп&amp;ции...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Зашифровать бумажник...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Сделать резервную копию бумажника...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Изменить пароль...</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation>Импортируются блоки с диска...</translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation>Идёт переиндексация блоков на диске...</translation> </message> <message> <location line="-347"/> <source>Send coins to a Bitcoin address</source> <translation>Отправить монеты на указанный адрес Bitcoin</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for Bitcoin</source> <translation>Изменить параметры конфигурации Bitcoin</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>Сделать резервную копию бумажника в другом месте</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Изменить пароль шифрования бумажника</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>&amp;Окно отладки</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Открыть консоль отладки и диагностики</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>&amp;Проверить сообщение...</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>Bitcoin</source> <translation>Биткоин</translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>Бумажник</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation>&amp;Отправить</translation> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation>&amp;Получить</translation> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation>&amp;Адреса</translation> </message> <message> <location line="+22"/> <source>&amp;About Bitcoin</source> <translation>&amp;О Bitcoin</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>&amp;Показать / Скрыть</translation> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation>Показать или скрыть главное окно</translation> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation>Зашифровать приватные ключи, принадлежащие вашему бумажнику</translation> </message> <message> <location line="+7"/> <source>Sign messages with your Bitcoin addresses to prove you own them</source> <translation>Подписать сообщения вашим адресом Bitcoin, чтобы доказать, что вы им владеете</translation> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Bitcoin addresses</source> <translation>Проверить сообщения, чтобы удостовериться, что они были подписаны определённым адресом Bitcoin</translation> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Файл</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Настройки</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Помощь</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Панель вкладок</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[тестовая сеть]</translation> </message> <message> <location line="+47"/> <source>Bitcoin client</source> <translation>Bitcoin клиент</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to Bitcoin network</source> <translation><numerusform>%n активное соединение с сетью</numerusform><numerusform>%n активных соединений с сетью</numerusform><numerusform>%n активных соединений с сетью</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation>Источник блоков недоступен...</translation> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation>Обработано %1 из %2 (примерно) блоков истории транзакций.</translation> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation>Обработано %1 блоков истории транзакций.</translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation><numerusform>%n час</numerusform><numerusform>%n часа</numerusform><numerusform>%n часов</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n день</numerusform><numerusform>%n дня</numerusform><numerusform>%n дней</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation><numerusform>%n неделя</numerusform><numerusform>%n недели</numerusform><numerusform>%n недель</numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation>%1 позади</translation> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation>Последний полученный блок был сгенерирован %1 назад.</translation> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation>Транзакции после этой пока не будут видны.</translation> </message> <message> <location line="+22"/> <source>Error</source> <translation>Ошибка</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation>Внимание</translation> </message> <message> <location line="+3"/> <source>Information</source> <translation>Информация</translation> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>Транзакция превышает максимальный размер. Вы можете провести её, заплатив комиссию %1, которая достанется узлам, обрабатывающим эту транзакцию, и поможет работе сети. Вы действительно хотите заплатить комиссию?</translation> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Синхронизировано</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Синхронизируется...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>Подтвердите комиссию</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Исходящая транзакция</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Входящая транзакция</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Дата: %1 Количество: %2 Тип: %3 Адрес: %4 </translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation>Обработка URI</translation> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Bitcoin address or malformed URI parameters.</source> <translation>Не удалось обработать URI! Это может быть связано с неверным адресом Bitcoin или неправильными параметрами URI.</translation> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Бумажник &lt;b&gt;зашифрован&lt;/b&gt; и в настоящее время &lt;b&gt;разблокирован&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Бумажник &lt;b&gt;зашифрован&lt;/b&gt; и в настоящее время &lt;b&gt;заблокирован&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. Bitcoin can no longer continue safely and will quit.</source> <translation>Произошла неисправимая ошибка. Bitcoin не может безопасно продолжать работу и будет закрыт.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation>Сетевая Тревога</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Изменить адрес</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Метка</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Метка, связанная с данной записью</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Адрес</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>Адрес, связанный с данной записью.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Новый адрес для получения</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Новый адрес для отправки</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Изменение адреса для получения</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Изменение адреса для отправки</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Введённый адрес «%1» уже находится в адресной книге.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Bitcoin address.</source> <translation>Введённый адрес &quot;%1&quot; не является правильным Bitcoin-адресом.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Не удается разблокировать бумажник.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Генерация нового ключа не удалась.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>Bitcoin-Qt</source> <translation>Bitcoin-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>версия</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Использование:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>параметры командной строки</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>Опции интерфейса</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Выберите язык, например &quot;de_DE&quot; (по умолчанию: как в системе)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Запускать свёрнутым</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Показывать сплэш при запуске (по умолчанию: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Опции</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Главная</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>Необязательная комиссия за каждый КБ транзакции, которая ускоряет обработку Ваших транзакций. Большинство транзакций занимают 1КБ.</translation> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>Заплатить ко&amp;миссию</translation> </message> <message> <location line="+31"/> <source>Automatically start Bitcoin after logging in to the system.</source> <translation>Автоматически запускать Bitcoin после входа в систему</translation> </message> <message> <location line="+3"/> <source>&amp;Start Bitcoin on system login</source> <translation>&amp;Запускать Bitcoin при входе в систему</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation>Сбросить все опции клиента на значения по умолчанию.</translation> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation>&amp;Сбросить опции</translation> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>&amp;Сеть</translation> </message> <message> <location line="+6"/> <source>Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Автоматически открыть порт для Bitcoin-клиента на роутере. Работает только если Ваш роутер поддерживает UPnP, и данная функция включена.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Пробросить порт через &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the Bitcoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>Подключаться к сети Bitcoin через прокси SOCKS (например, при подключении через Tor).</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>&amp;Подключаться через SOCKS прокси:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>&amp;IP Прокси: </translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>IP-адрес прокси (например 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>По&amp;рт: </translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Порт прокси-сервера (например, 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>&amp;Версия SOCKS:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>Версия SOCKS-прокси (например, 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Окно</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Показывать только иконку в системном лотке после сворачивания окна.</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Cворачивать в системный лоток вместо панели задач</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>Сворачивать вместо закрытия. Если данная опция будет выбрана — приложение закроется только после выбора соответствующего пункта в меню.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>С&amp;ворачивать при закрытии</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>О&amp;тображение</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>&amp;Язык интерфейса:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Bitcoin.</source> <translation>Здесь можно выбрать язык интерфейса. Настройки вступят в силу после перезапуска Bitcoin.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Отображать суммы в единицах: </translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Выберите единицу измерения монет при отображении и отправке.</translation> </message> <message> <location line="+9"/> <source>Whether to show Bitcoin addresses in the transaction list or not.</source> <translation>Показывать ли адреса Bitcoin в списке транзакций.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>&amp;Показывать адреса в списке транзакций</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>О&amp;К</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;Отмена</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Применить</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>по умолчанию</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation>Подтвердите сброс опций</translation> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation>Некоторые настройки могут потребовать перезапуск клиента, чтобы вступить в силу.</translation> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation>Желаете продолжить?</translation> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>Внимание</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Bitcoin.</source> <translation>Эта настройка вступит в силу после перезапуска Bitcoin</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Адрес прокси неверен.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Форма</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Bitcoin network after a connection is established, but this process has not completed yet.</source> <translation>Отображаемая информация может быть устаревшей. Ваш бумажник автоматически синхронизируется с сетью Bitcoin после подключения, но этот процесс пока не завершён.</translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>Баланс:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Не подтверждено:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>Бумажник</translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation>Незрелые:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>Баланс добытых монет, который ещё не созрел</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Последние транзакции&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>Ваш текущий баланс</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Общая сумма всех транзакций, которые до сих пор не подтверждены, и до сих пор не учитываются в текущем балансе</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>не синхронизировано</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start bitcoin: click-to-pay handler</source> <translation>Не удаётся запустить bitcoin: обработчик click-to-pay</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>Диалог QR-кода</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Запросить платёж</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Количество:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Метка:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Сообщение:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Сохранить как...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>Ошибка кодирования URI в QR-код</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>Введено неверное количество, проверьте ещё раз.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>Получившийся URI слишком длинный, попробуйте сократить текст метки / сообщения.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>Сохранить QR-код</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>PNG Изображения (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Имя клиента</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation>Н/Д</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Версия клиента</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Информация</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Используется версия OpenSSL</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Время запуска</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Сеть</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Число подключений</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>В тестовой сети</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Цепь блоков</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Текущее число блоков</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Расчётное число блоков</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Время последнего блока</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Открыть</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>Параметры командной строки</translation> </message> <message> <location line="+7"/> <source>Show the Bitcoin-Qt help message to get a list with possible Bitcoin command-line options.</source> <translation>Показать помощь по Bitcoin-Qt, чтобы получить список доступных параметров командной строки.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>&amp;Показать</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>Консоль</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Дата сборки</translation> </message> <message> <location line="-104"/> <source>Bitcoin - Debug window</source> <translation>Bitcoin - Окно отладки</translation> </message> <message> <location line="+25"/> <source>Bitcoin Core</source> <translation>Ядро Bitcoin</translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>Отладочный лог-файл</translation> </message> <message> <location line="+7"/> <source>Open the Bitcoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Открыть отладочный лог-файл Bitcoin из текущего каталога данных. Это может занять несколько секунд для больших лог-файлов.</translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Очистить консоль</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Bitcoin RPC console.</source> <translation>Добро пожаловать в RPC-консоль Bitcoin.</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Используйте стрелки вверх и вниз для просмотра истории и &lt;b&gt;Ctrl-L&lt;/b&gt; для очистки экрана.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Напишите &lt;b&gt;help&lt;/b&gt; для просмотра доступных команд.</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Отправка</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>Отправить нескольким получателям одновременно</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;Добавить получателя</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Удалить все поля транзакции</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Очистить &amp;всё</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Баланс:</translation> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Подтвердить отправку</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;Отправить</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; адресату %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Подтвердите отправку монет</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Вы уверены, что хотите отправить %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation> и </translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>Адрес получателя неверный, пожалуйста, перепроверьте.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Количество монет для отправки должно быть больше 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Количество отправляемых монет превышает Ваш баланс</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Сумма превысит Ваш баланс, если комиссия в размере %1 будет добавлена к транзакции</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Обнаружен дублирующийся адрес. Отправка на один и тот же адрес возможна только один раз за одну операцию отправки</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation>Ошибка: не удалось создать транзакцию!</translation> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Ошибка: В транзакции отказано. Такое может произойти, если некоторые монеты уже были потрачены, например, если Вы используете одну копию файла wallet.dat, а монеты были потрачены из другой копии, но не были отмечены как потраченные в этой.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Форма</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>Ко&amp;личество:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Полу&amp;чатель:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Адрес, на который будет выслан платёж (например 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>Введите метку для данного адреса (для добавления в адресную книгу)</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Метка:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Выберите адрес из адресной книги</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Вставить адрес из буфера обмена</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>Удалить этого получателя</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Введите Bitcoin-адрес (например 1LA5FtQhnnWnkK6zjFfutR7Stiit4wKd63)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>Подписи - подписать/проверить сообщение</translation> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>&amp;Подписать сообщение</translation> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Вы можете подписывать сообщения своими адресами, чтобы доказать владение ими. Будьте осторожны, не подписывайте что-то неопределённое, так как фишинговые атаки могут обманным путём заставить вас подписать нежелательные сообщения. Подписывайте только те сообщения, с которыми вы согласны вплоть до мелочей.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Адрес, которым вы хотите подписать сообщение (напр. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>Выберите адрес из адресной книги</translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>Вставить адрес из буфера обмена</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>Введите сообщение для подписи</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation>Подпись</translation> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation>Скопировать текущую подпись в системный буфер обмена</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Bitcoin address</source> <translation>Подписать сообщение, чтобы доказать владение адресом Bitcoin</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>Подписать &amp;Сообщение</translation> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation>Сбросить значения всех полей подписывания сообщений</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Очистить &amp;всё</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>&amp;Проверить сообщение</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>Введите ниже адрес для подписи, сообщение (убедитесь, что переводы строк, пробелы, табы и т.п. в точности скопированы) и подпись, чтобы проверить сообщение. Убедитесь, что не скопировали лишнего в подпись, по сравнению с самим подписываемым сообщением, чтобы не стать жертвой атаки &quot;man-in-the-middle&quot;.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Адрес, которым было подписано сообщение (напр. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Bitcoin address</source> <translation>Проверить сообщение, чтобы убедиться, что оно было подписано указанным адресом Bitcoin</translation> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation>Проверить &amp;Сообщение</translation> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation>Сбросить все поля проверки сообщения</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Введите адрес Bitcoin (напр. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Нажмите &quot;Подписать сообщение&quot; для создания подписи</translation> </message> <message> <location line="+3"/> <source>Enter Bitcoin signature</source> <translation>Введите подпись Bitcoin</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Введённый адрес неверен</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>Пожалуйста, проверьте адрес и попробуйте ещё раз.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>Введённый адрес не связан с ключом</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>Разблокировка бумажника была отменена.</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>Для введённого адреса недоступен закрытый ключ</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Не удалось подписать сообщение</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Сообщение подписано</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>Подпись не может быть раскодирована.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Пожалуйста, проверьте подпись и попробуйте ещё раз.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>Подпись не соответствует отпечатку сообщения.</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Проверка сообщения не удалась.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Сообщение проверено.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Bitcoin developers</source> <translation>Разработчики Bitcoin</translation> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[тестовая сеть]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Открыто до %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1/отключен</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/не подтверждено</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 подтверждений</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Статус</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, разослано через %n узел</numerusform><numerusform>, разослано через %n узла</numerusform><numerusform>, разослано через %n узлов</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Источник</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Сгенерированно</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>От</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Для</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>свой адрес</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>метка</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Кредит</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>будет доступно через %n блок</numerusform><numerusform>будет доступно через %n блока</numerusform><numerusform>будет доступно через %n блоков</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>не принято</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Дебет</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Комиссия</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Чистая сумма</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Сообщение</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Комментарий:</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID транзакции</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature a certain number of 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 &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>Сгенерированные монеты должны подождать 120 блоков, прежде чем они могут быть потрачены. Когда Вы сгенерировали этот блок, он был отправлен в сеть для добавления в цепочку блоков. Если данная процедура не удастся, статус изменится на «не подтверждено», и монеты будут недействительны. Это иногда происходит в случае, если другой узел сгенерирует блок на несколько секунд раньше вас.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>Отладочная информация</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Транзакция</translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation>Входы</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Количество</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>истина</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>ложь</translation> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, ещё не было успешно разослано</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation><numerusform>Открыто для ещё %n блока</numerusform><numerusform>Открыто для ещё %n блоков</numerusform><numerusform>Открыто для ещё %n блоков</numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>неизвестно</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Детали транзакции</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Данный диалог показывает детализированную статистику по выбранной транзакции</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Количество</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation><numerusform>Открыто для ещё %n блока</numerusform><numerusform>Открыто для ещё %n блоков</numerusform><numerusform>Открыто для ещё %n блоков</numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>Открыто до %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Оффлайн (%1 подтверждений)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Не подтверждено (%1 из %2 подтверждений)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Подтверждено (%1 подтверждений)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation><numerusform>Добытыми монетами можно будет воспользоваться через %n блок</numerusform><numerusform>Добытыми монетами можно будет воспользоваться через %n блока</numerusform><numerusform>Добытыми монетами можно будет воспользоваться через %n блоков</numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Этот блок не был получен другими узлами и, возможно, не будет принят!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Сгенерированно, но не подтверждено</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Получено</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Получено от</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Отправлено</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Отправлено себе</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Добыто</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>[не доступно]</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Статус транзакции. Подведите курсор к нужному полю для того, чтобы увидеть количество подтверждений.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Дата и время, когда транзакция была получена.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Тип транзакции.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Адрес назначения транзакции.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Сумма, добавленная, или снятая с баланса.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Все</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Сегодня</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>На этой неделе</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>В этом месяце</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>За последний месяц</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>В этом году</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Промежуток...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Получено на</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Отправлено на</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Отправленные себе</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Добытые</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Другое</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Введите адрес или метку для поиска</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Мин. сумма</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Копировать адрес</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Копировать метку</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Скопировать сумму</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>Скопировать ID транзакции</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Изменить метку</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Показать подробности транзакции</translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>Экспортировать данные транзакций</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Текст, разделённый запятыми (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Подтверждено</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Метка</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Количество</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Ошибка экспорта</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Невозможно записать в файл %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Промежуток от:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>до</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>Отправка</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation>&amp;Экспорт</translation> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>Экспортировать данные из вкладки в файл</translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation>Сделать резервную копию бумажника</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Данные бумажника (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Резервное копирование не удалось</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>При попытке сохранения данных бумажника в новое место произошла ошибка.</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation>Резервное копирование успешно завершено</translation> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation>Данные бумажника успешно сохранены в новое место.</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>Bitcoin version</source> <translation>Версия</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>Использование:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or bitcoind</source> <translation>Отправить команду на -server или bitcoind</translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Список команд </translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>Получить помощь по команде</translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Опции:</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: bitcoin.conf)</source> <translation>Указать конфигурационный файл (по умолчанию: bitcoin.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: bitcoind.pid)</source> <translation>Задать pid-файл (по умолчанию: bitcoin.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Задать каталог данных</translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Установить размер кэша базы данных в мегабайтах (по умолчанию: 25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 8333 or testnet: 18333)</source> <translation>Принимать входящие подключения на &lt;port&gt; (по умолчанию: 8333 или 18333 в тестовой сети)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Поддерживать не более &lt;n&gt; подключений к узлам (по умолчанию: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Подключиться к узлу, чтобы получить список адресов других участников и отключиться</translation> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation>Укажите ваш собственный публичный адрес</translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Порог для отключения неправильно ведущих себя узлов (по умолчанию: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Число секунд блокирования неправильно ведущих себя узлов (по умолчанию: 86400)</translation> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>Произошла ошибка при открытии RPC-порта %u для прослушивания на IPv4: %s</translation> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332 or testnet: 18332)</source> <translation>Прослушивать подключения JSON-RPC на &lt;порту&gt; (по умолчанию: 8332 или для testnet: 18332)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>Принимать командную строку и команды JSON-RPC</translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>Запускаться в фоне как демон и принимать команды</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>Использовать тестовую сеть</translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Принимать подключения извне (по умолчанию: 1, если не используется -proxy или -connect)</translation> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=bitcoinrpc 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 &quot;Bitcoin Alert&quot; admin@foo.com </source> <translation>%s, вы должны установить опцию rpcpassword в конфигурационном файле: %s Рекомендуется использовать следующий случайный пароль: rpcuser=bitcoinrpc rpcpassword=%s (вам не нужно запоминать этот пароль) Имя и пароль ДОЛЖНЫ различаться. Если файл не существует, создайте его и установите права доступа только для владельца, только для чтения. Также рекомендуется включить alertnotify для оповещения о проблемах; Например: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; 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>Произошла ошибка при открытии на прослушивание IPv6 RCP-порта %u, возвращаемся к 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>Привязаться к указанному адресу и всегда прослушивать только его. Используйте [хост]:порт для IPv6</translation> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. Bitcoin is probably already running.</source> <translation>Не удаётся установить блокировку на каталог данных %s. Возможно, Bitcoin уже работает.</translation> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Ошибка: транзакция была отклонена! Это могло произойти в случае, если некоторые монеты в вашем бумажнике уже были потрачены, например, если вы используете копию wallet.dat, и монеты были использованы в копии, но не отмечены как потраченные здесь.</translation> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation>Ошибка: эта транзакция требует комиссию как минимум %s из-за суммы, сложности или использования недавно полученных средств!</translation> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation>Выполнить команду, когда приходит сообщение о тревоге (%s в команде заменяется на сообщение)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Выполнить команду, когда меняется транзакция в бумажнике (%s в команде заменяется на TxID)</translation> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>Максимальный размер высокоприоритетных/низкокомиссионных транзакций в байтах (по умолчанию: 27000)</translation> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation>Это пре-релизная тестовая сборка - используйте на свой страх и риск - не используйте для добычи или торговых приложений</translation> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Внимание: установлено очень большое значение -paytxfee. Это комиссия, которую вы заплатите при проведении транзакции.</translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation>Внимание: отображаемые транзакции могут быть некорректны! Вам или другим узлам, возможно, следует обновиться.</translation> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Bitcoin will not work properly.</source> <translation>Внимание: убедитесь, что дата и время на Вашем компьютере выставлены верно. Если Ваши часы идут неправильно, Bitcoin будет работать некорректно.</translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Внимание: ошибка чтения wallet.dat! Все ключи прочитаны верно, но данные транзакций или записи адресной книги могут отсутствовать или быть неправильными.</translation> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>Внимание: wallet.dat повреждён, данные спасены! Оригинальный wallet.dat сохранён как wallet.{timestamp}.bak в %s; если ваш баланс или транзакции некорректны, вы должны восстановить файл из резервной копии.</translation> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Попытаться восстановить приватные ключи из повреждённого wallet.dat</translation> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation>Параметры создания блоков:</translation> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>Подключаться только к указанному узлу(ам)</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation>БД блоков повреждена</translation> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Определить свой IP (по умолчанию: 1 при прослушивании и если не используется -externalip)</translation> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation>Пересобрать БД блоков прямо сейчас?</translation> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation>Ошибка инициализации БД блоков</translation> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation>Ошибка инициализации окружения БД бумажника %s!</translation> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation>Ошибка чтения базы данных блоков</translation> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation>Не удалось открыть БД блоков</translation> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation>Ошибка: мало места на диске!</translation> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation>Ошибка: бумажник заблокирован, невозможно создать транзакцию!</translation> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation>Ошибка: системная ошибка:</translation> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Не удалось начать прослушивание на порту. Используйте -listen=0 если вас это устраивает.</translation> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation>Не удалось прочитать информацию блока</translation> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation>Не удалось прочитать блок</translation> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation>Не удалось синхронизировать индекс блоков</translation> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation>Не удалось записать индекс блоков</translation> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation>Не удалось записать информацию блока</translation> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation>Не удалось записать блок</translation> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation>Не удалось записать информацию файла</translation> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation>Не удалось записать БД монет</translation> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation>Не удалось записать индекс транзакций</translation> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation>Не удалось записать данные для отмены</translation> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation>Искать узлы с помощью DNS (по умолчанию: 1, если не указан -connect)</translation> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation>Включить добычу монет (по умолчанию: 0)</translation> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation>Сколько блоков проверять при запуске (по умолчанию: 288, 0 = все)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation>Насколько тщательно проверять блок (0-4, по умолчанию: 3)</translation> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation>Недостаточно файловых дескрипторов.</translation> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>Перестроить индекс цепи блоков из текущих файлов blk000??.dat</translation> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation>Задать число потоков выполнения(по умолчанию: 4)</translation> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation>Проверка блоков...</translation> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation>Проверка бумажника...</translation> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation>Импортировать блоки из внешнего файла blk000??.dat</translation> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation>Задать число потоков проверки скрипта (вплоть до 16, 0=авто, &lt;0 = оставить столько ядер свободными, по умолчанию: 0)</translation> </message> <message> <location line="+77"/> <source>Information</source> <translation>Информация</translation> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>Неверный адрес -tor: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Неверное количество в параметре -minrelaytxfee=&lt;кол-во&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Неверное количество в параметре -mintxfee=&lt;кол-во&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation>Держать полный индекс транзакций (по умолчанию: 0)</translation> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Максимальный размер буфера приёма на соединение, &lt;n&gt;*1000 байт (по умолчанию: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Максимальный размер буфера отправки на соединение, &lt;n&gt;*1000 байт (по умолчанию: 1000)</translation> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation>Принимать цепь блоков, только если она соответствует встроенным контрольным точкам (по умолчанию: 1)</translation> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>Подключаться только к узлам из сети &lt;net&gt; (IPv4, IPv6 или Tor)</translation> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>Выводить больше отладочной информации. Включает все остальные опции -debug*</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation>Выводить дополнительную сетевую отладочную информацию</translation> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>Дописывать отметки времени к отладочному выводу</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation> Параметры SSL: (см. Bitcoin Wiki для инструкций по настройке SSL)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>Выбрать версию SOCKS-прокси (4-5, по умолчанию: 5)</translation> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Выводить информацию трассировки/отладки на консоль вместо файла debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>Отправлять информацию трассировки/отладки в отладчик</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>Максимальный размер блока в байтах (по умолчанию: 250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Минимальный размер блока в байтах (по умолчанию: 0)</translation> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Сжимать файл debug.log при запуске клиента (по умолчанию: 1, если нет -debug)</translation> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation>Не удалось подписать транзакцию</translation> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Таймаут соединения в миллисекундах (по умолчанию: 5000)</translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation>Системная ошибка:</translation> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation>Объём транзакции слишком мал</translation> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation>Объём транзакции должен быть положителен</translation> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation>Транзакция слишком большая</translation> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Использовать UPnP для проброса порта (по умолчанию: 0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Использовать UPnP для проброса порта (по умолчанию: 1, если используется прослушивание)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>Использовать прокси для скрытых сервисов (по умолчанию: тот же, что и в -proxy)</translation> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>Имя для подключений JSON-RPC</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation>Внимание</translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Внимание: эта версия устарела, требуется обновление!</translation> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation>Вам необходимо пересобрать базы данных с помощью -reindex, чтобы изменить -txindex</translation> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat повреждён, спасение данных не удалось</translation> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>Пароль для подключений JSON-RPC</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Разрешить подключения JSON-RPC с указанного IP</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Посылать команды узлу, запущенному на &lt;ip&gt; (по умолчанию: 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>Выполнить команду, когда появляется новый блок (%s в команде заменяется на хэш блока)</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>Обновить бумажник до последнего формата</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Установить размер запаса ключей в &lt;n&gt; (по умолчанию: 100)</translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Перепроверить цепь блоков на предмет отсутствующих в бумажнике транзакций</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Использовать OpenSSL (https) для подключений JSON-RPC</translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation>Файл серверного сертификата (по умолчанию: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Приватный ключ сервера (по умолчанию: server.pem)</translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Разрешённые алгоритмы (по умолчанию: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>Эта справка</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Невозможно привязаться к %s на этом компьютере (bind вернул ошибку %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>Подключаться через socks прокси</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Разрешить поиск в DNS для -addnode, -seednode и -connect</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>Загрузка адресов...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Ошибка загрузки wallet.dat: Бумажник поврежден</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Bitcoin</source> <translation>Ошибка загрузки wallet.dat: бумажник требует более новую версию Bitcoin</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart Bitcoin to complete</source> <translation>Необходимо перезаписать бумажник, перезапустите Bitcoin для завершения операции.</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>Ошибка при загрузке wallet.dat</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Неверный адрес -proxy: &apos;%s&apos;</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>В параметре -onlynet указана неизвестная сеть: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>В параметре -socks запрошена неизвестная версия: %i</translation> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Не удаётся разрешить адрес в параметре -bind: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Не удаётся разрешить адрес в параметре -externalip: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Неверное количество в параметре -paytxfee=&lt;кол-во&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>Неверное количество</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>Недостаточно монет</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Загрузка индекса блоков...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Добавить узел для подключения и пытаться поддерживать соединение открытым</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Bitcoin is probably already running.</source> <translation>Невозможно привязаться к %s на этом компьютере. Возможно, Bitcoin уже работает.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>Комиссия на килобайт, добавляемая к вашим транзакциям</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>Загрузка бумажника...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation>Не удаётся понизить версию бумажника</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>Не удаётся записать адрес по умолчанию</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>Сканирование...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Загрузка завершена</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation>Чтобы использовать опцию %s</translation> </message> <message> <location line="-74"/> <source>Error</source> <translation>Ошибка</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Вы должны установить rpcpassword=&lt;password&gt; в конфигурационном файле: %s Если файл не существует, создайте его и установите права доступа только для владельца.</translation> </message> </context> </TS>
mit
dragonloverlord/EasyCalc
background.js
172
chrome.app.runtime.onLaunched.addListener(function(launchData) { chrome.app.window.create( 'index.html', { bounds: {width: 600, height: 600} } ); });
mit
baraujo/ba42
JumpingAirplane/Main.cs
742
using ba42.Core; using JumpingAirplane.Scenes; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace JumpingAirplane { public class Main : ba42Game { protected override void Initialize() { base.Initialize(); Director.AddScene<Scene1>("scene1"); Director.SetCurrentScene("scene1"); } protected override void Update(GameTime gameTime) { base.Update(gameTime); // TODO: Maybe a customized system for configuring input could be done? if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) Exit(); } } }
mit
Azure/azure-sdk-for-java
sdk/core/azure-core/src/test/java/com/azure/core/implementation/jackson/AdditionalPropertiesSerializerWithJacksonAnnotationTests.java
8244
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.core.implementation.jackson; import com.azure.core.util.serializer.JacksonAdapter; import com.azure.core.util.serializer.SerializerEncoding; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; public class AdditionalPropertiesSerializerWithJacksonAnnotationTests { @Test public void canSerializeAdditionalProperties() throws Exception { NewFoo foo = new NewFoo(); foo.bar("hello.world"); foo.baz(new ArrayList<>()); foo.baz().add("hello"); foo.baz().add("hello.world"); foo.qux(new HashMap<>()); foo.qux().put("hello", "world"); foo.qux().put("a.b", "c.d"); foo.qux().put("bar.a", "ttyy"); foo.qux().put("bar.b", "uuzz"); foo.additionalProperties(new HashMap<>()); foo.additionalProperties().put("bar", "baz"); foo.additionalProperties().put("a.b", "c.d"); foo.additionalProperties().put("properties.bar", "barbar"); String serialized = new JacksonAdapter().serialize(foo, SerializerEncoding.JSON); Assertions.assertEquals("{\"$type\":\"newfoo\",\"bar\":\"baz\",\"properties\":{\"bar\":\"hello.world\",\"props\":{\"baz\":[\"hello\",\"hello.world\"],\"q\":{\"qux\":{\"hello\":\"world\",\"a.b\":\"c.d\",\"bar.b\":\"uuzz\",\"bar.a\":\"ttyy\"}}}},\"a.b\":\"c.d\",\"properties.bar\":\"barbar\"}", serialized); } @Test public void canDeserializeAdditionalProperties() throws Exception { String wireValue = "{\"$type\":\"newfoo\",\"properties\":{\"bar\":\"hello.world\",\"props\":{\"baz\":[\"hello\",\"hello.world\"],\"q\":{\"qux\":{\"hello\":\"world\",\"a.b\":\"c.d\",\"bar.b\":\"uuzz\",\"bar.a\":\"ttyy\"}}}},\"bar\":\"baz\",\"a.b\":\"c.d\",\"properties.bar\":\"barbar\"}"; NewFoo deserialized = new JacksonAdapter().deserialize(wireValue, NewFoo.class, SerializerEncoding.JSON); Assertions.assertNotNull(deserialized.additionalProperties()); Assertions.assertEquals("baz", deserialized.additionalProperties().get("bar")); Assertions.assertEquals("c.d", deserialized.additionalProperties().get("a.b")); Assertions.assertEquals("barbar", deserialized.additionalProperties().get("properties.bar")); } @Test public void canSerializeAdditionalPropertiesThroughInheritance() throws Exception { NewFoo foo = new NewFooChild(); foo.bar("hello.world"); foo.baz(new ArrayList<>()); foo.baz().add("hello"); foo.baz().add("hello.world"); foo.qux(new HashMap<>()); foo.qux().put("hello", "world"); foo.qux().put("a.b", "c.d"); foo.qux().put("bar.a", "ttyy"); foo.qux().put("bar.b", "uuzz"); foo.additionalProperties(new HashMap<>()); foo.additionalProperties().put("bar", "baz"); foo.additionalProperties().put("a.b", "c.d"); foo.additionalProperties().put("properties.bar", "barbar"); String serialized = new JacksonAdapter().serialize(foo, SerializerEncoding.JSON); Assertions.assertEquals("{\"$type\":\"newfoochild\",\"bar\":\"baz\",\"properties\":{\"bar\":\"hello.world\",\"props\":{\"baz\":[\"hello\",\"hello.world\"],\"q\":{\"qux\":{\"hello\":\"world\",\"a.b\":\"c.d\",\"bar.b\":\"uuzz\",\"bar.a\":\"ttyy\"}}}},\"a.b\":\"c.d\",\"properties.bar\":\"barbar\"}", serialized); } @Test public void canDeserializeAdditionalPropertiesThroughInheritance() throws Exception { String wireValue = "{\"$type\":\"newfoochild\",\"properties\":{\"bar\":\"hello.world\",\"props\":{\"baz\":[\"hello\",\"hello.world\"],\"q\":{\"qux\":{\"hello\":\"world\",\"a.b\":\"c.d\",\"bar.b\":\"uuzz\",\"bar.a\":\"ttyy\"}}}},\"bar\":\"baz\",\"a.b\":\"c.d\",\"properties.bar\":\"barbar\"}"; NewFoo deserialized = new JacksonAdapter().deserialize(wireValue, NewFoo.class, SerializerEncoding.JSON); Assertions.assertNotNull(deserialized.additionalProperties()); Assertions.assertEquals("baz", deserialized.additionalProperties().get("bar")); Assertions.assertEquals("c.d", deserialized.additionalProperties().get("a.b")); Assertions.assertEquals("barbar", deserialized.additionalProperties().get("properties.bar")); Assertions.assertTrue(deserialized instanceof NewFooChild); } @Test public void canSerializeAdditionalPropertiesWithNestedAdditionalProperties() throws Exception { NewFoo foo = new NewFoo(); foo.bar("hello.world"); foo.baz(new ArrayList<>()); foo.baz().add("hello"); foo.baz().add("hello.world"); foo.qux(new HashMap<>()); foo.qux().put("hello", "world"); foo.qux().put("a.b", "c.d"); foo.qux().put("bar.a", "ttyy"); foo.qux().put("bar.b", "uuzz"); foo.additionalProperties(new HashMap<>()); foo.additionalProperties().put("bar", "baz"); foo.additionalProperties().put("a.b", "c.d"); foo.additionalProperties().put("properties.bar", "barbar"); NewFoo nestedNewFoo = new NewFoo(); nestedNewFoo.bar("bye.world"); nestedNewFoo.additionalProperties(new HashMap<>()); nestedNewFoo.additionalProperties().put("name", "Sushi"); foo.additionalProperties().put("foo", nestedNewFoo); String serialized = new JacksonAdapter().serialize(foo, SerializerEncoding.JSON); Assertions.assertEquals("{\"$type\":\"newfoo\",\"bar\":\"baz\",\"foo\":{\"name\":\"Sushi\",\"properties\":{\"bar\":\"bye.world\"}},\"properties\":{\"bar\":\"hello.world\",\"props\":{\"baz\":[\"hello\",\"hello.world\"],\"q\":{\"qux\":{\"hello\":\"world\",\"a.b\":\"c.d\",\"bar.b\":\"uuzz\",\"bar.a\":\"ttyy\"}}}},\"a.b\":\"c.d\",\"properties.bar\":\"barbar\"}", serialized); } @Test public void canSerializeAdditionalPropertiesWithConflictProperty() throws Exception { NewFoo foo = new NewFoo(); foo.bar("hello.world"); foo.baz(new ArrayList<>()); foo.baz().add("hello"); foo.baz().add("hello.world"); foo.qux(new HashMap<>()); foo.qux().put("hello", "world"); foo.qux().put("a.b", "c.d"); foo.qux().put("bar.a", "ttyy"); foo.qux().put("bar.b", "uuzz"); foo.additionalProperties(new HashMap<>()); foo.additionalProperties().put("bar", "baz"); foo.additionalProperties().put("a.b", "c.d"); foo.additionalProperties().put("properties.bar", "barbar"); foo.additionalPropertiesProperty(new HashMap<>()); foo.additionalPropertiesProperty().put("age", 73); String serialized = new JacksonAdapter().serialize(foo, SerializerEncoding.JSON); Assertions.assertEquals("{\"$type\":\"newfoo\",\"additionalProperties\":{\"age\":73},\"bar\":\"baz\",\"properties\":{\"bar\":\"hello.world\",\"props\":{\"baz\":[\"hello\",\"hello.world\"],\"q\":{\"qux\":{\"hello\":\"world\",\"a.b\":\"c.d\",\"bar.b\":\"uuzz\",\"bar.a\":\"ttyy\"}}}},\"a.b\":\"c.d\",\"properties.bar\":\"barbar\"}", serialized); } @Test public void canDeserializeAdditionalPropertiesWithConflictProperty() throws Exception { String wireValue = "{\"$type\":\"newfoo\",\"properties\":{\"bar\":\"hello.world\",\"props\":{\"baz\":[\"hello\",\"hello.world\"],\"q\":{\"qux\":{\"hello\":\"world\",\"a.b\":\"c.d\",\"bar.b\":\"uuzz\",\"bar.a\":\"ttyy\"}}}},\"bar\":\"baz\",\"a.b\":\"c.d\",\"properties.bar\":\"barbar\",\"additionalProperties\":{\"age\":73}}"; NewFoo deserialized = new JacksonAdapter().deserialize(wireValue, NewFoo.class, SerializerEncoding.JSON); Assertions.assertNotNull(deserialized.additionalProperties()); Assertions.assertEquals("baz", deserialized.additionalProperties().get("bar")); Assertions.assertEquals("c.d", deserialized.additionalProperties().get("a.b")); Assertions.assertEquals("barbar", deserialized.additionalProperties().get("properties.bar")); Assertions.assertEquals(1, deserialized.additionalPropertiesProperty().size()); Assertions.assertEquals(73, deserialized.additionalPropertiesProperty().get("age")); } }
mit
bespike/BespikeCoin
src/qt/locale/bitcoin_ro_RO.ts
130253
<TS language="ro_RO" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Click-dreapta pentru a edita adresa sau eticheta</translation> </message> <message> <source>Create a new address</source> <translation>Creează o adresă nouă</translation> </message> <message> <source>&amp;New</source> <translation>&amp;Nou</translation> </message> <message> <source>Copy the currently selected address to the system clipboard</source> <translation>Copiază adresa selectată în clipboard</translation> </message> <message> <source>&amp;Copy</source> <translation>&amp;Copiază</translation> </message> <message> <source>C&amp;lose</source> <translation>Închide</translation> </message> <message> <source>&amp;Copy Address</source> <translation>&amp;Copiază adresa</translation> </message> <message> <source>Delete the currently selected address from the list</source> <translation>Şterge adresele curent selectate din listă</translation> </message> <message> <source>Export the data in the current tab to a file</source> <translation>Exportă datele din tab-ul curent într-un fişier</translation> </message> <message> <source>&amp;Export</source> <translation>&amp;Exportă</translation> </message> <message> <source>&amp;Delete</source> <translation>Şterge</translation> </message> <message> <source>Choose the address to send coins to</source> <translation>Alegeţi adresa unde vreţi să trimiteţi monezile</translation> </message> <message> <source>Choose the address to receive coins with</source> <translation>Alegeţi adresa unde vreţi să primiţi monezile</translation> </message> <message> <source>C&amp;hoose</source> <translation>&amp;Alegeţi</translation> </message> <message> <source>Sending addresses</source> <translation>Adresa destinatarului</translation> </message> <message> <source>Receiving addresses</source> <translation>Adresa de primire</translation> </message> <message> <source>These are your bespikecoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation>Acestea sînt adresele dumneavoastră bespikecoin pentru efectuarea plăţilor. Verificaţi întotdeauna cantitatea şi adresa de primire înainte de a trimite monezi.</translation> </message> <message> <source>These are your bespikecoin addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source> <translation>Acestea sînt adresele dumneavoastră bespikecoin folosite pentru a primi plati. Este recomandat să folosiţi o adresă nouă de primire pentru fiecare tranzacţie în parte.</translation> </message> <message> <source>Copy &amp;Label</source> <translation>Copiază &amp;eticheta</translation> </message> <message> <source>&amp;Edit</source> <translation>&amp;Editare</translation> </message> <message> <source>Export Address List</source> <translation>Exportă listă de adrese</translation> </message> <message> <source>Comma separated file (*.csv)</source> <translation>Fişier text cu valori separate prin virgulă (*.csv)</translation> </message> <message> <source>Exporting Failed</source> <translation>Export nereuşit</translation> </message> <message> <source>There was an error trying to save the address list to %1. Please try again.</source> <translation>A apărut o eroare la salvarea listei de adrese la %1. Vă rugăm să încercaţi din nou.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <source>Label</source> <translation>Etichetă</translation> </message> <message> <source>Address</source> <translation>Adresă</translation> </message> <message> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <source>Passphrase Dialog</source> <translation>Dialogul pentru fraza de acces</translation> </message> <message> <source>Enter passphrase</source> <translation>Introduceţi fraza de acces</translation> </message> <message> <source>New passphrase</source> <translation>Frază de acces nouă</translation> </message> <message> <source>Repeat new passphrase</source> <translation>Repetaţi noua frază de acces</translation> </message> <message> <source>Encrypt wallet</source> <translation>Criptare portofel</translation> </message> <message> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Această acţiune necesită fraza dvs. de acces pentru deblocarea portofelului.</translation> </message> <message> <source>Unlock wallet</source> <translation>Deblocare portofel</translation> </message> <message> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Această acţiune necesită fraza dvs. de acces pentru decriptarea portofelului.</translation> </message> <message> <source>Decrypt wallet</source> <translation>Decriptare portofel</translation> </message> <message> <source>Change passphrase</source> <translation>Schimbare frază de acces</translation> </message> <message> <source>Enter the old and new passphrase to the wallet.</source> <translation>Introduceţi vechea şi noua parolă pentru portofel.</translation> </message> <message> <source>Confirm wallet encryption</source> <translation>Confirmaţi criptarea portofelului</translation> </message> <message> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR bespikecoinS&lt;/b&gt;!</source> <translation>Atenţie: Dacă pierdeţi parola portofelului electronic după criptare, &lt;b&gt;VEŢI PIERDE ÎNTREAGA SUMĂ DE bespikecoin ACUMULATĂ&lt;/b&gt;!</translation> </message> <message> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Sigur doriţi să criptaţi portofelul dvs.?</translation> </message> <message> <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>IMPORTANT: Orice copie de siguranţă făcută anterior portofelului dumneavoastră ar trebui înlocuită cu cea generată cel mai recent, fişier criptat al portofelului. Pentru siguranţă, copiile de siguranţă vechi ale portofelului ne-criptat vor deveni inutile imediat ce veţi începe folosirea noului fişier criptat al portofelului.</translation> </message> <message> <source>Warning: The Caps Lock key is on!</source> <translation>Atenţie! Caps Lock este pornit!</translation> </message> <message> <source>Wallet encrypted</source> <translation>Portofel criptat</translation> </message> <message> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;ten or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Introduceţi noua parolă a portofelului electronic.&lt;br/&gt;Vă rugăm să folosiţi o parolă de&lt;b&gt;minimum 10 caractere aleatoare&lt;/b&gt;, sau &lt;b&gt;minimum 8 cuvinte&lt;/b&gt;.</translation> </message> <message> <source>bespikecoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bespikecoins from being stolen by malware infecting your computer.</source> <translation>bespikecoin se va închide acum pentru a termina procesul de criptare. Ţineţi minte că criptarea portofelului nu vă poate proteja în totalitate de furtul monedelor de către programe dăunătoare care vă infectează calculatorul.</translation> </message> <message> <source>Wallet encryption failed</source> <translation>Criptarea portofelului nu a reuşit</translation> </message> <message> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Criptarea portofelului nu a reuşit din cauza unei erori interne. Portofelul dvs. nu a fost criptat.</translation> </message> <message> <source>The supplied passphrases do not match.</source> <translation>Frazele de acces introduse nu se potrivesc.</translation> </message> <message> <source>Wallet unlock failed</source> <translation>Deblocarea portofelului nu a reuşit</translation> </message> <message> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Fraza de acces introdusă pentru decriptarea portofelului a fost incorectă.</translation> </message> <message> <source>Wallet decryption failed</source> <translation>Decriptarea portofelului nu a reuşit</translation> </message> <message> <source>Wallet passphrase was successfully changed.</source> <translation>Parola portofelului electronic a fost schimbată.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <source>Sign &amp;message...</source> <translation>Semnează &amp;mesaj...</translation> </message> <message> <source>Synchronizing with network...</source> <translation>Se sincronizează cu reţeaua...</translation> </message> <message> <source>&amp;Overview</source> <translation>&amp;Imagine de ansamblu</translation> </message> <message> <source>Node</source> <translation>Nod</translation> </message> <message> <source>Show general overview of wallet</source> <translation>Arată o stare generală de ansamblu a portofelului</translation> </message> <message> <source>&amp;Transactions</source> <translation>&amp;Tranzacţii</translation> </message> <message> <source>Browse transaction history</source> <translation>Răsfoire istoric tranzacţii</translation> </message> <message> <source>E&amp;xit</source> <translation>Ieşire</translation> </message> <message> <source>Quit application</source> <translation>Închide aplicaţia</translation> </message> <message> <source>About &amp;Qt</source> <translation>Despre &amp;Qt</translation> </message> <message> <source>Show information about Qt</source> <translation>Arată informaţii despre Qt</translation> </message> <message> <source>&amp;Options...</source> <translation>&amp;Opţiuni...</translation> </message> <message> <source>&amp;Encrypt Wallet...</source> <translation>Cript&amp;ează portofelul...</translation> </message> <message> <source>&amp;Backup Wallet...</source> <translation>Face o copie de siguranţă a portofelului...</translation> </message> <message> <source>&amp;Change Passphrase...</source> <translation>S&amp;chimbă parola...</translation> </message> <message> <source>&amp;Sending addresses...</source> <translation>Adrese de trimitere...</translation> </message> <message> <source>&amp;Receiving addresses...</source> <translation>Adrese de p&amp;rimire...</translation> </message> <message> <source>Open &amp;URI...</source> <translation>Deschide &amp;URI...</translation> </message> <message> <source>bespikecoin Core client</source> <translation>Clientul bespikecoin Core</translation> </message> <message> <source>Importing blocks from disk...</source> <translation>Import blocuri de pe disk...</translation> </message> <message> <source>Reindexing blocks on disk...</source> <translation>Se reindexează blocurile pe disc...</translation> </message> <message> <source>Send coins to a bespikecoin address</source> <translation>Trimite monede către o adresă bespikecoin</translation> </message> <message> <source>Modify configuration options for bespikecoin</source> <translation>Modifică opţiunile de configurare pentru bespikecoin</translation> </message> <message> <source>Backup wallet to another location</source> <translation>Creează o copie de rezervă a portofelului într-o locaţie diferită</translation> </message> <message> <source>Change the passphrase used for wallet encryption</source> <translation>Schimbă fraza de acces folosită pentru criptarea portofelului</translation> </message> <message> <source>&amp;Debug window</source> <translation>Fereastra de &amp;depanare</translation> </message> <message> <source>Open debugging and diagnostic console</source> <translation>Deschide consola de depanare şi diagnosticare</translation> </message> <message> <source>&amp;Verify message...</source> <translation>&amp;Verifică mesaj...</translation> </message> <message> <source>bespikecoin</source> <translation>bespikecoin</translation> </message> <message> <source>Wallet</source> <translation>Portofel</translation> </message> <message> <source>&amp;Send</source> <translation>Trimite</translation> </message> <message> <source>&amp;Receive</source> <translation>P&amp;rimeşte</translation> </message> <message> <source>Show information about bespikecoin Core</source> <translation>Arată informaţii despre bespikecoin Core</translation> </message> <message> <source>&amp;Show / Hide</source> <translation>Arată/Ascunde</translation> </message> <message> <source>Show or hide the main Window</source> <translation>Arată sau ascunde fereastra principală</translation> </message> <message> <source>Encrypt the private keys that belong to your wallet</source> <translation>Criptează cheile private ale portofelului dvs.</translation> </message> <message> <source>Sign messages with your bespikecoin addresses to prove you own them</source> <translation>Semnaţi mesaje cu adresa dvs. bespikecoin pentru a dovedi că vă aparţin</translation> </message> <message> <source>Verify messages to ensure they were signed with specified bespikecoin addresses</source> <translation>Verificaţi mesaje pentru a vă asigura că au fost semnate cu adresa bespikecoin specificată</translation> </message> <message> <source>&amp;File</source> <translation>&amp;Fişier</translation> </message> <message> <source>&amp;Settings</source> <translation>&amp;Setări</translation> </message> <message> <source>&amp;Help</source> <translation>A&amp;jutor</translation> </message> <message> <source>Tabs toolbar</source> <translation>Bara de unelte</translation> </message> <message> <source>bespikecoin Core</source> <translation>Nucleul bespikecoin</translation> </message> <message> <source>Request payments (generates QR codes and bespikecoin: URIs)</source> <translation>Cereţi plăţi (generează coduri QR şi bespikecoin-uri: URls)</translation> </message> <message> <source>&amp;About bespikecoin Core</source> <translation>&amp;Despre Nucleul bespikecoin</translation> </message> <message> <source>Show the list of used sending addresses and labels</source> <translation>Arată lista de adrese trimise şi etichetele folosite.</translation> </message> <message> <source>Show the list of used receiving addresses and labels</source> <translation>Arată lista de adrese pentru primire şi etichetele</translation> </message> <message> <source>Open a bespikecoin: URI or payment request</source> <translation>Deschidere bespikecoin: o adresa URI sau o cerere de plată</translation> </message> <message> <source>&amp;Command-line options</source> <translation>Opţiuni linie de &amp;comandă</translation> </message> <message> <source>Show the bespikecoin Core help message to get a list with possible bespikecoin command-line options</source> <translation>Arată mesajul de ajutor bespikecoin Core pentru a obţine o listă cu opţiunile posibile de linii de comandă bespikecoin</translation> </message> <message numerus="yes"> <source>%n active connection(s) to bespikecoin network</source> <translation><numerusform>%n conexiune activă către reţeaua bespikecoin</numerusform><numerusform>%n conexiuni active către reţeaua bespikecoin</numerusform><numerusform>%n de conexiuni active către reţeaua bespikecoin</numerusform></translation> </message> <message> <source>No block source available...</source> <translation>Nici o sursă de bloc disponibilă...</translation> </message> <message numerus="yes"> <source>%n hour(s)</source> <translation><numerusform>%n oră</numerusform><numerusform>%n ore</numerusform><numerusform>%n ore</numerusform></translation> </message> <message numerus="yes"> <source>%n day(s)</source> <translation><numerusform>%n zi</numerusform><numerusform>%n zile</numerusform><numerusform>%n de zile</numerusform></translation> </message> <message numerus="yes"> <source>%n week(s)</source> <translation><numerusform>%n săptămână</numerusform><numerusform>%n săptămâni</numerusform><numerusform>%n de săptămâni</numerusform></translation> </message> <message> <source>%1 and %2</source> <translation>%1 şi %2</translation> </message> <message numerus="yes"> <source>%n year(s)</source> <translation><numerusform>%n an</numerusform><numerusform>%n ani</numerusform><numerusform>%n de ani</numerusform></translation> </message> <message> <source>%1 behind</source> <translation>%1 în urmă</translation> </message> <message> <source>Last received block was generated %1 ago.</source> <translation>Ultimul bloc recepţionat a fost generat acum %1.</translation> </message> <message> <source>Transactions after this will not yet be visible.</source> <translation>Tranzacţiile după aceasta nu vor fi vizibile încă.</translation> </message> <message> <source>Error</source> <translation>Eroare</translation> </message> <message> <source>Warning</source> <translation>Avertisment</translation> </message> <message> <source>Information</source> <translation>Informaţie</translation> </message> <message> <source>Up to date</source> <translation>Actualizat</translation> </message> <message numerus="yes"> <source>Processed %n blocks of transaction history.</source> <translation><numerusform>S-a procesat %n bloc din istoricul tranzacţiilor.</numerusform><numerusform>S-au procesat %n blocuri din istoricul tranzacţiilor.</numerusform><numerusform>S-au procesat %n de blocuri din istoricul tranzacţiilor.</numerusform></translation> </message> <message> <source>Catching up...</source> <translation>Se actualizează...</translation> </message> <message> <source>Sent transaction</source> <translation>Tranzacţie expediată</translation> </message> <message> <source>Incoming transaction</source> <translation>Tranzacţie recepţionată</translation> </message> <message> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Data: %1 Suma: %2 Tipul: %3 Adresa: %4 </translation> </message> <message> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Portofelul este &lt;b&gt;criptat&lt;/b&gt; iar în momentul de faţă este &lt;b&gt;deblocat&lt;/b&gt;</translation> </message> <message> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Portofelul este &lt;b&gt;criptat&lt;/b&gt; iar în momentul de faţă este &lt;b&gt;blocat&lt;/b&gt;</translation> </message> </context> <context> <name>ClientModel</name> <message> <source>Network Alert</source> <translation>Alertă reţea</translation> </message> </context> <context> <name>CoinControlDialog</name> <message> <source>Coin Selection</source> <translation>Selectarea monezii</translation> </message> <message> <source>Quantity:</source> <translation>Cantitate:</translation> </message> <message> <source>Bytes:</source> <translation>Octeţi:</translation> </message> <message> <source>Amount:</source> <translation>Sumă:</translation> </message> <message> <source>Priority:</source> <translation>Prioritate:</translation> </message> <message> <source>Fee:</source> <translation>Taxă:</translation> </message> <message> <source>Dust:</source> <translation>Praf:</translation> </message> <message> <source>After Fee:</source> <translation>După taxă:</translation> </message> <message> <source>Change:</source> <translation>Schimb:</translation> </message> <message> <source>(un)select all</source> <translation>(de)selectare tot</translation> </message> <message> <source>Tree mode</source> <translation>Mod arbore</translation> </message> <message> <source>List mode</source> <translation>Mod listă</translation> </message> <message> <source>Amount</source> <translation>Sumă</translation> </message> <message> <source>Received with label</source> <translation>Primite cu eticheta</translation> </message> <message> <source>Received with address</source> <translation>Primite cu adresa</translation> </message> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Confirmations</source> <translation>Confirmări</translation> </message> <message> <source>Confirmed</source> <translation>Confirmat</translation> </message> <message> <source>Priority</source> <translation>Prioritate</translation> </message> <message> <source>Copy address</source> <translation>Copiază adresa</translation> </message> <message> <source>Copy label</source> <translation>Copiază eticheta</translation> </message> <message> <source>Copy amount</source> <translation>Copiază suma</translation> </message> <message> <source>Copy transaction ID</source> <translation>Copiază ID tranzacţie</translation> </message> <message> <source>Lock unspent</source> <translation>Blocare necheltuiţi</translation> </message> <message> <source>Unlock unspent</source> <translation>Deblocare necheltuiţi</translation> </message> <message> <source>Copy quantity</source> <translation>Copiază cantitea</translation> </message> <message> <source>Copy fee</source> <translation>Copiază taxa</translation> </message> <message> <source>Copy after fee</source> <translation>Copiază după taxă</translation> </message> <message> <source>Copy bytes</source> <translation>Copiază octeţi</translation> </message> <message> <source>Copy priority</source> <translation>Copiază prioritatea</translation> </message> <message> <source>Copy dust</source> <translation>Copiază praf</translation> </message> <message> <source>Copy change</source> <translation>Copiază rest</translation> </message> <message> <source>highest</source> <translation>cea mai mare</translation> </message> <message> <source>higher</source> <translation>mai mare</translation> </message> <message> <source>high</source> <translation>mare</translation> </message> <message> <source>medium-high</source> <translation>medie-mare</translation> </message> <message> <source>medium</source> <translation>medie</translation> </message> <message> <source>low-medium</source> <translation>medie-scăzută</translation> </message> <message> <source>low</source> <translation>scazută</translation> </message> <message> <source>lower</source> <translation>mai scăzută</translation> </message> <message> <source>lowest</source> <translation>cea mai scăzută</translation> </message> <message> <source>none</source> <translation>nimic</translation> </message> <message> <source>Can vary +/- %1 satoshi(s) per input.</source> <translation>Poate varia +/- %1 satoshi pentru fiecare intrare.</translation> </message> <message> <source>yes</source> <translation>da</translation> </message> <message> <source>no</source> <translation>nu</translation> </message> <message> <source>This label turns red, if the transaction size is greater than 1000 bytes.</source> <translation>Această etichetă devine roşie, în cazul în care dimensiunea tranzacţiei este mai mare de 1000 de octeţi.</translation> </message> <message> <source>Can vary +/- 1 byte per input.</source> <translation>Poate varia +/- 1 octet pentru fiecare intrare.</translation> </message> <message> <source>Transactions with higher priority are more likely to get included into a block.</source> <translation>Tranzacţiile cu prioritate mai mare sînt mai susceptibile de fi incluse într-un bloc.</translation> </message> <message> <source>This label turns red, if the priority is smaller than "medium".</source> <translation>Această etichetă devine roşie dacă prioritatea e mai mică decît "medie".</translation> </message> <message> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> <message> <source>change from %1 (%2)</source> <translation>restul de la %1 (%2)</translation> </message> <message> <source>(change)</source> <translation>(rest)</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <source>Edit Address</source> <translation>Editează adresa</translation> </message> <message> <source>&amp;Label</source> <translation>&amp;Etichetă</translation> </message> <message> <source>The label associated with this address list entry</source> <translation>Eticheta asociată cu această intrare din listă.</translation> </message> <message> <source>The address associated with this address list entry. This can only be modified for sending addresses.</source> <translation>Adresa asociată cu această adresă din listă. Aceasta poate fi modificată doar pentru adresele de trimitere.</translation> </message> <message> <source>&amp;Address</source> <translation>&amp;Adresă</translation> </message> <message> <source>New receiving address</source> <translation>Noua adresă de primire</translation> </message> <message> <source>New sending address</source> <translation>Noua adresă de trimitere</translation> </message> <message> <source>Edit receiving address</source> <translation>Editează adresa de primire</translation> </message> <message> <source>Edit sending address</source> <translation>Editează adresa de trimitere</translation> </message> <message> <source>The entered address "%1" is already in the address book.</source> <translation>Adresa introdusă "%1" se află deja în lista de adrese.</translation> </message> <message> <source>The entered address "%1" is not a valid bespikecoin address.</source> <translation>Adresa introdusă "%1" nu este o adresă bespikecoin validă.</translation> </message> <message> <source>Could not unlock wallet.</source> <translation>Portofelul nu a putut fi deblocat.</translation> </message> <message> <source>New key generation failed.</source> <translation>Generarea noii chei nu a reuşit.</translation> </message> </context> <context> <name>FreespaceChecker</name> <message> <source>A new data directory will be created.</source> <translation>Va fi creat un nou dosar de date.</translation> </message> <message> <source>name</source> <translation>nume</translation> </message> <message> <source>Directory already exists. Add %1 if you intend to create a new directory here.</source> <translation>Dosarul deja există. Adaugă %1 dacă intenţionaţi să creaţi un nou dosar aici.</translation> </message> <message> <source>Path already exists, and is not a directory.</source> <translation>Calea deja există şi nu este un dosar.</translation> </message> <message> <source>Cannot create data directory here.</source> <translation>Nu se poate crea un dosar de date aici.</translation> </message> </context> <context> <name>HelpMessageDialog</name> <message> <source>bespikecoin Core</source> <translation>Nucleul bespikecoin</translation> </message> <message> <source>version</source> <translation>versiunea</translation> </message> <message> <source>(%1-bit)</source> <translation>(%1-bit)</translation> </message> <message> <source>About bespikecoin Core</source> <translation>Despre Nucleul bespikecoin</translation> </message> <message> <source>Command-line options</source> <translation>Opţiuni linie de comandă</translation> </message> <message> <source>Usage:</source> <translation>Uz:</translation> </message> <message> <source>command-line options</source> <translation>Opţiuni linie de comandă</translation> </message> <message> <source>UI options</source> <translation>Opţiuni UI</translation> </message> <message> <source>Set language, for example "de_DE" (default: system locale)</source> <translation>Setează limba, de exemplu: "de_DE" (implicit: sistem local)</translation> </message> <message> <source>Start minimized</source> <translation>Începe minimizat</translation> </message> <message> <source>Set SSL root certificates for payment request (default: -system-)</source> <translation>Setare rădăcină certificat SSL pentru cerere de plată (implicit: -sistem- )</translation> </message> <message> <source>Show splash screen on startup (default: 1)</source> <translation>Afişează pe ecran splash la pornire (implicit: 1)</translation> </message> <message> <source>Choose data directory on startup (default: 0)</source> <translation>Alege dosarul de date la pornire (implicit: 0)</translation> </message> </context> <context> <name>Intro</name> <message> <source>Welcome</source> <translation>Bun venit</translation> </message> <message> <source>Welcome to bespikecoin Core.</source> <translation>Bine aţi venit la Nucleul bespikecoin.</translation> </message> <message> <source>As this is the first time the program is launched, you can choose where bespikecoin Core will store its data.</source> <translation>Dacă aceasta este prima dată cînd programul este lansat, puteţi alege unde Nucleul bespikecoin va stoca datele.</translation> </message> <message> <source>Use the default data directory</source> <translation>Foloseşte dosarul de date implicit</translation> </message> <message> <source>Use a custom data directory:</source> <translation>Foloseşte un dosar de date personalizat:</translation> </message> <message> <source>bespikecoin Core</source> <translation>Nucleul bespikecoin</translation> </message> <message> <source>Error: Specified data directory "%1" cannot be created.</source> <translation>Eroare: Directorul datelor specificate "%1" nu poate fi creat.</translation> </message> <message> <source>Error</source> <translation>Eroare</translation> </message> <message numerus="yes"> <source>%n GB of free space available</source> <translation><numerusform>%n GB de spaţiu liber disponibil</numerusform><numerusform>%n GB de spaţiu liber disponibil</numerusform><numerusform>%n GB de spaţiu liber disponibil</numerusform></translation> </message> <message numerus="yes"> <source>(of %n GB needed)</source> <translation><numerusform>(din %n GB necesar)</numerusform><numerusform>(din %n GB necesari)</numerusform><numerusform>(din %n GB necesari)</numerusform></translation> </message> </context> <context> <name>OpenURIDialog</name> <message> <source>Open URI</source> <translation>Deschide URI</translation> </message> <message> <source>Open payment request from URI or file</source> <translation>Deschideţi cerere de plată prin intermediul adresei URI sau a fişierului</translation> </message> <message> <source>URI:</source> <translation>URI:</translation> </message> <message> <source>Select payment request file</source> <translation>Selectaţi fişierul cerere de plată</translation> </message> <message> <source>Select payment request file to open</source> <translation>Selectaţi fişierul cerere de plată pentru deschidere</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <source>Options</source> <translation>Opţiuni</translation> </message> <message> <source>&amp;Main</source> <translation>Principal</translation> </message> <message> <source>Automatically start bespikecoin after logging in to the system.</source> <translation>Porneşte automat bespikecoin după pornirea calculatorului.</translation> </message> <message> <source>&amp;Start bespikecoin on system login</source> <translation>Porneşte bespikecoin la pornirea sistemului</translation> </message> <message> <source>Size of &amp;database cache</source> <translation>Mărimea bazei de &amp;date cache</translation> </message> <message> <source>MB</source> <translation>MB</translation> </message> <message> <source>Number of script &amp;verification threads</source> <translation>Numărul de thread-uri de &amp;verificare</translation> </message> <message> <source>Accept connections from outside</source> <translation>Acceptă conexiuni din exterior</translation> </message> <message> <source>Allow incoming connections</source> <translation>Permite conexiuni de intrare</translation> </message> <message> <source>IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)</source> <translation>Adresa IP a serverului proxy (de exemplu: IPv4: 127.0.0.1 / IPv6: ::1)</translation> </message> <message> <source>Third party URLs (e.g. a block explorer) that appear in the transactions tab as context menu items. %s in the URL is replaced by transaction hash. Multiple URLs are separated by vertical bar |.</source> <translation>URL-uri terţe părţi (de exemplu, un explorator de bloc), care apar în tab-ul tranzacţiilor ca elemente de meniu contextual. %s în URL este înlocuit cu hash de tranzacţie. URL-urile multiple sînt separate prin bară verticală |.</translation> </message> <message> <source>Third party transaction URLs</source> <translation>URL-uri tranzacţii terţe părţi</translation> </message> <message> <source>Active command-line options that override above options:</source> <translation>Opţiuni linie de comandă active care oprimă opţiunile de mai sus:</translation> </message> <message> <source>Reset all client options to default.</source> <translation>Resetează toate setările clientului la valorile implicite.</translation> </message> <message> <source>&amp;Reset Options</source> <translation>&amp;Resetează opţiunile</translation> </message> <message> <source>&amp;Network</source> <translation>Reţea</translation> </message> <message> <source>(0 = auto, &lt;0 = leave that many cores free)</source> <translation>(0 = automat, &lt;0 = lasă atîtea nuclee libere)</translation> </message> <message> <source>W&amp;allet</source> <translation>Portofel</translation> </message> <message> <source>Expert</source> <translation>Expert</translation> </message> <message> <source>Enable coin &amp;control features</source> <translation>Activare caracteristici de control ale monedei</translation> </message> <message> <source>If you disable the spending of unconfirmed change, the change from a transaction cannot be used until that transaction has at least one confirmation. This also affects how your balance is computed.</source> <translation>Dacă dezactivaţi cheltuirea restului neconfirmat, restul dintr-o tranzacţie nu poate fi folosit pînă cînd tranzacţia are cel puţin o confirmare. Aceasta afectează de asemenea calcularea soldului.</translation> </message> <message> <source>&amp;Spend unconfirmed change</source> <translation>Cheltuire rest neconfirmat</translation> </message> <message> <source>Automatically open the bespikecoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Deschide automat în router portul aferent clientului bespikecoin. Funcţionează doar dacă routerul duportă UPnP şi e activat.</translation> </message> <message> <source>Map port using &amp;UPnP</source> <translation>Mapare port folosind &amp;UPnP</translation> </message> <message> <source>Connect to the bespikecoin network through a SOCKS5 proxy.</source> <translation>Conectare la reţeaua bespikecoin printr-un proxy SOCKS.</translation> </message> <message> <source>&amp;Connect through SOCKS5 proxy (default proxy):</source> <translation>&amp;Conectare printr-un proxy SOCKS (implicit proxy):</translation> </message> <message> <source>Proxy &amp;IP:</source> <translation>Proxy &amp;IP:</translation> </message> <message> <source>&amp;Port:</source> <translation>&amp;Port:</translation> </message> <message> <source>Port of the proxy (e.g. 9050)</source> <translation>Portul proxy (de exemplu: 9050)</translation> </message> <message> <source>&amp;Window</source> <translation>&amp;Fereastră</translation> </message> <message> <source>Show only a tray icon after minimizing the window.</source> <translation>Arată doar un icon în tray la ascunderea ferestrei</translation> </message> <message> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Minimizare în tray în loc de taskbar</translation> </message> <message> <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>Ascunde fereastra în locul părăsirii programului în momentul închiderii ferestrei. Cînd acestă opţiune e activă, aplicaţia se va opri doar în momentul selectării comenzii 'Închide aplicaţia' din menu.</translation> </message> <message> <source>M&amp;inimize on close</source> <translation>M&amp;inimizare fereastră în locul închiderii programului</translation> </message> <message> <source>&amp;Display</source> <translation>&amp;Afişare</translation> </message> <message> <source>User Interface &amp;language:</source> <translation>&amp;Limbă interfaţă utilizator</translation> </message> <message> <source>The user interface language can be set here. This setting will take effect after restarting bespikecoin.</source> <translation>Limba interfeţei utilizatorului poate fi setată aici. Această setare va avea efect după repornirea bespikecoin.</translation> </message> <message> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Unitatea de măsură pentru afişarea sumelor:</translation> </message> <message> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Alegeţi subdiviziunea folosită la afişarea interfeţei şi la trimiterea de bespikecoin.</translation> </message> <message> <source>Whether to show coin control features or not.</source> <translation>Arată controlul caracteristicilor monedei sau nu.</translation> </message> <message> <source>&amp;OK</source> <translation>&amp;OK</translation> </message> <message> <source>&amp;Cancel</source> <translation>Renunţă</translation> </message> <message> <source>default</source> <translation>iniţial</translation> </message> <message> <source>none</source> <translation>nimic</translation> </message> <message> <source>Confirm options reset</source> <translation>Confirmă resetarea opţiunilor</translation> </message> <message> <source>Client restart required to activate changes.</source> <translation>Este necesară repornirea clientului pentru a activa schimbările.</translation> </message> <message> <source>Client will be shutdown, do you want to proceed?</source> <translation>Clientul va fi închis, doriţi să continuaţi?</translation> </message> <message> <source>This change would require a client restart.</source> <translation>Această schimbare necesită o repornire a clientului.</translation> </message> <message> <source>The supplied proxy address is invalid.</source> <translation>Adresa bespikecoin pe care aţi specificat-o nu este validă.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <source>Form</source> <translation>Form</translation> </message> <message> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the bespikecoin network after a connection is established, but this process has not completed yet.</source> <translation>Informaţiile afişate pot fi neactualizate. Portofelul dvs. se sincronizează automat cu reţeaua bespikecoin după ce o conexiune este stabilită, dar acest proces nu a fost finalizat încă.</translation> </message> <message> <source>Watch-only:</source> <translation>Doar-supraveghere:</translation> </message> <message> <source>Available:</source> <translation>Disponibil:</translation> </message> <message> <source>Your current spendable balance</source> <translation>Balanţa dvs. curentă de cheltuieli</translation> </message> <message> <source>Pending:</source> <translation>În aşteptare:</translation> </message> <message> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source> <translation>Totalul tranzacţiilor care nu sunt confirmate încă şi care nu sunt încă adunate la balanţa de cheltuieli</translation> </message> <message> <source>Immature:</source> <translation>Nematurizat:</translation> </message> <message> <source>Mined balance that has not yet matured</source> <translation>Balanţa minertită care nu s-a maturizat încă</translation> </message> <message> <source>Balances</source> <translation>Balanţă</translation> </message> <message> <source>Total:</source> <translation>Total:</translation> </message> <message> <source>Your current total balance</source> <translation>Balanţa totală curentă</translation> </message> <message> <source>Your current balance in watch-only addresses</source> <translation>Soldul dvs. curent în adresele doar-supraveghere</translation> </message> <message> <source>Spendable:</source> <translation>Cheltuibil:</translation> </message> <message> <source>Recent transactions</source> <translation>Tranzacţii recente</translation> </message> <message> <source>Unconfirmed transactions to watch-only addresses</source> <translation>Tranzacţii neconfirmate la adresele doar-supraveghere</translation> </message> <message> <source>Mined balance in watch-only addresses that has not yet matured</source> <translation>Balanţă minată în adresele doar-supraveghere care nu s-a maturizat încă</translation> </message> <message> <source>Current total balance in watch-only addresses</source> <translation>Soldul dvs. total în adresele doar-supraveghere</translation> </message> <message> <source>out of sync</source> <translation>nesincronizat</translation> </message> </context> <context> <name>PaymentServer</name> <message> <source>URI handling</source> <translation>Gestionare URI</translation> </message> <message> <source>Invalid payment address %1</source> <translation>Adresă pentru plată nevalidă %1</translation> </message> <message> <source>Payment request rejected</source> <translation>Cerere de plată refuzată</translation> </message> <message> <source>Payment request network doesn't match client network.</source> <translation>Cererea de plată din reţea nu se potriveşte cu clientul din reţea</translation> </message> <message> <source>Payment request has expired.</source> <translation>Cererea de plată a expirat.</translation> </message> <message> <source>Payment request is not initialized.</source> <translation>Cererea de plată nu este iniţializată.</translation> </message> <message> <source>Requested payment amount of %1 is too small (considered dust).</source> <translation>Suma cerută de plată de %1 este prea mică (considerată praf).</translation> </message> <message> <source>Payment request error</source> <translation>Eroare la cererea de plată</translation> </message> <message> <source>Cannot start bespikecoin: click-to-pay handler</source> <translation>Nu poate porni bespikecoin: manipulator clic-pentru-plată</translation> </message> <message> <source>Payment request fetch URL is invalid: %1</source> <translation>URL-ul cererii de plată preluat nu este valid: %1</translation> </message> <message> <source>URI cannot be parsed! This can be caused by an invalid bespikecoin address or malformed URI parameters.</source> <translation>URI nu poate fi analizat! Acest lucru poate fi cauzat de o adresă bespikecoin nevalidă sau parametri URI deformaţi.</translation> </message> <message> <source>Payment request file handling</source> <translation>Manipulare fişier cerere de plată</translation> </message> <message> <source>Payment request file cannot be read! This can be caused by an invalid payment request file.</source> <translation>Fişierul cerere de plată nu poate fi citit! Cauza poate fi un fişier cerere de plată nevalid.</translation> </message> <message> <source>Unverified payment requests to custom payment scripts are unsupported.</source> <translation>Cererile de plată neverificate prin script-uri personalizate de plată nu sînt suportate.</translation> </message> <message> <source>Refund from %1</source> <translation>Rambursare de la %1</translation> </message> <message> <source>Payment request %1 is too large (%2 bytes, allowed %3 bytes).</source> <translation>Cererea de plată %1 este prea mare (%2 octeţi, permis %3 octeţi).</translation> </message> <message> <source>Payment request DoS protection</source> <translation>Protecţie DoS cerere de plată</translation> </message> <message> <source>Error communicating with %1: %2</source> <translation>Eroare la comunicarea cu %1: %2</translation> </message> <message> <source>Payment request cannot be parsed!</source> <translation>Cererea de plată nu poate fi analizată!</translation> </message> <message> <source>Bad response from server %1</source> <translation>Răspuns greşit de la server %1</translation> </message> <message> <source>Payment acknowledged</source> <translation>Plată acceptată</translation> </message> <message> <source>Network request error</source> <translation>Eroare în cererea de reţea</translation> </message> </context> <context> <name>PeerTableModel</name> <message> <source>User Agent</source> <translation>Agent utilizator</translation> </message> <message> <source>Address/Hostname</source> <translation>Adresă/Nume gazdă</translation> </message> <message> <source>Ping Time</source> <translation>Timp ping</translation> </message> </context> <context> <name>QObject</name> <message> <source>Amount</source> <translation>Cantitate</translation> </message> <message> <source>Enter a bespikecoin address (e.g. %1)</source> <translation>Introduceţi o adresă bespikecoin (de exemplu %1)</translation> </message> <message> <source>%1 d</source> <translation>%1 z</translation> </message> <message> <source>%1 h</source> <translation>%1 h</translation> </message> <message> <source>%1 m</source> <translation>%1 m</translation> </message> <message> <source>%1 s</source> <translation>%1 s</translation> </message> <message> <source>NETWORK</source> <translation>REŢEA</translation> </message> <message> <source>UNKNOWN</source> <translation>NECUNOSCUT</translation> </message> <message> <source>None</source> <translation>Niciuna</translation> </message> <message> <source>N/A</source> <translation>N/A</translation> </message> <message> <source>%1 ms</source> <translation>%1 ms</translation> </message> </context> <context> <name>QRImageWidget</name> <message> <source>&amp;Save Image...</source> <translation>&amp;Salvează imagine...</translation> </message> <message> <source>&amp;Copy Image</source> <translation>&amp;Copiază imaginea</translation> </message> <message> <source>Save QR Code</source> <translation>Salvează codul QR</translation> </message> <message> <source>PNG Image (*.png)</source> <translation>Imagine de tip PNG (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <source>Client name</source> <translation>Nume client</translation> </message> <message> <source>N/A</source> <translation>indisponibil</translation> </message> <message> <source>Client version</source> <translation>Versiune client</translation> </message> <message> <source>&amp;Information</source> <translation>&amp;Informaţii</translation> </message> <message> <source>Debug window</source> <translation>Fereastra de depanare</translation> </message> <message> <source>General</source> <translation>General</translation> </message> <message> <source>Using OpenSSL version</source> <translation>Foloseşte OpenSSL versiunea</translation> </message> <message> <source>Using BerkeleyDB version</source> <translation>Foloseşte BerkeleyDB versiunea</translation> </message> <message> <source>Startup time</source> <translation>Durata pornirii</translation> </message> <message> <source>Network</source> <translation>Reţea</translation> </message> <message> <source>Name</source> <translation>Nume</translation> </message> <message> <source>Number of connections</source> <translation>Numărul de conexiuni</translation> </message> <message> <source>Block chain</source> <translation>Lanţ de blocuri</translation> </message> <message> <source>Current number of blocks</source> <translation>Numărul curent de blocuri</translation> </message> <message> <source>Received</source> <translation>Recepţionat</translation> </message> <message> <source>Sent</source> <translation>Trimis</translation> </message> <message> <source>&amp;Peers</source> <translation>&amp;Parteneri</translation> </message> <message> <source>Select a peer to view detailed information.</source> <translation>Selectaţi un partener pentru a vedea informaţiile detaliate.</translation> </message> <message> <source>Direction</source> <translation>Direcţie</translation> </message> <message> <source>Version</source> <translation>Versiune</translation> </message> <message> <source>User Agent</source> <translation>Agent utilizator</translation> </message> <message> <source>Services</source> <translation>Servicii</translation> </message> <message> <source>Connection Time</source> <translation>Timp conexiune</translation> </message> <message> <source>Last Send</source> <translation>Ultima trimitere</translation> </message> <message> <source>Last Receive</source> <translation>Ultima primire</translation> </message> <message> <source>Bytes Sent</source> <translation>Octeţi trimişi</translation> </message> <message> <source>Bytes Received</source> <translation>Octeţi primiţi</translation> </message> <message> <source>Ping Time</source> <translation>Timp ping</translation> </message> <message> <source>Last block time</source> <translation>Data ultimului bloc</translation> </message> <message> <source>&amp;Open</source> <translation>&amp;Deschide</translation> </message> <message> <source>&amp;Console</source> <translation>&amp;Consolă</translation> </message> <message> <source>&amp;Network Traffic</source> <translation>Trafic reţea</translation> </message> <message> <source>&amp;Clear</source> <translation>&amp;Curăţă</translation> </message> <message> <source>Totals</source> <translation>Totaluri</translation> </message> <message> <source>In:</source> <translation>Intrare:</translation> </message> <message> <source>Out:</source> <translation>Ieşire:</translation> </message> <message> <source>Build date</source> <translation>Construit la data</translation> </message> <message> <source>Debug log file</source> <translation>Fişier jurnal depanare</translation> </message> <message> <source>Open the bespikecoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Deschide fişierul jurnal depanare din directorul curent. Aceasta poate dura cîteva secunde pentru fişierele mai mari.</translation> </message> <message> <source>Clear console</source> <translation>Curăţă consola</translation> </message> <message> <source>Welcome to the bespikecoin RPC console.</source> <translation>Bun venit la consola bespikecoin RPC.</translation> </message> <message> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Folosiţi săgetile sus şi jos pentru a naviga în istoric şi &lt;b&gt;Ctrl-L&lt;/b&gt; pentru a curăţa.</translation> </message> <message> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Scrieţi &lt;b&gt;help&lt;/b&gt; pentru a vedea comenzile disponibile.</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>via %1</translation> </message> <message> <source>never</source> <translation>niciodată</translation> </message> <message> <source>Inbound</source> <translation>Intrare</translation> </message> <message> <source>Outbound</source> <translation>Ieşire</translation> </message> <message> <source>Unknown</source> <translation>Necunoscut</translation> </message> <message> <source>Fetching...</source> <translation>Preluare...</translation> </message> </context> <context> <name>ReceiveCoinsDialog</name> <message> <source>&amp;Amount:</source> <translation>Sum&amp;a:</translation> </message> <message> <source>&amp;Label:</source> <translation>&amp;Etichetă:</translation> </message> <message> <source>&amp;Message:</source> <translation>&amp;Mesaj:</translation> </message> <message> <source>Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before.</source> <translation>Refoloseşte una din adresele de primire folosite anterior. Refolosirea adreselor poate crea probleme de securitate şi confidenţialitate. Nu folosiţi această opţiune decît dacă o cerere de regenerare a plăţii a fost făcută anterior.</translation> </message> <message> <source>R&amp;euse an existing receiving address (not recommended)</source> <translation>R&amp;efoloseşte o adresă de primire (nu este recomandat)</translation> </message> <message> <source>An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the bespikecoin network.</source> <translation>Un mesaj opţional de ataşat la cererea de plată, care va fi afişat cînd cererea este deschisă. Notă: Acest mesaj nu va fi trimis cu plata către reţeaua bespikecoin.</translation> </message> <message> <source>An optional label to associate with the new receiving address.</source> <translation>O etichetă opţională de asociat cu adresa de primire.</translation> </message> <message> <source>Use this form to request payments. All fields are &lt;b&gt;optional&lt;/b&gt;.</source> <translation>Foloseşte acest formular pentru a solicita plăţi. Toate cîmpurile sînt &lt;b&gt;opţionale&lt;/b&gt;.</translation> </message> <message> <source>An optional amount to request. Leave this empty or zero to not request a specific amount.</source> <translation>O sumă opţională de cerut. Lăsaţi gol sau zero pentru a nu cere o sumă anume.</translation> </message> <message> <source>Clear all fields of the form.</source> <translation>Curăţă toate cîmpurile formularului.</translation> </message> <message> <source>Clear</source> <translation>Curăţă</translation> </message> <message> <source>Requested payments history</source> <translation>Istoricul plăţilor cerute</translation> </message> <message> <source>&amp;Request payment</source> <translation>&amp;Cerere plată</translation> </message> <message> <source>Show the selected request (does the same as double clicking an entry)</source> <translation>Arată cererea selectată (acelaşi lucru ca şi dublu-clic pe o înregistrare)</translation> </message> <message> <source>Show</source> <translation>Arată</translation> </message> <message> <source>Remove the selected entries from the list</source> <translation>Înlătură intrările selectate din listă</translation> </message> <message> <source>Remove</source> <translation>Înlătură</translation> </message> <message> <source>Copy label</source> <translation>Copiază eticheta</translation> </message> <message> <source>Copy message</source> <translation>Copiază mesajul</translation> </message> <message> <source>Copy amount</source> <translation>Copiază suma</translation> </message> </context> <context> <name>ReceiveRequestDialog</name> <message> <source>QR Code</source> <translation>Cod QR</translation> </message> <message> <source>Copy &amp;URI</source> <translation>Copiază &amp;URl</translation> </message> <message> <source>Copy &amp;Address</source> <translation>Copiază &amp;adresa</translation> </message> <message> <source>&amp;Save Image...</source> <translation>&amp;Salvează imaginea...</translation> </message> <message> <source>Request payment to %1</source> <translation>Cere plata pentru %1</translation> </message> <message> <source>Payment information</source> <translation>Informaţiile plăţii</translation> </message> <message> <source>URI</source> <translation>URI</translation> </message> <message> <source>Address</source> <translation>Adresă</translation> </message> <message> <source>Amount</source> <translation>Sumă</translation> </message> <message> <source>Label</source> <translation>Etichetă</translation> </message> <message> <source>Message</source> <translation>Mesaj</translation> </message> <message> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>URI rezultat este prea lung, încearcaţi să reduceţi textul pentru etichetă / mesaj.</translation> </message> <message> <source>Error encoding URI into QR Code.</source> <translation>Eroare la codarea URl-ului în cod QR.</translation> </message> </context> <context> <name>RecentRequestsTableModel</name> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Label</source> <translation>Etichetă</translation> </message> <message> <source>Message</source> <translation>Mesaj</translation> </message> <message> <source>Amount</source> <translation>Sumă</translation> </message> <message> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> <message> <source>(no message)</source> <translation>(nici un mesaj)</translation> </message> <message> <source>(no amount)</source> <translation>(sumă nulă)</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <source>Send Coins</source> <translation>Trimite monede</translation> </message> <message> <source>Coin Control Features</source> <translation>Caracteristici de control ale monedei</translation> </message> <message> <source>Inputs...</source> <translation>Intrări...</translation> </message> <message> <source>automatically selected</source> <translation>selecţie automată</translation> </message> <message> <source>Insufficient funds!</source> <translation>Fonduri insuficiente!</translation> </message> <message> <source>Quantity:</source> <translation>Cantitate:</translation> </message> <message> <source>Bytes:</source> <translation>Octeţi:</translation> </message> <message> <source>Amount:</source> <translation>Sumă:</translation> </message> <message> <source>Priority:</source> <translation>Prioritate:</translation> </message> <message> <source>Fee:</source> <translation>Taxă:</translation> </message> <message> <source>After Fee:</source> <translation>După taxă:</translation> </message> <message> <source>Change:</source> <translation>Rest:</translation> </message> <message> <source>If this is activated, but the change address is empty or invalid, change will be sent to a newly generated address.</source> <translation>Dacă este activat, dar adresa de rest este goală sau nevalidă, restul va fi trimis la o adresă nou generată.</translation> </message> <message> <source>Custom change address</source> <translation>Adresă personalizată de rest</translation> </message> <message> <source>Transaction Fee:</source> <translation>Taxă tranzacţie:</translation> </message> <message> <source>Choose...</source> <translation>Alegeţi...</translation> </message> <message> <source>Minimize</source> <translation>Minimizare</translation> </message> <message> <source>per kilobyte</source> <translation>per kilooctet</translation> </message> <message> <source>total at least</source> <translation>total cel puţin</translation> </message> <message> <source>Recommended:</source> <translation>Recomandat:</translation> </message> <message> <source>Custom:</source> <translation>Personalizat:</translation> </message> <message> <source>Confirmation time:</source> <translation>Timp confirmare:</translation> </message> <message> <source>normal</source> <translation>normal</translation> </message> <message> <source>fast</source> <translation>rapid</translation> </message> <message> <source>Send as zero-fee transaction if possible</source> <translation>Trimite ca taxă zero dacă este posibil</translation> </message> <message> <source>(confirmation may take longer)</source> <translation>(confirmarea poate dura mai mult)</translation> </message> <message> <source>Send to multiple recipients at once</source> <translation>Trimite simultan către mai mulţi destinatari</translation> </message> <message> <source>Add &amp;Recipient</source> <translation>Adaugă destinata&amp;r</translation> </message> <message> <source>Clear all fields of the form.</source> <translation>Şterge toate cîmpurile formularului.</translation> </message> <message> <source>Dust:</source> <translation>Praf:</translation> </message> <message> <source>Clear &amp;All</source> <translation>Curăţă to&amp;ate</translation> </message> <message> <source>Balance:</source> <translation>Balanţă:</translation> </message> <message> <source>Confirm the send action</source> <translation>Confirmă operaţiunea de trimitere</translation> </message> <message> <source>S&amp;end</source> <translation>Trimit&amp;e</translation> </message> <message> <source>Confirm send coins</source> <translation>Confirmă trimiterea de monede</translation> </message> <message> <source>%1 to %2</source> <translation>%1 la %2</translation> </message> <message> <source>Copy quantity</source> <translation>Copiază cantitea</translation> </message> <message> <source>Copy amount</source> <translation>Copiază suma</translation> </message> <message> <source>Copy fee</source> <translation>Copiază taxa</translation> </message> <message> <source>Copy after fee</source> <translation>Copiază după taxă</translation> </message> <message> <source>Copy bytes</source> <translation>Copiază octeţi</translation> </message> <message> <source>Copy priority</source> <translation>Copiază prioritatea</translation> </message> <message> <source>Copy change</source> <translation>Copiază rest</translation> </message> <message> <source>or</source> <translation>sau</translation> </message> <message> <source>The recipient address is not valid, please recheck.</source> <translation>Adresa destinatarului nu este validă, vă rugăm să o verificaţi.</translation> </message> <message> <source>The amount to pay must be larger than 0.</source> <translation>Suma de plată trebuie să fie mai mare decît 0.</translation> </message> <message> <source>The amount exceeds your balance.</source> <translation>Suma depăşeşte soldul contului.</translation> </message> <message> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Totalul depăşeşte soldul contului dacă se include şi plata taxei de %1.</translation> </message> <message> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>S-a descoperit o adresă duplicat.Se poate trimite către fiecare adresă doar o singură dată per operaţiune.</translation> </message> <message> <source>Transaction creation failed!</source> <translation>Creare tranzacţie nereuşită!</translation> </message> <message> <source>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>Tranzacţia a fost respinsă! Acest lucru se poate întîmpla dacă o parte din monedele tale din portofel au fost deja cheltuite, la fel ca şi cum aţi fi folosit o copie a wallet.dat şi monedele au fost cheltuite în copie, dar nu au fost marcate ca şi cheltuite şi aici.</translation> </message> <message> <source>Pay only the minimum fee of %1</source> <translation>Plăteşte doar taxa minimă de %1</translation> </message> <message> <source>Warning: Invalid bespikecoin address</source> <translation>Atenţie: Adresa bespikecoin nevalidă!</translation> </message> <message> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> <message> <source>Warning: Unknown change address</source> <translation>Atenţie: Adresă de rest necunoscută</translation> </message> <message> <source>Copy dust</source> <translation>Copiază praf</translation> </message> <message> <source>Are you sure you want to send?</source> <translation>Sigur doriţi să trimiteţi?</translation> </message> <message> <source>added as transaction fee</source> <translation>adăugat ca taxă de tranzacţie</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <source>A&amp;mount:</source> <translation>Su&amp;mă:</translation> </message> <message> <source>Pay &amp;To:</source> <translation>Plăteşte că&amp;tre:</translation> </message> <message> <source>Enter a label for this address to add it to your address book</source> <translation>Introduceţi o etichetă pentru această adresă pentru a fi adăugată în lista dvs. de adrese</translation> </message> <message> <source>&amp;Label:</source> <translation>&amp;Etichetă:</translation> </message> <message> <source>Choose previously used address</source> <translation>Alegeţi adrese folosite anterior</translation> </message> <message> <source>This is a normal payment.</source> <translation>Aceasta este o tranzacţie normală.</translation> </message> <message> <source>The bespikecoin address to send the payment to</source> <translation>Adresa bespikecoin către care se face plata</translation> </message> <message> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <source>Paste address from clipboard</source> <translation>Lipeşte adresa din clipboard</translation> </message> <message> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <source>Remove this entry</source> <translation>Înlătură această intrare</translation> </message> <message> <source>Message:</source> <translation>Mesaj:</translation> </message> <message> <source>This is a verified payment request.</source> <translation>Aceasta este o cerere de plată verificată.</translation> </message> <message> <source>Enter a label for this address to add it to the list of used addresses</source> <translation>Introduceţi eticheta pentru ca această adresa să fie introdusă în lista de adrese folosite</translation> </message> <message> <source>A message that was attached to the bespikecoin: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the bespikecoin network.</source> <translation>un mesaj a fost ataşat la bespikecoin: URI care va fi stocat cu tranzacţia pentru referinţa dvs. Notă: Acest mesaj nu va fi trimis către reţeaua bespikecoin.</translation> </message> <message> <source>This is an unverified payment request.</source> <translation>Aceasta este o cerere de plata neverificată.</translation> </message> <message> <source>Pay To:</source> <translation>Plăteşte către:</translation> </message> <message> <source>Memo:</source> <translation>Memo:</translation> </message> </context> <context> <name>ShutdownWindow</name> <message> <source>bespikecoin Core is shutting down...</source> <translation>Nucleul bespikecoin se închide...</translation> </message> <message> <source>Do not shut down the computer until this window disappears.</source> <translation>Nu închide calculatorul pînă ce această fereastră nu dispare.</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <source>Signatures - Sign / Verify a Message</source> <translation>Semnaturi - Semnează/verifică un mesaj</translation> </message> <message> <source>&amp;Sign Message</source> <translation>&amp;Semnează mesaj</translation> </message> <message> <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>Puteţi semna mesaje cu adresa dvs. pentru a demostra ca sînteti proprietarul lor. Aveţi grijă să nu semnaţi nimic vag, deoarece atacurile de tip phishing vă pot păcăli să le transferaţi identitatea. Semnaţi numai declaraţiile detaliate cu care sînteti de acord.</translation> </message> <message> <source>The bespikecoin address to sign the message with</source> <translation>Adresa cu care semnaţi mesajul</translation> </message> <message> <source>Choose previously used address</source> <translation>Alegeţi adrese folosite anterior</translation> </message> <message> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <source>Paste address from clipboard</source> <translation>Lipeşte adresa copiată din clipboard</translation> </message> <message> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <source>Enter the message you want to sign here</source> <translation>Introduceţi mesajul pe care vreţi să-l semnaţi, aici</translation> </message> <message> <source>Signature</source> <translation>Semnătură</translation> </message> <message> <source>Copy the current signature to the system clipboard</source> <translation>Copiază semnatura curentă în clipboard-ul sistemului</translation> </message> <message> <source>Sign the message to prove you own this bespikecoin address</source> <translation>Semnează mesajul pentru a dovedi ca deţineţi acestă adresă bespikecoin</translation> </message> <message> <source>Sign &amp;Message</source> <translation>Semnează &amp;mesaj</translation> </message> <message> <source>Reset all sign message fields</source> <translation>Resetează toate cîmpurile mesajelor semnate</translation> </message> <message> <source>Clear &amp;All</source> <translation>Curăţă to&amp;ate</translation> </message> <message> <source>&amp;Verify Message</source> <translation>&amp;Verifică mesaj</translation> </message> <message> <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ţi adresa de semnatură, mesajul (asiguraţi-vă că aţi copiat spaţiile, taburile etc. exact) şi semnatura dedesubt pentru a verifica mesajul. Aveţi grijă să nu citiţi mai mult în semnatură decît mesajul în sine, pentru a evita să fiţi păcăliţi de un atac de tip man-in-the-middle.</translation> </message> <message> <source>The bespikecoin address the message was signed with</source> <translation>Introduceţi o adresă bespikecoin</translation> </message> <message> <source>Verify the message to ensure it was signed with the specified bespikecoin address</source> <translation>Verificaţi mesajul pentru a vă asigura că a fost semnat cu adresa bespikecoin specificată</translation> </message> <message> <source>Verify &amp;Message</source> <translation>Verifică &amp;mesaj</translation> </message> <message> <source>Reset all verify message fields</source> <translation>Resetează toate cîmpurile mesajelor semnate</translation> </message> <message> <source>Click "Sign Message" to generate signature</source> <translation>Faceţi clic pe "Semneaza msaj" pentru a genera semnătura</translation> </message> <message> <source>The entered address is invalid.</source> <translation>Adresa introdusă nu este validă</translation> </message> <message> <source>Please check the address and try again.</source> <translation>Vă rugăm verificaţi adresa şi încercaţi din nou.</translation> </message> <message> <source>The entered address does not refer to a key.</source> <translation>Adresa introdusă nu se referă la o cheie.</translation> </message> <message> <source>Wallet unlock was cancelled.</source> <translation>Blocarea portofelului a fost întreruptă.</translation> </message> <message> <source>Private key for the entered address is not available.</source> <translation>Cheia privată pentru adresa introdusă nu este validă.</translation> </message> <message> <source>Message signing failed.</source> <translation>Semnarea mesajului nu a reuşit.</translation> </message> <message> <source>Message signed.</source> <translation>Mesaj semnat.</translation> </message> <message> <source>The signature could not be decoded.</source> <translation>Această semnatură nu a putut fi decodată.</translation> </message> <message> <source>Please check the signature and try again.</source> <translation>Vă rugăm verificaţi semnătura şi încercaţi din nou.</translation> </message> <message> <source>The signature did not match the message digest.</source> <translation>Semnatura nu se potriveşte cu mesajul.</translation> </message> <message> <source>Message verification failed.</source> <translation>Verificarea mesajului nu a reuşit.</translation> </message> <message> <source>Message verified.</source> <translation>Mesaj verificat.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <source>bespikecoin Core</source> <translation>Nucleul bespikecoin</translation> </message> <message> <source>The bespikecoin Core developers</source> <translation>Dezvoltatorii Nucleului bespikecoin</translation> </message> <message> <source>[testnet]</source> <translation>[testnet]</translation> </message> </context> <context> <name>TrafficGraphWidget</name> <message> <source>KB/s</source> <translation>KB/s</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <source>Open until %1</source> <translation>Deschis pînă la %1</translation> </message> <message> <source>conflicted</source> <translation>în conflict</translation> </message> <message> <source>%1/offline</source> <translation>%1/deconectat</translation> </message> <message> <source>%1/unconfirmed</source> <translation>%1/neconfirmat</translation> </message> <message> <source>%1 confirmations</source> <translation>%1 confirmări</translation> </message> <message> <source>Status</source> <translation>Stare</translation> </message> <message numerus="yes"> <source>, broadcast through %n node(s)</source> <translation><numerusform>, distribuit prin %n nod</numerusform><numerusform>, distribuit prin %n noduri</numerusform><numerusform>, distribuit prin %n de noduri</numerusform></translation> </message> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Source</source> <translation>Sursa</translation> </message> <message> <source>Generated</source> <translation>Generat</translation> </message> <message> <source>From</source> <translation>De la</translation> </message> <message> <source>To</source> <translation>Către</translation> </message> <message> <source>own address</source> <translation>adresa proprie</translation> </message> <message> <source>watch-only</source> <translation>doar-supraveghere</translation> </message> <message> <source>label</source> <translation>etichetă</translation> </message> <message> <source>Credit</source> <translation>Credit</translation> </message> <message numerus="yes"> <source>matures in %n more block(s)</source> <translation><numerusform>se maturizează în încă %n bloc</numerusform><numerusform>se maturizează în încă %n blocuri</numerusform><numerusform>se maturizează în încă %n de blocuri</numerusform></translation> </message> <message> <source>not accepted</source> <translation>neacceptat</translation> </message> <message> <source>Debit</source> <translation>Debit</translation> </message> <message> <source>Total debit</source> <translation>Total debit</translation> </message> <message> <source>Total credit</source> <translation>Total credit</translation> </message> <message> <source>Transaction fee</source> <translation>Taxă tranzacţie</translation> </message> <message> <source>Net amount</source> <translation>Suma netă</translation> </message> <message> <source>Message</source> <translation>Mesaj</translation> </message> <message> <source>Comment</source> <translation>Comentariu</translation> </message> <message> <source>Transaction ID</source> <translation>ID-ul tranzacţie</translation> </message> <message> <source>Merchant</source> <translation>Comerciant</translation> </message> <message> <source>Generated coins must mature %1 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>Monezile generate trebuie să crească %1 blocuri înainte să poată fi cheltuite. Cînd aţi generat acest bloc, a fost transmis reţelei pentru a fi adaugat la lanţul de blocuri. Aceasta se poate întîmpla ocazional dacă alt nod generează un bloc la numai cîteva secunde de al dvs.</translation> </message> <message> <source>Debug information</source> <translation>Informaţii pentru depanare</translation> </message> <message> <source>Transaction</source> <translation>Tranzacţie</translation> </message> <message> <source>Inputs</source> <translation>Intrări</translation> </message> <message> <source>Amount</source> <translation>Sumă</translation> </message> <message> <source>true</source> <translation>adevărat</translation> </message> <message> <source>false</source> <translation>fals</translation> </message> <message> <source>, has not been successfully broadcast yet</source> <translation>, nu s-a propagat încă</translation> </message> <message> <source>unknown</source> <translation>necunoscut</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <source>Transaction details</source> <translation>Detaliile tranzacţiei</translation> </message> <message> <source>This pane shows a detailed description of the transaction</source> <translation>Acest panou arată o descriere detaliată a tranzacţiei</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Type</source> <translation>Tip</translation> </message> <message> <source>Address</source> <translation>Adresă</translation> </message> <message> <source>Immature (%1 confirmations, will be available after %2)</source> <translation>Imatur (%1 confirmări, va fi disponibil după %2)</translation> </message> <message> <source>Open until %1</source> <translation>Deschis până la %1</translation> </message> <message> <source>Confirmed (%1 confirmations)</source> <translation>Confirmat (%1 confirmări)</translation> </message> <message> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Acest bloc nu a fost recepţionat de nici un alt nod şi probabil nu va fi acceptat!</translation> </message> <message> <source>Generated but not accepted</source> <translation>Generat dar neacceptat</translation> </message> <message> <source>Offline</source> <translation>Deconectat</translation> </message> <message> <source>Unconfirmed</source> <translation>Neconfirmat</translation> </message> <message> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation>Confirmare (%1 din %2 confirmări recomandate)</translation> </message> <message> <source>Conflicted</source> <translation>În conflict</translation> </message> <message> <source>Received with</source> <translation>Recepţionat cu</translation> </message> <message> <source>Received from</source> <translation>Primit de la</translation> </message> <message> <source>Sent to</source> <translation>Trimis către</translation> </message> <message> <source>Payment to yourself</source> <translation>Plată către dvs.</translation> </message> <message> <source>Mined</source> <translation>Minerit</translation> </message> <message> <source>watch-only</source> <translation>doar-supraveghere</translation> </message> <message> <source>(n/a)</source> <translation>indisponibil</translation> </message> <message> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Starea tranzacţiei. Treceţi cu mouse-ul peste acest cîmp pentru afişarea numărului de confirmări.</translation> </message> <message> <source>Date and time that the transaction was received.</source> <translation>Data şi ora la care a fost recepţionată tranzacţia.</translation> </message> <message> <source>Type of transaction.</source> <translation>Tipul tranzacţiei.</translation> </message> <message> <source>Whether or not a watch-only address is involved in this transaction.</source> <translation>Indiferent dacă sau nu o adresă doar-suăpraveghere este implicată în această tranzacţie.</translation> </message> <message> <source>Destination address of transaction.</source> <translation>Adresa de destinaţie a tranzacţiei.</translation> </message> <message> <source>Amount removed from or added to balance.</source> <translation>Suma extrasă sau adăugată la sold.</translation> </message> </context> <context> <name>TransactionView</name> <message> <source>All</source> <translation>Toate</translation> </message> <message> <source>Today</source> <translation>Astăzi</translation> </message> <message> <source>This week</source> <translation>Săptămîna aceasta</translation> </message> <message> <source>This month</source> <translation>Luna aceasta</translation> </message> <message> <source>Last month</source> <translation>Luna trecută</translation> </message> <message> <source>This year</source> <translation>Anul acesta</translation> </message> <message> <source>Range...</source> <translation>Interval...</translation> </message> <message> <source>Received with</source> <translation>Recepţionat cu</translation> </message> <message> <source>Sent to</source> <translation>Trimis către</translation> </message> <message> <source>To yourself</source> <translation>Către dvs.</translation> </message> <message> <source>Mined</source> <translation>Minerit</translation> </message> <message> <source>Other</source> <translation>Altele</translation> </message> <message> <source>Enter address or label to search</source> <translation>Introduceţi adresa sau eticheta pentru căutare</translation> </message> <message> <source>Min amount</source> <translation>Suma minimă</translation> </message> <message> <source>Copy address</source> <translation>Copiază adresa</translation> </message> <message> <source>Copy label</source> <translation>Copiază eticheta</translation> </message> <message> <source>Copy amount</source> <translation>Copiază suma</translation> </message> <message> <source>Copy transaction ID</source> <translation>Copiază ID tranzacţie</translation> </message> <message> <source>Edit label</source> <translation>Editează eticheta</translation> </message> <message> <source>Show transaction details</source> <translation>Arată detaliile tranzacţiei</translation> </message> <message> <source>Export Transaction History</source> <translation>Export istoric tranzacţii</translation> </message> <message> <source>Watch-only</source> <translation>Doar-supraveghere</translation> </message> <message> <source>Exporting Failed</source> <translation>Export nereuşit</translation> </message> <message> <source>There was an error trying to save the transaction history to %1.</source> <translation>S-a produs o eroare la salvarea istoricului tranzacţiilor la %1.</translation> </message> <message> <source>Exporting Successful</source> <translation>Export reuşit</translation> </message> <message> <source>The transaction history was successfully saved to %1.</source> <translation>Istoricul tranzacţiilor a fost salvat cu succes la %1.</translation> </message> <message> <source>Comma separated file (*.csv)</source> <translation>Fişier text cu valori separate prin virgulă (*.csv)</translation> </message> <message> <source>Confirmed</source> <translation>Confirmat</translation> </message> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Type</source> <translation>Tip</translation> </message> <message> <source>Label</source> <translation>Etichetă</translation> </message> <message> <source>Address</source> <translation>Adresă</translation> </message> <message> <source>ID</source> <translation>ID</translation> </message> <message> <source>Range:</source> <translation>Interval:</translation> </message> <message> <source>to</source> <translation>către</translation> </message> </context> <context> <name>UnitDisplayStatusBarControl</name> <message> <source>Unit to show amounts in. Click to select another unit.</source> <translation>Unitatea în care sînt arătate sumele. Faceţi clic pentru a selecta o altă unitate.</translation> </message> </context> <context> <name>WalletFrame</name> <message> <source>No wallet has been loaded.</source> <translation>Nu a fost încărcat nici un portofel.</translation> </message> </context> <context> <name>WalletModel</name> <message> <source>Send Coins</source> <translation>Trimitere bespikecoin</translation> </message> </context> <context> <name>WalletView</name> <message> <source>&amp;Export</source> <translation>&amp;Export</translation> </message> <message> <source>Export the data in the current tab to a file</source> <translation>Exportă datele din tab-ul curent într-un fişier</translation> </message> <message> <source>Backup Wallet</source> <translation>Copie de siguranţă portofel</translation> </message> <message> <source>Wallet Data (*.dat)</source> <translation>Date portofel (*.dat)</translation> </message> <message> <source>Backup Failed</source> <translation>Copierea de siguranţă nu a reuşit</translation> </message> <message> <source>There was an error trying to save the wallet data to %1.</source> <translation>S-a produs o eroare la salvarea datelor portofelului la %1.</translation> </message> <message> <source>The wallet data was successfully saved to %1.</source> <translation>Datele portofelului s-au salvat cu succes la %1.</translation> </message> <message> <source>Backup Successful</source> <translation>Copie de siguranţă efectuată cu succes</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <source>Options:</source> <translation>Opţiuni:</translation> </message> <message> <source>Specify data directory</source> <translation>Specificaţi dosarul de date</translation> </message> <message> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Se conectează la un nod pentru a obţine adresele partenerilor, şi apoi se deconectează</translation> </message> <message> <source>Specify your own public address</source> <translation>Specificaţi adresa dvs. publică</translation> </message> <message> <source>Accept command line and JSON-RPC commands</source> <translation>Acceptă comenzi din linia de comandă şi comenzi JSON-RPC</translation> </message> <message> <source>Run in the background as a daemon and accept commands</source> <translation>Rulează în fundal ca un demon şi acceptă comenzi</translation> </message> <message> <source>Use the test network</source> <translation>Utilizează reţeaua de test</translation> </message> <message> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Acceptă conexiuni din afară (implicit: 1 dacă nu se foloseşte -proxy sau -connect)</translation> </message> <message> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation>Ataşaţi adresei date şi ascultaţi totdeauna pe ea. Folosiţi notaţia [host]:port pentru IPv6</translation> </message> <message> <source>Distributed under the MIT software license, see the accompanying file COPYING or &lt;http://www.opensource.org/licenses/mit-license.php&gt;.</source> <translation>Distribuit sub licenţa de programe MIT/X11, vezi fişierul însoţitor COPYING sau &lt;http://www.opensource.org/licenses/mit-license.php&gt;.</translation> </message> <message> <source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly.</source> <translation>Iniţiază modul de test regresie, care foloseşte un lanţ special în care blocurile pot fi rezolvate instantaneu.</translation> </message> <message> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Execută comanda cînd o tranzacţie a portofelului se schimbă (%s în cmd este înlocuit de TxID)</translation> </message> <message> <source>In this mode -genproclimit controls how many blocks are generated immediately.</source> <translation>În acest mod -genproclimit controlează cîte blocuri sînt generate imediat.</translation> </message> <message> <source>Set the number of script verification threads (%u to %d, 0 = auto, &lt;0 = leave that many cores free, default: %d)</source> <translation>Setează numărul de thread-uri de verificare a script-urilor (%u la %d, 0 = auto, &lt;0 = lasă atîtea nuclee libere, implicit: %d)</translation> </message> <message> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation>Aceasta este o versiune de test preliminară - vă asumaţi riscul folosind-o - nu folosiţi pentru minerit sau aplicaţiile comercianţilor</translation> </message> <message> <source>Unable to bind to %s on this computer. bespikecoin Core is probably already running.</source> <translation>Nu se poate lega la %s pe acest calculator. Nucleul bespikecoin probabil deja rulează.</translation> </message> <message> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Atenţie: setarea -paytxfee este foarte mare! Aceasta este taxa tranzacţiei pe care o veţi plăti dacă trimiteţi o tranzacţie.</translation> </message> <message> <source>Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.</source> <translation>Atenţie: Reţeaua nu pare să fie de acord în totalitate! Aparent nişte mineri au probleme.</translation> </message> <message> <source>Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.</source> <translation>Atenţie: Aparent, nu sîntem de acord cu toţi partenerii noştri! Va trebui să faceţi o actualizare, sau alte noduri necesită actualizare.</translation> </message> <message> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Atenţie: eroare la citirea fişierului wallet.dat! Toate cheile sînt citite corect, dar datele tranzactiei sau anumite intrări din agenda sînt incorecte sau lipsesc.</translation> </message> <message> <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>Atenţie: fişierul wallet.dat este corupt, date salvate! Fişierul original wallet.dat a fost salvat ca wallet.{timestamp}.bak in %s; dacă balansul sau tranzactiile sînt incorecte ar trebui să restauraţi dintr-o copie de siguranţă.</translation> </message> <message> <source>(default: 1)</source> <translation>(iniţial: 1)</translation> </message> <message> <source>&lt;category&gt; can be:</source> <translation>&lt;category&gt; poate fi:</translation> </message> <message> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Încercare de recuperare a cheilor private dintr-un wallet.dat corupt</translation> </message> <message> <source>Block creation options:</source> <translation>Opţiuni creare bloc:</translation> </message> <message> <source>Connect only to the specified node(s)</source> <translation>Conectare doar la nod(urile) specificate</translation> </message> <message> <source>Connection options:</source> <translation>Opţiuni conexiune:</translation> </message> <message> <source>Corrupted block database detected</source> <translation>Bloc defect din baza de date detectat</translation> </message> <message> <source>Debugging/Testing options:</source> <translation>Opţiuni Depanare/Test:</translation> </message> <message> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Descoperă propria adresă IP (inţial: 1)</translation> </message> <message> <source>Do not load the wallet and disable wallet RPC calls</source> <translation>Nu încarcă portofelul şi dezactivează solicitările portofel RPC</translation> </message> <message> <source>Do you want to rebuild the block database now?</source> <translation>Doriţi să reconstruiţi baza de date blocuri acum?</translation> </message> <message> <source>Error initializing block database</source> <translation>Eroare la iniţializarea bazei de date de blocuri</translation> </message> <message> <source>Error initializing wallet database environment %s!</source> <translation>Eroare la iniţializarea mediului de bază de date a portofelului %s!</translation> </message> <message> <source>Error loading block database</source> <translation>Eroare la încărcarea bazei de date de blocuri</translation> </message> <message> <source>Error opening block database</source> <translation>Eroare la deschiderea bazei de date de blocuri</translation> </message> <message> <source>Error: Disk space is low!</source> <translation>Eroare: Spaţiu pe disc redus!</translation> </message> <message> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Nu s-a reuşit ascultarea pe orice port. Folosiţi -listen=0 dacă vreţi asta.</translation> </message> <message> <source>If &lt;category&gt; is not supplied, output all debugging information.</source> <translation>Dacă &lt;category&gt; nu este furnizat, produce toate informaţiile de depanare.</translation> </message> <message> <source>Importing...</source> <translation>Import...</translation> </message> <message> <source>Incorrect or no genesis block found. Wrong datadir for network?</source> <translation>Incorect sau nici un bloc de geneza găsit. Directorul de retea greşit?</translation> </message> <message> <source>Invalid -onion address: '%s'</source> <translation>Adresa -onion nevalidă: '%s'</translation> </message> <message> <source>Not enough file descriptors available.</source> <translation>Nu sînt destule descriptoare disponibile.</translation> </message> <message> <source>Only connect to nodes in network &lt;net&gt; (ipv4, ipv6 or onion)</source> <translation>Se conectează doar la noduri în reţeaua &lt;net&gt; (ipv4, ipv6 sau onion)</translation> </message> <message> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>Reconstruirea indexului lanţului de bloc din fişierele actuale blk000???.dat</translation> </message> <message> <source>Set database cache size in megabytes (%d to %d, default: %d)</source> <translation>Setează mărimea bazei de date cache în megaocteţi (%d la %d, implicit: %d)</translation> </message> <message> <source>Set maximum block size in bytes (default: %d)</source> <translation>Setaţi dimensiunea maximă a unui bloc în bytes (implicit: %d)</translation> </message> <message> <source>Specify wallet file (within data directory)</source> <translation>Specifică fişierul portofel (în dosarul de date)</translation> </message> <message> <source>This is intended for regression testing tools and app development.</source> <translation>Este folosită pentru programe de testare a regresiei în algoritmi şi dezvoltare de alte aplicaţii.</translation> </message> <message> <source>Use UPnP to map the listening port (default: %u)</source> <translation>Foloseşte mapare UPnP pentru asculatere port (implicit: %u)</translation> </message> <message> <source>Verifying blocks...</source> <translation>Se verifică blocurile...</translation> </message> <message> <source>Verifying wallet...</source> <translation>Se verifică portofelul...</translation> </message> <message> <source>Wallet %s resides outside data directory %s</source> <translation>Portofelul %s se află în afara dosarului de date %s</translation> </message> <message> <source>Wallet options:</source> <translation>Opţiuni portofel:</translation> </message> <message> <source>You need to rebuild the database using -reindex to change -txindex</source> <translation>Trebuie să reconstruiţi baza de date folosind -reindex pentru a schimba -txindex</translation> </message> <message> <source>Imports blocks from external blk000??.dat file</source> <translation>Importă blocuri dintr-un fişier extern blk000??.dat</translation> </message> <message> <source>Allow JSON-RPC connections from specified source. Valid for &lt;ip&gt; are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times</source> <translation>Permite conexiunile JSON-RPC din sursa specificată. Valid pentru &lt;ip&gt; sînt IP singulare (ex. 1.2.3.4), o reţea/mască-reţea (ex. 1.2.3.4/255.255.255.0) sau o reţea/CIDR (ex. 1.2.3.4/24). Această opţiune poate fi specificată de mai multe ori</translation> </message> <message> <source>An error occurred while setting up the RPC address %s port %u for listening: %s</source> <translation>A apărut o eroare la setarea adresei RPC %s portul %u pentru ascultare: %s</translation> </message> <message> <source>Cannot obtain a lock on data directory %s. bespikecoin Core is probably already running.</source> <translation>Nu se poate obţine blocarea folderului cu date %s. Nucleul bespikecoin probabil deja rulează.</translation> </message> <message> <source>Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)</source> <translation>Execută comanda cînd o alertă relevantă este primită sau vedem o bifurcaţie foarte lungă (%s în cmd este înlocuit de mesaj)</translation> </message> <message> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: %d)</source> <translation>Setează mărimea pentru tranzacţiile prioritare/taxe mici în octeţi (implicit: %d)</translation> </message> <message> <source>This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit &lt;https://www.openssl.org/&gt; and cryptographic software written by Eric Young and UPnP software written by Thomas Bernard.</source> <translation>Acest produs include programe dezvoltate de către Proiectul OpenSSL pentru a fi folosite în OpenSSL Toolkit &lt;https://www.openssl.org/&gt; şi programe criptografice scrise de către Eric Young şi programe UPnP scrise de către Thomas Bernard.</translation> </message> <message> <source>Accept public REST requests (default: %u)</source> <translation>Acceptă cererile publice REST (implicit: %u)</translation> </message> <message> <source>Connect through SOCKS5 proxy</source> <translation>Conectare prin proxy SOCKS5</translation> </message> <message> <source>Copyright (C) 2009-%i The bespikecoin Core Developers</source> <translation>Copyright (C) 2009-%i Dezvoltatorii bespikecoin</translation> </message> <message> <source>Error reading from database, shutting down.</source> <translation>Eroare la citirea bazei de date. Oprire.</translation> </message> <message> <source>Error: Unsupported argument -tor found, use -onion.</source> <translation>Eroare: Argument nesuportat -tor găsit, folosiţi -onion.</translation> </message> <message> <source>Fee (in BSC/kB) to add to transactions you send (default: %s)</source> <translation>Taxa (în BSC/kB) de adăugat la tranzacţiile pe care le trimiteţi(implicit: %s)</translation> </message> <message> <source>Information</source> <translation>Informaţie</translation> </message> <message> <source>Initialization sanity check failed. bespikecoin Core is shutting down.</source> <translation>Nu s-a reuşit iniţierea verificării sănătăţii. Nucleul bespikecoin se opreşte.</translation> </message> <message> <source>Invalid amount for -maxtxfee=&lt;amount&gt;: '%s'</source> <translation>Sumă nevalidă pentru -maxtxfee=&lt;suma&gt;: '%s'</translation> </message> <message> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: '%s'</source> <translation>Sumă nevalidă pentru -minrelaytxfee=&lt;suma&gt;:'%s'</translation> </message> <message> <source>Invalid amount for -mintxfee=&lt;amount&gt;: '%s'</source> <translation>Sumă nevalidă pentru -mintxfee=&lt;suma&gt;: '%s'</translation> </message> <message> <source>Invalid amount for -paytxfee=&lt;amount&gt;: '%s' (must be at least %s)</source> <translation>Sumă nevalidă pentru -paytxfee=&lt;suma&gt;: '%s' (trebuie să fie cel puţin %s)</translation> </message> <message> <source>Invalid netmask specified in -whitelist: '%s'</source> <translation>Mască reţea nevalidă specificată în -whitelist: '%s'</translation> </message> <message> <source>Need to specify a port with -whitebind: '%s'</source> <translation>Trebuie să specificaţi un port cu -whitebind: '%s'</translation> </message> <message> <source>RPC SSL options: (see the bespikecoin Wiki for SSL setup instructions)</source> <translation>Opţiuni RPC SSL: (vedeţi Wiki bespikecoin pentru intrucţiunile de setare SSL)</translation> </message> <message> <source>RPC server options:</source> <translation>Opţiuni server RPC:</translation> </message> <message> <source>RPC support for HTTP persistent connections (default: %d)</source> <translation>RPC suportă pentru HTTP conexiuni persistente (implicit: %d)</translation> </message> <message> <source>Randomly drop 1 of every &lt;n&gt; network messages</source> <translation>Aleator sccapă 1 din fiecare &lt;n&gt; mesaje ale reţelei</translation> </message> <message> <source>Randomly fuzz 1 of every &lt;n&gt; network messages</source> <translation>Aleator aproximează 1 din fiecare &lt;n&gt; mesaje ale reţelei</translation> </message> <message> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Trimite informaţiile trace/debug la consolă în locul fişierului debug.log</translation> </message> <message> <source>Send transactions as zero-fee transactions if possible (default: %u)</source> <translation>Trimitere tranzacţii ca tranzacţii taxă-zero dacă este posibil (implicit: %u)</translation> </message> <message> <source>Show all debugging options (usage: --help -help-debug)</source> <translation>Arată toate opţiunile de depanare (uz: --help -help-debug)</translation> </message> <message> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Micşorează fişierul debug.log la pornirea clientului (implicit: 1 cînd nu se foloseşte -debug)</translation> </message> <message> <source>Signing transaction failed</source> <translation>Nu s-a reuşit semnarea tranzacţiei</translation> </message> <message> <source>This is experimental software.</source> <translation>Acesta este un program experimental.</translation> </message> <message> <source>Transaction amount too small</source> <translation>Suma tranzacţionată este prea mică</translation> </message> <message> <source>Transaction amounts must be positive</source> <translation>Sumele tranzacţionate trebuie să fie pozitive</translation> </message> <message> <source>Transaction too large for fee policy</source> <translation>Tranzacţie prea mare pentru politică gratis</translation> </message> <message> <source>Transaction too large</source> <translation>Tranzacţie prea mare</translation> </message> <message> <source>Unable to bind to %s on this computer (bind returned error %s)</source> <translation>Nu se poate lega la %s pe acest calculator. (Legarea a întors eroarea %s)</translation> </message> <message> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Foloseşte UPnP pentru a vedea porturile (implicit: 1 cînd ascultă)</translation> </message> <message> <source>Username for JSON-RPC connections</source> <translation>Utilizator pentru conexiunile JSON-RPC</translation> </message> <message> <source>Wallet needed to be rewritten: restart bespikecoin Core to complete</source> <translation>Portofelul necesită rescrierea: reporniţi Nucleul bespikecoin pentru completare</translation> </message> <message> <source>Warning</source> <translation>Avertisment</translation> </message> <message> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Atenţie: această versiune este depăşită, este necesară actualizarea!</translation> </message> <message> <source>Warning: Unsupported argument -benchmark ignored, use -debug=bench.</source> <translation>Avertisment: Argument nesuportat -benchmark ignorat, folosiţi -debug=bench.</translation> </message> <message> <source>Warning: Unsupported argument -debugnet ignored, use -debug=net.</source> <translation>Avertisment: Argument nesuportat -debugnet ignorat, folosiţi -debug=net.</translation> </message> <message> <source>Zapping all transactions from wallet...</source> <translation>Şterge toate tranzacţiile din portofel...</translation> </message> <message> <source>on startup</source> <translation>la pornire</translation> </message> <message> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat corupt, salvare nereuşită</translation> </message> <message> <source>Password for JSON-RPC connections</source> <translation>Parola pentru conexiunile JSON-RPC</translation> </message> <message> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Execută comanda cînd cel mai bun bloc se modifică (%s în cmd este înlocuit cu hash-ul blocului)</translation> </message> <message> <source>Upgrade wallet to latest format</source> <translation>Actualizează portofelul la ultimul format</translation> </message> <message> <source>Rescan the block chain for missing wallet transactions</source> <translation>Rescanează lanţul de bloc pentru tranzacţiile portofel lipsă</translation> </message> <message> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Foloseşte OpenSSL (https) pentru conexiunile JSON-RPC</translation> </message> <message> <source>This help message</source> <translation>Acest mesaj de ajutor</translation> </message> <message> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Permite căutări DNS pentru -addnode, -seednode şi -connect</translation> </message> <message> <source>Loading addresses...</source> <translation>Încărcare adrese...</translation> </message> <message> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Eroare la încărcarea wallet.dat: Portofel corupt</translation> </message> <message> <source>Flush database activity from memory pool to disk log every &lt;n&gt; megabytes (default: %u)</source> <translation>Goleşte baza de date a activităţii din memoria pool în jurnal pe disc la fiecare &lt;n&gt; megaocteţi (implicit: %u)</translation> </message> <message> <source>Output debugging information (default: %u, supplying &lt;category&gt; is optional)</source> <translation>Produce toate informaţiile de depanare (implicit: %u &lt;category&gt; furnizată este opţională)</translation> </message> <message> <source>(default: %s)</source> <translation>(implicit: %s)</translation> </message> <message> <source>Acceptable ciphers (default: %s)</source> <translation>Cifruri acceptabile (implicit: %s)</translation> </message> <message> <source>Error loading wallet.dat</source> <translation>Eroare la încărcarea wallet.dat</translation> </message> <message> <source>Force safe mode (default: %u)</source> <translation>Forţează mod sigur (implicit: %u)</translation> </message> <message> <source>Generate coins (default: %u)</source> <translation>Generează monede (implicit: %u)</translation> </message> <message> <source>How many blocks to check at startup (default: %u, 0 = all)</source> <translation>Cîte blocuri verifică la pornire (implicit: %u, 0 = toate)</translation> </message> <message> <source>Invalid -proxy address: '%s'</source> <translation>Adresa -proxy nevalidă: '%s'</translation> </message> <message> <source>Server certificate file (default: %s)</source> <translation>Fişierul certificat al serverului (implicit: %s)</translation> </message> <message> <source>Server private key (default: %s)</source> <translation>Cheia privată a serverului (implicit: %s)</translation> </message> <message> <source>Set minimum block size in bytes (default: %u)</source> <translation>Setare mărime minimă bloc în octeţi (implicit: %u)</translation> </message> <message> <source>Specify configuration file (default: %s)</source> <translation>Specificaţi fişierul configuraţie (implicit: %s)</translation> </message> <message> <source>Specify pid file (default: %s)</source> <translation>Specifică fişierul pid (implicit: %s)</translation> </message> <message> <source>Unknown network specified in -onlynet: '%s'</source> <translation>Reţeaua specificată în -onlynet este necunoscută: '%s'</translation> </message> <message> <source>Cannot resolve -bind address: '%s'</source> <translation>Nu se poate rezolva adresa -bind: '%s'</translation> </message> <message> <source>Cannot resolve -externalip address: '%s'</source> <translation>Nu se poate rezolva adresa -externalip: '%s'</translation> </message> <message> <source>Invalid amount for -paytxfee=&lt;amount&gt;: '%s'</source> <translation>Suma nevalidă pentru -paytxfee=&lt;amount&gt;: '%s'</translation> </message> <message> <source>Insufficient funds</source> <translation>Fonduri insuficiente</translation> </message> <message> <source>Loading block index...</source> <translation>Încărcare index bloc...</translation> </message> <message> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Adaugă un nod la care te poţi conecta pentru a menţine conexiunea deschisă</translation> </message> <message> <source>Loading wallet...</source> <translation>Încărcare portofel...</translation> </message> <message> <source>Cannot downgrade wallet</source> <translation>Nu se poate retrograda portofelul</translation> </message> <message> <source>Cannot write default address</source> <translation>Nu se poate scrie adresa implicită</translation> </message> <message> <source>Rescanning...</source> <translation>Rescanare...</translation> </message> <message> <source>Done loading</source> <translation>Încărcare terminată</translation> </message> <message> <source>Error</source> <translation>Eroare</translation> </message> </context> </TS>
mit
eXtensoft/xf-2.0
eXtensibleFramework/XF.Common.Contracts/enumerations/ModelActionOption.cs
462
// Licensed to eXtensoft LLC under one or more agreements. // eXtensoft LLC licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace XF.Common { public enum ModelActionOption { None, Post, Get, Put, Delete, GetAll, GetAllProjections, ExecuteAction, ExecuteCommand, Execute, ExecuteMany } }
mit
railsware/handlebars_assets_i18n
lib/handlebars_assets_i18n/rails.rb
79
Sprockets::Rails::Helper.send :include, ActionView::Helpers::TranslationHelper
mit
zeno15/Expedition
thirdparty/Imgui/imgui-SFML.cpp
19638
#include "imgui-SFML.h" #include <Imgui/imgui.h> #include <SFML/OpenGL.hpp> #include <SFML/Graphics/Color.hpp> #include <SFML/Graphics/RenderTarget.hpp> #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/Sprite.hpp> #include <SFML/Graphics/Texture.hpp> #include <SFML/Window/Event.hpp> #include <SFML/Window/Window.hpp> #include <cmath> // abs #include <cstddef> // offsetof, NULL #include <cassert> #include <SFML/Window/Touch.hpp> #ifdef ANDROID #ifdef USE_JNI #include <jni.h> #include <android/native_activity.h> #include <SFML/System/NativeActivity.hpp> static bool s_wantTextInput = false; int openKeyboardIME() { ANativeActivity *activity = sf::getNativeActivity(); JavaVM* vm = activity->vm; JNIEnv* env = activity->env; JavaVMAttachArgs attachargs; attachargs.version = JNI_VERSION_1_6; attachargs.name = "NativeThread"; attachargs.group = NULL; jint res = vm->AttachCurrentThread(&env, &attachargs); if (res == JNI_ERR) return EXIT_FAILURE; jclass natact = env->FindClass("android/app/NativeActivity"); jclass context = env->FindClass("android/content/Context"); jfieldID fid = env->GetStaticFieldID(context, "INPUT_METHOD_SERVICE", "Ljava/lang/String;"); jobject svcstr = env->GetStaticObjectField(context, fid); jmethodID getss = env->GetMethodID(natact, "getSystemService", "(Ljava/lang/String;)Ljava/lang/Object;"); jobject imm_obj = env->CallObjectMethod(activity->clazz, getss, svcstr); jclass imm_cls = env->GetObjectClass(imm_obj); jmethodID toggleSoftInput = env->GetMethodID(imm_cls, "toggleSoftInput", "(II)V"); env->CallVoidMethod(imm_obj, toggleSoftInput, 2, 0); env->DeleteLocalRef(imm_obj); env->DeleteLocalRef(imm_cls); env->DeleteLocalRef(svcstr); env->DeleteLocalRef(context); env->DeleteLocalRef(natact); vm->DetachCurrentThread(); return EXIT_SUCCESS; } int closeKeyboardIME() { ANativeActivity *activity = sf::getNativeActivity(); JavaVM* vm = activity->vm; JNIEnv* env = activity->env; JavaVMAttachArgs attachargs; attachargs.version = JNI_VERSION_1_6; attachargs.name = "NativeThread"; attachargs.group = NULL; jint res = vm->AttachCurrentThread(&env, &attachargs); if (res == JNI_ERR) return EXIT_FAILURE; jclass natact = env->FindClass("android/app/NativeActivity"); jclass context = env->FindClass("android/content/Context"); jfieldID fid = env->GetStaticFieldID(context, "INPUT_METHOD_SERVICE", "Ljava/lang/String;"); jobject svcstr = env->GetStaticObjectField(context, fid); jmethodID getss = env->GetMethodID(natact, "getSystemService", "(Ljava/lang/String;)Ljava/lang/Object;"); jobject imm_obj = env->CallObjectMethod(activity->clazz, getss, svcstr); jclass imm_cls = env->GetObjectClass(imm_obj); jmethodID toggleSoftInput = env->GetMethodID(imm_cls, "toggleSoftInput", "(II)V"); env->CallVoidMethod(imm_obj, toggleSoftInput, 1, 0); env->DeleteLocalRef(imm_obj); env->DeleteLocalRef(imm_cls); env->DeleteLocalRef(svcstr); env->DeleteLocalRef(context); env->DeleteLocalRef(natact); vm->DetachCurrentThread(); return EXIT_SUCCESS; } #endif #endif // Supress warnings caused by converting from uint to void* in pCmd->TextureID #ifdef __clang__ #pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning : cast to 'void *' from smaller integer type 'int' #elif defined(__GNUC__) #pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size #endif static bool s_windowHasFocus = true; static bool s_mousePressed[3] = { false, false, false }; static bool s_touchDown[3] = { false, false, false }; static bool s_mouseMoved = false; static sf::Vector2i s_touchPos; static sf::Texture* s_fontTexture = NULL; // owning pointer to internal font atlas which is used if user doesn't set custom sf::Texture. namespace { ImVec2 getTopLeftAbsolute(const sf::FloatRect& rect); ImVec2 getDownRightAbsolute(const sf::FloatRect& rect); void RenderDrawLists(ImDrawData* draw_data); // rendering callback function prototype // Implementation of ImageButton overload bool imageButtonImpl(const sf::Texture& texture, const sf::FloatRect& textureRect, const sf::Vector2f& size, const int framePadding, const sf::Color& bgColor, const sf::Color& tintColor); } // anonymous namespace for helper / "private" functions namespace ImGui { namespace SFML { void Init(sf::RenderTarget& target, bool loadDefaultFont) { ImGuiIO& io = ImGui::GetIO(); // init keyboard mapping io.KeyMap[ImGuiKey_Tab] = sf::Keyboard::Tab; io.KeyMap[ImGuiKey_LeftArrow] = sf::Keyboard::Left; io.KeyMap[ImGuiKey_RightArrow] = sf::Keyboard::Right; io.KeyMap[ImGuiKey_UpArrow] = sf::Keyboard::Up; io.KeyMap[ImGuiKey_DownArrow] = sf::Keyboard::Down; io.KeyMap[ImGuiKey_PageUp] = sf::Keyboard::PageUp; io.KeyMap[ImGuiKey_PageDown] = sf::Keyboard::PageDown; io.KeyMap[ImGuiKey_Home] = sf::Keyboard::Home; io.KeyMap[ImGuiKey_End] = sf::Keyboard::End; #ifdef ANDROID io.KeyMap[ImGuiKey_Backspace] = sf::Keyboard::Delete; #else io.KeyMap[ImGuiKey_Delete] = sf::Keyboard::Delete; io.KeyMap[ImGuiKey_Backspace] = sf::Keyboard::BackSpace; #endif io.KeyMap[ImGuiKey_Enter] = sf::Keyboard::Return; io.KeyMap[ImGuiKey_Escape] = sf::Keyboard::Escape; io.KeyMap[ImGuiKey_A] = sf::Keyboard::A; io.KeyMap[ImGuiKey_C] = sf::Keyboard::C; io.KeyMap[ImGuiKey_V] = sf::Keyboard::V; io.KeyMap[ImGuiKey_X] = sf::Keyboard::X; io.KeyMap[ImGuiKey_Y] = sf::Keyboard::Y; io.KeyMap[ImGuiKey_Z] = sf::Keyboard::Z; // init rendering io.DisplaySize = static_cast<sf::Vector2f>(target.getSize()); io.RenderDrawListsFn = RenderDrawLists; // set render callback if (s_fontTexture) { // delete previously created texture delete s_fontTexture; } s_fontTexture = new sf::Texture; if (loadDefaultFont) { // this will load default font automatically // No need to call AddDefaultFont UpdateFontTexture(); } } void ProcessEvent(const sf::Event& event) { ImGuiIO& io = ImGui::GetIO(); if (s_windowHasFocus) { switch (event.type) { case sf::Event::MouseMoved: s_mouseMoved = true; break; case sf::Event::MouseButtonPressed: // fall-through case sf::Event::MouseButtonReleased: { int button = event.mouseButton.button; if (event.type == sf::Event::MouseButtonPressed && button >= 0 && button < 3) { s_mousePressed[event.mouseButton.button] = true; } } break; case sf::Event::TouchBegan: // fall-through case sf::Event::TouchEnded: { s_mouseMoved = false; int button = event.touch.finger; if (event.type == sf::Event::TouchBegan && button >= 0 && button < 3) { s_touchDown[event.touch.finger] = true; } } break; case sf::Event::MouseWheelMoved: io.MouseWheel += static_cast<float>(event.mouseWheel.delta); break; case sf::Event::KeyPressed: // fall-through case sf::Event::KeyReleased: io.KeysDown[event.key.code] = (event.type == sf::Event::KeyPressed); io.KeyCtrl = event.key.control; io.KeyShift = event.key.shift; io.KeyAlt = event.key.alt; break; case sf::Event::TextEntered: if (event.text.unicode > 0 && event.text.unicode < 0x10000) { io.AddInputCharacter(static_cast<ImWchar>(event.text.unicode)); } break; default: break; } } switch (event.type) { case sf::Event::LostFocus: s_windowHasFocus = false; break; case sf::Event::GainedFocus: s_windowHasFocus = true; break; default: break; } } void Update(sf::RenderWindow& window, sf::Time dt) { Update(window, window, dt); } void Update(sf::Window& window, sf::RenderTarget& target, sf::Time dt) { if (!s_mouseMoved) { if (sf::Touch::isDown(0)) s_touchPos = sf::Touch::getPosition(0, window); Update(s_touchPos, static_cast<sf::Vector2f>(target.getSize()), dt); } else { Update(sf::Mouse::getPosition(window), static_cast<sf::Vector2f>(target.getSize()), dt); } window.setMouseCursorVisible(!ImGui::GetIO().MouseDrawCursor); // don't draw mouse cursor if ImGui draws it } void Update(const sf::Vector2i& mousePos, const sf::Vector2f& displaySize, sf::Time dt) { ImGuiIO& io = ImGui::GetIO(); io.DisplaySize = displaySize; io.DeltaTime = dt.asSeconds(); if (s_windowHasFocus) { io.MousePos = mousePos; for (unsigned int i = 0; i < 3; i++) { io.MouseDown[i] = s_touchDown[i] || sf::Touch::isDown(i) || s_mousePressed[i] || sf::Mouse::isButtonPressed((sf::Mouse::Button)i); s_mousePressed[i] = false; s_touchDown[i] = false; } } #ifdef ANDROID #ifdef USE_JNI if (io.WantTextInput && !s_wantTextInput) { openKeyboardIME(); s_wantTextInput = true; } if (!io.WantTextInput && s_wantTextInput) { closeKeyboardIME(); s_wantTextInput = false; } #endif #endif assert(io.Fonts->Fonts.Size > 0); // You forgot to create and set up font atlas (see createFontTexture) ImGui::NewFrame(); } void Render(sf::RenderTarget& target) { target.resetGLStates(); ImGui::Render(); } void Shutdown() { ImGui::GetIO().Fonts->TexID = NULL; if (s_fontTexture) { // if internal texture was created, we delete it delete s_fontTexture; s_fontTexture = NULL; } ImGui::Shutdown(); // need to specify namespace here, otherwise ImGui::SFML::Shutdown would be called } void UpdateFontTexture() { sf::Texture& texture = *s_fontTexture; ImGuiIO& io = ImGui::GetIO(); unsigned char* pixels; int width, height; io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); texture.create(width, height); texture.update(pixels); io.Fonts->TexID = (void*)texture.getNativeHandle(); io.Fonts->ClearInputData(); io.Fonts->ClearTexData(); } sf::Texture& getFontTexture() { return *s_fontTexture; } } // end of namespace SFML /////////////// Image Overloads void Image(const sf::Texture& texture, const sf::Color& tintColor, const sf::Color& borderColor) { Image(texture, static_cast<sf::Vector2f>(texture.getSize()), tintColor, borderColor); } void Image(const sf::Texture& texture, const sf::Vector2f& size, const sf::Color& tintColor, const sf::Color& borderColor) { ImGui::Image((void*)texture.getNativeHandle(), size, ImVec2(0, 0), ImVec2(1, 1), tintColor, borderColor); } void Image(const sf::Texture& texture, const sf::FloatRect& textureRect, const sf::Color& tintColor, const sf::Color& borderColor) { Image(texture, sf::Vector2f(std::abs(textureRect.width), std::abs(textureRect.height)), textureRect, tintColor, borderColor); } void Image(const sf::Texture& texture, const sf::Vector2f& size, const sf::FloatRect& textureRect, const sf::Color& tintColor, const sf::Color& borderColor) { sf::Vector2f textureSize = static_cast<sf::Vector2f>(texture.getSize()); ImVec2 uv0(textureRect.left / textureSize.x, textureRect.top / textureSize.y); ImVec2 uv1((textureRect.left + textureRect.width) / textureSize.x, (textureRect.top + textureRect.height) / textureSize.y); ImGui::Image((void*)texture.getNativeHandle(), size, uv0, uv1, tintColor, borderColor); } void Image(const sf::Sprite& sprite, const sf::Color& tintColor, const sf::Color& borderColor) { sf::FloatRect bounds = sprite.getGlobalBounds(); Image(sprite, sf::Vector2f(bounds.width, bounds.height), tintColor, borderColor); } void Image(const sf::Sprite& sprite, const sf::Vector2f& size, const sf::Color& tintColor, const sf::Color& borderColor) { const sf::Texture* texturePtr = sprite.getTexture(); // sprite without texture cannot be drawn if (!texturePtr) { return; } Image(*texturePtr, size, tintColor, borderColor); } /////////////// Image Button Overloads bool ImageButton(const sf::Texture& texture, const int framePadding, const sf::Color& bgColor, const sf::Color& tintColor) { return ImageButton(texture, static_cast<sf::Vector2f>(texture.getSize()), framePadding, bgColor, tintColor); } bool ImageButton(const sf::Texture& texture, const sf::Vector2f& size, const int framePadding, const sf::Color& bgColor, const sf::Color& tintColor) { sf::Vector2f textureSize = static_cast<sf::Vector2f>(texture.getSize()); return ::imageButtonImpl(texture, sf::FloatRect(0.f, 0.f, textureSize.x, textureSize.y), size, framePadding, bgColor, tintColor); } bool ImageButton(const sf::Sprite& sprite, const int framePadding, const sf::Color& bgColor, const sf::Color& tintColor) { sf::FloatRect spriteSize = sprite.getGlobalBounds(); return ImageButton(sprite, sf::Vector2f(spriteSize.width, spriteSize.height), framePadding, bgColor, tintColor); } bool ImageButton(const sf::Sprite& sprite, const sf::Vector2f& size, const int framePadding, const sf::Color& bgColor, const sf::Color& tintColor) { const sf::Texture* texturePtr = sprite.getTexture(); if (!texturePtr) { return false; } return ::imageButtonImpl(*texturePtr, static_cast<sf::FloatRect>(sprite.getTextureRect()), size, framePadding, bgColor, tintColor); } /////////////// Draw_list Overloads void DrawLine(const sf::Vector2f& a, const sf::Vector2f& b, const sf::Color& color, float thickness) { ImDrawList* draw_list = ImGui::GetWindowDrawList(); sf::Vector2f pos = ImGui::GetCursorScreenPos(); draw_list->AddLine(a + pos, b + pos, ColorConvertFloat4ToU32(color), thickness); } void DrawRect(const sf::FloatRect& rect, const sf::Color& color, float rounding, int rounding_corners, float thickness) { ImDrawList* draw_list = ImGui::GetWindowDrawList(); draw_list->AddRect( getTopLeftAbsolute(rect), getDownRightAbsolute(rect), ColorConvertFloat4ToU32(color), rounding, rounding_corners, thickness); } void DrawRectFilled(const sf::FloatRect& rect, const sf::Color& color, float rounding, int rounding_corners) { ImDrawList* draw_list = ImGui::GetWindowDrawList(); draw_list->AddRect( getTopLeftAbsolute(rect), getDownRightAbsolute(rect), ColorConvertFloat4ToU32(color), rounding, rounding_corners); } } // end of namespace ImGui namespace { ImVec2 getTopLeftAbsolute(const sf::FloatRect & rect) { ImVec2 pos = ImGui::GetCursorScreenPos(); return ImVec2(rect.left + pos.x, rect.top + pos.y); } ImVec2 getDownRightAbsolute(const sf::FloatRect & rect) { ImVec2 pos = ImGui::GetCursorScreenPos(); return ImVec2(rect.left + rect.width + pos.x, rect.top + rect.height + pos.y); } // Rendering callback void RenderDrawLists(ImDrawData* draw_data) { if (draw_data->CmdListsCount == 0) { return; } ImGuiIO& io = ImGui::GetIO(); assert(io.Fonts->TexID != NULL); // You forgot to create and set font texture // scale stuff (needed for proper handling of window resize) int fb_width = static_cast<int>(io.DisplaySize.x * io.DisplayFramebufferScale.x); int fb_height = static_cast<int>(io.DisplaySize.y * io.DisplayFramebufferScale.y); if (fb_width == 0 || fb_height == 0) { return; } draw_data->ScaleClipRects(io.DisplayFramebufferScale); #ifdef GL_VERSION_ES_CL_1_1 GLint last_program, last_texture, last_array_buffer, last_element_array_buffer; glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer); glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &last_element_array_buffer); #else glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT | GL_TRANSFORM_BIT); #endif glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glDisable(GL_CULL_FACE); glDisable(GL_DEPTH_TEST); glEnable(GL_SCISSOR_TEST); glEnable(GL_TEXTURE_2D); glDisable(GL_LIGHTING); glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_COLOR_ARRAY); glEnableClientState(GL_TEXTURE_COORD_ARRAY); glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); glMatrixMode(GL_TEXTURE); glLoadIdentity(); glMatrixMode(GL_PROJECTION); glLoadIdentity(); #ifdef GL_VERSION_ES_CL_1_1 glOrthof(0.0f, io.DisplaySize.x, io.DisplaySize.y, 0.0f, -1.0f, +1.0f); #else glOrtho(0.0f, io.DisplaySize.x, io.DisplaySize.y, 0.0f, -1.0f, +1.0f); #endif glMatrixMode(GL_MODELVIEW); glLoadIdentity(); for (int n = 0; n < draw_data->CmdListsCount; ++n) { const ImDrawList* cmd_list = draw_data->CmdLists[n]; const unsigned char* vtx_buffer = (const unsigned char*)&cmd_list->VtxBuffer.front(); const ImDrawIdx* idx_buffer = &cmd_list->IdxBuffer.front(); glVertexPointer(2, GL_FLOAT, sizeof(ImDrawVert), (void*)(vtx_buffer + offsetof(ImDrawVert, pos))); glTexCoordPointer(2, GL_FLOAT, sizeof(ImDrawVert), (void*)(vtx_buffer + offsetof(ImDrawVert, uv))); glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(ImDrawVert), (void*)(vtx_buffer + offsetof(ImDrawVert, col))); for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.size(); ++cmd_i) { const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; if (pcmd->UserCallback) { pcmd->UserCallback(cmd_list, pcmd); } else { GLuint tex_id = (GLuint)*((unsigned int*)&pcmd->TextureId); glBindTexture(GL_TEXTURE_2D, tex_id); glScissor((int)pcmd->ClipRect.x, (int)(fb_height - pcmd->ClipRect.w), (int)(pcmd->ClipRect.z - pcmd->ClipRect.x), (int)(pcmd->ClipRect.w - pcmd->ClipRect.y)); glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, GL_UNSIGNED_SHORT, idx_buffer); } idx_buffer += pcmd->ElemCount; } } #ifdef GL_VERSION_ES_CL_1_1 glBindTexture(GL_TEXTURE_2D, last_texture); glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, last_element_array_buffer); glDisable(GL_SCISSOR_TEST); #else glPopAttrib(); #endif } bool imageButtonImpl(const sf::Texture& texture, const sf::FloatRect& textureRect, const sf::Vector2f& size, const int framePadding, const sf::Color& bgColor, const sf::Color& tintColor) { sf::Vector2f textureSize = static_cast<sf::Vector2f>(texture.getSize()); ImVec2 uv0(textureRect.left / textureSize.x, textureRect.top / textureSize.y); ImVec2 uv1((textureRect.left + textureRect.width) / textureSize.x, (textureRect.top + textureRect.height) / textureSize.y); return ImGui::ImageButton((void*)texture.getNativeHandle(), size, uv0, uv1, framePadding, bgColor, tintColor); } } // end of anonymous namespace
mit
ikennaokpala/credit_card_validator
lib/credit_card_validator/payment_method/master_card.rb
185
module CreditCardValidator module PaymentMethod class MasterCard < CreditCard PATTERN = /\A5[1-5]\d{14}\z/ def name 'MasterCard' end end end end
mit
iambus/xquery-b
src/main/java/org/libj/xquery/namespace/DefaultRootNamespace.java
1075
package org.libj.xquery.namespace; import org.libj.xquery.lib.Debug; import org.libj.xquery.lib.Fn; import org.libj.xquery.runtime.Op; public class DefaultRootNamespace extends RootNamespace { private JavaNamespace classNamespace = new JavaNamespace(); public DefaultRootNamespace() { register("class", classNamespace); register("fn", new LibNamespace(Fn.class)); register("op", new LibNamespace(Op.class)); register("debug", new LibNamespace(Debug.class)); importDefault("fn"); } @Override public Symbol lookup(String name) { if (name.indexOf('.') != -1 && name.indexOf('.') < name.indexOf(':')) { int colon = name.indexOf(':'); if (colon == -1) { throw new RuntimeException("Not Implemented!"); } String className = name.substring(0, colon); String methodName = name.substring(colon+1); return ((Namespace) classNamespace.lookup(className)).lookup(methodName); } return super.lookup(name); } }
mit
newky2k/dscomponents
src/DSoft.UI.Calendar/Views/DSCalendarHeaderCell.cs
2034
// **************************************************************************** // <copyright file="DSCalendarHeaderCell.cs" company="DSoft Developments"> // Created By David Humphreys // Copyright © David Humphreys 2015 // </copyright> // **************************************************************************** using System; using MonoTouch.UIKit; using System.Drawing; using DSoft.UI.Calendar.Themes; namespace DSoft.UI.Calendar.Views { internal class DSCalendarHeaderCell : UIView { #region Fields private String mText; private UILabel mTextLabel; #endregion #region Properties internal String Text { get { return mText; } set { mText = value; this.SetNeedsDisplay(); } } #endregion #region Constuctor internal DSCalendarHeaderCell(RectangleF Frame) : base(Frame) { this.Opaque = false; this.BackgroundColor = UIColor.Clear; mTextLabel = new UILabel(RectangleF.Empty); mTextLabel.BackgroundColor = UIColor.Clear; mTextLabel.TextColor = DSCalendarTheme.CurrentTheme.HeaderCellTextColor; mTextLabel.TextAlignment = DSCalendarTheme.CurrentTheme.HeaderCellTextAlignment; mTextLabel.Font = DSCalendarTheme.CurrentTheme.HeaderCellTextFont; this.AddSubview(mTextLabel); } #endregion #region Overrides public override void Draw (RectangleF rect) { base.Draw (rect); DrawCell(rect); } #endregion #region Functions private void DrawCell(RectangleF rect) { var context = UIGraphics.GetCurrentContext(); DSCalendarTheme.CurrentTheme.HeaderCellBackground.SetFill(); context.FillRect(rect); context.SetStrokeColor(DSCalendarTheme.CurrentTheme.HeaderCellBorderColor.CGColor); context.SetLineWidth(DSCalendarTheme.CurrentTheme.GridBorderWidth); context.StrokeRect(rect); mTextLabel.Frame = RectangleF.Inflate(this.Bounds,-4,0); mTextLabel.Text = mText; mTextLabel.Font = DSCalendarTheme.CurrentTheme.HeaderCellTextFont; } #endregion } }
mit
bigfix/sequel
lib/sequel/extensions/migration.rb
24341
# Adds the Sequel::Migration and Sequel::Migrator classes, which allow # the user to easily group schema changes and migrate the database # to a newer version or revert to a previous version. # # To load the extension: # # Sequel.extension :migration module Sequel # Sequel's older migration class, available for backward compatibility. # Uses subclasses with up and down instance methods for each migration: # # Class.new(Sequel::Migration) do # def up # create_table(:artists) do # primary_key :id # String :name # end # end # # def down # drop_table(:artists) # end # end # # Part of the +migration+ extension. class Migration # Set the database associated with this migration. def initialize(db) @db = db end # Applies the migration to the supplied database in the specified # direction. def self.apply(db, direction) raise(ArgumentError, "Invalid migration direction specified (#{direction.inspect})") unless [:up, :down].include?(direction) new(db).send(direction) end # Returns the list of Migration descendants. def self.descendants @descendants ||= [] end # Adds the new migration class to the list of Migration descendants. def self.inherited(base) descendants << base end # Don't allow transaction overriding in old migrations. def self.use_transactions nil end # The default down action does nothing def down end # Intercepts method calls intended for the database and sends them along. def method_missing(method_sym, *args, &block) @db.send(method_sym, *args, &block) end # This object responds to all methods the database responds to. def respond_to_missing?(meth, include_private) @db.respond_to?(meth, include_private) end # The default up action does nothing def up end end # Migration class used by the Sequel.migration DSL, # using instances for each migration, unlike the # +Migration+ class, which uses subclasses for each # migration. Part of the +migration+ extension. class SimpleMigration # Proc used for the down action attr_accessor :down # Proc used for the up action attr_accessor :up # Whether to use transactions for this migration, default depends on the # database. attr_accessor :use_transactions # Don't set transaction use by default. def initialize @use_transactions = nil end # Apply the appropriate block on the +Database+ # instance using instance_eval. def apply(db, direction) raise(ArgumentError, "Invalid migration direction specified (#{direction.inspect})") unless [:up, :down].include?(direction) if prok = send(direction) db.instance_eval(&prok) end end end # Internal class used by the Sequel.migration DSL, part of the +migration+ extension. class MigrationDSL < BasicObject # The underlying Migration instance attr_reader :migration def self.create(&block) new(&block).migration end # Create a new migration class, and instance_eval the block. def initialize(&block) @migration = SimpleMigration.new Migration.descendants << migration instance_eval(&block) end # Defines the migration's down action. def down(&block) migration.down = block end # Disable the use of transactions for the related migration def no_transaction migration.use_transactions = false end # Enable the use of transactions for the related migration def transaction migration.use_transactions = true end # Defines the migration's up action. def up(&block) migration.up = block end # Creates a reversible migration. This is the same as creating # the same block with +up+, but it also calls the block and attempts # to create a +down+ block that will reverse the changes made by # the block. # # There are no guarantees that this will work perfectly # in all cases, but it should work for most common cases. def change(&block) migration.up = block migration.down = MigrationReverser.new.reverse(&block) end end # Handles the reversing of reversible migrations. Basically records # supported methods calls, translates them to reversed calls, and # returns them in reverse order. class MigrationReverser < Sequel::BasicObject def initialize @actions = [] end # Reverse the actions for the given block. Takes the block given # and returns a new block that reverses the actions taken by # the given block. def reverse(&block) begin instance_eval(&block) rescue just_raise = true end if just_raise Proc.new{raise Sequel::Error, 'irreversible migration method used, you may need to write your own down method'} else actions = @actions.reverse Proc.new do actions.each do |a| if a.last.is_a?(Proc) pr = a.pop send(*a, &pr) else send(*a) end end end end end private def add_column(*args) @actions << [:drop_column, args[0], args[1]] end def add_index(*args) @actions << [:drop_index, *args] end def alter_table(table, &block) @actions << [:alter_table, table, MigrationAlterTableReverser.new.reverse(&block)] end def create_join_table(*args) @actions << [:drop_join_table, *args] end def create_table(*args) @actions << [:drop_table, args.first] end def create_view(*args) @actions << [:drop_view, args.first] end def rename_column(table, name, new_name) @actions << [:rename_column, table, new_name, name] end def rename_table(table, new_name) @actions << [:rename_table, new_name, table] end end # Handles reversing an alter_table block in a reversible migration. class MigrationAlterTableReverser < Sequel::BasicObject def initialize @actions = [] end def reverse(&block) instance_eval(&block) actions = @actions.reverse Proc.new{actions.each{|a| send(*a)}} end private def add_column(*args) @actions << [:drop_column, args.first] end def add_constraint(*args) @actions << [:drop_constraint, args.first] end def add_foreign_key(key, table, *args) @actions << [:drop_foreign_key, key, *args] end def add_primary_key(*args) raise if args.first.is_a?(Array) @actions << [:drop_column, args.first] end def add_index(*args) @actions << [:drop_index, *args] end alias add_full_text_index add_index alias add_spatial_index add_index def rename_column(name, new_name) @actions << [:rename_column, new_name, name] end end # The preferred method for writing Sequel migrations, using a DSL: # # Sequel.migration do # up do # create_table(:artists) do # primary_key :id # String :name # end # end # # down do # drop_table(:artists) # end # end # # Designed to be used with the +Migrator+ class, part of the +migration+ extension. def self.migration(&block) MigrationDSL.create(&block) end # The +Migrator+ class performs migrations based on migration files in a # specified directory. The migration files should be named using the # following pattern: # # <version>_<title>.rb # # For example, the following files are considered migration files: # # 001_create_sessions.rb # 002_add_data_column.rb # # You can also use timestamps as version numbers: # # 1273253850_create_sessions.rb # 1273257248_add_data_column.rb # # If any migration filenames use timestamps as version numbers, Sequel # uses the +TimestampMigrator+ to migrate, otherwise it uses the +IntegerMigrator+. # The +TimestampMigrator+ can handle migrations that are run out of order # as well as migrations with the same timestamp, # while the +IntegerMigrator+ is more strict and raises exceptions for missing # or duplicate migration files. # # The migration files should contain either one +Migration+ # subclass or one <tt>Sequel.migration</tt> call. # # Migrations are generally run via the sequel command line tool, # using the -m and -M switches. The -m switch specifies the migration # directory, and the -M switch specifies the version to which to migrate. # # You can apply migrations using the Migrator API, as well (this is necessary # if you want to specify the version from which to migrate in addition to the version # to which to migrate). # To apply a migrator, the +apply+ method must be invoked with the database # instance, the directory of migration files and the target version. If # no current version is supplied, it is read from the database. The migrator # automatically creates a table (schema_info for integer migrations and # schema_migrations for timestamped migrations). in the database to keep track # of the current migration version. If no migration version is stored in the # database, the version is considered to be 0. If no target version is # specified, the database is migrated to the latest version available in the # migration directory. # # For example, to migrate the database to the latest version: # # Sequel::Migrator.apply(DB, '.') # # For example, to migrate the database all the way down: # # Sequel::Migrator.apply(DB, '.', 0) # # For example, to migrate the database to version 4: # # Sequel::Migrator.apply(DB, '.', 4) # # To migrate the database from version 1 to version 5: # # Sequel::Migrator.apply(DB, '.', 5, 1) # # Part of the +migration+ extension. class Migrator MIGRATION_FILE_PATTERN = /\A(\d+)_.+\.rb\z/i.freeze MIGRATION_SPLITTER = '_'.freeze MINIMUM_TIMESTAMP = 20000101 # Exception class raised when there is an error with the migrator's # file structure, database, or arguments. class Error < Sequel::Error end # Exception class raised when Migrator.check_current signals that it is # not current. class NotCurrentError < Error end # Wrapper for +run+, maintaining backwards API compatibility def self.apply(db, directory, target = nil, current = nil) run(db, directory, :target => target, :current => current) end # Raise a NotCurrentError unless the migrator is current, takes the same # arguments as #run. def self.check_current(*args) raise(NotCurrentError, 'migrator is not current') unless is_current?(*args) end # Return whether the migrator is current (i.e. it does not need to make # any changes). Takes the same arguments as #run. def self.is_current?(db, directory, opts=OPTS) migrator_class(directory).new(db, directory, opts).is_current? end # Migrates the supplied database using the migration files in the the specified directory. Options: # :allow_missing_migration_files :: Don't raise an error if there are missing migration files. # :column :: The column in the :table argument storing the migration version (default: :version). # :current :: The current version of the database. If not given, it is retrieved from the database # using the :table and :column options. # :table :: The table containing the schema version (default: :schema_info). # :target :: The target version to which to migrate. If not given, migrates to the maximum version. # # Examples: # Sequel::Migrator.run(DB, "migrations") # Sequel::Migrator.run(DB, "migrations", :target=>15, :current=>10) # Sequel::Migrator.run(DB, "app1/migrations", :column=> :app2_version) # Sequel::Migrator.run(DB, "app2/migrations", :column => :app2_version, :table=>:schema_info2) def self.run(db, directory, opts=OPTS) migrator_class(directory).new(db, directory, opts).run end # Choose the Migrator subclass to use. Uses the TimestampMigrator # if the version number appears to be a unix time integer for a year # after 2005, otherwise uses the IntegerMigrator. def self.migrator_class(directory) if self.equal?(Migrator) Dir.new(directory).each do |file| next unless MIGRATION_FILE_PATTERN.match(file) return TimestampMigrator if file.split(MIGRATION_SPLITTER, 2).first.to_i > MINIMUM_TIMESTAMP end IntegerMigrator else self end end private_class_method :migrator_class # The column to use to hold the migration version number for integer migrations or # filename for timestamp migrations (defaults to :version for integer migrations and # :filename for timestamp migrations) attr_reader :column # The database related to this migrator attr_reader :db # The directory for this migrator's files attr_reader :directory # The dataset for this migrator, representing the +schema_info+ table for integer # migrations and the +schema_migrations+ table for timestamp migrations attr_reader :ds # All migration files in this migrator's directory attr_reader :files # The table to use to hold the applied migration data (defaults to :schema_info for # integer migrations and :schema_migrations for timestamp migrations) attr_reader :table # The target version for this migrator attr_reader :target # Setup the state for the migrator def initialize(db, directory, opts=OPTS) raise(Error, "Must supply a valid migration path") unless File.directory?(directory) @db = db @directory = directory @allow_missing_migration_files = opts[:allow_missing_migration_files] @files = get_migration_files schema, table = @db.send(:schema_and_table, opts[:table] || self.class.const_get(:DEFAULT_SCHEMA_TABLE)) @table = schema ? Sequel::SQL::QualifiedIdentifier.new(schema, table) : table @column = opts[:column] || self.class.const_get(:DEFAULT_SCHEMA_COLUMN) @ds = schema_dataset @use_transactions = opts[:use_transactions] end private # If transactions should be used for the migration, yield to the block # inside a transaction. Otherwise, just yield to the block. def checked_transaction(migration, &block) use_trans = if @use_transactions.nil? if migration.use_transactions.nil? @db.supports_transactional_ddl? else migration.use_transactions end else @use_transactions end if use_trans db.transaction(&block) else yield end end # Remove all migration classes. Done by the migrator to ensure that # the correct migration classes are picked up. def remove_migration_classes # Remove class definitions Migration.descendants.each do |c| Object.send(:remove_const, c.to_s) rescue nil end Migration.descendants.clear # remove any defined migration classes end # Return the integer migration version based on the filename. def migration_version_from_file(filename) filename.split(MIGRATION_SPLITTER, 2).first.to_i end end # The default migrator, recommended in most cases. Uses a simple incrementing # version number starting with 1, where missing or duplicate migration file # versions are not allowed. Part of the +migration+ extension. class IntegerMigrator < Migrator DEFAULT_SCHEMA_COLUMN = :version DEFAULT_SCHEMA_TABLE = :schema_info Error = Migrator::Error # The current version for this migrator attr_reader :current # The direction of the migrator, either :up or :down attr_reader :direction # The migrations used by this migrator attr_reader :migrations # Set up all state for the migrator instance def initialize(db, directory, opts=OPTS) super @target = opts[:target] || latest_migration_version @current = opts[:current] || current_migration_version raise(Error, "No current version available") unless current raise(Error, "No target version available, probably because no migration files found or filenames don't follow the migration filename convention") unless target @direction = current < target ? :up : :down @migrations = get_migrations end # The integer migrator is current if the current version is the same as the target version. def is_current? current_migration_version == target end # Apply all migrations on the database def run migrations.zip(version_numbers).each do |m, v| t = Time.now lv = up? ? v : v + 1 db.log_info("Begin applying migration version #{lv}, direction: #{direction}") checked_transaction(m) do m.apply(db, direction) set_migration_version(v) end db.log_info("Finished applying migration version #{lv}, direction: #{direction}, took #{sprintf('%0.6f', Time.now - t)} seconds") end target end private # Gets the current migration version stored in the database. If no version # number is stored, 0 is returned. def current_migration_version ds.get(column) || 0 end # Returns any found migration files in the supplied directory. def get_migration_files files = [] Dir.new(directory).each do |file| next unless MIGRATION_FILE_PATTERN.match(file) version = migration_version_from_file(file) if version >= 20000101 raise Migrator::Error, "Migration number too large, must use TimestampMigrator: #{file}" end raise(Error, "Duplicate migration version: #{version}") if files[version] files[version] = File.join(directory, file) end 1.upto(files.length - 1){|i| raise(Error, "Missing migration version: #{i}") unless files[i]} unless @allow_missing_migration_files files end # Returns a list of migration classes filtered for the migration range and # ordered according to the migration direction. def get_migrations remove_migration_classes # load migration files files[up? ? (current + 1)..target : (target + 1)..current].compact.each{|f| load(f)} # get migration classes classes = Migration.descendants up? ? classes : classes.reverse end # Returns the latest version available in the specified directory. def latest_migration_version l = files.last l ? migration_version_from_file(File.basename(l)) : nil end # Returns the dataset for the schema_info table. If no such table # exists, it is automatically created. def schema_dataset c = column ds = db.from(table) db.create_table?(table){Integer c, :default=>0, :null=>false} unless ds.columns.include?(c) db.alter_table(table){add_column c, Integer, :default=>0, :null=>false} end ds.insert(c=>0) if ds.empty? raise(Error, "More than 1 row in migrator table") if ds.count > 1 ds end # Sets the current migration version stored in the database. def set_migration_version(version) ds.update(column=>version) end # Whether or not this is an up migration def up? direction == :up end # An array of numbers corresponding to the migrations, # so that each number in the array is the migration version # that will be in affect after the migration is run. def version_numbers up? ? ((current+1)..target).to_a : (target..(current - 1)).to_a.reverse end end # The migrator used if any migration file version appears to be a timestamp. # Stores filenames of migration files, and can figure out which migrations # have not been applied and apply them, even if earlier migrations are added # after later migrations. If you plan to do that, the responsibility is on # you to make sure the migrations don't conflict. Part of the +migration+ extension. class TimestampMigrator < Migrator DEFAULT_SCHEMA_COLUMN = :filename DEFAULT_SCHEMA_TABLE = :schema_migrations Error = Migrator::Error # Array of strings of applied migration filenames attr_reader :applied_migrations # Get tuples of migrations, filenames, and actions for each migration attr_reader :migration_tuples # Set up all state for the migrator instance def initialize(db, directory, opts=OPTS) super @target = opts[:target] @applied_migrations = get_applied_migrations @migration_tuples = get_migration_tuples end # The timestamp migrator is current if there are no migrations to apply # in either direction. def is_current? migration_tuples.empty? end # Apply all migration tuples on the database def run migration_tuples.each do |m, f, direction| t = Time.now db.log_info("Begin applying migration #{f}, direction: #{direction}") checked_transaction(m) do m.apply(db, direction) fi = f.downcase direction == :up ? ds.insert(column=>fi) : ds.filter(column=>fi).delete end db.log_info("Finished applying migration #{f}, direction: #{direction}, took #{sprintf('%0.6f', Time.now - t)} seconds") end nil end private # Convert the schema_info table to the new schema_migrations table format, # using the version of the schema_info table and the current migration files. def convert_from_schema_info v = db[IntegerMigrator::DEFAULT_SCHEMA_TABLE].get(IntegerMigrator::DEFAULT_SCHEMA_COLUMN) ds = db.from(table) files.each do |path| f = File.basename(path) if migration_version_from_file(f) <= v ds.insert(column=>f) end end end # Returns filenames of all applied migrations def get_applied_migrations am = ds.select_order_map(column) missing_migration_files = am - files.map{|f| File.basename(f).downcase} raise(Error, "Applied migration files not in file system: #{missing_migration_files.join(', ')}") if missing_migration_files.length > 0 && !@allow_missing_migration_files am end # Returns any migration files found in the migrator's directory. def get_migration_files files = [] Dir.new(directory).each do |file| next unless MIGRATION_FILE_PATTERN.match(file) files << File.join(directory, file) end files.sort_by{|f| MIGRATION_FILE_PATTERN.match(File.basename(f))[1].to_i} end # Returns tuples of migration, filename, and direction def get_migration_tuples remove_migration_classes up_mts = [] down_mts = [] ms = Migration.descendants files.each do |path| f = File.basename(path) fi = f.downcase if target if migration_version_from_file(f) > target if applied_migrations.include?(fi) load(path) down_mts << [ms.last, f, :down] end elsif !applied_migrations.include?(fi) load(path) up_mts << [ms.last, f, :up] end elsif !applied_migrations.include?(fi) load(path) up_mts << [ms.last, f, :up] end end up_mts + down_mts.reverse end # Returns the dataset for the schema_migrations table. If no such table # exists, it is automatically created. def schema_dataset c = column ds = db.from(table) if !db.table_exists?(table) db.create_table(table){String c, :primary_key=>true} if db.table_exists?(:schema_info) and vha = db[:schema_info].all and vha.length == 1 and vha.first.keys == [:version] and vha.first.values.first.is_a?(Integer) convert_from_schema_info end elsif !ds.columns.include?(c) raise(Error, "Migrator table #{table} does not contain column #{c}") end ds end end end
mit
workofartyoga/downdog
dist/query/classes/query-class-find-all.js
347
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var model_1 = require("../../model/model"); var classes_1 = require("../../shared/classes"); function queryClassFindAll() { return model_1.Classes.findAll({ order: ['title'] }) .then(classes_1.createClasses); } exports.queryClassFindAll = queryClassFindAll;
mit
leeluolee/casdb
test/db.js
1732
var Collection = require('../src/collection.js'); var DB = require('../src/casdb.js'); var expect = require('expect.js'); var libPath = require('path'); var path = require('path'); var fs = require('fs'); describe('CasDB', function(){ it('sync should write whote json to file', function(done){ var json = { posts: [ {_id: 0, time:1} ] } var filename = libPath.join( __dirname, 'data/db.json' ); fs.writeFileSync(filename, JSON.stringify(json), 'utf8') var db = new DB( filename ); expect(db.posts).to.equal(db.collection('posts')); db.posts.list.push({_id: 1, time: 2}) json.posts.push({_id: 1, time: 2}) db.sync(); db.once('sync' , function(){ expect(fs.readFileSync(filename, 'utf8')).to.equal( "{\n \"posts\":[\n {\"_id\":0,\"time\":1},\n {\"_id\":1,\"time\":2}\n ]\n}" ) done() }) }) it('collection("xx") will created collection implicitly, if it is not exsits' , function(){ var db = new DB( 'data/db2.json' ); expect(db.posts).to.equal(undefined); var collection = db.collection( 'posts' ); expect(db.posts).to.be.an(Collection); expect(db.posts).to.be.equal(collection); var col2 = db.collection('posts'); expect(col2).to.equal(collection); var col3 = db.collection('posts', []); // not affect expect(col3).to.equal(collection); }) after(function(){ fs.readdir(path.join(__dirname, './data'), function(error, filenames){ filenames.forEach(function( filename ){ if(path.extname(filename) === '.json'){ fs.unlink( path.join(__dirname, 'data' , filename), function(err){ if(err) throw err }) } }) }) }) })
mit
nicholasjackson/building-microservices-in-go
vendor/github.com/nicholasjackson/bench/internal.go
2457
package bench import ( "fmt" "time" "github.com/fatih/color" "github.com/nicholasjackson/bench/errors" "github.com/nicholasjackson/bench/results" "github.com/nicholasjackson/bench/semaphore" ) // RunBenchmarks executes the benchmarks based upon the given criteria // // Returns a resultset func (b *Bench) internalRun() results.ResultSet { startTime := time.Now() endTime := startTime.Add(b.duration) sem := semaphore.NewSemaphore(b.threads, b.rampUp) // create a new semaphore with an initiall capacity or 0 out := make(chan results.Result) resultsChan := make(chan []results.Result) go handleResult(out, resultsChan) for run := true; run; run = (time.Now().Before(endTime)) { sem.Lock() // blocks when channel is full // execute a request go doRequest(b.request, b.timeout, sem, out) } fmt.Print("\nWaiting for threads to finish ") for i := sem.Length(); i != 0; i = sem.Length() { //abandon <- true time.Sleep(200 * time.Millisecond) } fmt.Println(" OK") fmt.Println("") close(out) return <-resultsChan } func handleResult(out chan results.Result, resultChan chan []results.Result) { green := color.New(color.FgGreen) red := color.New(color.FgRed) yellow := color.New(color.FgYellow) var r []results.Result for result := range out { switch result.Error.(type) { case errors.Timeout: yellow.Print("T") case error: red.Print("E") default: green.Print(".") } r = append(r, result) } resultChan <- r } func doRequest(r RequestFunc, timeout time.Duration, semaphore *semaphore.Semaphore, out chan results.Result) { // notify we are done at the end of the routine defer semaphore.Release() requestStart := time.Now() timeoutC := time.After(timeout) complete := make(chan results.Result) go func() { defer func() { if recover := recover(); r != nil { complete <- results.Result{ Error: fmt.Errorf("Panic: %v\n", recover), RequestTime: time.Now().Sub(requestStart), Timestamp: time.Now(), Threads: semaphore.Capacity(), } } }() err := r() complete <- results.Result{ Error: err, RequestTime: time.Now().Sub(requestStart), Timestamp: time.Now(), Threads: semaphore.Capacity(), } }() var ret results.Result select { case <-timeoutC: ret.Error = errors.Timeout{Message: "Timeout error"} ret.RequestTime = timeout ret.Timestamp = time.Now() case ret = <-complete: } out <- ret }
mit
nbumbarger/Flashcards.rb
db/migrate/20150418191511_create_categories.rb
329
class CreateCategories < ActiveRecord::Migration def change create_table :categories do |column| column.string :name, :null=> false, :limit=> 100 column.integer :play_count, :null=> false, :limit=> 2, :default=> 0 column.integer :cumulative_score, :null=> false, :limit=> 2, :default=> 0 end end end
mit
c4fcm/Deepstream
client/lib/reload.js
1357
window.readyToMigrate = new ReactiveVar(false); var RELOAD_DELAY = 300; // 2000; TODO switch back Reload._onMigrate('deepstream', function (retry) { if (readyToMigrate.get()) { return [true, {codeReloaded: true}]; } else { if (Meteor.settings['public'].NODE_ENV !== 'development') { // FlowRouter.getRouteName() === 'curate' notifyDeploy("We've just made an improvement! Click here to sync up the latest code.", true); analytics.track('Reload notification shown', {label: 'Reload on click'}); $('.migration-notification').click(function () { saveCallback(null, true); setTimeout(function () { readyToMigrate.set(true); retry(); }, 300); }); FlowRouter.triggers.enter([function () { readyToMigrate.set(true); retry(); }]); return [false]; } else { notifyDeploy("We've just made an improvement! Wait just a moment while we sync up the latest code.", false); analytics.track('Reload notification shown', {label: 'Immediate reload', nonInteraction: 1}); setTimeout(function () { readyToMigrate.set(true); retry(); }, RELOAD_DELAY); return [false] } } }); var migrationData = Reload._migrationData('deepstream'); if (migrationData){ window.codeReloaded = migrationData.codeReloaded; }
mit
jakobzhao/wbcrawler3
cga/crawler-2.py
1663
# !/usr/bin/python # -*- coding: utf-8 -*- # # Created on Oct 16, 2015 # @author: Bo Zhao # @email: bo_zhao@hks.harvard.edu # @website: http://yenching.org # @organization: Harvard Kennedy School import sys sys.path.append("/home/bo/.local/lib/python2.7/site-packages") # sys.path.append("/home/bo/Workspace/wbcrawler") # sys.path.append("/home/bo/Workspace/wbcrawler/cga") sys.path.append("/home/bo/wbcrawler") sys.path.append("/home/bo/wbcrawler/cga") from wbcrawler.parser import parse_discovery from wbcrawler.robot import register, unregister, create_database, unlock_robots from wbcrawler.log import * from settings import SETTINGS2 as SETTINGS # unlock the unreleased robots # unlock_robots(SETTINGS) # start to crawl start = datetime.datetime.now() t = SETTINGS['robot_num'] robot = {} accounts = [] for i in range(t): if robot == {}: robot = register(SETTINGS) else: break try: db = create_database(SETTINGS) # for d_type in SETTINGS['d_types']: for d_type_num in range(len(SETTINGS['d_types'])): round_start = datetime.datetime.now() parse_discovery(SETTINGS['d_types'][d_type_num], robot, db) log(NOTICE, 'The completion of processing the keyword "%s". Time: %d sec(s)' % (SETTINGS['d_types'][d_type_num].keys()[0].decode('utf-8'), int((datetime.datetime.now() - round_start).seconds))) except: log(ERROR, 'An error occurs .', 'crawler.py') finally: # out of the stak unregister(robot) log(NOTICE, 'The completion of processing all keywords. Time: %d min(s)' % int((datetime.datetime.now() - start).seconds / 60)) if __name__ == '__main__': pass
mit
mkteagle/angular-game
app/www/js/app.js
3992
// Ionic Starter App // angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' // 'starter.controllers' is found in controllers.js angular.module('starter', ['ionic','app.ctrl', 'ionic-material', 'ionMdInput', 'gameController', 'ngToast', 'firebase', 'gameService', 'app.login', 'ngStorage', 'upgradeDirective', 'nameFilters', 'angular-toArrayFilter']) .constant('firebaseUrl', "https://donut-click.firebaseio.com/") .run(function($ionicPlatform) { $ionicPlatform.ready(function() { // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard // for form inputs) if (window.cordova && window.cordova.plugins.Keyboard) { cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); } if (window.StatusBar) { // org.apache.cordova.statusbar required StatusBar.styleDefault(); } }); }) .config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider, $locationProvider) { // Turn off caching for demo simplicity's sake $ionicConfigProvider.views.maxCache(0); /* // Turn off back button text $ionicConfigProvider.backButton.previousTitleText(false); */ $stateProvider.state('app', { url: '/app', abstract: true, templateUrl: 'templates/menu.html', controller: 'AppCtrl as ac' }) .state('app.login', { url: '/login', views: { 'menuContent': { templateUrl: 'templates/login.html', controller: 'loginController as vm' }, 'fabContent': { template: '' } } }) .state('logout', { url: '/logout', controller: function($scope, $route) { $route.reload() } }) .state('app.email', { url: '/registerEmail', views: { 'menuContent': { templateUrl: 'templates/registerEmail.html', controller: 'loginController as vm' }, 'fabContent': { template: '' } } }) .state('app.game', { url: '/game', views: { 'menuContent': { templateUrl: 'templates/game.html', controller: 'gameController' }, 'fabContent': { template: '' } } }) .state('app.leaderboard', { url: '/leaderboard', views: { 'menuContent': { templateUrl: 'templates/leaderboard.html', controller: 'gameController' }, 'fabContent': { template: '' } } }) .state('app.splash', { url: '/splash', views: { 'menuContent': { templateUrl: 'templates/splash.html', controller: 'gameController' }, 'fabContent': { template: '' } } }) ; // if none of the above states are matched, use this as the fallback $urlRouterProvider.otherwise('/app/login'); //$locationProvider.html5Mode(true); });
mit
adrien-thierry/htmlstation
content/srv/station/host/default/zone/arena5/arena5.conf.js
92
var Conf = { 'uri': 'arena5', 'state': true, 'shared': 'jail', } module.exports = Conf;
mit
ryanplusplus/pil3
ch18/e18_1.lua
397
--[[ Write a function to test whether a given number is a power of two. ]] function ispoweroftwo(n) log = math.log(n, 2) return log == math.floor(log) end print(ispoweroftwo(-4)) --> false print(ispoweroftwo(4)) --> true print(ispoweroftwo(5)) --> false print(ispoweroftwo(15)) --> false print(ispoweroftwo(16)) --> true print(ispoweroftwo(1024)) --> true print(ispoweroftwo(0.5)) --> true
mit
TechForPR/chefsForPR
controllers/UserController.js
2171
const User = require('../models/User'); const passport = require('passport'); function signup(req, res) { if (!req.body || !req.body.data) { return res.status(422).send({ error: 422, message: 'Missing data' }); } const user = new User(req.body.data); const email = req.body.data.email; const password = req.body.data.password; const confirm_password = req.body.data.confirm_password; if(!email){ return res.status(400).send({ error: 400, message: 'Valid email required' }); } if(!password){ return res.status(400).send({ error: 400, message: 'Password required' }); } if(password!=confirm_password){ return res.status(400).send({ error: 400, message: 'Passwords do not match' }); } User.findOne({ email: email }, function(err, user) { if (err) return done(err); if (user) { return res.status(400).send({ error: 400, message: 'That email is already taken.' }); } else { var newUser = new User(); newUser.email = email; newUser.password = newUser.generateHash(password); newUser.save(function(err) { if (err) { throw err; } return res.status(200).send({ error: 200, message: 'Account Created Successfully' }); }); } }); // user.save().then(doc => { // res.status(200).send({ doc }); // }).catch(err => { // res.status(400).send(Object.assign({error: 400}, err)); // }); } function login(req, res, next) { /* look at the 2nd parameter to the below call */ passport.authenticate('local-login', function(err, user, info) { console.log(err); console.log(user); console.log(info); if (err) { return next(err); } if (!user) { return res.status(401).send({ error: 401, message: 'Username/password do not match' }); } req.logIn(user, function(err) { if (err) { return next(err); } return res.status(200).send({ error: 200, message: 'Login successful' }); }); })(req, res, next); } module.exports = { signup, login }
mit
dankempster/axstrad-filesystem
Exception/MissingIteratorException.php
562
<?php /** * This file is part of the Axstrad library. * * (c) Dan Kempster <dev@dankempster.co.uk> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright 2014-2015 Dan Kempster <dev@dankempster.co.uk> */ namespace Axstrad\Component\Filesystem\Exception; /** * Axstrad\Component\Filesystem\Exception\MissingIteratorException * * @author Dan Kempster <dev@dankempster.co.uk> */ class MissingIteratorException extends LogicException implements Exception { }
mit
yonglehou/Bolt
src/Bolt.Generators/DocumentGenerator.cs
4552
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Bolt.Generators { public class DocumentGenerator : ContractGeneratorBase { private const string Warning = @"//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------"; private readonly List<GeneratorBase> _contractGenerator = new List<GeneratorBase>(); public DocumentGenerator() : this(new StringWriter(), new TypeFormatter(), new IntendProvider()) { } public DocumentGenerator(StringWriter output, TypeFormatter formatter, IntendProvider intendProvider) : base(output, formatter, intendProvider) { } public static DocumentGenerator Create(ContractDefinition contract = null) { return new DocumentGenerator { ContractDefinition = contract }; } public object Context { get; set; } public string GetResult(object context = null) { Generate(context ?? Context); return Output.GetStringBuilder().ToString().Trim(); } public override void Generate(object context) { WriteLine(); foreach (GeneratorBase generator in _contractGenerator) { try { generator.Generate(context); } catch (Exception e) { WriteLine("/*"); WriteLine("Execution of '{0}' generator failed with error '{1}'", generator.GetType().Name, e.ToString()); WriteLine("*/"); } } StringBuilder sb = new StringBuilder(); sb.AppendLine(Warning); sb.AppendLine(); IEnumerable<string> systemNamespaces = Formatter.GetNamespaces().Where(n => n.StartsWith("System")).ToList(); foreach (string ns in Formatter.GetNamespaces().Where(n => n.StartsWith("System"))) { sb.AppendFormat("using {0};\n", ns); } if (systemNamespaces.Any()) { sb.AppendLine(); } foreach (string ns in Formatter.GetNamespaces().Except(systemNamespaces)) { sb.AppendFormat("using {0};\n", ns); } sb.AppendLine(); Output.GetStringBuilder().Insert(0, sb.ToString()); } public DocumentGenerator Async(ContractDefinition definition = null, ClassDescriptor contractDescriptor = null, bool force = false) { return AddContractGenerator(new InterfaceGenerator(Output, Formatter, IntendProvider) { ContractDefinition = definition ?? ContractDefinition, ContractDescriptor = contractDescriptor, ForceAsync = force }); } public DocumentGenerator Proxy(ContractDefinition definition = null, ClassDescriptor descriptor = null, bool forceAsync = false) { return AddContractGenerator(new ProxyGenerator(Output, Formatter, IntendProvider) { ContractDefinition = definition ?? ContractDefinition, ContractDescriptor = descriptor, ForceAsync = forceAsync }); } public void Add(GeneratorBase generator) { var generatorBase = generator as ContractGeneratorBase; if (generatorBase != null) { generatorBase.MetadataProvider = MetadataProvider; Formatter.AddNamespace(generatorBase.ContractDefinition.Namespace); } generator.Output = Output; generator.Formatter = Formatter; generator.IntendProvider = IntendProvider; _contractGenerator.Add(generator); } private DocumentGenerator AddContractGenerator(ContractGeneratorBase generator) { Add(generator); return this; } } }
mit
softdevelop/sm-yii
protected/modules/banners/models/Banner.php
204
<?php Yii::import('application.modules.banners.models._base.BaseBanner'); class Banner extends BaseBanner { public static function model($className=__CLASS__) { return parent::model($className); } }
mit
rollrat/InhaTT
InhaTT/InhaTT/TT/TimeTable.cs
878
/*** Copyright (C) 2017. rollrat. All Rights Reserved. 03-21-2017: HyunJun Jeong, Creation ***/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InhaTT { class TimeTable { bool[] table = new bool[25*5]; int i = 0; public TimeTable() { for (int i = 0; i < 25 * 5; i++) table[i] = false; } public bool CheckOverlap(TimeElement te) { return te.Overlap(table); } public void Add(TimeElement te) { foreach (int i in te.te) table[i] = true; i += 1; } public void Del(TimeElement te) { foreach (int i in te.te) table[i] = false; i -= 1; } } }
mit
klaascuvelier/ShowpadExample3DWebApp
js/services/three.service.js
4537
'use strict'; angular .module('ShowpadDemo') .service('$three', [ function () { var camera, renderer, controls, scene; /** * Initialise three.js and stuff * @param {DOMElement} wrapper * @return {void} */ function init (wrapper) { var width = wrapper.clientWidth, height = wrapper.clientHeight; // create camera object camera = new THREE.PerspectiveCamera(75, width / height, 1, 10000); camera.position.z = 2000; // create the canvas renderer renderer = new THREE.CanvasRenderer(); renderer.setSize(width, height); // add controls but disable them controls = new THREE.OrbitControls(camera, wrapper); controls.zoomSpeed = 0.75; controls.rotateSpeed = 0.75; controls.noPan = true; controls.autoRotate = true; controls.addEventListener('change', function() { render(); }); // add renderer to DOM wrapper.appendChild(renderer.domElement); } /** * Generate the scene * @param {number} horizontalRows * @param {number} verticalRows * @param {number} size * @param {string} color * @return {void} */ function generate(horizontalRows, verticalRows, size, color) { scene = new THREE.Scene(); var boxSize = size * 10, depth = 300, thickness = 20, width = (boxSize * verticalRows) + (thickness * (verticalRows - 1)), height = (boxSize * horizontalRows) + (thickness * (horizontalRows - 1)), meshes = [], i, j, d, l = 4, calc, material, geometry, mesh, light; // first add bottom, top and sides meshes[0] = [ thickness * 2, height + (2 * 2 * thickness), depth, -(width / 2) - (thickness), 0, 0 ]; // left meshes[1] = [ thickness * 2, height + (2 * 2 * thickness), depth, (width / 2) + (thickness), 0, 0 ]; // right meshes[2] = [ width, thickness * 2, depth, 0, (height / 2) + thickness, 0 ]; // top meshes[3] = [ width, thickness * 2, depth, 0, - (height / 2) - thickness, 0 ]; // bottom for (i = 1; i < verticalRows; i++) { calc = -(width / 2) + (boxSize * i) + (thickness * (i - 1)) + (thickness / 2); meshes[l++] = [ thickness, height, depth, calc, 0, 0 ]; } for (i = 1; i < horizontalRows; i++) { for (j = 0; j < verticalRows; j++) { calc = -(width / 2) + (boxSize / 2) + ((boxSize + thickness)* j); meshes[l++] = [ boxSize, thickness, depth, calc, -(height / 2) + (height / horizontalRows * i) , 0 ]; } } for (var i = 0; i < l; i++) { d = meshes[i]; material = new THREE.MeshLambertMaterial( { color: new THREE.Color(color), shading: THREE.FlatShading } ); geometry = new THREE.CubeGeometry(d[0], d[1], d[2]); mesh = new THREE.Mesh(geometry, material); mesh.position.x = d[3]; mesh.position.y = d[4]; mesh.position.z = d[5]; mesh.updateMatrix(); mesh.matrixAutoUpdate = false; scene.add(mesh); } // add lights light = new THREE.DirectionalLight( 0xffffff ); light.position.set(1, 1, 1); scene.add( light ); light = new THREE.DirectionalLight( 0xffffff ); light.position.set(-1, -0.8, -1); scene.add( light ); light = new THREE.AmbientLight( 0x222222); scene.add(light); } function render() { renderer.render(scene, camera); } // return the service definition return { init: init, generate: generate, render: render } } ]);
mit
Devanshu1991/4LTRProject
test/sauce/flashcardsFeature/createFlashCardFromStudyBit.js
3945
require('colors'); var wd = require('wd'); var dataUtil = require("../util/date-utility"); var loginPage = require("../support/pages/login"); var session = require("../support/setup/browser-session"); var studyBitCreation = require("../support/pages/createStudyBit"); var qaTestData = require("../../../test_data/qa.json"); var testData = require("../../../test_data/data.json"); var flashcardCreation = require("../support/pages/createFlashcards"); var clearAllSavedContent = require("../support/pages/clearData"); describe('4LTR (' +'Automation'+') :: createFlashCardFromStudyBit has started', function() { var browser; var allPassed = true; var userType; var product; before(function(done) { browser = session.create(done); userType= testData.termsAssociatedWithStudentUser[5]; product= testData.termsAssociatedWithStudentUser[6]; }); afterEach(function(done) { allPassed = allPassed && (this.currentTest.state === 'passed'); done(); }); after(function(done) { session.close(allPassed,done); }); it("1. Log in as Student",function(done){ loginPage.loginToApplication(userType,browser,done); }); it("2. Select a Product",function(done){ loginPage.selectAProduct(userType,product,browser,done); }); it("3. NAvigate to StudyBOard ", function(done) { studyBitCreation.navigateToStudyBoard(browser, done); }); it("4. Deleting All studybits", function(done) { clearAllSavedContent.clearStudyboard(browser, done); }); it("5. Navigating to Home", function(done) { browser .elementByCssSelectorWhenReady(".icon-home-blue", 5000) .click() .nodeify(done); }); it("6. Click on a Chapter on the tile view ", function(done) { browser .elementByXPathSelectorWhenReady("//a[contains(.,'Overview')]", 2000) .click() .nodeify(done); }); it("7. Click on the first topic link", function(done) { browser .elementByCssSelectorWhenReady("li[class='banner ng-scope']>div>ul>li:nth-child(2) span", 10000) .click() .execute("setTimeout(function(){if(document.getElementById('highlight-help-modal').getAttribute('class').indexOf('ng-hide') == -1)document.getElementsByClassName('icon-close-x-pink')[0].click();},3000)") .nodeify(done); }); it("8. Create a Study bit",function(done){ studyBitCreation.createStudyBitWithFullDetails(browser,done); }); it("9. NAvigate to StudyBOard ", function(done) { studyBitCreation.navigateToStudyBoard(browser, done); }); it("10. Click on the StudyBit ", function(done) { browser .elementByXPathSelectorWhenReady("(//li[contains(@class,'tile')]//div[contains(@class,'text')])[1]",5000) .click() .nodeify(done); }); it("11. Click on the CreateFlashCard ", function(done) { flashcardCreation.createFlashcardFromStudyBit(browser,done); }); it("12. Verify the created Flashcard",function(done){ browser .execute("window.scrollTo(0,0)") .elementByXPathSelectorWhenReady("//a[contains(.,'FILTER')]", 10000) .click() .elementByXPathSelectorWhenReady("//li[@class='ng-binding' and contains(text(),'My Flashcards')]", 10000) .click() .execute("window.scrollTo(1000,1000)") .elementByCssSelectorWhenReady(".studybit.flashcard.text.fair:first-child",3000) .click() .elementByCssSelectorWhenReady(".banner .tag-item.ng-scope:nth-child(2) span",3000) .text() .should.eventually.include("MyTagByAutomation") .nodeify(done); }); it("13. Delete all Flashcards",function(done){ clearAllSavedContent.clearStudyboard(browser, done); }); it("13. Navigate to StudyBit Tab", function(done) { browser .execute("window.scrollTo(0,0)") .elementByXPathSelectorWhenReady("//a[contains(.,'StudyBits')]", 5000) .click() .nodeify(done); }); it("14. Deleting All studybits", function(done) { clearAllSavedContent.clearStudyboard(browser, done); }); });
mit
umulmrum/holiday
tests/Filter/SortByTypeFilterTest.php
3381
<?php /* * This file is part of the umulmrum/holiday package. * * (c) Stefan Kruppa * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Umulmrum\Holiday\Test\Filter; use Umulmrum\Holiday\Filter\SortByTypeFilter; use Umulmrum\Holiday\Model\Holiday; use Umulmrum\Holiday\Model\HolidayList; use Umulmrum\Holiday\Test\HolidayTestCase; final class SortByTypeFilterTest extends HolidayTestCase { /** * @var SortByTypeFilter */ private $filter; /** * @var HolidayList */ private $actualResult; /** * @test * @dataProvider getData * * @param int[] $holidays * @param int[] $expectedResult */ public function it_should_filter_holidays(array $holidays, array $expectedResult): void { $this->givenASortByTypeFilter(); $this->whenFilterIsCalled($holidays); $this->thenACorrectlyFilteredResultShouldBeReturned($expectedResult); } private function givenASortByTypeFilter(): void { $this->filter = new SortByTypeFilter(); } private function whenFilterIsCalled(array $holidays): void { $holidayList = new HolidayList(); foreach ($holidays as $index => $type) { $holidayList->add(Holiday::create("name{$index}", "2020-01-{$index}", $type)); } $this->actualResult = $holidayList->filter($this->filter); } private function thenACorrectlyFilteredResultShouldBeReturned(array $expectedResult): void { $resultTypes = []; foreach ($this->actualResult->getList() as $result) { $resultTypes[] = $result->getType(); } self::assertEquals($expectedResult, $resultTypes); } public function getData(): array { return [ [ [ 0, 1, 2, ], [ 0, 1, 2, ], ], [ [ 3, 2, 1, ], [ 1, 2, 3, ], ], [ [ 0, 0, ], [ 0, 0, ], ], [ [ 0, ], [ 0, ], ], [ [ 3, 1, 1, ], [ 1, 1, 3, ], ], [ [], [], ], [ [ 6, 6, 3, 3, 1, 1, ], [ 1, 1, 3, 3, 6, 6, ], ], ]; } }
mit
siebertm/ext-ux-polyset
vendor/ext-3.2.0/examples/form/states.js
2755
/*! * Ext JS Library 3.2.0 * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license */ // some data used in the examples Ext.namespace('Ext.exampledata'); Ext.exampledata.states = [ ['AL', 'Alabama', 'The Heart of Dixie'], ['AK', 'Alaska', 'The Land of the Midnight Sun'], ['AZ', 'Arizona', 'The Grand Canyon State'], ['AR', 'Arkansas', 'The Natural State'], ['CA', 'California', 'The Golden State'], ['CO', 'Colorado', 'The Mountain State'], ['CT', 'Connecticut', 'The Constitution State'], ['DE', 'Delaware', 'The First State'], ['DC', 'District of Columbia', "The Nation's Capital"], ['FL', 'Florida', 'The Sunshine State'], ['GA', 'Georgia', 'The Peach State'], ['HI', 'Hawaii', 'The Aloha State'], ['ID', 'Idaho', 'Famous Potatoes'], ['IL', 'Illinois', 'The Prairie State'], ['IN', 'Indiana', 'The Hospitality State'], ['IA', 'Iowa', 'The Corn State'], ['KS', 'Kansas', 'The Sunflower State'], ['KY', 'Kentucky', 'The Bluegrass State'], ['LA', 'Louisiana', 'The Bayou State'], ['ME', 'Maine', 'The Pine Tree State'], ['MD', 'Maryland', 'Chesapeake State'], ['MA', 'Massachusetts', 'The Spirit of America'], ['MI', 'Michigan', 'Great Lakes State'], ['MN', 'Minnesota', 'North Star State'], ['MS', 'Mississippi', 'Magnolia State'], ['MO', 'Missouri', 'Show Me State'], ['MT', 'Montana', 'Big Sky Country'], ['NE', 'Nebraska', 'Beef State'], ['NV', 'Nevada', 'Silver State'], ['NH', 'New Hampshire', 'Granite State'], ['NJ', 'New Jersey', 'Garden State'], ['NM', 'New Mexico', 'Land of Enchantment'], ['NY', 'New York', 'Empire State'], ['NC', 'North Carolina', 'First in Freedom'], ['ND', 'North Dakota', 'Peace Garden State'], ['OH', 'Ohio', 'The Heart of it All'], ['OK', 'Oklahoma', 'Oklahoma is OK'], ['OR', 'Oregon', 'Pacific Wonderland'], ['PA', 'Pennsylvania', 'Keystone State'], ['RI', 'Rhode Island', 'Ocean State'], ['SC', 'South Carolina', 'Nothing Could be Finer'], ['SD', 'South Dakota', 'Great Faces, Great Places'], ['TN', 'Tennessee', 'Volunteer State'], ['TX', 'Texas', 'Lone Star State'], ['UT', 'Utah', 'Salt Lake State'], ['VT', 'Vermont', 'Green Mountain State'], ['VA', 'Virginia', 'Mother of States'], ['WA', 'Washington', 'Green Tree State'], ['WV', 'West Virginia', 'Mountain State'], ['WI', 'Wisconsin', "America's Dairyland"], ['WY', 'Wyoming', 'Like No Place on Earth'] ];
mit
dylan-smith/vso-agent-tasks
Tasks/HelmInstallerV0/src/kubectlinstaller.ts
794
"use strict"; import tl = require('vsts-task-lib/task'); import path = require('path'); import fs = require('fs'); import kubectlutility = require("kubernetes-common/kubectlutility"); import * as utils from './utils'; export async function getKuberctlVersion(): Promise<string> { var checkLatestKubeCtl = tl.getBoolInput('checkLatestKubeCtl', false); if(checkLatestKubeCtl) { return await kubectlutility.getStableKubectlVersion(); } let kubectlVersion = tl.getInput("kubectlVersion"); if(kubectlVersion) { return utils.sanitizeVersionString(kubectlVersion); } return kubectlutility.stableKubectlVersion; } export async function downloadKubectl(version : string): Promise<string> { return await kubectlutility.downloadKubectl(version); }
mit
drupalhunter-team/TrackMonitor
Bin/Scripts AM335x/route.lua
1183
require "Scripts Common/tables" require "Scripts AM335x/functions" require "Scripts AM335x/commands" function route(address) SetUByteInTxBuffer(2, address[1]) SetUByteInTxBuffer(3, address[2]) SetUShortInTxBuffer(4, 1) -- Protocol ID SetUShortInTxBuffer(6, 0) -- Frame number SetULongInTxBuffer(8, 1) -- Size SetUByteInTxBuffer(12, Cmd["reset"]) -- Message protocol SetUByteInTxBuffer(13, 2) SendFrameWithSource(address, 14) VerifyThat(CheckFrameValid(2000, true) == true, "Frame valid") VerifyThat(checkFrameNumber(0) == true, "Frame number valid") VerifyThat(checkCodeId(Cmd["reset"]) == true, "Frame command valid") VerifyThat(checkSize(1) == true, "Frame size valid") VerifyThat(checkCode(13, 2) == true, "Frame content valid") end ScenarioBegin("route") TestCaseBegin("Route message") route(Address["STM32"]) route(Address["PC"]) ValidateRequirement("CC7598_SRS_AM335x_Bootloader0029 (1)") ValidateRequirement("CC7598_SRS_AM335x_Bootloader0030 (1)") ValidateRequirement("CC7601_SRS_Boot_Com0010 (2)") ValidateRequirement("CC7601_SRS_Boot_Com0011 (2)") TestCaseEnd() ScenarioEnd()
mit
alepharchives/gloom
clients/python/gloom.py
4377
#! /usr/bin/env python import socket import struct import uuid try: import json except ImportError: import simplejson as json class GloomError(Exception): pass class TransportError(GloomError): pass class ProtocolError(GloomError): pass class ServerError(GloomError): def __init__(self, data): self.error = data.get("error", "unknown error") self.reason = data.get("reason", "unknown cause") def __str__(self): return "%s -> %s" % (self.error, self.reason) class Job(dict): id = property(fget=lambda x: x.get("id"), doc="Job id.") type = property(fget=lambda x: x.get("type"), doc="Job type.") body = property(fget=lambda x: x.get("body"), doc="Job body.") class Protocol(object): def __init__(self, sock): self.sock = sock def disconnect(self): self.sock.close() def send(self, data, timeout=None): self.sock.settimeout(timeout) packet = ''.join([struct.pack("!i", len(data)), data]) self.sock.sendall(packet) def recv(self, timeout=None): self.sock.settimeout(timeout) length = self.sock.recv(4) if len(length) < 4: raise TransportError("Failed to read length.") (length,) = struct.unpack("!i", length) data = self.sock.recv(length) if len(data) < length: raise TransportError("Failed to read payload.") return data class Connection(Protocol): def __init__(self, addr): if isinstance(addr, tuple): sock = socket.socket() sock.connect(addr) super(Connection, self).__init__(sock) elif isinstance(addr, socket.socket): super(Connection, self).__init__(addr) elif isinstance(addr, Protocol): super(Connection, self).__init__(addr.sock) else: mesg = "'%s' is not a tuple, socket, or gloom.Protocol object." raise TypeError(mesg % addr.__class__.__name__) def write(self, data, timeout=None): self.send(json.dumps(data), timeout=timeout) def read(self, timeout=None): ret = json.loads(self.recv(timeout=timeout)) if "error" in ret: raise ServerError(ret) return ret class Master(Connection): def __init__(self, addr=("127.0.0.1", 9998)): super(Master, self).__init__(addr) def new_job_id(self): return uuid.uuid4().hex.upper() def submit(self, id=None, type=None, body=None, timeout=None): if id is None: id = self.new_job_id() data = {"action": "submit", "id": id, "type": type, "body": body} self.write(data, timeout=timeout) ret = self.read(timeout=timeout) if "ok" not in ret or ret["ok"] != True: raise ProtocolError("Unexpected response: %r" % ret) return id def receive(self, timeout=None): ret = self.read(timeout=timeout) for k in ["id", "body"]: if k not in ret: raise ProtocolError("Expected '%s' in job response." % k) return Job(ret) def do_many(self, jobs, timeout=None): ids = set([self.submit(**j) for j in jobs]) while len(ids): job = self.receive(timeout=timeout) ids.remove(job.id) yield job class Slave(Connection): def __init__(self, addr=("127.0.0.1", 9999)): super(Slave, self).__init__(addr) def __iter__(self): return self def next(self): while True: yield self.job() def join(self, type, timeout=None): self.write({"action": "join", "type": type}, timeout=timeout) ret = self.read(timeout=timeout) if "ok" not in ret or ret["ok"] != True: raise ProtocolError("Unexpected response: %r" % ret) return True def job(self, timeout=None): ret = self.read(timeout=timeout) for k in ["action", "id", "type", "body"]: if k not in ret: raise ProtocolError("Expected '%s' in job description." % k) return Job(ret) def respond(self, body=None, timeout=None): self.write({"action": "respond", "body": body}, timeout=timeout) ret = self.read(timeout=timeout) if "ok" not in ret or ret ["ok"] != True: raise ProtocolError("Unexpected response: %r" % ret) return True
mit
WilliamQLiu/scala-examples
example/project/ProgFunBuild.scala
29733
import sbt._ import Keys._ import scalaz.{Success, Failure} import scalaz.syntax.validation._ import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys /** * See README.md for high-level overview * * Libraries Doc Links * * Coursera API * - http://support.coursera.org/customer/portal/articles/573466-programming-assignments * - the python script 'submit.py' that can be downloaded from the above site * * SBT * - https://github.com/harrah/xsbt/wiki/Getting-Started-Full-Def * - https://github.com/harrah/xsbt/wiki/Getting-Started-Custom-Settings * - https://github.com/harrah/xsbt/wiki/Getting-Started-More-About-Settings * - https://github.com/harrah/xsbt/wiki/Input-Tasks * - https://github.com/harrah/xsbt/wiki/Tasks * - http://harrah.github.com/xsbt/latest/api/index.html * - https://groups.google.com/forum/?fromgroups#!forum/simple-build-tool * * Dispatch * - http://dispatch-classic.databinder.net/Response+Bodies.html * - http://www.flotsam.nl/dispatch-periodic-table.html * - http://databinder.net/dispatch-doc/ * * Scalaz * - http://www.lunatech-research.com/archives/2012/03/02/validation-scala * - http://scalaz.github.com/scalaz/scalaz-2.9.1-6.0.4/doc/index.html#scalaz.Validation * * Apache Commons Codec 1.4 * - http://www.jarvana.com/jarvana/view/commons-codec/commons-codec/1.4/commons-codec-1.4-javadoc.jar!/index.html * * Scalatest * - http://doc.scalatest.org/1.9.1/index.html#org.scalatest.package */ object ProgFunBuild extends Build { /*********************************************************** * MAIN PROJECT DEFINITION */ lazy val assignmentProject = Project(id = "assignment", base = file(".")) settings( // 'submit' depends on 'packageSrc', so needs to be a project-level setting: on build-level, 'packageSrc' is not defined submitSetting, createHandoutSetting, // put all libs in the lib_managed directory, that way we can distribute eclipse project files retrieveManaged := true, EclipseKeys.relativizeLibs := true, // Avoid generating eclipse source entries for the java directories (unmanagedSourceDirectories in Compile) <<= (scalaSource in Compile)(Seq(_)), (unmanagedSourceDirectories in Test) <<= (scalaSource in Test)(Seq(_)), commonSourcePackages := Seq(), // see build.sbt gradingTestPackages := Seq(), // see build.sbt selectMainSources, selectTestSources, scalaTestSetting, styleCheckSetting, setTestPropertiesSetting, setTestPropertiesHook, allProjectsSetting ) settings (packageSubmissionFiles: _*) /*********************************************************** * PROJECT DEFINITION FOR RECITATIONS */ lazy val recitations = Project(id = "recitations", base = file("recitations")) /*********************************************************** * SETTINGS AND TASKS */ // a set of all the Parallel Programming assignments val parProgProjects = Set( "scalashop", "reductions" ) /** The 'submit' task uses this project name (defined in the build.sbt file) to know where to submit the solution */ val submitProjectName = SettingKey[String]("submitProjectName") /** Project-specific settings, see main build.sbt */ val projectDetailsMap = SettingKey[Map[String, ProjectDetails]]("projectDetailsMap") /** * The files that are handed out to students. Accepts a string denoting the project name for * which a handout will be generated. */ val handoutFiles = TaskKey[String => PathFinder]("handoutFiles") /** * This setting allows to restrict the source files that are compiled and tested * to one specific project. It should be either the empty string, in which case all * projects are included, or one of the project names from the projectDetailsMap. */ val currentProject = SettingKey[String]("currentProject") /** Package names of source packages common for all projects, see comment in build.sbt */ val commonSourcePackages = SettingKey[Seq[String]]("commonSourcePackages") /** Package names of source packages common for all Parallel Programming projects, see comment in build.sbt */ val parProgCommonSourcePackages = SettingKey[Seq[String]]("parProgCommonSourcePackages") /** Package names of test sources for grading, see comment in build.sbt */ val gradingTestPackages = SettingKey[Seq[String]]("gradingTestPackages") /************************************************************ * SUBMITTING A SOLUTION TO COURSERA */ val packageSubmission = TaskKey[File]("packageSubmission") val packageSubmissionFiles = { // the packageSrc task uses Defaults.packageSrcMappings, which is defined as concatMappings(resourceMappings, sourceMappings) // in the packageSubmisson task we only use the sources, not the resources. inConfig(Compile)(Defaults.packageTaskSettings(packageSubmission, Defaults.sourceMappings)) } /** Task to submit a solution to coursera */ val submit = InputKey[Unit]("submit") lazy val submitSetting = submit := { val args = Def.spaceDelimited("<arg>").parsed val _ = (compile in Compile).value val s = streams.value if (currentProject.value != "") { val msg = """The 'currentProject' setting is not empty: '%s' | |This error only appears if there are mistakes in the build scripts. Please re-download the assignment |from the coursera webiste. Make sure that you did not perform any changes to the build files in the |`project/` directory. If this error persits, ask for help on the course forums.""".format(currentProject.value).stripMargin +"\n " s.log.error(msg) failSubmit() } else { val projectName = submitProjectName.value lazy val wrongNameMsg = """Unknown project name: %s | |This error only appears if there are mistakes in the build scripts. Please re-download the assignment |from the coursera webiste. Make sure that you did not perform any changes to the build files in the |`project/` directory. If this error persits, ask for help on the course forums.""".format(projectName).stripMargin +"\n " // log strips empty lines at the ond of `msg`. to have one we add "\n " val detailsMap = projectDetailsMap.value val details = detailsMap.getOrElse(projectName, {s.log.error(wrongNameMsg); failSubmit()}) args match { case email :: otPassword :: Nil => val sourcesJar = (packageSubmission in Compile).value submitSources(sourcesJar, details, email, otPassword, s.log) case _ => val msg = """No e-mail address and / or submission password provided. The required syntax for `submit` is | submit <e-mail> <submissionPassword> | |The submission password, which is NOT YOUR LOGIN PASSWORD, can be obtained from the assignment page | https:/%s/assignment/index""".format(details.courseId).stripMargin + "\n" s.log.error(msg) failSubmit() } } } def submitSources(sourcesJar: File, submitProject: ProjectDetails, email: String, otPassword: String, logger: Logger) { import CourseraHttp._ logger.info("Connecting to coursera. Obtaining challenge...") val res = for { challenge <- getChallenge(email, submitProject) chResponse <- { logger.info("Computing challenge response...") challengeResponse(challenge, otPassword).successNel[String] } response <- { logger.info("Submitting solution...") submitSolution(sourcesJar, submitProject, challenge, chResponse) } } yield response res match { case Failure(msgs) => for (msg <- msgs.list) logger.error(msg) logger.warn("""NOTE: | - Make sure that you have the freshly downloaded assignment from the | correct course. | - Make sure that your email is correct and that you have copied the | password correctly from the assignments page.""".stripMargin) failSubmit() case Success(response) => logger.success(""" | Your code was successfully submitted: %s | NOTE: | - The final grade is calculated based on the score you get for this assignment | and the number of days that this submission is after the soft deadline. If your | final score does not match please make sure to check the exact deadlines. | - For each assignment there is a limit on the maximum number of attempts you can make. """.format(response).stripMargin) } } def failSubmit(): Nothing = { sys.error("Submission failed") } /*********************************************************** * CREATE THE HANDOUT ZIP FILE */ /** * Displays the list of all projects. */ val allProjects = taskKey[Unit]("allProjects") lazy val allProjectsSetting = allProjects := { println(projectDetailsMap.value.keys.mkString("\n")) } val createHandout = InputKey[File]("createHandout") // depends on "compile in Test" to make sure everything compiles. also makes sure that // all dependencies are downloaded, because we pack the .jar files into the handout. lazy val createHandoutSetting = createHandout := { val args = Def.spaceDelimited("<arg>").parsed val _ = (compile in Test).value if (currentProject.value != "" && currentProject.value != submitProjectName.value) sys.error("\nthe 'currentProject' setting in build.sbt needs to be \"\" or equal to submitProjectName in order to create a handout") else args match { case handoutProjectName :: eclipseDone :: Nil if eclipseDone == "eclipseWasCalled" => if (handoutProjectName != submitProjectName.value) sys.error("\nThe `submitProjectName` setting in `build.sbt` must match the project name for which a handout is generated\n ") val filesFinder = handoutFiles.value val files = filesFinder(handoutProjectName).get val basedir = baseDirectory.value def withRelativeNames(fs: Seq[File]) = fs.pair(relativeTo(basedir)) map { case (file, name) => (file, handoutProjectName+"/"+name) } val filesWithRelativeNames = withRelativeNames(files) val manualDepsWithRelativeNames = withRelativeNames(IO.listFiles(basedir / "lib")) val targetZip = target.value / (handoutProjectName +".zip") IO.zip(filesWithRelativeNames ++ manualDepsWithRelativeNames, targetZip) targetZip case _ => val detailsMap = projectDetailsMap.value val msg =""" | |Failed to create handout. Syntax: `createHandout <projectName> <eclipseWasCalled>` | |Valid project names are: %s | |The argument <eclipseWasCalled> needs to be the string "eclipseWasCalled". This is to remind |you that you **need** to manually run the `eclipse` command before running `createHandout`. | """.stripMargin.format(detailsMap.keys.mkString(", ")) sys.error(msg) } } /************************************************************ * LIMITING SOURCES TO CURRENT PROJECT */ def filter(basedir: File, packages: Seq[String]) = new FileFilter { def accept(file: File) = { basedir.equals(file) || { IO.relativize(basedir, file) match { case Some(str) => packages exists { pkg => str.startsWith(pkg) } case _ => sys.error("unexpected test file: "+ file +"\nbase dir: "+ basedir) } } } } def projectFiles(allFiles: Seq[File], basedir: File, projectName: String, globalPackages: Seq[String], detailsMap: Map[String, ProjectDetails]) = { if (projectName == "") allFiles else detailsMap.get(projectName) match { case Some(project) => val finder = allFiles ** filter(basedir, globalPackages :+ project.packageName) finder.get case None => sys.error("currentProject is set to an invalid name: "+ projectName) } } /** * Only include source files of 'currentProject', helpful when preparing a specific assignment. * Also keeps the source packages in 'commonSourcePackages' and 'parProgCommonSourcePackages' if this is a Parallel Programming exercise. */ val selectMainSources = { (unmanagedSources in Compile) <<= (unmanagedSources in Compile, scalaSource in Compile, projectDetailsMap, currentProject, commonSourcePackages, parProgCommonSourcePackages) map { (sources, srcMainScalaDir, detailsMap, projectName, commonSrcs, parProgCommonSrcs) => val globalSrcs = if (parProgProjects(projectName)) commonSrcs ++ parProgCommonSrcs else commonSrcs projectFiles(sources, srcMainScalaDir, projectName, globalSrcs, detailsMap) } } /** * Only include the test files which are defined in the package of the current project. * Also keeps test sources in packages listed in 'gradingTestPackages'. */ val selectTestSources = { (unmanagedSources in Test) <<= (unmanagedSources in Test, scalaSource in Test, projectDetailsMap, currentProject, gradingTestPackages) map { (sources, srcTestScalaDir, detailsMap, projectName, gradingSrcs) => projectFiles(sources, srcTestScalaDir, projectName, gradingSrcs, detailsMap) } } /************************************************************ * PARAMETERS FOR RUNNING THE TESTS * * Setting some system properties that are parameters for the GradingSuite test * suite mixin. This is for running the `test` task in SBT's JVM. When running * the `scalaTest` task, the ScalaTestRunner creates a new JVM and passes the * same properties. */ val setTestProperties = TaskKey[Unit]("setTestProperties") val setTestPropertiesSetting = setTestProperties := { import scala.util.Properties._ import Settings._ setProp(scalaTestIndividualTestTimeoutProperty, individualTestTimeout.toString) setProp(scalaTestDefaultWeigthProperty, scalaTestDefaultWeigth.toString) } val setTestPropertiesHook = (test in Test) <<= (test in Test).dependsOn(setTestProperties) /************************************************************ * RUNNING WEIGHTED SCALATEST & STYLE CHECKER ON DEVELOPMENT SOURCES */ def copiedResourceFiles(copied: collection.Seq[(java.io.File, java.io.File)]): List[File] = { copied.collect { case (from, to) if to.isFile => to }.toList } val scalaTest = TaskKey[Unit]("scalaTest") val scalaTestSetting = scalaTest <<= (compile in Compile, compile in Test, fullClasspath in Test, copyResources in Compile, classDirectory in Test, baseDirectory, streams) map { (_, _, classpath, resources, testClasses, basedir, s) => // we use `map`, so this is only executed if all dependencies succeed. no need to check `GradingFeedback.isFailed` val logger = s.log val outfile = basedir / Settings.testResultsFileName val policyFile = basedir / Settings.policyFileName val (score, maxScore, feedback, runLog) = ScalaTestRunner.runScalaTest(classpath, testClasses, outfile, policyFile, copiedResourceFiles(resources), logger.error(_)) logger.info(feedback) logger.info("Test Score: "+ score +" out of "+ maxScore) if (!runLog.isEmpty) { logger.info("Console output of ScalaTest process") logger.info(runLog) } } val styleCheck = TaskKey[Unit]("styleCheck") /** * depend on compile to make sure the sources pass the compiler */ val styleCheckSetting = styleCheck <<= (compile in Compile, sources in Compile, streams) map { (_, sourceFiles, s) => val logger = s.log val (feedback, score) = StyleChecker.assess(sourceFiles) logger.info(feedback) logger.info("Style Score: "+ score +" out of "+ StyleChecker.maxResult) } /************************************************************ * PROJECT DEFINITION FOR GRADING */ lazy val submissionProject = Project(id = "submission", base = file(Settings.submissionDirName)) settings( /** settings we take over from the assignment project */ version <<= (version in assignmentProject), name <<= (name in assignmentProject), scalaVersion <<= (scalaVersion in assignmentProject), scalacOptions <<= (scalacOptions in assignmentProject), libraryDependencies <<= (libraryDependencies in assignmentProject), unmanagedBase <<= (unmanagedBase in assignmentProject), /** settings specific to the grading project */ initGradingSetting, // default value, don't change. see comment on `val partIdOfGradingProject` gradingUUID := "", partIdOfGradingProject := "", gradingCourseId := "", gradeProjectDetailsSetting, setMaxScoreSetting, setMaxScoreHook, // default value, don't change. see comment on `val apiKey` apiKey := "", getSubmissionSetting, getSubmissionHook, submissionLoggerSetting, readCompileLog, readTestCompileLog, setTestPropertiesSetting, setTestPropertiesHook, resourcesFromAssignment, selectResourcesForProject, testSourcesFromAssignment, selectTestsForProject, scalaTestSubmissionSetting, styleCheckSubmissionSetting, gradeSetting, EclipseKeys.skipProject := true ) /** * The assignment uuid that is used for uniquely connecting feedback to the logs. */ val gradingUUID = SettingKey[String]("gradingUUID") /** * The assignment part id of the project to be graded. Don't hard code this setting in .sbt or .scala, this * setting should remain a (command-line) parameter of the `submission/grade` task, defined when invoking sbt. * See also feedback string in "val gradeProjectDetailsSetting". */ val partIdOfGradingProject = SettingKey[String]("partIdOfGradingProject") /** * she assignment part id of the project to be graded. Don't hard code this setting in .sbt or .scala, this * setting should remain a (command-line) parameter of the `submission/grade` task, defined when invoking sbt. * See also feedback string in "val gradeProjectDetailsSetting". */ val gradingCourseId = SettingKey[String]("gradingCourseId") /** * The api key to access non-public api parts on coursera. This key is secret! It's defined in * 'submission/settings.sbt', which is not part of the handout. * * Default value 'apiKey' to make the handout sbt project work * - In the handout, apiKey needs to be defined, otherwise the build doesn't compile * - When correcting, we define 'apiKey' in the 'submission/sectrets.sbt' file * - The value in the .sbt file will take precedence when correcting (settings in .sbt take * precedence over those in .scala) */ val apiKey = SettingKey[String]("apiKey") /************************************************************ * GRADING INITIALIZATION */ val initGrading = TaskKey[Unit]("initGrading") lazy val initGradingSetting = initGrading <<= (clean, sourceDirectory, baseDirectory) map { (_, submissionSrcDir, basedir) => deleteFiles(submissionSrcDir, basedir) GradingFeedback.initialize() RecordingLogger.clear() } def deleteFiles(submissionSrcDir: File, basedir: File) { // don't delete anything in offline mode, useful for us when hacking testing / stylechecking if (!Settings.offlineMode){ IO.delete(submissionSrcDir) IO.delete(basedir / Settings.submissionJarFileName) IO.delete(basedir / Settings.testResultsFileName) } } /** ProjectDetails of the project that we are grading */ val gradeProjectDetails = TaskKey[ProjectDetails]("gradeProjectDetails") // here we depend on `initialize` because we already use the GradingFeedback lazy val gradeProjectDetailsSetting = gradeProjectDetails <<= (initGrading, gradingCourseId, partIdOfGradingProject, projectDetailsMap in assignmentProject) map { (_, gradingCourseId, partId, detailsMap) => detailsMap.find(_._2.assignmentPartId == partId) match { case Some((_, details)) => details.copy(courseId = gradingCourseId) case None => val validIds = detailsMap.map(_._2.assignmentPartId) val msgRaw = """Unknown assignment part id: %s |Valid part ids are: %s | |In order to grade a project, the `partIdOfGradingProject` setting has to be defined. If you are running |interactively in the sbt console, type `set (partIdOfGradingProject in submissionProject) := "idString"`. |When running the grading task from the command line, add the above `set` command, e.g. execute | | sbt 'set (partIdOfGradingProject in submissionProject) := "idString"' submission/grade""" val msg = msgRaw.stripMargin.format(partId, validIds.mkString(", ")) + "\n " GradingFeedback.downloadUnpackFailed(msg) sys.error(msg) } } val setMaxScore = TaskKey[Unit]("setMaxScore") val setMaxScoreSetting = setMaxScore <<= (gradeProjectDetails) map { project => GradingFeedback.setMaxScore(project.maxScore, project.styleScoreRatio) } // set the maximal score before running compile / test / ... val setMaxScoreHook = (compile in Compile) <<= (compile in Compile).dependsOn(setMaxScore) /************************************************************ * DOWNLOADING AND EXTRACTING SUBMISSION */ val getSubmission = TaskKey[Unit]("getSubmission") val getSubmissionSetting = getSubmission <<= (baseDirectory, scalaSource in Compile) map { (baseDir, scalaSrcDir) => readAndUnpackSubmission(baseDir, scalaSrcDir) } def readAndUnpackSubmission(baseDir: File, targetSourceDir: File) { try { val jsonFile = baseDir / Settings.submissionJsonFileName val targetJar = baseDir / Settings.submissionJarFileName val res = for { queueResult <- { if (Settings.offlineMode) { println("[not unpacking from json file]") QueueResult("").successNel } else { CourseraHttp.readJsonFile(jsonFile, targetJar) } } _ <- { GradingFeedback.apiState = queueResult.apiState CourseraHttp.unpackJar(targetJar, targetSourceDir) } } yield () res match { case Failure(msgs) => GradingFeedback.downloadUnpackFailed(msgs.list.mkString("\n")) case _ => () } } catch { case e: Throwable => // generate some useful feedback in case something fails GradingFeedback.downloadUnpackFailed(CourseraHttp.fullExceptionString(e)) throw e } if (GradingFeedback.isFailed) failDownloadUnpack() } // dependsOn makes sure that `getSubmission` is executed *before* `unmanagedSources` val getSubmissionHook = (unmanagedSources in Compile) <<= (unmanagedSources in Compile).dependsOn(getSubmission) def failDownloadUnpack(): Nothing = { sys.error("Download or Unpack failed") } /************************************************************ * READING COMPILATION AND TEST COMPILATION LOGS */ // extraLoggers need to be defined globally. (extraLoggers in Compile) does not work - sbt only // looks at the global extraLoggers when creating the LogManager. val submissionLoggerSetting = extraLoggers ~= { currentFunction => (key: ScopedKey[_]) => { new FullLogger(RecordingLogger) +: currentFunction(key) } } val readCompileLog = (compile in Compile) <<= (compile in Compile).result map handleFailure(compileFailed) val readTestCompileLog = (compile in Test) <<= (compile in Test).result map handleFailure(compileTestFailed) def handleFailure[R](handler: (Incomplete, String) => Unit) = (res: Result[R]) => res match { case Inc(inc) => // Only call the handler of the task that actually failed. See comment in GradingFeedback.failed if (!GradingFeedback.isFailed) handler(inc, RecordingLogger.readAndClear()) throw inc case Value(v) => v } def compileFailed(inc: Incomplete, log: String) { GradingFeedback.compileFailed(log) } def compileTestFailed(inc: Incomplete, log: String) { GradingFeedback.testCompileFailed(log) } /************************************************************ * RUNNING SCALATEST */ /** The submission project takes resource files from the main (assignment) project */ val resourcesFromAssignment = { (resourceDirectory in Compile) <<= (resourceDirectory in (assignmentProject, Compile)) } /** * Only include the resource files which are defined in the package of the current project. */ val selectResourcesForProject = { (resources in Compile) <<= (resources in Compile, resourceDirectory in (assignmentProject, Compile), gradeProjectDetails) map { (resources, resourceDir, project) => val finder = resources ** filter(resourceDir, List(project.packageName)) finder.get } } /** The submission project takes test files from the main (assignment) project */ val testSourcesFromAssignment = { (sourceDirectory in Test) <<= (sourceDirectory in (assignmentProject, Test)) } /** * Only include the test files which are defined in the package of the current project. * Also keeps test sources in packages listed in 'gradingTestPackages' */ val selectTestsForProject = { (unmanagedSources in Test) <<= (unmanagedSources in Test, scalaSource in (assignmentProject, Test), gradingTestPackages in assignmentProject, gradeProjectDetails) map { (sources, testSrcScalaDir, gradingSrcs, project) => val finder = sources ** filter(testSrcScalaDir, gradingSrcs :+ project.packageName) finder.get } } val scalaTestSubmission = TaskKey[Unit]("scalaTestSubmission") val scalaTestSubmissionSetting = scalaTestSubmission <<= (compile in Compile, compile in Test, fullClasspath in Test, copyResources in Compile, classDirectory in Test, baseDirectory) map { (_, _, classpath, resources, testClasses, basedir) => // we use `map`, so this is only executed if all dependencies succeed. no need to check `GradingFeedback.isFailed` val outfile = basedir / Settings.testResultsFileName val policyFile = basedir / ".." / Settings.policyFileName ScalaTestRunner.scalaTestGrade(classpath, testClasses, outfile, policyFile, copiedResourceFiles(resources)) } /************************************************************ * STYLE CHECKING */ val styleCheckSubmission = TaskKey[Unit]("styleCheckSubmission") /** * - depend on scalaTestSubmission so that test get executed before style checking. the transitive * dependencies also ensures that the "sources in Compile" don't have compilation errors * - using `map` makes this task execute only if all its dependencies succeeded. */ val styleCheckSubmissionSetting = styleCheckSubmission <<= (sources in Compile, scalaTestSubmission) map { (sourceFiles, _) => val (feedback, score) = StyleChecker.assess(sourceFiles) if (score == StyleChecker.maxResult) { GradingFeedback.perfectStyle() } else { val gradeScore = GradingFeedback.maxStyleScore * score / StyleChecker.maxResult GradingFeedback.styleProblems(feedback, gradeScore) } } /************************************************************ * SUBMITTING GRADES TO COURSERA */ val grade = TaskKey[Unit]("grade") // mapR: submit the grade / feedback in any case, also on failure val gradeSetting = grade <<= (gradingUUID, scalaTestSubmission, styleCheckSubmission, apiKey, gradeProjectDetails, streams) mapR { (uuidR, _, _, apiKeyR, projectDetailsR, s) => val Value(uuid) = uuidR val logOpt = s match { case Value(v) => Some(v.log) case _ => None } logOpt.foreach(_.info(GradingFeedback.feedbackString(uuid, html = false))) val Value(projectDetails) = projectDetailsR apiKeyR match { case Value(originalApiKey) if (!originalApiKey.isEmpty) => val apiKey = projectDetails.courseId match { // OMG what a hack!!! case "progfun-006" => "iqw9WQi3MgvmOJsK" case "reactive-001" => "Pwnc6dEcYBBAuCSP2mof-react" case "progfun2-002" => "iqw9WQi3MgvmOJsK" case "parprog-001" => "jqw9WQi3MgvmOJsK-parprog" } logOpt.foreach(_.debug("Course Id for submission: " + projectDetails.courseId)) logOpt.foreach(_.debug("Corresponding API key: " + apiKey)) // if build failed early, we did not even get the api key from the submission queue if (!GradingFeedback.apiState.isEmpty && !Settings.offlineMode) { val scoreString = "%.2f".format(GradingFeedback.totalScore) CourseraHttp.submitGrade(GradingFeedback.feedbackString(uuid), scoreString, GradingFeedback.apiState, apiKey, projectDetails, logOpt) match { case Failure(msgs) => sys.error(msgs.list.mkString("\n")) case _ => () } } else if(Settings.offlineMode) { logOpt.foreach(_.info(" \nSettings.offlineMode enabled, not uploading the feedback")) } else { sys.error("Could not submit feedback - apiState not initialized") } case _ => sys.error("Could not submit feedback - apiKey not defined: "+ apiKeyR) } } } case class ProjectDetails(packageName: String, assignmentPartId: String, maxScore: Double, styleScoreRatio: Double, courseId: String)
mit
Hitcents/Xamarin.Forms
Xamarin.Forms.Platform.iOS/NativeBindingService.cs
976
using System; using UIKit; [assembly: Xamarin.Forms.Dependency(typeof(Xamarin.Forms.Platform.iOS.NativeBindingService))] namespace Xamarin.Forms.Platform.iOS { class NativeBindingService : Xaml.INativeBindingService { public bool TrySetBinding(object target, string propertyName, BindingBase binding) { var view = target as UIView; if (view == null) return false; if (target.GetType().GetProperty(propertyName)?.GetMethod == null) return false; view.SetBinding(propertyName, binding); return true; } public bool TrySetBinding(object target, BindableProperty property, BindingBase binding) { var view = target as UIView; if (view == null) return false; view.SetBinding(property, binding); return true; } public bool TrySetValue(object target, BindableProperty property, object value) { var view = target as UIView; if (view == null) return false; view.SetValue(property, value); return true; } } }
mit
flyingmachine/openhercules
config/application.rb
2523
require File.expand_path('../boot', __FILE__) require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "sprockets/railtie" if defined?(Bundler) # If you precompile assets before deploying to production, use this line Bundler.require *Rails.groups(:assets => %w(development test)) # If you want your assets lazily compiled in production, use this line # Bundler.require(:default, :assets, Rails.env) end module Checklisthub class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Custom directories with classes and modules you want to be autoloadable. # config.autoload_paths += %W(#{config.root}/extras) # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. # config.plugins = [ :exception_notification, :ssl_requirement, :all ] # Activate observers that should always be running. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password] # Enable the asset pipeline config.assets.enabled = true # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' config.generators do |g| g.template_engine :haml g.test_framework :rspec, :fixture => true, :views => false g.stylesheets false g.fixture_replacement :factory_girl, :dir => 'spec/factories' end config.action_view.field_error_proc = Proc.new { |html_tag, instance| %Q(<div class="error">#{html_tag}</div>).html_safe } end end
mit
Billary/BillaryCoinSource
src/qt/locale/bitcoin_hi_IN.ts
115041
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BillaryCoin</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;BillaryCoin&lt;/b&gt; version</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The 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 type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>दो बार क्लिक करे पता या लेबल संपादन करने के लिए !</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>नया पता लिखिए !</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>चुनिन्दा पते को सिस्टम क्लिपबोर्ड पर कापी करे !</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="+60"/> <source>&amp;Copy Address</source> <translation>&amp;पता कॉपी करे</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a BillaryCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;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="-14"/> <source>Verify a message to ensure it was signed with a specified BillaryCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;मिटाए !!</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation>&amp;लेबल कॉपी करे </translation> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation>&amp;एडिट</translation> </message> <message> <location line="+250"/> <source>Export Address Book Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Comma separated file (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>लेबल</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>पता</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(कोई लेबल नही !)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>पहचान शब्द/अक्षर डालिए !</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>नया पहचान शब्द/अक्षर डालिए !</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>दोबारा नया पहचान शब्द/अक्षर डालिए !</translation> </message> <message> <location line="+33"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>For staking only</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+35"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>नया पहचान शब्द/अक्षर वॉलेट मे डालिए ! &lt;br/&gt; कृपा करके पहचान शब्द में &lt;br&gt; 10 से ज़्यादा अक्षॉरों का इस्तेमाल करे &lt;/b&gt;,या &lt;b&gt;आठ या उससे से ज़्यादा शब्दो का इस्तेमाल करे&lt;/b&gt; !</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>एनक्रिप्ट वॉलेट !</translation> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>वॉलेट खोलने के आपका वॉलेट पहचान शब्द्‌/अक्षर चाईए !</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>वॉलेट खोलिए</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>वॉलेट डीक्रिप्ट( विकोड) करने के लिए आपका वॉलेट पहचान शब्द्‌/अक्षर चाईए !</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation> डीक्रिप्ट वॉलेट</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>पहचान शब्द/अक्षर बदलिये !</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>कृपा करके पुराना एवं नया पहचान शब्द/अक्षर वॉलेट में डालिए !</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>वॉलेट एनक्रिपशन को प्रमाणित कीजिए !</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>वॉलेट एनक्रिप्ट हो गया !</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 type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+44"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>वॉलेट एनक्रिप्ट नही हुआ!</translation> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>वॉलेट एनक्रिपशन नाकाम हो गया इंटर्नल एरर की वजह से! आपका वॉलेट एनक्रीपत नही हुआ है!</translation> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation>आपके द्वारा डाले गये पहचान शब्द/अक्षर मिलते नही है !</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>वॉलेट का लॉक नही खुला !</translation> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>वॉलेट डीक्रिप्ट करने के लिए जो पहचान शब्द/अक्षर डाले गये है वो सही नही है!</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>वॉलेट का डीक्रिप्ट-ष्ण असफल !</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"/> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+280"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location line="+242"/> <source>Synchronizing with network...</source> <translation>नेटवर्क से समकालिक (मिल) रहा है ...</translation> </message> <message> <location line="-308"/> <source>&amp;Overview</source> <translation>&amp;विवरण</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>वॉलेट का सामानया विवरण दिखाए !</translation> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation>&amp; लेन-देन </translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>देखिए पुराने लेन-देन के विवरण !</translation> </message> <message> <location line="+5"/> <source>&amp;Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit the list of stored addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="-13"/> <source>&amp;Receive coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"/> </message> <message> <location line="-7"/> <source>&amp;Send coins</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>E&amp;xit</source> <translation>बाहर जायें</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>अप्लिकेशन से बाहर निकलना !</translation> </message> <message> <location line="+4"/> <source>Show information about BillaryCoin</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;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>&amp;Options...</source> <translation>&amp;विकल्प</translation> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;बैकप वॉलेट</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+250"/> <source>~%n block(s) remaining</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation type="unfinished"/> </message> <message> <location line="-247"/> <source>&amp;Export...</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Send coins to a BillaryCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Modify configuration options for BillaryCoin</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Encrypt or decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>पहचान शब्द/अक्षर जो वॉलेट एनक्रिपशन के लिए इस्तेमाल किया है उसे बदलिए!</translation> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="-200"/> <source>BillaryCoin</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet</source> <translation>वॉलेट</translation> </message> <message> <location line="+178"/> <source>&amp;About BillaryCoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>&amp;File</source> <translation>&amp;फाइल</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;सेट्टिंग्स</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>&amp;मदद</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>टैबस टूलबार</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>[टेस्टनेट]</translation> </message> <message> <location line="+0"/> <location line="+60"/> <source>BillaryCoin client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+70"/> <source>%n active connection(s) to BillaryCoin network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+40"/> <source>Downloaded %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+413"/> <source>Staking.&lt;br&gt;Your weight is %1&lt;br&gt;Network weight is %2&lt;br&gt;Expected time to earn reward is %3</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Not staking because wallet is locked</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is syncing</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because you don&apos;t have mature coins</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-403"/> <source>%n second(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="-284"/> <source>&amp;Unlock Wallet...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+288"/> <source>%n minute(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Up to date</source> <translation>नवीनतम</translation> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Last received block was generated %1.</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation>भेजी ट्रांजक्शन</translation> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation>प्राप्त हुई ट्रांजक्शन</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>तारीख: %1\n राशि: %2\n टाइप: %3\n पता:%4\n</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 &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>वॉलेट एन्क्रिप्टेड है तथा अभी लॉक्ड नहीं है</translation> </message> <message> <location line="+10"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>वॉलेट एन्क्रिप्टेड है तथा अभी लॉक्ड है</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 घंटा</numerusform><numerusform>%n घंटे</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n दिन</numerusform><numerusform>%n दिनो</numerusform></translation> </message> <message> <location line="+18"/> <source>Not staking</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Amount:</source> <translation>राशि :</translation> </message> <message> <location line="+32"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="+551"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change:</source> <translation type="unfinished"/> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>List mode</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Amount</source> <translation>राशि</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Address</source> <translation>पता</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>taareek</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation>पक्का</translation> </message> <message> <location line="+5"/> <source>Priority</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation>पता कॉपी करे</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>लेबल कॉपी करे </translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>कॉपी राशि</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+317"/> <source>highest</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium-high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>low-medium</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>low</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>lowest</source> <translation type="unfinished"/> </message> <message> <location line="+155"/> <source>DUST</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>yes</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. 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>(कोई लेबल नही !)</translation> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>(change)</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>पता एडिट करना</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;लेबल</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>&amp;Address</source> <translation>&amp;पता</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>नया स्वीकार्य पता</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>नया भेजने वाला पता</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>एडिट स्वीकार्य पता </translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>एडिट भेजने वाला पता</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>डाला गया पता &quot;%1&quot; एड्रेस बुक में पहले से ही मोजूद है|</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid BillaryCoin address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>वॉलेट को unlock नहीं किया जा सकता|</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>नयी कुंजी का निर्माण असफल रहा|</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>BillaryCoin-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 &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>विकल्प</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Reserve</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start BillaryCoin after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;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>&amp;Detach databases at shutdown</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation type="unfinished"/> </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 &amp;UPnP</source> <translation type="unfinished"/> </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>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;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>&amp;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 &amp;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>&amp;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>&amp;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&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;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 BillaryCoin.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;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 BillaryCoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"/> </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 &amp;control features (experts only!)</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;ओके</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;कैन्सल</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+55"/> <source>default</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>फार्म</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 type="unfinished"/> </message> <message> <location line="-107"/> <source>Wallet</source> <translation>वॉलेट</translation> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <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="+20"/> <source>Total:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;हाल का लेन-देन&lt;/b&gt;</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 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>&amp;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="+348"/> <source>N/A</source> <translation>लागू नही </translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;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>&amp;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 BillaryCoin-Qt help message to get a list with possible BillaryCoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </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 type="unfinished"/> </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 type="unfinished"/> </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 &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; 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="+182"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>सिक्के भेजें|</translation> </message> <message> <location line="+76"/> <source>Coin Control Features</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Inputs...</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>automatically selected</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Insufficient funds!</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <location line="+35"/> <source>0</source> <translation type="unfinished"/> </message> <message> <location line="-19"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Amount:</source> <translation>राशि :</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 type="unfinished"/> </message> <message> <location line="+19"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>custom change address</source> <translation type="unfinished"/> </message> <message> <location line="+106"/> <source>Send to multiple recipients at once</source> <translation>एक साथ कई प्राप्तकर्ताओं को भेजें</translation> </message> <message> <location line="+3"/> <source>Add &amp;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 &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Balance:</source> <translation>बाकी रकम :</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>भेजने की पुष्टि करें</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>कॉपी राशि</translation> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+86"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>सिक्के भेजने की पुष्टि करें</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source> and </source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>भेजा गया अमाउंट शुन्य से अधिक होना चाहिए|</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation 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>(कोई लेबल नही !)</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&amp;mount:</source> <translation>अमाउंट:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>प्राप्तकर्ता:</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>आपकी एड्रेस बुक में इस एड्रेस के लिए एक लेबल लिखें</translation> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation>लेबल:</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>Clipboard से एड्रेस paste करें</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 type="unfinished"/> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="-118"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+203"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-193"/> <location line="+203"/> <source>Alt+A</source> <translation>Alt-A</translation> </message> <message> <location line="-193"/> <source>Paste address from clipboard</source> <translation>Clipboard से एड्रेस paste करें</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 type="unfinished"/> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this BillaryCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="-64"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified BillaryCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a BillaryCoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </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 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>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation>खुला है जबतक %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 type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/अपुष्ट</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 पुष्टियाँ</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>taareek</translation> </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></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 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 &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation>राशि</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>सही</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>ग़लत</translation> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation>, अभी तक सफलतापूर्वक प्रसारित नहीं किया गया है</translation> </message> <message> <location line="+35"/> <source>unknown</source> <translation>अज्ञात</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>लेन-देन का विवरण</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation> ये खिड़की आपको लेन-देन का विस्तृत विवरण देगी !</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+226"/> <source>Date</source> <translation>taareek</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>टाइप</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>पता</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>राशि</translation> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation>खुला है जबतक %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>पक्के ( %1 पक्का करना)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>यह ब्लॉक किसी भी और नोड को मिला नही है ! शायद यह ब्लॉक कोई भी नोड स्वीकारे गा नही !</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>जेनरेट किया गया किंतु स्वीकारा नही गया !</translation> </message> <message> <location line="+42"/> <source>Received with</source> <translation>स्वीकारा गया</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>स्वीकार्य ओर से</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>भेजा गया</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>भेजा खुद को भुगतान</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>माइंड</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(लागू नहीं)</translation> </message> <message> <location line="+190"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>ट्रांसेक्शन स्तिथि| पुष्टियों की संख्या जानने के लिए इस जगह पर माउस लायें|</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>तारीख तथा समय जब ये ट्रांसेक्शन प्राप्त हुई थी|</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>ट्रांसेक्शन का प्रकार|</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>ट्रांसेक्शन की मंजिल का पता|</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>अमाउंट बैलेंस से निकला या जमा किया गया |</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation>सभी</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>आज</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>इस हफ्ते</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>इस महीने</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>पिछले महीने</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>इस साल</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>विस्तार...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>स्वीकार करना</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>भेजा गया</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>अपनेआप को</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>माइंड</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>अन्य</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>ढूँदने के लिए कृपा करके पता या लेबल टाइप करे !</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>लघुत्तम राशि</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>पता कॉपी करे</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>लेबल कॉपी करे </translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>कॉपी राशि</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>एडिट लेबल</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+144"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Comma separated file (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>पक्का</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>taareek</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>टाइप</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>लेबल</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>पता</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>राशि</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>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>विस्तार:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>तक</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>खपत :</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>commands की लिस्ट बनाएं</translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>किसी command के लिए मदद लें</translation> </message> <message> <location line="+2"/> <source>Options:</source> <translation>विकल्प:</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 type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>डेटा डायरेक्टरी बताएं </translation> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Listen for connections on &lt;port&gt; (default: 6791 or testnet: 16791)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </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 &lt;port&gt; (default: 6792 or testnet: 16792)</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"/> </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>बैकग्राउंड में डेमॉन बन कर रन करे तथा कमांड्स स्वीकार करें </translation> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation>टेस्ट नेटवर्क का इस्तेमाल करे </translation> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </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 type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;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 type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </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: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </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 type="unfinished"/> </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 type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"/> </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 &quot;BillaryCoin Alert&quot; 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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"/> </message> <message> <location line="+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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"/> </message> <message> <location line="+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 type="unfinished"/> </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 type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation>पता पुस्तक आ रही है...</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 type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </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>राशि ग़लत है</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation>ब्लॉक इंडेक्स आ रहा है...</translation> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </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=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation>वॉलेट आ रहा है...</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>रि-स्केनी-इंग...</translation> </message> <message> <location line="+5"/> <source>Done loading</source> <translation>लोड हो गया|</translation> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Error</source> <translation>भूल</translation> </message> <message> <location line="+6"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> </context> </TS>
mit
nHiRanZ/onyx-hospitality
footer.php
517
<!-- Bootstrap --> <!--<script src="js/npm.js"></script>--> <script src="js/jquery-3.1.1.min.js"></script> <script src="js/bootstrap.js"></script> <!--<script src="js/bootstrap-datetimepicker.min.js"></script>--> <div class="footer"> <center> <p style="font-weight: bold">ONYX Hospitality Inc. 2017</p> <span> <a href="about.php">About</a> <a href="contact.php">Contact us</a> <a>Facebook</a> <a>Twitter</a> </span> </center> </div>
mit
proxima-cms/core
proxima/core/views/admin/page/component/types/edit.php
832
<div class="action-bar clear"> <div class="action-menu helper-right"> <button>Actions</button> <ul> <li><?php echo HTML::anchor('admin/components/delete/'.$component->id, __('Delete component'))?></li> </ul> </div> <?php echo $breadcrumbs?> </div> <?php echo Form::open()?> <fieldset> <legend>Metadata</legend> <div class="field"> <?php echo Form::label('name', __('Name'), NULL, $errors). Form::input('name', $component->name, NULL, $errors) ?> </div> <div class="field"> <?php echo Form::label('description', __('Description'), NULL, $errors). Form::textarea('description', $component->description, NULL, TRUE, $errors) ?> </div> </fieldset> <?php echo Form::button('save', 'Save', array('type' => 'submit', 'class' => 'ui-button save'))?> <?php echo Form::close()?>
mit
geosolutions-it/geonetwork-manager
src/main/java/it/geosolutions/geonetwork/op/gn210/GNMetadataUpdate.java
7352
/* * GeoNetwork-Manager - Simple Manager Library for GeoNetwork * * Copyright (C) 2007,2011 GeoSolutions S.A.S. * http://www.geo-solutions.it * * 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 it.geosolutions.geonetwork.op.gn210; import it.geosolutions.geonetwork.exception.GNLibException; import it.geosolutions.geonetwork.exception.GNServerException; import it.geosolutions.geonetwork.util.HTTPUtils; import java.io.File; import java.io.StringReader; import org.apache.commons.httpclient.HttpStatus; import org.apache.log4j.Logger; import org.jdom.CDATA; import org.jdom.Document; import org.jdom.Element; import org.jdom.input.SAXBuilder; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; /** * <h3>Update metadata</h3> * * @author ETj (etj at geo-solutions.it) */ public class GNMetadataUpdate { private final static Logger LOGGER = Logger.getLogger(GNMetadataUpdate.class); /** * */ public static void update(HTTPUtils connection, String gnServiceURL, Long id, String version, File inputFile) throws GNLibException, GNServerException { update(connection, gnServiceURL, id, version, inputFile, null); } /** * */ public static void update(HTTPUtils connection, String gnServiceURL, Long id, String version, File inputFile, String encoding) throws GNLibException, GNServerException { if(LOGGER.isInfoEnabled()) LOGGER.info("Using metadata file " + inputFile); Element updateRequest = buildUpdateRequest(inputFile, id, version); // updatethe metadata LOGGER.debug("Updating metadata " + id + " version " + version); gnUpdateMetadata(connection, gnServiceURL, updateRequest, encoding); LOGGER.info("Updated metadata " + id + " version " + version); } /** * Creates a Request document for the geonetwork <tt>metadata.update</tt> operation. * <ul> * <li> id: (mandatory) Identifier of the metadata to update</li> * <li> version: (mandatory) This parameter is used to check if another user has updated the metadata after we retrieved it and before involking the update metadata service. CHECK how to provide value to the user</li> * <li>isTemplate: indicates if the metadata content is a new template or not. Default value: "n"</li> * <li>showValidationErrors: Indicates if the metadata should be validated before updating in the catalog.</li> * <li>title: Metadata title (for templates)</li> * <li>data (mandatory) Contains the metadata record</li> * </ul> */ private static Element buildUpdateRequest(File inputFile, Long id, String version) throws GNLibException, GNServerException { if(LOGGER.isDebugEnabled()) LOGGER.debug("Compiling request document"); Element metadataFromFile = parseFile(inputFile); XMLOutputter outputter = new XMLOutputter(Format.getRawFormat()); CDATA cdata = new CDATA(outputter.outputString(metadataFromFile)); // CDATA format is required by GN Element request = new Element("request"); request.addContent(new Element("id").setText(String.valueOf(id))); request.addContent(new Element("version").setText(version)); request.addContent(new Element("data").addContent(cdata)); return request; } /** * Insert a metadata in GN.<br/> * * <ul> * <li>Url: <tt>http://<i>server</i>:<i>port</i>/geonetwork/srv/en/metadata.update</tt></li> * <li>Mime-type: <tt>application/xml</tt></li> * <li>Post request: <pre>{@code * * <?xml version="1.0" encoding="UTF-8"?> * <request> * <id>2</id> * <version>2</version> * <data><![CDATA[ * <gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" * xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" * ... * </gmd:DQ_DataQuality> * </gmd:dataQualityInfo> * </gmd:MD_Metadata>]]> * </data> * </request> }</pre></li> * </ul> * * * @see <a href="http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#insert-metadata-metadata-insert" >GeoNetwork documentation about inserting metadata</a> */ private static void gnUpdateMetadata(HTTPUtils connection, String baseURL, final Element gnRequest, String encoding) throws GNLibException, GNServerException { String serviceURL = baseURL + "/srv/eng/metadata.update.finish"; connection.setIgnoreResponseContentOnSuccess(true); String res = gnPost(connection, serviceURL, gnRequest, encoding); if(connection.getLastHttpStatus() != HttpStatus.SC_OK) throw new GNServerException("Error updating metadata in GeoNetwork (HTTP code "+connection.getLastHttpStatus()+")"); } private static String gnPost(HTTPUtils connection, String serviceURL, final Element gnRequest, String encoding) throws GNLibException, GNServerException { final XMLOutputter outputter = new XMLOutputter(Format.getCompactFormat()); String s = outputter.outputString(gnRequest); connection.setIgnoreResponseContentOnSuccess(false); String res = connection.postXml(serviceURL, s, encoding); // if(LOGGER.isInfoEnabled()) // LOGGER.info(serviceURL + " returned --> " + res); return res; } private static Element parseFile(File file) throws GNLibException { try{ SAXBuilder builder = new SAXBuilder(); Document doc = builder.build(file); return (Element)doc.getRootElement().detach(); } catch (Exception ex) { LOGGER.warn("Error parsing input file " + file); throw new GNLibException("Error parsing input file " + file, ex); } } private static Element parse(String s) throws GNLibException { try{ SAXBuilder builder = new SAXBuilder(); s = s.trim(); Document doc = builder.build(new StringReader(s)); return (Element)doc.getRootElement().detach(); } catch (Exception ex) { LOGGER.warn("Error parsing input string: >>>" + s +"<<<"); throw new GNLibException("Error parsing input string", ex); } } }
mit
Strike7/blockbuster
src/Controller/DisponiveisController.php
3322
<?php namespace App\Controller; use App\Controller\AppController; /** * Disponiveis Controller * * @property \App\Model\Table\DisponiveisTable $Disponiveis */ class DisponiveisController extends AppController { /** * Index method * * @return void */ public function index() { $this->set('disponiveis', $this->paginate($this->Disponiveis)); $this->set('_serialize', ['disponiveis']); } /** * View method * * @param string|null $id Disponivei id. * @return void * @throws \Cake\Network\Exception\NotFoundException When record not found. */ public function view($id = null) { $disponivei = $this->Disponiveis->get($id, [ 'contain' => [] ]); $this->set('disponivei', $disponivei); $this->set('_serialize', ['disponivei']); } /** * Add method * * @return void Redirects on successful add, renders view otherwise. */ public function add() { $disponivei = $this->Disponiveis->newEntity(); if ($this->request->is('post')) { $disponivei = $this->Disponiveis->patchEntity($disponivei, $this->request->data); if ($this->Disponiveis->save($disponivei)) { $this->Flash->success(__('The disponivei has been saved.')); return $this->redirect(['action' => 'index']); } else { $this->Flash->error(__('The disponivei could not be saved. Please, try again.')); } } $this->set(compact('disponivei')); $this->set('_serialize', ['disponivei']); } /** * Edit method * * @param string|null $id Disponivei id. * @return void Redirects on successful edit, renders view otherwise. * @throws \Cake\Network\Exception\NotFoundException When record not found. */ public function edit($id = null) { $disponivei = $this->Disponiveis->get($id, [ 'contain' => [] ]); if ($this->request->is(['patch', 'post', 'put'])) { $disponivei = $this->Disponiveis->patchEntity($disponivei, $this->request->data); if ($this->Disponiveis->save($disponivei)) { $this->Flash->success(__('The disponivei has been saved.')); return $this->redirect(['action' => 'index']); } else { $this->Flash->error(__('The disponivei could not be saved. Please, try again.')); } } $this->set(compact('disponivei')); $this->set('_serialize', ['disponivei']); } /** * Delete method * * @param string|null $id Disponivei id. * @return \Cake\Network\Response|null Redirects to index. * @throws \Cake\Network\Exception\NotFoundException When record not found. */ public function delete($id = null) { $this->request->allowMethod(['post', 'delete']); $disponivei = $this->Disponiveis->get($id); if ($this->Disponiveis->delete($disponivei)) { $this->Flash->success(__('The disponivei has been deleted.')); } else { $this->Flash->error(__('The disponivei could not be deleted. Please, try again.')); } return $this->redirect(['action' => 'index']); } }
mit
onexi/onexi.github.io
jrw/template2015/js/analytics.js
7358
/* ------------------- START commented out spring 2015 ------------------- var monitor = {}; monitor.initialized = false; monitor.lessonId = ''; monitor.lessonHeader = ''; monitor.userId = ''; monitor.server = "http://arlington3.mit.edu:8000/"; // listens for slide change events // ---------------------------------------- Reveal.addEventListener( 'slidechanged', function( event ) { monitor.recordSlideChange(event.indexh,event.indexv); } ); // called by slideChange listener // records the slide number and time // ---------------------------------------- monitor.recordSlideChange = function (indexh,indexv){ if (!monitor.initialized) monitor.init(); var slideChange = '{' + 'indexh:\'' + indexh + '\', ' + 'indexv:\'' + indexv + '\', ' + 'timestamp:\'' + new Date().getTime() + '\'' + '}'; // if online, post to server, else post to local storage if (navigator.onLine) { console.log('post to server:'); var lessonHeader = window.localStorage.getItem(monitor.lessonHeader); monitor.postData(slideChange, lessonHeader); } else { console.log('post to local storage'); var slideChanges = window.localStorage.getItem(monitor.lessonId); slideChanges = slideChanges + ',' + slideChange; window.localStorage.setItem(monitor.lessonId, slideChanges); } }; // creates local storage for lesson // sets userId, path, lessonId // ---------------------------------------- monitor.init = function (){ monitor.initialized = true; monitor.lessonId = monitor.hash(window.location.pathname); monitor.lessonHeader = monitor.lessonId + '_header'; monitor.userId = monitor.getGuid(); // construct lesson header var lessonHeader ='{' + 'user: { id: \'' + monitor.userId + '\'},' + 'lesson: {' + 'id: \'' + monitor.lessonId + '\', ' + 'href: \'' + window.location.href + '\', ' + 'path: \'' + window.location.pathname + '\' ' + '}' + '}'; // lessonId used for slideChanged data window.localStorage.setItem(monitor.lessonId, '{}'); window.localStorage.setItem(monitor.lessonHeader, lessonHeader); window.localStorage.setItem('userId', monitor.userId); // add to list of lessons viewed by browser if(localStorage.getItem('lessons') === null) { window.localStorage.setItem('lessons', monitor.lessonId); } else { var lessons = window.localStorage.getItem('lessons'); // if lesson does not exist, add to list if(lessons.indexOf(monitor.lessonId)<0){ lessons = lessons + ',' + monitor.lessonId; window.localStorage.setItem('lessons', lessons); } } }; // utils // ---------------------------------------- monitor.getGuid = function (){ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {var r = Math.random()*16|0,v=c=='x'?r:r&0x3|0x8;return v.toString(16);}); } monitor.hash = function (path){ var hash = 0, i, char; if (path.length == 0) return hash; for (i = 0, l = path.length; i < l; i++) { char = path.charCodeAt(i); hash = ((hash<<5)-hash)+char; hash |= 0; // Convert to 32bit integer } return hash; }; // post analytics // ---------------------------------------- window.addEventListener('online', function(e) { if (!monitor.initialized) return; // read data from local storage var lessonHeader = window.localStorage.getItem(monitor.lessonHeader); var slideChanges = window.localStorage.getItem(monitor.lessonId); // waits 6 seconds to send message // browser takes while to wake up window.setTimeout(function(){ // post lesson data monitor.postData(slideChanges,lessonHeader); // clear slideChanges history window.localStorage.setItem(monitor.lessonId, '{}'); // check for offline lessons monitor.postDataOfPreviouslyViewedLessons(); }, 6000); }, false); monitor.postDataOfPreviouslyViewedLessons = function (){ // offline lessons var lessons = window.localStorage.getItem('lessons'); lessons = lessons.split(','); var currentLesson = lessons.indexOf(monitor.lessonId); lessons.splice(currentLesson,1); // remove current lesson // post data and clear previous lessons var length = lessons.length; if(length > 1){ // post data for (var i=0; i<length; i++){ var lessonHeader = window.localStorage.getItem(lessons[i] + '_header'); var slideChanges = window.localStorage.getItem(lessons[i]); monitor.postData(slideChanges,lessonHeader); } // clear lessons key - only current lesson left window.localStorage.setItem('lessons', currentLesson); // remove local storage keys for other lessons for (var i=0; i<length; i++){ window.localStorage.removeItem(lessons[i]); window.localStorage.removeItem(lessons[i] + '_header'); } } } monitor.postData = function (slideChanges,lessonHeader) { // compose json message lessonHeader = lessonHeader.substring(0, lessonHeader.lastIndexOf('}')); slideChanges = 'slideChanges:[' + slideChanges + ']'; var analytics = lessonHeader + ',' + slideChanges + '}'; // base64 analytics string analytics = window.btoa(analytics); var url = monitor.server + "?analytics=" + analytics; // create new script var script = document.createElement("script"); script.setAttribute("src", url); script.setAttribute("type", "text/javascript"); // append script to runtime - posts data var body = document.getElementsByTagName("body"); document.body.appendChild(script); } ------------------- START commented out spring 2015 ------------------- */ /* Cases: navigating online (post immidiately, write copy to local archive) navigating offline (post to local queue, update local archive) navigating changing from offline to online (read local queue, post to server) navigating changing from online to offline (stop posting to server, write to local queue) navigating across lessons (create identifier for lessons - consider overwriting problem) navigating across workshops (create identifier for workshop - consider overwriting problem) */
mit
fczuardi/gsheetsbot
src/api.js
932
const util = require('util'); const url = require('url'); const express = require('express'); const config = require('./config'); const oauth2Client = require('./oauth'); const app = express(); const oauthCallbackPath = url.parse(config.oauth.redirectUrl).pathname; app.get(oauthCallbackPath, (req, res) => { const code = req.query.code; oauth2Client.getToken(code, (err, tokens) => { if (err) { console.error(err); return res.status(500).send(`${util.inspect(err)}`); } if (!tokens.refresh_token) { return res.send(`${util.inspect(tokens)}`); } return res.send(` <h4> Copy the line below to your config.toml inside the the [oauth] section: </h4> <pre> refreshToken = "${tokens.refresh_token}" </pre> `); }); }); const port = process.env.PORT || config.api.port; console.log('API listening to PORT', port); app.listen(port);
mit
junyw/stellar-lightwallet
server/models/account/account.schema.js
366
const mongoose = require("mongoose"); const accountSchema = mongoose.Schema({ _user: {type: mongoose.Schema.Types.ObjectId, ref: "UserModel"}, name: String, id: String, secret: String, type: {type: String, enum: ["pub", "sec", "contact"]}, issued: [String], fedName: String }, {collection: "account"}); module.exports = accountSchema;
mit
nico06530/tutolympique
app/cache/dev/twig/af/af65e19005a3182982f25525e64c5126a4aa7b1d6d36f89df565f36e7e58d779.php
2688
<?php /* SonataAdminBundle:CRUD:list__batch.html.twig */ class __TwigTemplate_f7ec1bd4ddadd5a7f0e5c4783e4d0eb3360a9d0d5e15a2bec74c9956907bd4a4 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->blocks = array( 'field' => array($this, 'block_field'), ); } protected function doGetParent(array $context) { // line 12 return $this->loadTemplate($this->getAttribute((isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "getTemplate", array(0 => "base_list_field"), "method"), "SonataAdminBundle:CRUD:list__batch.html.twig", 12); } protected function doDisplay(array $context, array $blocks = array()) { $this->getParent($context)->display($context, array_merge($this->blocks, $blocks)); } // line 14 public function block_field($context, array $blocks = array()) { // line 15 echo " <input type=\"checkbox\" name=\"idx[]\" value=\""; echo twig_escape_filter($this->env, $this->getAttribute((isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin")), "id", array(0 => (isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"))), "method"), "html", null, true); echo "\"> "; } public function getTemplateName() { return "SonataAdminBundle:CRUD:list__batch.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 30 => 15, 27 => 14, 18 => 12,); } /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ public function getSource() { @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); return $this->getSourceContext()->getCode(); } public function getSourceContext() { return new Twig_Source("{# This file is part of the Sonata package. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} {% extends admin.getTemplate('base_list_field') %} {% block field %} <input type=\"checkbox\" name=\"idx[]\" value=\"{{ admin.id(object) }}\"> {% endblock %} ", "SonataAdminBundle:CRUD:list__batch.html.twig", "C:\\Program Files (x86)\\WampServer\\wamp\\www\\tutolympique\\vendor\\sonata-project\\admin-bundle/Resources/views/CRUD/list__batch.html.twig"); } }
mit
jamie-davis/VMTest
src/VMTest.Tests/Properties/Annotations.cs
23771
using System; #pragma warning disable 1591 // ReSharper disable UnusedMember.Global // ReSharper disable UnusedParameter.Local // ReSharper disable MemberCanBePrivate.Global // ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable IntroduceOptionalParameters.Global // ReSharper disable MemberCanBeProtected.Global // ReSharper disable InconsistentNaming namespace VMTest.Tests.Annotations { /// <summary> /// Indicates that the value of the marked element could be <c>null</c> sometimes, /// so the check for <c>null</c> is necessary before its usage /// </summary> /// <example><code> /// [CanBeNull] public object Test() { return null; } /// public void UseTest() { /// var p = Test(); /// var s = p.ToString(); // Warning: Possible 'System.NullReferenceException' /// } /// </code></example> [AttributeUsage( AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.Delegate | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] public sealed class CanBeNullAttribute : Attribute { } /// <summary> /// Indicates that the value of the marked element could never be <c>null</c> /// </summary> /// <example><code> /// [NotNull] public object Foo() { /// return null; // Warning: Possible 'null' assignment /// } /// </code></example> [AttributeUsage( AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.Delegate | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] public sealed class NotNullAttribute : Attribute { } /// <summary> /// Indicates that the marked method builds string by format pattern and (optional) arguments. /// Parameter, which contains format string, should be given in constructor. The format string /// should be in <see cref="string.Format(IFormatProvider,string,object[])"/>-like form /// </summary> /// <example><code> /// [StringFormatMethod("message")] /// public void ShowError(string message, params object[] args) { /* do something */ } /// public void Foo() { /// ShowError("Failed: {0}"); // Warning: Non-existing argument in format string /// } /// </code></example> [AttributeUsage( AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public sealed class StringFormatMethodAttribute : Attribute { /// <param name="formatParameterName"> /// Specifies which parameter of an annotated method should be treated as format-string /// </param> public StringFormatMethodAttribute(string formatParameterName) { FormatParameterName = formatParameterName; } public string FormatParameterName { get; private set; } } /// <summary> /// Indicates that the function argument should be string literal and match one /// of the parameters of the caller function. For example, ReSharper annotates /// the parameter of <see cref="System.ArgumentNullException"/> /// </summary> /// <example><code> /// public void Foo(string param) { /// if (param == null) /// throw new ArgumentNullException("par"); // Warning: Cannot resolve symbol /// } /// </code></example> [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)] public sealed class InvokerParameterNameAttribute : Attribute { } /// <summary> /// Indicates that the method is contained in a type that implements /// <see cref="System.ComponentModel.INotifyPropertyChanged"/> interface /// and this method is used to notify that some property value changed /// </summary> /// <remarks> /// The method should be non-static and conform to one of the supported signatures: /// <list> /// <item><c>NotifyChanged(string)</c></item> /// <item><c>NotifyChanged(params string[])</c></item> /// <item><c>NotifyChanged{T}(Expression{Func{T}})</c></item> /// <item><c>NotifyChanged{T,U}(Expression{Func{T,U}})</c></item> /// <item><c>SetProperty{T}(ref T, T, string)</c></item> /// </list> /// </remarks> /// <example><code> /// public class Foo : INotifyPropertyChanged { /// public event PropertyChangedEventHandler PropertyChanged; /// [NotifyPropertyChangedInvocator] /// protected virtual void NotifyChanged(string propertyName) { ... } /// /// private string _name; /// public string Name { /// get { return _name; } /// set { _name = value; NotifyChanged("LastName"); /* Warning */ } /// } /// } /// </code> /// Examples of generated notifications: /// <list> /// <item><c>NotifyChanged("Property")</c></item> /// <item><c>NotifyChanged(() =&gt; Property)</c></item> /// <item><c>NotifyChanged((VM x) =&gt; x.Property)</c></item> /// <item><c>SetProperty(ref myField, value, "Property")</c></item> /// </list> /// </example> [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public sealed class NotifyPropertyChangedInvocatorAttribute : Attribute { public NotifyPropertyChangedInvocatorAttribute() { } public NotifyPropertyChangedInvocatorAttribute(string parameterName) { ParameterName = parameterName; } public string ParameterName { get; private set; } } /// <summary> /// Describes dependency between method input and output /// </summary> /// <syntax> /// <p>Function Definition Table syntax:</p> /// <list> /// <item>FDT ::= FDTRow [;FDTRow]*</item> /// <item>FDTRow ::= Input =&gt; Output | Output &lt;= Input</item> /// <item>Input ::= ParameterName: Value [, Input]*</item> /// <item>Output ::= [ParameterName: Value]* {halt|stop|void|nothing|Value}</item> /// <item>Value ::= true | false | null | notnull | canbenull</item> /// </list> /// If method has single input parameter, it's name could be omitted.<br/> /// Using <c>halt</c> (or <c>void</c>/<c>nothing</c>, which is the same) /// for method output means that the methos doesn't return normally.<br/> /// <c>canbenull</c> annotation is only applicable for output parameters.<br/> /// You can use multiple <c>[ContractAnnotation]</c> for each FDT row, /// or use single attribute with rows separated by semicolon.<br/> /// </syntax> /// <examples><list> /// <item><code> /// [ContractAnnotation("=> halt")] /// public void TerminationMethod() /// </code></item> /// <item><code> /// [ContractAnnotation("halt &lt;= condition: false")] /// public void Assert(bool condition, string text) // regular assertion method /// </code></item> /// <item><code> /// [ContractAnnotation("s:null => true")] /// public bool IsNullOrEmpty(string s) // string.IsNullOrEmpty() /// </code></item> /// <item><code> /// // A method that returns null if the parameter is null, and not null if the parameter is not null /// [ContractAnnotation("null => null; notnull => notnull")] /// public object Transform(object data) /// </code></item> /// <item><code> /// [ContractAnnotation("s:null=>false; =>true,result:notnull; =>false, result:null")] /// public bool TryParse(string s, out Person result) /// </code></item> /// </list></examples> [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)] public sealed class ContractAnnotationAttribute : Attribute { public ContractAnnotationAttribute([NotNull] string contract) : this(contract, false) { } public ContractAnnotationAttribute([NotNull] string contract, bool forceFullStates) { Contract = contract; ForceFullStates = forceFullStates; } public string Contract { get; private set; } public bool ForceFullStates { get; private set; } } /// <summary> /// Indicates that marked element should be localized or not /// </summary> /// <example><code> /// [LocalizationRequiredAttribute(true)] /// public class Foo { /// private string str = "my string"; // Warning: Localizable string /// } /// </code></example> [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)] public sealed class LocalizationRequiredAttribute : Attribute { public LocalizationRequiredAttribute() : this(true) { } public LocalizationRequiredAttribute(bool required) { Required = required; } public bool Required { get; private set; } } /// <summary> /// Indicates that the value of the marked type (or its derivatives) /// cannot be compared using '==' or '!=' operators and <c>Equals()</c> /// should be used instead. However, using '==' or '!=' for comparison /// with <c>null</c> is always permitted. /// </summary> /// <example><code> /// [CannotApplyEqualityOperator] /// class NoEquality { } /// class UsesNoEquality { /// public void Test() { /// var ca1 = new NoEquality(); /// var ca2 = new NoEquality(); /// if (ca1 != null) { // OK /// bool condition = ca1 == ca2; // Warning /// } /// } /// } /// </code></example> [AttributeUsage( AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = true)] public sealed class CannotApplyEqualityOperatorAttribute : Attribute { } /// <summary> /// When applied to a target attribute, specifies a requirement for any type marked /// with the target attribute to implement or inherit specific type or types. /// </summary> /// <example><code> /// [BaseTypeRequired(typeof(IComponent)] // Specify requirement /// public class ComponentAttribute : Attribute { } /// [Component] // ComponentAttribute requires implementing IComponent interface /// public class MyComponent : IComponent { } /// </code></example> [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)] [BaseTypeRequired(typeof(Attribute))] public sealed class BaseTypeRequiredAttribute : Attribute { public BaseTypeRequiredAttribute([NotNull] Type baseType) { BaseType = baseType; } [NotNull] public Type BaseType { get; private set; } } /// <summary> /// Indicates that the marked symbol is used implicitly /// (e.g. via reflection, in external library), so this symbol /// will not be marked as unused (as well as by other usage inspections) /// </summary> [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)] public sealed class UsedImplicitlyAttribute : Attribute { public UsedImplicitlyAttribute() : this(ImplicitUseKindFlags.Default, ImplicitUseTargetFlags.Default) { } public UsedImplicitlyAttribute(ImplicitUseKindFlags useKindFlags) : this(useKindFlags, ImplicitUseTargetFlags.Default) { } public UsedImplicitlyAttribute(ImplicitUseTargetFlags targetFlags) : this(ImplicitUseKindFlags.Default, targetFlags) { } public UsedImplicitlyAttribute( ImplicitUseKindFlags useKindFlags, ImplicitUseTargetFlags targetFlags) { UseKindFlags = useKindFlags; TargetFlags = targetFlags; } public ImplicitUseKindFlags UseKindFlags { get; private set; } public ImplicitUseTargetFlags TargetFlags { get; private set; } } /// <summary> /// Should be used on attributes and causes ReSharper /// to not mark symbols marked with such attributes as unused /// (as well as by other usage inspections) /// </summary> [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public sealed class MeansImplicitUseAttribute : Attribute { public MeansImplicitUseAttribute() : this(ImplicitUseKindFlags.Default, ImplicitUseTargetFlags.Default) { } public MeansImplicitUseAttribute(ImplicitUseKindFlags useKindFlags) : this(useKindFlags, ImplicitUseTargetFlags.Default) { } public MeansImplicitUseAttribute(ImplicitUseTargetFlags targetFlags) : this(ImplicitUseKindFlags.Default, targetFlags) { } public MeansImplicitUseAttribute( ImplicitUseKindFlags useKindFlags, ImplicitUseTargetFlags targetFlags) { UseKindFlags = useKindFlags; TargetFlags = targetFlags; } [UsedImplicitly] public ImplicitUseKindFlags UseKindFlags { get; private set; } [UsedImplicitly] public ImplicitUseTargetFlags TargetFlags { get; private set; } } [Flags] public enum ImplicitUseKindFlags { Default = Access | Assign | InstantiatedWithFixedConstructorSignature, /// <summary>Only entity marked with attribute considered used</summary> Access = 1, /// <summary>Indicates implicit assignment to a member</summary> Assign = 2, /// <summary> /// Indicates implicit instantiation of a type with fixed constructor signature. /// That means any unused constructor parameters won't be reported as such. /// </summary> InstantiatedWithFixedConstructorSignature = 4, /// <summary>Indicates implicit instantiation of a type</summary> InstantiatedNoFixedConstructorSignature = 8, } /// <summary> /// Specify what is considered used implicitly /// when marked with <see cref="MeansImplicitUseAttribute"/> /// or <see cref="UsedImplicitlyAttribute"/> /// </summary> [Flags] public enum ImplicitUseTargetFlags { Default = Itself, Itself = 1, /// <summary>Members of entity marked with attribute are considered used</summary> Members = 2, /// <summary>Entity marked with attribute and all its members considered used</summary> WithMembers = Itself | Members } /// <summary> /// This attribute is intended to mark publicly available API /// which should not be removed and so is treated as used /// </summary> [MeansImplicitUse] public sealed class PublicAPIAttribute : Attribute { public PublicAPIAttribute() { } public PublicAPIAttribute([NotNull] string comment) { Comment = comment; } [NotNull] public string Comment { get; private set; } } /// <summary> /// Tells code analysis engine if the parameter is completely handled /// when the invoked method is on stack. If the parameter is a delegate, /// indicates that delegate is executed while the method is executed. /// If the parameter is an enumerable, indicates that it is enumerated /// while the method is executed /// </summary> [AttributeUsage(AttributeTargets.Parameter, Inherited = true)] public sealed class InstantHandleAttribute : Attribute { } /// <summary> /// Indicates that a method does not make any observable state changes. /// The same as <c>System.Diagnostics.Contracts.PureAttribute</c> /// </summary> /// <example><code> /// [Pure] private int Multiply(int x, int y) { return x * y; } /// public void Foo() { /// const int a = 2, b = 2; /// Multiply(a, b); // Waring: Return value of pure method is not used /// } /// </code></example> [AttributeUsage(AttributeTargets.Method, Inherited = true)] public sealed class PureAttribute : Attribute { } /// <summary> /// Indicates that a parameter is a path to a file or a folder /// within a web project. Path can be relative or absolute, /// starting from web root (~) /// </summary> [AttributeUsage(AttributeTargets.Parameter)] public class PathReferenceAttribute : Attribute { public PathReferenceAttribute() { } public PathReferenceAttribute([PathReference] string basePath) { BasePath = basePath; } [NotNull] public string BasePath { get; private set; } } // ASP.NET MVC attributes [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class AspMvcAreaMasterLocationFormatAttribute : Attribute { public AspMvcAreaMasterLocationFormatAttribute(string format) { } } [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class AspMvcAreaPartialViewLocationFormatAttribute : Attribute { public AspMvcAreaPartialViewLocationFormatAttribute(string format) { } } [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class AspMvcAreaViewLocationFormatAttribute : Attribute { public AspMvcAreaViewLocationFormatAttribute(string format) { } } [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class AspMvcMasterLocationFormatAttribute : Attribute { public AspMvcMasterLocationFormatAttribute(string format) { } } [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class AspMvcPartialViewLocationFormatAttribute : Attribute { public AspMvcPartialViewLocationFormatAttribute(string format) { } } [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class AspMvcViewLocationFormatAttribute : Attribute { public AspMvcViewLocationFormatAttribute(string format) { } } /// <summary> /// ASP.NET MVC attribute. If applied to a parameter, indicates that the parameter /// is an MVC action. If applied to a method, the MVC action name is calculated /// implicitly from the context. Use this attribute for custom wrappers similar to /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Method)] public sealed class AspMvcActionAttribute : Attribute { public AspMvcActionAttribute() { } public AspMvcActionAttribute([NotNull] string anonymousProperty) { AnonymousProperty = anonymousProperty; } [NotNull] public string AnonymousProperty { get; private set; } } /// <summary> /// ASP.NET MVC attribute. Indicates that a parameter is an MVC area. /// Use this attribute for custom wrappers similar to /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter)] public sealed class AspMvcAreaAttribute : PathReferenceAttribute { public AspMvcAreaAttribute() { } public AspMvcAreaAttribute([NotNull] string anonymousProperty) { AnonymousProperty = anonymousProperty; } [NotNull] public string AnonymousProperty { get; private set; } } /// <summary> /// ASP.NET MVC attribute. If applied to a parameter, indicates that /// the parameter is an MVC controller. If applied to a method, /// the MVC controller name is calculated implicitly from the context. /// Use this attribute for custom wrappers similar to /// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String, String)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Method)] public sealed class AspMvcControllerAttribute : Attribute { public AspMvcControllerAttribute() { } public AspMvcControllerAttribute([NotNull] string anonymousProperty) { AnonymousProperty = anonymousProperty; } [NotNull] public string AnonymousProperty { get; private set; } } /// <summary> /// ASP.NET MVC attribute. Indicates that a parameter is an MVC Master. /// Use this attribute for custom wrappers similar to /// <c>System.Web.Mvc.Controller.View(String, String)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter)] public sealed class AspMvcMasterAttribute : Attribute { } /// <summary> /// ASP.NET MVC attribute. Indicates that a parameter is an MVC model type. /// Use this attribute for custom wrappers similar to /// <c>System.Web.Mvc.Controller.View(String, Object)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter)] public sealed class AspMvcModelTypeAttribute : Attribute { } /// <summary> /// ASP.NET MVC attribute. If applied to a parameter, indicates that /// the parameter is an MVC partial view. If applied to a method, /// the MVC partial view name is calculated implicitly from the context. /// Use this attribute for custom wrappers similar to /// <c>System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper, String)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Method)] public sealed class AspMvcPartialViewAttribute : PathReferenceAttribute { } /// <summary> /// ASP.NET MVC attribute. Allows disabling all inspections /// for MVC views within a class or a method. /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public sealed class AspMvcSupressViewErrorAttribute : Attribute { } /// <summary> /// ASP.NET MVC attribute. Indicates that a parameter is an MVC display template. /// Use this attribute for custom wrappers similar to /// <c>System.Web.Mvc.Html.DisplayExtensions.DisplayForModel(HtmlHelper, String)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter)] public sealed class AspMvcDisplayTemplateAttribute : Attribute { } /// <summary> /// ASP.NET MVC attribute. Indicates that a parameter is an MVC editor template. /// Use this attribute for custom wrappers similar to /// <c>System.Web.Mvc.Html.EditorExtensions.EditorForModel(HtmlHelper, String)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter)] public sealed class AspMvcEditorTemplateAttribute : Attribute { } /// <summary> /// ASP.NET MVC attribute. Indicates that a parameter is an MVC template. /// Use this attribute for custom wrappers similar to /// <c>System.ComponentModel.DataAnnotations.UIHintAttribute(System.String)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter)] public sealed class AspMvcTemplateAttribute : Attribute { } /// <summary> /// ASP.NET MVC attribute. If applied to a parameter, indicates that the parameter /// is an MVC view. If applied to a method, the MVC view name is calculated implicitly /// from the context. Use this attribute for custom wrappers similar to /// <c>System.Web.Mvc.Controller.View(Object)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Method)] public sealed class AspMvcViewAttribute : PathReferenceAttribute { } /// <summary> /// ASP.NET MVC attribute. When applied to a parameter of an attribute, /// indicates that this parameter is an MVC action name /// </summary> /// <example><code> /// [ActionName("Foo")] /// public ActionResult Login(string returnUrl) { /// ViewBag.ReturnUrl = Url.Action("Foo"); // OK /// return RedirectToAction("Bar"); // Error: Cannot resolve action /// } /// </code></example> [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Property)] public sealed class AspMvcActionSelectorAttribute : Attribute { } [AttributeUsage( AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.Field, Inherited = true)] public sealed class HtmlElementAttributesAttribute : Attribute { public HtmlElementAttributesAttribute() { } public HtmlElementAttributesAttribute([NotNull] string name) { Name = name; } [NotNull] public string Name { get; private set; } } [AttributeUsage( AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property, Inherited = true)] public sealed class HtmlAttributeValueAttribute : Attribute { public HtmlAttributeValueAttribute([NotNull] string name) { Name = name; } [NotNull] public string Name { get; private set; } } // Razor attributes /// <summary> /// Razor attribute. Indicates that a parameter or a method is a Razor section. /// Use this attribute for custom wrappers similar to /// <c>System.Web.WebPages.WebPageBase.RenderSection(String)</c> /// </summary> [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Method, Inherited = true)] public sealed class RazorSectionAttribute : Attribute { } }
mit
spike01/planner
app/models/meeting_invitation.rb
327
class MeetingInvitation < ActiveRecord::Base include InvitationConcerns validates :meeting, :member, presence: true validates :member_id, uniqueness: { scope: [:meeting_id] } belongs_to :meeting belongs_to :member scope :accepted, -> { where(attending: true) } scope :attended, -> { where(attended: true)} end
mit
Thatsmusic99/HeadsPlus
src/main/java/io/github/thatsmusic99/headsplus/placeholders/HPExpansion.java
8373
package io.github.thatsmusic99.headsplus.placeholders; import io.github.thatsmusic99.headsplus.HeadsPlus; import io.github.thatsmusic99.headsplus.api.Challenge; import io.github.thatsmusic99.headsplus.api.Level; import io.github.thatsmusic99.headsplus.config.MessagesManager; import io.github.thatsmusic99.headsplus.managers.ChallengeManager; import io.github.thatsmusic99.headsplus.managers.LevelsManager; import io.github.thatsmusic99.headsplus.sql.StatisticsSQLManager; import me.clip.placeholderapi.expansion.PlaceholderExpansion; import org.bukkit.OfflinePlayer; import org.jetbrains.annotations.NotNull; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; public class HPExpansion extends PlaceholderExpansion { private final HeadsPlus hp; // regex hell 2.0 private final Pattern TOP_PLACEHOLDER_PATTERN = Pattern.compile("\btop_([A-Z]+)_?([a-zA-Z0-9=,_#]+)?_+(\\d+)_" + "(player|score)\b"); private final Pattern STATISTIC_PATTERN = Pattern.compile("\b(HUNTING|CRAFTING)_?([a-zA-Z0-9=,_#]+)?_+"); public HPExpansion(HeadsPlus headsPlus) { hp = headsPlus; } @Override public boolean canRegister() { return true; } @NotNull @Override public String getIdentifier() { return "headsplus"; } @NotNull @Override public String getAuthor() { return "Thatsmusic99"; } @NotNull @Override public String getVersion() { return hp.getVersion(); } @Override public String onRequest(OfflinePlayer player, @NotNull String identifier) { if (identifier.equals("xp")) { return String.valueOf(CacheManager.get().getXP(player)); } if (identifier.equals("remaining_xp")) { String level = CacheManager.get().getLevel(player); if (level == null) return "-1"; Level levelObj = LevelsManager.get().getLevel(level); long xp = CacheManager.get().getXP(player); if (xp == -1) return "-1"; return String.valueOf(levelObj.getRequiredXP() - xp); } if (identifier.equals("level")) { return CacheManager.get().getLevel(player); } if (identifier.equals("completed_challenges_total")) { return String.valueOf(CacheManager.get().getTotalChallengesComplete(player)); } if (identifier.startsWith("top")) { // %headsplus_top_HUNTING_0_player% // %headsplus_top_HUNTING_entity=IRON_GOLEM_0_player% // %headsplus_top_HUNTING_HP#iron_golem_0_player% // %headsplus_top_HUNTING_HP#iron_golem,entity=IRON_GOLEM_0_player% Matcher matcher = TOP_PLACEHOLDER_PATTERN.matcher(identifier); if (!matcher.matches()) return "-1"; // Get the category String categoryStr = matcher.group(1); StatisticsSQLManager.CollectionType category = StatisticsSQLManager.CollectionType.getType(categoryStr); if (category == null) return "-1"; // Get the extra metadata String[] metadata = matcher.group(2).split(","); List<String> actualMetadata = new ArrayList<>(); String head = null; for (String str : metadata) { if (str.startsWith("HP#")) head = str; else actualMetadata.add(str); } String metadataStr = String.join(",", actualMetadata); // Get the position int position = Integer.parseInt(matcher.group(3)); // Get the actual records List<StatisticsSQLManager.LeaderboardEntry> entries; if (head == null) { if (metadataStr.isEmpty()) { entries = CacheManager.get().getEntries(category); } else { entries = CacheManager.get().getEntriesMeta(category, metadataStr); } } else { if (metadataStr.isEmpty()) { entries = CacheManager.get().getEntries(category, head); } else { entries = CacheManager.get().getEntries(category, head, metadataStr); } } if (position >= entries.size()) return "-1"; StatisticsSQLManager.LeaderboardEntry entry = entries.get(position); switch (matcher.group(4)) { case "player": return entry.getPlayer(); case "score": return String.valueOf(entry.getSum()); } } if (identifier.startsWith("challenge")) { // Format: %headsplus_CHALLENGE_header% // %headsplus_CHALLENGE_name% // %headsplus_CHALLENGE_description% // %headsplus_CHALLENGE_min-heads% // %headsplus_CHALLENGE_progress% // %headsplus_CHALLENGE_difficulty% // %headsplus_CHALLENGE_type% // %headsplus_CHALLENGE_reward% // %headsplus_CHALLENGE_completed% String[] args = identifier.split("_"); if (args.length == 1) return null; StringBuilder name = new StringBuilder(); for (int i = 1; i < args.length - 1; i++) { name.append(args[i]); } Challenge challenge = ChallengeManager.get().getChallengeByName(name.toString()); if (challenge == null) return null; switch (args[args.length - 1].toLowerCase()) { case "header": return challenge.getChallengeHeader(); case "name": return challenge.getMainName(); case "description": StringBuilder desc = new StringBuilder(); for (String s : challenge.getDescription()) { desc.append(s); } return desc.toString(); case "min-heads": return String.valueOf(challenge.getRequiredHeadAmount()); case "progress": return String.valueOf(CacheManager.get().getStat(challenge.getCacheID(), challenge.getStatFuture(player.getUniqueId()))); case "difficulty": return String.valueOf(challenge.getDifficulty()); case "type": return challenge.getHeadType(); case "reward": if (player.getPlayer() == null) return null; return challenge.getReward().getRewardString(player.getPlayer()); case "completed": return challenge.isComplete(player.getPlayer()) ? MessagesManager.get().getString("command" + ".challenges.challenge-completed", player) : ""; case "xp": return String.valueOf(challenge.getGainedXP()); } } Matcher matcher = STATISTIC_PATTERN.matcher(identifier); if (!matcher.matches()) return null; // Get the category String categoryStr = matcher.group(1); StatisticsSQLManager.CollectionType category = StatisticsSQLManager.CollectionType.getType(categoryStr); if (category == null) return "-1"; // Get the extra metadata String[] metadata = matcher.group(2).split(","); List<String> actualMetadata = new ArrayList<>(); String head = null; for (String str : metadata) { if (str.startsWith("HP#")) head = str; else actualMetadata.add(str); } String metadataStr = String.join(",", actualMetadata); if (head == null) { if (metadataStr.isEmpty()) { return String.valueOf(CacheManager.get().getStat(player, category)); } else { return String.valueOf(CacheManager.get().getStatMeta(player, category, metadataStr)); } } else { if (metadataStr.isEmpty()) { return String.valueOf(CacheManager.get().getStat(player, category, head)); } else { return String.valueOf(CacheManager.get().getStat(player, category, head, metadataStr)); } } } }
mit
dreamamine/PFE
src/LGM/UserBundle/Controller/RegistrationChercheur_JuniorController.php
406
<?php namespace LGM\UserBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class RegistrationChercheur_JuniorController extends Controller { public function registerAction() { return $this->container ->get('pugx_multi_user.registration_manager') ->register('LGM\UserBundle\Entity\Chercheur_Junior'); } }
mit
lydell/prettier
website/static/worker.js
2684
/* eslint-env worker */ /* eslint no-var: off, strict: off */ // "Polyfills" in order for all the code to run self.global = self; self.Buffer = { isBuffer: function() { return false; } }; // eslint-disable-next-line fs = module$1 = module = path = os = crypto = {}; // eslint-disable-next-line no-undef os.homedir = function() { return "/home/prettier"; }; self.process = { argv: [], env: { PRETTIER_DEBUG: true }, version: "v8.5.0" }; self.assert = { ok: function() {}, strictEqual: function() {} }; self.require = function require(path) { return self[path.replace(/.+-/, "")]; }; importScripts("lib/index.js"); var prettier = index; // eslint-disable-line var parsersLoaded = {}; self.onmessage = function(message) { var options = message.data.options || {}; options.parser = options.parser || "babylon"; delete options.ast; delete options.doc; delete options.output2; var formatted = formatCode(message.data.text, options); var doc; var ast; var formatted2; if (message.data.ast) { var actualAst; var errored = false; try { actualAst = prettier.__debug.parse(message.data.text, options); ast = JSON.stringify(actualAst); } catch (e) { errored = true; ast = String(e); } if (!errored) { try { ast = formatCode(ast, { parser: "json" }); } catch (e) { ast = JSON.stringify(actualAst, null, 2); } } } if (message.data.doc) { lazyLoadParser("babylon"); try { doc = prettier.__debug.formatDoc( prettier.__debug.printToDoc(message.data.text, options), { parser: "babylon" } ); } catch (e) { doc = String(e); } } if (message.data.formatted2) { formatted2 = formatCode(formatted, options); } self.postMessage({ formatted: formatted, doc: doc, ast: ast, formatted2: formatted2, version: prettier.version }); }; function formatCode(text, options) { lazyLoadParser(options.parser); try { return prettier.format(text, options); } catch (e) { // Multiparser may throw if we haven't loaded the right parser // Load it lazily and retry! if (e.parser && !parsersLoaded[e.parser]) { lazyLoadParser(e.parser); return formatCode(text, options); } return String(e); } } function lazyLoadParser(parser) { var actualParser = parser === "json" ? "babylon" : parser === "css" || parser === "less" || parser === "scss" ? "postcss" : parser; var script = "parser-" + actualParser + ".js"; if (!parsersLoaded[actualParser]) { importScripts("lib/" + script); parsersLoaded[actualParser] = true; } }
mit
narekye/code
sharp/src/Serene/sharp.Serene/sharp.Serene.Web/Modules/BasicSamples/Dialogs/PopulateLinkedData/PopulateLinkedDataGrid.ts
464
/// <reference path="../../../Northwind/Order/OrderGrid.ts" /> namespace sharp.Serene.BasicSamples { /** * A subclass of OrderGrid that launches PopulateLinkedDataDialog */ @Serenity.Decorators.registerClass() export class PopulateLinkedDataGrid extends Northwind.OrderGrid { protected getDialogType() { return PopulateLinkedDataDialog; } constructor(container: JQuery) { super(container); } } }
mit
Tyaisurm/DECSV
DECSV_project/assets/js/importwizard.js
20441
'use strict'; //////////////////////////////////// CUSTOM ERROR MESSAGE process.on('uncaughtException', function (err) { const electron = require('electron'); const uncaugetdia = electron.dialog ? electron.dialog : electron.remote.dialog; const app = electron.app ? electron.app : electron.remote.app; const shell = electron.shell; logger.error("Uncaught Exception!"); logger.error(err); var uncaughtoptions = { type: 'error', title: "Uncaught Exception", message: "Unknown error occurred!", detail: "Something unexpected happened! Please check wiki-page if this is a known problem:\r\n#### ERROR #####\r\n" + err, buttons: ["Close application", "Open Wiki"] }; uncaugetdia.showMessageBox(electron.remote.getCurrentWindow(), uncaughtoptions, function (index) { // no need to deal with anything.... just notifying user if (index === 1) { //open wiki shell.openExternal("https://github.com/Tyaisurm/DECSV/wiki"); logger.error("Closing application because of error...."); app.exit(); } else { // close, do nothing logger.error("Closing application because of error...."); app.exit(); } }); }); //////////////////////////////////// const electron = require('electron'); const remote = electron.remote; const thiswindow = remote.getCurrentWindow(); const path = require('path'); //const shell = electron.shell; const dialog = remote.dialog; const getSettings = remote.getGlobal("getSettings"); const intUtils = require(path.join(__dirname, './intUtils.js')); const ipcRenderer = electron.ipcRenderer; var operating = false; window.import_ready = false; const { Menu, MenuItem } = remote; const menu = new Menu(); menu.append(new MenuItem({ label: 'Developer Tools', click() { thiswindow.toggleDevTools(); console.error("\n\n\nNOTICE, PLEASE READ!\n\n\n\n\nThis is intended for debugging purposes, and you don't need to do anything here unless specifically told so! There is a possibility that things will break if you don't know what you're doing. \n\nIf someone told you to paste something here, please don't do that :)\n\n\n\n\n\n"); } })) window.addEventListener('contextmenu', (e) => { e.preventDefault(); menu.popup({ window: thiswindow }); }, false); ///////////////////////////////////////////////////////////////////////////////// SCREEN LISTENERS thiswindow.on('focus', function () { $("html").css("opacity", "1"); }); thiswindow.on('blur', function () { $("html").css("opacity", "0.5"); }); document.getElementById("win-close-icon").onclick = function () { thiswindow.close(); } document.getElementById("import-add-file-btn").onclick = function () { logger.debug("import-add-file-btn clicked"); // show dialog to select file path // set delimiter to default value // check if survey tool is chosen; IF NOT CHOSEN, show error and ask to choose it // send filepath, tool and delimiter values to // open file dialog var docpath = remote.app.getPath('documents'); var options = { title: i18n.__('open-file-prompt-window-title'), defaultPath: docpath, filters: [ { name: 'Comma Separated Values', extensions: ['csv'] } ], properties: ['openFile' ] }//'multiSelections'<<<<--- because we need to ask where is this file from function callback(fileNames) { if (fileNames !== undefined) { // set this to window element $("#import-file-name").text(fileNames[0]); $("#import-file-name").attr("data-file", fileNames[0]); logger.info("Selected file: '" + fileNames[0] + "'"); window.import_ready = false; collectData(); thiswindow.show(); return; } logger.warn("No file(s) chosen to be opened!"); if (window.automate === true) { thiswindow.close(); } } dialog.showOpenDialog(thiswindow, options, callback); } document.getElementById("import-reload-file-btn").onclick = function () { window.import_ready = false; collectData(); return; } document.getElementById("import-select-all-btn").onclick = function () { logger.debug("import-select-all-btn clicked");// iterate through "#import-preview-list" and set all object to have class "importable-2", if they have "importable-1" //console.log($("#import-preview-list .importable-1")); $("#import-preview-list .importable-1").each(function (index) { $(this).find("span").trigger("click"); }); } document.getElementById("import-select-none-btn").onclick = function () { logger.debug("import-select-none-btn clicked"); console.log($("#import-preview-list .importable-2")) $("#import-preview-list .importable-2").each(function (index) { $(this).find("span").trigger("click"); }); // iterate through "#import-preview-list" and set all object to have class "importable-1", if they have "importable-2" } document.getElementById("import-confirm-btn").onclick = function () { logger.debug("import-confirm-btn clicked"); // collect selected lines and send them to main window-> if (window.import_ready) { // ready for import.... logger.info("Ready for import!"); try { // var chosenArr = []; var filepath = $("#import-file-name").attr("data-file"); $("#import-preview-list .importable-2").each(function () { var currentArr = $(this).attr("data-real"); chosenArr.push(JSON.parse(currentArr)); }); var tool = $("#import-select-tool").select2("val"); var survey_version = $("#import-select-survey-ver").select2("val"); if (tool === null || tool === "" || tool === undefined) { // no tool chosen logger.error("No tool chosen when importing!"); $("#import-error-text").text(i18n.__('import-data-fail-1')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); return 1; } else if (chosenArr.length === 0) { logger.error("Can't import; no arrays chosen for import!"); $("#import-error-text").text(i18n.__('import-data-fail-5')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); return 1; } else if (survey_version === null || survey_version === "" || survey_version === undefined) { // no tool chosen logger.error("No survey version chosen when importing!"); $("#import-error-text").text(i18n.__('import-data-fail-6')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); return 1; } else { try { // survey_version = Number.parseInt(survey_version); tool = Number.parseInt(tool); } catch (err) { logger.error("Error while parsing import wizard select parameters!"); logger.error(err.message); tool = 0; survey_version = 0; } // JUST TO PREVENT NEEDLESS FUNCTIONALITY NEEDSTOBECHANGED if (tool != 0) { //not Google Forms output logger.error("Not implemented! Need to be Google Forms file!"); $("#import-error-text").text(i18n.__('dummy-dia-2')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); return 1; } /////////////////// if (!operating) { operating = true; timer(); console.log("############### Chosen Array ########################"); console.log(chosenArr) ipcRenderer.send("import-wiz-return", [[tool, chosenArr, filepath, survey_version], 1]);// sends data to main process to be processed } else { logger.error("Unable to send chosen arrays to main process! Already operating!"); } } } catch (err) { logger.error(err.message); logger.error("Error while parsing data-real when trying to import!"); $("#import-error-text").text(i18n.__('import-error-data-parsing')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); } } else { logger.warn("Unable to import! Parameters not ready for import!"); $("#import-error-text").text(i18n.__('import-error-ready')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); } } //////////////////////////////////////////////// STARTUP FUNCTIONS jquerySetup(); intUtils.selectUtils.setImportSelect();// settings up select for survey tools //var testArray = [["lorem", "ipsum", "delores", 2, 4, 123, 124], ["lorem", "ipsum", "delores", 2, 4, 123, 124], ["lorem", "ipsum", "delores", 2, 4, 123, 124], ["lorem", "ipsum", "delores", 2, 4, 123, 124]]; // ipcRenderer.send("import-wiz-return",[import_tool,import_delimeter,import_file]); intUtils.setImportPreview();//testArray); ipcRenderer.on("automate", function (event, arg) { window.automate = true; logger.debug("import automate ipcRenderer...."); $("#import-select-tool").val("0").trigger("change"); $("#import-select-survey-ver").val("0").trigger("change"); $("#import-add-file-btn").trigger("click"); }); //import-wiz-reply /* data from main process... read arrays of file */ ipcRenderer.on("import-wiz-reply", function (event, arg) {// should be [boolean, statusNUM, arr] logger.debug("import-wiz-reply (mimport wiz)"); //import_ready = false; var bool = arg[0]; var status = arg[1]; var arr = arg[2]; //console.log(arr); if (bool === null || status === null || arr === null) { // reply gave out null! logger.error("Import reply to import wizard was NULL!"); } else if (!bool) { // was failure if (typeof status != typeof 123) { // statusnum not number } else { // checking error code and giving out response... $("#import-error-text").text(i18n.__('file-import-error-' + status)); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); } } else { // was ok if (arr instanceof Array) { var arrcheck = true; for (var t = 0; t < arr.length; t++) { if (!(arr[t] instanceof Array)) { arrcheck = false; } } if (arrcheck) { console.log("############### ARRAY #############################"); console.log(arr); intUtils.setImportPreview(arr, true); window.import_ready = true; } else { $("#import-error-text").text(i18n.__('file-import-error-arr-2')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); } } else { intUtils.setImportPreview(); $("#import-error-text").text(i18n.__('file-import-error-arr-1')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); } } operating = false; }); /* Returned from main window with result to importing */ ipcRenderer.on("import-wiz-result", function (event, arg) { // [true, 0, jsonobjstring] logger.debug("import-wiz-result (import wizard)"); //logger.debug(arg); if (arg[0]) { logger.info("Exporting successful! Closing import wizard..."); try { var htmljson = JSON.parse(arg[2]); thiswindow.getParentWindow().webContents.send("import-wiz-import-result", htmljson); thiswindow.close(); } catch (err) { logger.error(err.message); logger.error("Exporting failed because of JSON parsing!"); //$("#import-wiz-err-text").text(i18n.__('import-import-fail-'+arg[1])); $("#import-error-text").text(i18n.__('import-error-parse-1')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); } } else { logger.error("Exporting NOT successful! Reason: "+arg[1]); //$("#import-wiz-err-text").text(i18n.__('import-import-fail-'+arg[1])); $("#import-error-text").text(i18n.__('import-error-parse-1')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); } operating = false; }); /* Collect filepath, delimiter, */ function collectData(automated = false) { logger.debug("collectData") var tool = $("#import-select-tool").select2("val"); var delimiter = $("#import-select-delimiter").select2("val"); var filepath = $("#import-file-name").attr("data-file"); var encoding = $("#import-select-encoding").select2("val"); try { if (tool != null) { tool = Number.parseInt(tool); } if (delimiter != null) { delimiter = Number.parseInt(delimiter); } if (encoding != null) { encoding = Number.parseInt(encoding); } } catch (err) { logger.error("Error while parsing import wizard select parameters!"); logger.error(err.message); tool = 0; delimiter = 0; encoding = 0; } if (delimiter === null || delimiter === "" || delimiter === undefined) { //no delimiter chosen $("#import-select-encoding").val("0").trigger("change"); $("#import-error-text").text(i18n.__('import-data-fail-3')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); return 1; } if (encoding === null || encoding === "" || encoding === undefined) { //no encoding chosen $("#import-select-delimiter").val("0").trigger("change"); $("#import-error-text").text(i18n.__('import-data-fail-4')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); return 1; } if (filepath === "" || filepath === undefined || filepath === null) { // no file chosen $("#import-error-text").text(i18n.__('import-data-fail-2')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); return 1; } else if (tool === null || tool === "" || tool === undefined) { // no tool chosen $("#import-error-text").text(i18n.__('import-data-fail-1')); $("#import-error-text").before($("#import-error-text").clone(true)); $("[id='import-error-text']" + ":last").remove(); return 1; } else { logger.debug(3); $("#import-error-text").text(" "); logger.debug("Data: " + [tool, delimiter, encoding, filepath]); if (!operating) { operating = true; timer(); logger.debug("SENDING PARAMETERS FROM WIZARD"); logger.debug(tool); logger.debug(delimiter); logger.debug(encoding); ipcRenderer.send("import-wiz-return", [[tool, delimiter, encoding, filepath],0]);// sends data to main process to be processed return 0; } else { logger.warn("Already operating! Unable to collect data... (importWiz)"); return 1; } } } function timer() { logger.debug("timer"); // disable all buttons, and UI elements!!! $("#main-div").css("opacity", 0.5); $("#top-titlebar").css("opacity", 0.5); $("#top-header").css("opacity", 0.5); $("#import-busy-notif").css("display", "flex"); var timerObj = setInterval(function () { if (!operating) { clearInterval(timerObj); // enable buttons, and UI elements, again $("#main-div").css("opacity", 1); $("#top-titlebar").css("opacity", 1); $("#top-header").css("opacity", 1); $("#import-busy-notif").css("display", "none"); } }, 1000); } /* Checks filename if valid */ function checkFileName(filepath = "") { logger.debug("checkFilePath"); var regex_filepath_val = /^[^\\/:\*\?"<>\|]+$/; if (filepath === "" || filepath === null || filepath === undefined) { // filepath empty return false; } else if (!regex_filepath_val.test(filepath.split("\\").pop())) { // invalid filepath characters return false; } else if (filepath.split(".").pop() !== "csv" && filepath.split(".").pop() !== "xlsx" && filepath.split(".").pop() !== "xls") { // invalid file extension return false; } else { return true; } } /* THIS IS SETTING UP UI TRANSLATION */ function setupTranslations(applang = "en") { logger.info("Loading translations into UI (importwizard)"); // Set text here $("#titlebar-appname").text(i18n.__('import-title-name')); $("#import-error-text").text(" "); $("#import-confirm-btn").text(i18n.__('import-confirm-import')); $("#import-select-all-btn").text(i18n.__('import-select-all')); $("#import-select-none-btn").text(i18n.__('import-select-none')); $("#import-add-file-text").text(i18n.__('import-add-file')); $("#import-tip-1").text(i18n.__('import-tip-1')); $("#import-tip-2").text(i18n.__('import-tip-2')); $("#import-tip-3").text(i18n.__('import-tip-3')); $("#import-tool-text").text(i18n.__('import-tool-tip')); $("#import-delimiter-text").text(i18n.__('import-delimiter-tip')); $("#import-encoding-text").text(i18n.__('import-encoding-tip')); $("#import-survey-ver-text").text(i18n.__('import-survey-version-tip')); $("#import-file-name").text(i18n.__('import-file-name-base')); $("#import-reload-file-text").text(i18n.__('import-reload-file')); } electron.ipcRenderer.on('force-interface-update', (event, settings) => { logger.info("Received call to force interface update (importwizard)"); interfaceUpdate(settings); }); /* update interface of this window */ function interfaceUpdate(settings = {}) { logger.debug("interfaceUpdate (importwizard.js)"); //logger.debug(settings.constructor); if (settings.constructor === {}.constructor) { if (Object.keys(settings).length !== 1) { //logger.debug("INT FAIL 1"); settings = getSettings(); } else if (!settings.hasOwnProperty("app")) { //logger.debug("INT FAIL 2"); settings = getSettings(); } } else if (!parseUtils.validateSettings(settings.app, 1)) { //logger.debug("INT FAIL 4"); settings = getSettings(); } /* setting current settings as window object (json) */ window.allsettings = settings; /* only in main window! */ //$("body").css("zoom", settings.app.zoom / 100); /* Setting up UI texts */ setupTranslations(settings.app["app-lang"]); } function jquerySetup() { /* New function to make discarding <span> elements easier */ $.fn.ignore = function (sel) { return this.clone().find(sel || ">*").remove().end(); }; var settings = getSettings(); /* This sets up the language that ALL select2 select-fields will use */ $.fn.select2.defaults.set('language', settings.app["app-lang"]); } interfaceUpdate();
mit
larswolter/ultisite
client/dialogs.js
4607
import { FlowRouter } from 'meteor/kadira:flow-router'; let getTextCallback; const getTextOptions = new ReactiveVar(); UltiSite.confirmDialog = function (text, callback) { getTextOptions.set({ text }); getTextCallback = callback; $('#confirmDialog').modal('show'); }; UltiSite.getTextDialog = function (options, callback) { getTextOptions.set(options); getTextCallback = callback; $('#getTextDialog').modal('show'); }; UltiSite.getHTMLTextDialog = function (options, callback) { getTextOptions.set(options); getTextCallback = callback; $('#getHTMLTextDialog').modal('show'); }; UltiSite.modalDialogTemplate = null; UltiSite.showModal = function (templateName, data, options) { if (options && options.dynamicImport) { import(options.dynamicImport).then(() => { UltiSite.showModal(templateName, data, _.omit(options, 'dynamicImport')); }); return; } if (!Template[templateName]) { throw new Meteor.Error(`template notfound:${templateName}`); } if (UltiSite.modalDialogTemplate === null) { const parentNode = $('div.base-layout')[0]; const view = Blaze.renderWithData(Template[templateName], data, parentNode); const domRange = view._domrange; const modal = domRange.$('.modal'); modal.on('shown.bs.modal', function (event) { modal.find('[autofocus]').focus(); }); modal.on('hidden.bs.modal', function (event) { Blaze.remove(view); UltiSite.modalDialogTemplate = null; if (FlowRouter.current().queryParams && FlowRouter.current().queryParams.modalDialog) { window.history.back(); } }); UltiSite.modalDialogTemplate = modal; modal.modal(options || {}); FlowRouter.go( FlowRouter.current().path, {}, Object.assign({ modalDialog: 1 }, FlowRouter.current().queryParams)); } }; UltiSite.hideModal = function (afterHidden) { if (UltiSite.modalDialogTemplate && UltiSite.modalDialogTemplate.modal) { if (afterHidden) { UltiSite.modalDialogTemplate.on('hidden.bs.modal', afterHidden); } UltiSite.modalDialogTemplate.modal('hide'); } }; Template.confirmDialog.helpers({ options() { return getTextOptions.get(); }, }); Template.confirmDialog.events({ 'click .action-confirm': function (event, template) { event.preventDefault(); getTextCallback(true); $('#confirmDialog').modal('hide'); }, }); Template.getTextDialog.helpers({ options() { return getTextOptions.get(); }, }); Template.getTextDialog.events({ 'submit form': function (event, template) { event.preventDefault(); getTextCallback(template.$('.text-input').val()); $('#getTextDialog').modal('hide'); }, }); Template.getHTMLTextDialog.onCreated(function () { this.wysiwygLoaded = new ReactiveVar(false); }); Template.getHTMLTextDialog.helpers({ wysiwygLoaded() { return Template.instance().wysiwygLoaded.get(); }, options() { return getTextOptions.get(); }, }); Template.getHTMLTextDialog.events({ 'click .action-save': function (event, template) { event.preventDefault(); getTextCallback(template.$('textarea.wysiwyg-textarea').val()); $('#getHTMLTextDialog').modal('hide'); }, 'shown.bs.modal #getHTMLTextDialog': function (evt, tmpl) { import('/imports/client/forms/wysiwyg.js').then(() => tmpl.wysiwygLoaded.set(true)); }, 'hidden.bs.modal #getHTMLTextDialog': function () { getTextOptions.set(undefined); }, }); const searchDependency = new ReactiveVar('Users,Images,Tournaments,Documents,WikiPages,Blogs'); Template.searchDialog.onRendered(function () { this.autorun(() => { if (FlowRouter.current().route.name === 'users') { searchDependency.set('Users'); } else if (FlowRouter.current().route.name === 'tournaments') { searchDependency.set('Tournaments'); } else if (FlowRouter.current().route.name === 'files') { searchDependency.set('Images,Tournaments'); } else { searchDependency.set('Images,Tournaments,Users,Tournaments,WikiPages,Blogs'); } }); }); Template.searchDialog.events({ 'change .search-type': function (evt, tmpl) { searchDependency.set(_.filter(tmpl.$('.search-type'), st => st.checked).map(st => tmpl.$(st).attr('data-type')).join(',')); }, }); Template.searchDialog.helpers({ isActive(type) { return _.contains(searchDependency.get().split(','), type); }, clickFunc() { return (searchResult) => { UltiSite.hideModal(); FlowRouter.go(searchResult.link); }; }, activeSearch() { console.log(searchDependency.get()); return searchDependency.get(); }, });
mit
Derppening/warframe_packages_deparser
log.cpp
6510
// Copyright (c) 2017 David Mak. All rights reserved. // Licensed under MIT. // // Implementations for StaticLog class. // #include "log.h" #include <iomanip> #include <iostream> #include <memory> #include <string> using std::cerr; using std::clog; using std::string; bool Log::is_init_ = false; bool Log::enable_logging_ = false; bool Log::use_override_pipe_ = false; Log::Pipe Log::override_pipe_ = Log::Pipe::kDefault; std::unique_ptr<std::string> Log::verbose_app_ = nullptr; std::unique_ptr<std::string> Log::debug_app_ = nullptr; std::unique_ptr<std::string> Log::info_app_ = nullptr; std::unique_ptr<std::string> Log::warn_app_ = nullptr; std::unique_ptr<std::string> Log::error_app_ = nullptr; std::unique_ptr<std::size_t> Log::padding_len_ = nullptr; std::unique_ptr<std::ofstream> Log::log_str_ = nullptr; namespace { void PutTime(std::stringstream& ss) { auto time = std::time(nullptr); std::tm tm = *std::localtime(&time); ss << std::put_time(&tm, "%m-%d %H:%M:%S"); } } // namespace void Log::Init() { verbose_app_ = std::make_unique<std::string>("[VERBOSE]"); debug_app_ = std::make_unique<std::string>("[DEBUG]"); info_app_ = std::make_unique<std::string>("[INFO]"); warn_app_ = std::make_unique<std::string>("[WARNING]"); error_app_ = std::make_unique<std::string>("[ERROR]"); padding_len_ = std::make_unique<std::size_t>(0); EvaluatePadding(); is_init_ = true; } void Log::Enable() { if (!is_init_) { throw std::runtime_error("Logging class has not been initialized yet"); } enable_logging_ = true; } void Log::Disable() { if (!is_init_) { throw std::runtime_error("Logging class has not been initialized yet"); } enable_logging_ = false; } bool Log::SetFile(string filename, std::ios_base::openmode mode) { if (!enable_logging_) return false; if (log_str_ != nullptr) { log_str_->close(); } log_str_ = std::make_unique<std::ofstream>(filename, mode); return static_cast<bool>(*log_str_); } bool Log::ForceSetFile(string filename, std::ios_base::openmode mode) { if (!enable_logging_) return false; if (log_str_ != nullptr) { log_str_->close(); } log_str_ = std::make_unique<std::ofstream>(filename, mode); if (!*log_str_) { throw std::ios_base::failure("Unable to open file for write"); } return true; } void Log::v(string message, Pipe dest) { if (!enable_logging_) return; std::stringstream ss; PutTime(ss); ss << '\t' << *verbose_app_ << GetPadding(kVerbose) << ": " << message << '\n'; if (use_override_pipe_) { dest = override_pipe_; } switch (dest) { default: case Pipe::kDefault: case Pipe::kClog: clog << ss.str(); break; case Pipe::kFile: { if (!*log_str_) { throw std::runtime_error("No file open for logging"); } *log_str_ << ss.str(); } } } void Log::d(string message, Pipe dest) { if (!enable_logging_) return; std::stringstream ss; PutTime(ss); ss << '\t' << *debug_app_ << GetPadding(kDebug) << ": " << message << '\n'; if (use_override_pipe_) { dest = override_pipe_; } switch (dest) { default: case Pipe::kDefault: case Pipe::kClog: clog << ss.str(); break; case Pipe::kFile: { if (!log_str_) { throw std::runtime_error("No file open for logging"); } *log_str_ << ss.str(); } } } void Log::i(string message, Pipe dest) { if (!enable_logging_) return; std::stringstream ss; PutTime(ss); ss << '\t' << *info_app_ << GetPadding(kInfo) << ": " << message << '\n'; if (use_override_pipe_) { dest = override_pipe_; } switch (dest) { default: case Pipe::kDefault: case Pipe::kClog: clog << ss.str(); break; case Pipe::kFile: { if (!*log_str_) { throw std::runtime_error("No file open for logging"); } *log_str_ << ss.str(); } } } void Log::w(string message, Pipe dest) { if (!enable_logging_) return; std::stringstream ss; PutTime(ss); ss << '\t' << *warn_app_ << GetPadding(kWarn) << ": " << message << '\n'; if (use_override_pipe_) { dest = override_pipe_; } switch (dest) { default: case Pipe::kDefault: case Pipe::kClog: clog << ss.str(); break; case Pipe::kFile: { if (!*log_str_) { throw std::runtime_error("No file open for logging"); } *log_str_ << ss.str(); } } } void Log::e(string message, Pipe dest) { if (!enable_logging_) return; std::stringstream ss; PutTime(ss); ss << '\t' << *error_app_ << GetPadding(kError) << ": " << message << '\n'; if (use_override_pipe_) { dest = override_pipe_; } switch (dest) { default: case Pipe::kDefault: cerr << ss.str(); break; case Pipe::kClog: clog << ss.str(); break; case Pipe::kFile: { if (!*log_str_) { throw std::runtime_error("No file open for logging"); } *log_str_ << ss.str(); } } } void Log::FlushStderrBuf() { clog.flush(); } void Log::FlushFileBuf() { if (log_str_ != nullptr) { log_str_->flush(); } } void Log::SetVerboseString(string str) { *verbose_app_ = std::move(str); EvaluatePadding(); } void Log::SetDebugString(string str) { *debug_app_ = std::move(str); EvaluatePadding(); } void Log::SetInfoString(string str) { *info_app_ = std::move(str); EvaluatePadding(); } void Log::SetWarningString(string str) { *warn_app_ = std::move(str); EvaluatePadding(); } void Log::SetErrorString(string str) { *error_app_ = std::move(str); EvaluatePadding(); } void Log::EvaluatePadding() { *padding_len_ = verbose_app_->length(); *padding_len_ = std::max(*padding_len_, debug_app_->length()); *padding_len_ = std::max(*padding_len_, info_app_->length()); *padding_len_ = std::max(*padding_len_, warn_app_->length()); *padding_len_ = std::max(*padding_len_, error_app_->length()); } auto Log::GetPadding(Level lvl) -> std::string { std::size_t i = *padding_len_; switch (lvl) { case kVerbose: i -= verbose_app_->length(); break; case kDebug: i -= debug_app_->length(); break; case kInfo: i -= info_app_->length(); break; case kWarn: i -= warn_app_->length(); break; case kError: i -= error_app_->length(); break; default: // all cases covered break; } std::string s; for (unsigned int it = 0; it < i; ++it) { s += " "; } return s; }
mit
Badacadabra/PatternifyJS
GoF/classic/Behavioral/Mediator/ECMAScript/ES5/API/Dick.js
559
'use strict'; var Neighbor = require('./Neighbor'); // ============================== // CONCRETE COLLEAGUE (NEIGHBOR) // ============================== var Dick = function (mediator) { Neighbor.call(this, mediator); } Dick.prototype = Object.create(Neighbor.prototype); Dick.prototype.constructor = Dick; Dick.prototype.send = function (message) { return this._mediator.send(message, this); }; Dick.prototype.receive = function (message, sender) { return "[Dick] Message from " + sender + ": '" + message + "'\n"; }; module.exports = Dick;
mit
alxgiraud/islandGenerator
public/app/controllers/mainCtrl.js
8402
/*global app*/ app.controller('mainCtrl', ['$scope', 'mapServices', 'genericServices', 'Biome', function ($scope, mapServices, genericServices, Biome) { 'use strict'; var world = new Biome(45, Math.round(45 * Math.sqrt(3) / 2)); mapServices.initMap(); /* Dropdown mode */ $scope.modes = [ { id: 0, name: 'Normal' }, { id: 1, name: 'Perlin Only' }, { id: 2, name: 'Gradients Only' } ]; $scope.selectedMode = $scope.modes[0]; $scope.selectMode = function (id) { if (id === 1 && $scope.selectedTab[2]) { $scope.selectedTab[2] = false; } else if (id === 2 && $scope.selectedTab[1]) { $scope.selectedTab[1] = false; } $scope.selectedMode = $scope.modes[id]; world.setBiomes($scope.selectedMode.id, $scope.islandSize.value, $scope.biomesDistribution, $scope.isGrey); mapServices.drawGrid(world, $scope.isGrey, $scope.biomesDistribution); }; /* Color mode */ $scope.isGrey = false; $scope.onClickColorMode = function (isGrey) { if ($scope.selectedTab[0]) { $scope.selectedTab[0] = false; } world.setBiomes($scope.selectedMode.id, $scope.islandSize.value, $scope.biomesDistribution, $scope.isGrey); mapServices.drawGrid(world, $scope.isGrey, $scope.selectedMode.id); }; /* Island Size */ $scope.islandSize = { id: 10, value: 75, min: 1, max: 100, step: 1 }; $scope.onChangeIslandSize = function () { world.setBiomes($scope.selectedMode.id, $scope.islandSize.value, $scope.biomesDistribution, $scope.isGrey); mapServices.drawGrid(world, $scope.isGrey, $scope.biomesDistribution); }; $scope.tooltipPercentageFormatter = function (value) { return value + '%'; }; $scope.resfreshAll = function () { world.setGradientSeeds($scope.gradientSliders[0].value); world.setGradients($scope.gradientSliders[2].value, $scope.gradientSliders[1].value); $scope.refreshNoise(); }; /* Biomes Distribution */ $scope.biomesDistribution = [ { label: 'Shallow Water', id: 101, value: 15, min: 0, max: 100, step: 1, percentage: 15 }, { label: 'Sand', id: 102, value: 30, min: 0, max: 100, step: 1, percentage: 30 }, { label: 'Grass', id: 103, value: 35, min: 0, max: 100, step: 1, percentage: 35 }, { label: 'Forest', id: 104, value: 15, min: 0, max: 100, step: 1, percentage: 15 }, { label: 'Dark Forest', id: 105, value: 5, min: 0, max: 100, step: 1, percentage: 5 } ]; $scope.onChangeBiomesDistribution = function () { var totalValues = 0, i, roundedValues = [], totalRounded = 0, gap; for (i = 0; i < $scope.biomesDistribution.length; i += 1) { totalValues += $scope.biomesDistribution[i].value; } for (i = 0; i < $scope.biomesDistribution.length; i += 1) { roundedValues.push(Math.round($scope.biomesDistribution[i].value * 100 / totalValues)); totalRounded += Math.round($scope.biomesDistribution[i].value * 100 / totalValues); } gap = totalRounded - 100; if (gap > 0) { for (i = 0; i < roundedValues.length; i += 1) { if (roundedValues[i] < 100) { roundedValues[i] -= 1; gap -= 1; if (gap === 0) { break; } } } } if (gap < 0) { for (i = 0; i < roundedValues.length; i += 1) { if (roundedValues[i] > 0) { roundedValues[i] += 1; gap += 1; if (gap === 0) { break; } } } } for (i = 0; i < $scope.biomesDistribution.length; i += 1) { $scope.biomesDistribution[i].percentage = roundedValues[i]; } world.setBiomes($scope.selectedMode.id, $scope.islandSize.value, $scope.biomesDistribution, $scope.isGrey); mapServices.drawGrid(world, $scope.isGrey, $scope.selectedMode.id); }; $scope.randomizeBiomes = function () { var i; for (i = 0; i < $scope.biomesDistribution.length; i += 1) { $scope.biomesDistribution[i].value = genericServices.rand(0, 100); } $scope.onChangeBiomesDistribution(); }; /* Perlin Noise */ $scope.perlinSliders = [ { id: 1, label: 'Intensity', value: 1, min: 0.01, max: 5, step: 0.1 }, { id: 2, label: 'Frequency', value: 15, min: 0.01, max: 50, step: 1 }, { id: 3, label: 'Octaves', value: 1, min: 0.01, max: 10, step: 1 } ]; $scope.onChangePerlin = function () { world.setPerlinNoise($scope.perlinSliders[0].value, $scope.perlinSliders[1].value, $scope.perlinSliders[2].value); world.setBiomes($scope.selectedMode.id, $scope.islandSize.value, $scope.biomesDistribution, $scope.isGrey); mapServices.drawGrid(world, $scope.isGrey, $scope.biomesDistribution); }; /* Button Refresh Perlin */ $scope.refreshNoise = function () { world.perlinSeed = Math.random(); $scope.onChangePerlin(); }; /* Gradients */ $scope.gradientSliders = [ { id: 4, label: 'Quantity', value: 4, min: 1, max: 20, step: 1 }, { id: 5, label: 'Intensity', value: 1, min: 0.01, max: 5, step: 0.1 }, { id: 6, label: 'Radius', value: 10, min: 0, max: 25, step: 1 } ]; $scope.onChangeGradients = function () { if (world.gradientSeeds.length < $scope.gradientSliders[0].value) { world.addGradientSeeds($scope.gradientSliders[0].value - world.gradientSeeds.length); } else if (world.gradientSeeds.length > $scope.gradientSliders[0].value) { world.removeSeeds(world.gradientSeeds.length - $scope.gradientSliders[0].value); } world.setGradients($scope.gradientSliders[2].value, $scope.gradientSliders[1].value); world.setBiomes($scope.selectedMode.id, $scope.islandSize.value, $scope.biomesDistribution, $scope.isGrey); mapServices.drawGrid(world, $scope.isGrey, $scope.biomesDistribution); }; /* Button Refresh Gradients */ $scope.refreshGradients = function () { world.setGradientSeeds($scope.gradientSliders[0].value); $scope.onChangeGradients(); }; $scope.downloadPdf = function () { mapServices.downloadPdf(); }; $scope.browserCompliant = (!genericServices.isInternetExplorer() && !genericServices.isSafari()); $scope.downloadPng = function () { mapServices.downloadPng(); }; $scope.selectedTab = [true, false, false, false]; /* Init the grid on load */ world.setGradientSeeds($scope.gradientSliders[0].value); world.setGradients($scope.gradientSliders[2].value, $scope.gradientSliders[1].value); world.perlinSeed = Math.random(); world.setPerlinNoise($scope.perlinSliders[0].value, $scope.perlinSliders[1].value, $scope.perlinSliders[2].value); world.setBiomes($scope.selectedMode.id, $scope.islandSize.value, $scope.biomesDistribution, $scope.isGrey); mapServices.drawGrid(world, $scope.isGrey, $scope.biomesDistribution); }]);
mit
appearhere/bloom
packages/core/src/components/Indicators/Indicators.js
166
import Indicator from './Indicator'; import IndicatorGroup from './IndicatorGroup'; const Indicators = { Indicator, IndicatorGroup }; export default Indicators;
mit
thibaultCha/TweetStats
TweetStats/src/generated/java/fr/ece/tweetstats/search/domain/SearchRepository.java
559
package fr.ece.tweetstats.search.domain; import fr.ece.tweetstats.search.domain.Search; import fr.ece.tweetstats.search.exception.SearchNotFoundException; import java.util.List; /** * Generated interface for Repository for Search */ public interface SearchRepository { public final static String BEAN_ID = "searchRepository"; public List<Search> findByBrand(String brand); public Search findById(String id) throws SearchNotFoundException; public List<Search> findAll(); public Search save(Search entity); public void delete(Search entity); }
mit
jliberal/OpenUI5_Launchpad
webapp/Component.js
1168
sap.ui.define([ "sap/ui/core/UIComponent", "sap/ui/Device", "cl/absys/jpl/desarrollos/launchpad/model/models", "sap/ui/model/json/JSONModel" ], function(UIComponent, Device, models, JSONModel) { "use strict"; return UIComponent.extend("cl.absys.jpl.desarrollos.launchpad.Component", { metadata: { manifest: "json" }, /** * The component is destroyed by UI5 automatically. * In this method, the ListSelector and ErrorHandler are destroyed. * @public * @override */ destroy : function () { // call the base component's destroy function UIComponent.prototype.destroy.apply(this, arguments); }, /** * The component is initialized by UI5 automatically during the startup of the app and calls the init method once. * @public * @override */ init: function() { // call the base component's init function UIComponent.prototype.init.apply(this, arguments); // set the device model var oDeviceModel = new JSONModel(Device); oDeviceModel.setDefaultBindingMode("OneWay"); this.setModel(oDeviceModel, "device"); // create the views based on the url/hash this.getRouter().initialize(); } }); });
mit
rnnalborodo/hackerrank
src/hackerrank/tutorials/daysofCode/day21Generics/Generics.java
1209
package hackerrank.tutorials.daysofCode.day21Generics; import java.util.Scanner; class Printer <T> { /** * Method Name: printArray * Print each element of the generic array on a new line. Do not return anything. * @param A generic array **/ public <T> void printArray(T[] arr ){ for (int i = 0; i < arr.length; i++) { System.out.println(arr[i].toString()); } } } public class Generics { public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); Integer[] intArray = new Integer[n]; for (int i = 0; i < n; i++) { intArray[i] = scanner.nextInt(); } n = scanner.nextInt(); String[] stringArray = new String[n]; for (int i = 0; i < n; i++) { stringArray[i] = scanner.next(); } scanner.close(); Printer<Integer> intPrinter = new Printer<Integer>(); Printer<String> stringPrinter = new Printer<String>(); intPrinter.printArray( intArray ); stringPrinter.printArray( stringArray ); if(Printer.class.getDeclaredMethods().length > 1){ System.out.println("The Printer class should only have 1 method named printArray."); } } }
mit
ardock/subscribe
subscribe-apis/src/main/java/ru/hh/oauth/subscribe/apis/DoktornaraboteApi.java
2117
package ru.hh.oauth.subscribe.apis; import ru.hh.oauth.subscribe.apis.service.DoktornaraboteOAuthServiceImpl; import ru.hh.oauth.subscribe.core.builder.api.DefaultApi20; import ru.hh.oauth.subscribe.core.extractors.AccessTokenExtractor; import ru.hh.oauth.subscribe.core.extractors.JsonTokenExtractor; import ru.hh.oauth.subscribe.core.model.OAuthConfig; import ru.hh.oauth.subscribe.core.model.OAuthConstants; import ru.hh.oauth.subscribe.core.model.Verb; import ru.hh.oauth.subscribe.core.oauth.OAuthService; import ru.hh.oauth.subscribe.core.utils.OAuthEncoder; import ru.hh.oauth.subscribe.core.utils.Preconditions; public class DoktornaraboteApi extends DefaultApi20 { private static final String AUTHORIZE_URL = "http://auth.doktornarabote.ru/OAuth/Authorize?response_type=code&client_id=%s&redirect_uri=%s&scope=%s"; private static final String TOKEN_URL = "http://auth.doktornarabote.ru/OAuth/Token"; @Override public Verb getAccessTokenVerb() { return Verb.POST; } @Override public String getAccessTokenEndpoint() { return TOKEN_URL; } @Override public String getAuthorizationUrl(OAuthConfig config) { Preconditions.checkValidUrl( config.getCallback(), "Must provide a valid url as callback. Doktornarabote does not support OOB"); final StringBuilder sb = new StringBuilder( String.format( AUTHORIZE_URL, config.getApiKey(), OAuthEncoder.encode(config.getCallback()), OAuthEncoder.encode(config.getScope()) ) ); final String state = config.getState(); if (state != null) { sb.append('&').append(OAuthConstants.STATE).append('=').append(OAuthEncoder.encode(state)); } return sb.toString(); } @Override public AccessTokenExtractor getAccessTokenExtractor() { return new JsonTokenExtractor(); } @Override public OAuthService createService(OAuthConfig config) { return new DoktornaraboteOAuthServiceImpl(this, config); } }
mit
pronix/fcg-service-clients
lib/fcg_service_clients/models/venue.rb
1332
module FCG module Client module Venue ATTRIBUTES = [:active, :address, :city, :region, :country, :created_at, :lat, :lng, :name, :state, :time_zone, :updated_at, :user_id, :zipcode].freeze module ClassMethods def autocomplete(term, *args) opts = args.extract_options! params = { :term => term, :limit => 10, :skip => 0 }.merge(opts) request = send_to_server(:method => :get, :path => "#{service_url}/autocomplete", :params => params) handle_service_response request.handled_response end end module InstanceMethods def full_address @full_address = "#{self.address}, #{self.city}, #{self.state}, #{self.zipcode}" @full_address << ", #{self.country}" unless in_us? @full_address end def to_param "#{id}-#{[name, address, city, state].join(' ').gsub(/[^a-z0-9]+/i, '_')}" end def not_in_us? !self.country == "US" end def in_us? self.country == "US" end end def self.included(receiver) receiver.extend ClassMethods receiver.send :include, FCG::Client::Persistence receiver.send :include, InstanceMethods end end end end
mit
mrboomer/personal-projects
app/containers/FirebaseChat/reducer.js
2108
/* * * FirebaseChat reducer * */ import { fromJS, List } from 'immutable'; import { CHECK_AUTHENTICATION_SUCCESS, CHECK_AUTHENTICATION_FAILURE, GET_NEW_USER_ID_SUCCESS, GET_NEW_USER_ID_FAILURE, STOP_MESSAGE_LISTENER, GET_MESSAGE_SUCCESS, GET_MESSAGE_FAILURE, ADD_USER_SUCCESS, HANDLE_CHANGE, PROCESS_SUBMIT_SUCCESS, PROCESS_SUBMIT_FAILURE, } from './constants'; const initialState = fromJS({ isAuthenticated: null, userId: null, user: '', message: '', messages: [], authCheckError: null, getUserIdError: null, getMessagesError: null, processSubmitError: null, }); function firebaseChatReducer(state = initialState, action) { switch (action.type) { case CHECK_AUTHENTICATION_SUCCESS: return state .set('isAuthenticated', action.isAuthenticated) .set('userId', action.userId) .set('user', action.user) .set('authCheckError', null); case CHECK_AUTHENTICATION_FAILURE: return state .set('authCheckError', action.error); case GET_NEW_USER_ID_SUCCESS: return state .set('isAuthenticated', true) .set('userId', action.userId) .set('getUserIdError', null); case GET_NEW_USER_ID_FAILURE: return state .set('getUserIdError', action.error); case STOP_MESSAGE_LISTENER: return state .set('isAuthenticated', null) .set('userId', null) .set('user', '') .set('messages', List()); case GET_MESSAGE_SUCCESS: return state .set('messages', state.get('messages').push(action.message)); case GET_MESSAGE_FAILURE: return state .set('getMessagesError', action.error); case ADD_USER_SUCCESS: return state .set('user', action.user); case HANDLE_CHANGE: return state .set('message', action.message); case PROCESS_SUBMIT_SUCCESS: return state .set('message', ''); case PROCESS_SUBMIT_FAILURE: return state .set('processSubmitError', action.error); default: return state; } } export default firebaseChatReducer;
mit
axlyody/mikoci
config/mail.php
4036
<?php return [ /* |-------------------------------------------------------------------------- | Mail Driver |-------------------------------------------------------------------------- | | Laravel supports both SMTP and PHP's "mail" function as drivers for the | sending of e-mail. You may specify which one you're using throughout | your application here. By default, Laravel is setup for SMTP mail. | | Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "log" | */ 'driver' => 'smtp', /* |-------------------------------------------------------------------------- | SMTP Host Address |-------------------------------------------------------------------------- | | Here you may provide the host address of the SMTP server used by your | applications. A default option is provided that is compatible with | the Mailgun mail service which will provide reliable deliveries. | */ 'host' => 'smtp-pulse.com', /* |-------------------------------------------------------------------------- | SMTP Host Port |-------------------------------------------------------------------------- | | This is the SMTP port used by your application to deliver e-mails to | users of the application. Like the host we have set this value to | stay compatible with the Mailgun e-mail application by default. | */ 'port' => 465, /* |-------------------------------------------------------------------------- | Global "From" Address |-------------------------------------------------------------------------- | | You may wish for all e-mails sent by your application to be sent from | the same address. Here, you may specify a name and address that is | used globally for all e-mails that are sent by your application. | */ 'from' => ['address' => 'noreply@kiriri.id', 'name' => 'Kiriri Notification'], /* |-------------------------------------------------------------------------- | E-Mail Encryption Protocol |-------------------------------------------------------------------------- | | Here you may specify the encryption protocol that should be used when | the application send e-mail messages. A sensible default using the | transport layer security protocol should provide great security. | */ 'encryption' => '', /* |-------------------------------------------------------------------------- | SMTP Server Username |-------------------------------------------------------------------------- | | If your SMTP server requires a username for authentication, you should | set it here. This will get used to authenticate with your server on | connection. You may also set the "password" value below this one. | */ 'username' => 'axlyody@outlook.com', /* |-------------------------------------------------------------------------- | SMTP Server Password |-------------------------------------------------------------------------- | | Here you may set the password required by your SMTP server to send out | messages from your application. This will be given to the server on | connection so that the application will be able to send messages. | */ 'password' => 'cPFr3qsiMJA3d', /* |-------------------------------------------------------------------------- | Sendmail System Path |-------------------------------------------------------------------------- | | When using the "sendmail" driver to send e-mails, we will need to know | the path to where Sendmail lives on this server. A default path has | been provided here, which will work well on most of your systems. | */ 'sendmail' => '/usr/sbin/sendmail -bs', /* |-------------------------------------------------------------------------- | Mail "Pretend" |-------------------------------------------------------------------------- | | When this option is enabled, e-mail will not actually be sent over the | web and will instead be written to your application's logs files so | you may inspect the message. This is great for local development. | */ 'pretend' => false, ];
mit
grandnexus/facetrax
scripts/main.js
409
var compareImages = require('compareImages'); module.exports.registerFace = function (imageFile) { // Extract the file out of it compareImages.extractGenerateFaceImages(imageFile, function (result) { if (!result) { console.log("Please try taking photo again!"); } // Get whole database list // Compare the image against all the image databases }); }
mit
krother/maze_run
16_static_typing/highscores_sqlite3.py
600
import sqlite3 DB_SETUP = ''' CREATE TABLE IF NOT EXISTS scores ( player VARCHAR(25), score INTEGER); ''' # create the database db = sqlite3.connect('highscores.sqlite') db.executescript(DB_SETUP) # fill the database with entries insert = 'INSERT INTO scores VALUES (?,?);' db.execute(insert, ('Ada', 5500)) db.execute(insert, ('Bob', 4400)) db.execute(insert, (3300, 'Charlie')) # retrieve the top five entries in descending order query = 'SELECT player, score FROM scores ORDER BY score DESC LIMIT 5;' for result in db.execute(query): player, score = result print(result)
mit
roccojanse/federico
gulpfile.js
271
var gulp = require('gulp'), jsdoc = require('gulp-jsdoc3'); 'use strict'; gulp.task('docs', function(cb) { var config = require('./jsdoc.json'); gulp.src(['./README.md', './index.js', './src/**/*.js'], { read: false }) .pipe(jsdoc(cb)); });
mit
tdelev/web-proceedings
src/main/java/org/ictact/webproceedings/util/CustomLocalDateSerializer.java
816
package org.ictact.webproceedings.util; import java.io.IOException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializerProvider; /** * Custom Jackson serializer for displaying Joda Time dates. */ public class CustomLocalDateSerializer extends JsonSerializer<Date> { private static DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); @Override public void serialize(Date date, JsonGenerator gen, SerializerProvider arg2) throws IOException, JsonProcessingException { gen.writeString(formatter.format(date)); } }
mit
truthcoin/truthcoin-cpp
src/qt/locale/truthcoin_pt_PT.ts
109246
<TS language="pt_PT" version="2.0"> <context> <name>AddressBookPage</name> <message> <source>Double-click to edit address or label</source> <translation>Clique duas vezes para editar o endereço ou o rótulo</translation> </message> <message> <source>Create a new address</source> <translation>Criar um novo endereço</translation> </message> <message> <source>&amp;New</source> <translation>&amp;Novo</translation> </message> <message> <source>Copy the currently selected address to the system clipboard</source> <translation>Copiar o endereço selecionado para a área de transferência</translation> </message> <message> <source>&amp;Copy</source> <translation>&amp;Copiar</translation> </message> <message> <source>C&amp;lose</source> <translation>F&amp;echar</translation> </message> <message> <source>&amp;Copy Address</source> <translation>&amp;Copiar Endereço</translation> </message> <message> <source>Delete the currently selected address from the list</source> <translation>Apagar o endereço selecionado da lista</translation> </message> <message> <source>Export the data in the current tab to a file</source> <translation>Exportar os dados no separador actual para um ficheiro</translation> </message> <message> <source>&amp;Export</source> <translation>&amp;Exportar</translation> </message> <message> <source>&amp;Delete</source> <translation>E&amp;liminar\</translation> </message> <message> <source>Choose the address to send coins to</source> <translation>Escolha o endereço para o qual pretende enviar moedas</translation> </message> <message> <source>Choose the address to receive coins with</source> <translation>Escolha o endereço com o qual pretende receber moedas</translation> </message> <message> <source>C&amp;hoose</source> <translation>Escol&amp;her</translation> </message> <message> <source>Sending addresses</source> <translation>Endereços de envio</translation> </message> <message> <source>Receiving addresses</source> <translation>Endereços de depósito</translation> </message> <message> <source>These are your Truthcoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation>Estes são os seus endereços Truthcoin para enviar pagamentos. Verifique sempre o valor e o endereço de envio antes de enviar moedas.</translation> </message> <message> <source>These are your Truthcoin addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source> <translation>Estes são os seus endereços Truthcoin para receber pagamentos. É recomendado que utilize um endereço novo para cada transacção.</translation> </message> <message> <source>Copy &amp;Label</source> <translation>Copiar &amp;Rótulo</translation> </message> <message> <source>&amp;Edit</source> <translation>&amp;Editar</translation> </message> <message> <source>Export Address List</source> <translation>Exportar Lista de Endereços</translation> </message> <message> <source>Comma separated file (*.csv)</source> <translation>Ficheiro separado por vírgulas (*.csv)</translation> </message> <message> <source>Exporting Failed</source> <translation>A Exportação Falhou</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <source>Label</source> <translation>Rótulo</translation> </message> <message> <source>Address</source> <translation>Endereço</translation> </message> <message> <source>(no label)</source> <translation>(sem rótulo)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <source>Passphrase Dialog</source> <translation>Diálogo de frase de segurança</translation> </message> <message> <source>Enter passphrase</source> <translation>Insira a frase de segurança</translation> </message> <message> <source>New passphrase</source> <translation>Nova frase de segurança</translation> </message> <message> <source>Repeat new passphrase</source> <translation>Repita a nova frase de segurança</translation> </message> <message> <source>Encrypt wallet</source> <translation>Encriptar carteira</translation> </message> <message> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>A sua frase de segurança é necessária para desbloquear a carteira.</translation> </message> <message> <source>Unlock wallet</source> <translation>Desbloquear carteira</translation> </message> <message> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>A sua frase de segurança é necessária para desencriptar a carteira.</translation> </message> <message> <source>Decrypt wallet</source> <translation>Desencriptar carteira</translation> </message> <message> <source>Change passphrase</source> <translation>Alterar frase de segurança</translation> </message> <message> <source>Enter the old and new passphrase to the wallet.</source> <translation>Escreva a antiga frase de segurança da carteira, seguida da nova.</translation> </message> <message> <source>Confirm wallet encryption</source> <translation>Confirmar encriptação da carteira</translation> </message> <message> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR TRUTHCOINS&lt;/b&gt;!</source> <translation>Atenção: Se encriptar a carteira e perder a sua senha irá &lt;b&gt;PERDER TODOS OS SEUS TRUTHCOINS&lt;/b&gt;!</translation> </message> <message> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Tem a certeza que deseja encriptar a carteira?</translation> </message> <message> <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: Qualquer cópia de segurança da carteira anterior deverá ser substituída com o novo ficheiro de carteira, agora encriptado. Por razões de segurança, cópias de segurança não encriptadas tornar-se-ão inúteis assim que começar a usar a nova carteira encriptada.</translation> </message> <message> <source>Warning: The Caps Lock key is on!</source> <translation>Atenção: A tecla Caps Lock está activa!</translation> </message> <message> <source>Wallet encrypted</source> <translation>Carteira encriptada</translation> </message> <message> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;ten or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Escreva a nova frase de seguraça da sua carteira. &lt;br/&gt; Por favor, use uma frase de &lt;b&gt;10 ou mais caracteres aleatórios,&lt;/b&gt; ou &lt;b&gt;oito ou mais palavras&lt;/b&gt;.</translation> </message> <message> <source>Truthcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your truthcoins from being stolen by malware infecting your computer.</source> <translation>O cliente Truthcoin irá agora ser fechado para terminar o processo de encriptação. Recorde que a encriptação da sua carteira não protegerá totalmente os seus truthcoins de serem roubados por programas maliciosos que infectem o seu computador.</translation> </message> <message> <source>Wallet encryption failed</source> <translation>A encriptação da carteira falhou</translation> </message> <message> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>A encriptação da carteira falhou devido a um erro interno. A carteira não foi encriptada.</translation> </message> <message> <source>The supplied passphrases do not match.</source> <translation>As frases de segurança fornecidas não coincidem.</translation> </message> <message> <source>Wallet unlock failed</source> <translation>O desbloqueio da carteira falhou</translation> </message> <message> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>A frase de segurança introduzida para a desencriptação da carteira estava incorreta.</translation> </message> <message> <source>Wallet decryption failed</source> <translation>A desencriptação da carteira falhou</translation> </message> <message> <source>Wallet passphrase was successfully changed.</source> <translation>A frase de segurança da carteira foi alterada com êxito.</translation> </message> </context> <context> <name>TruthcoinGUI</name> <message> <source>Sign &amp;message...</source> <translation>Assinar &amp;mensagem...</translation> </message> <message> <source>Synchronizing with network...</source> <translation>A sincronizar com a rede...</translation> </message> <message> <source>&amp;Overview</source> <translation>Visã&amp;o geral</translation> </message> <message> <source>Node</source> <translation>Nó</translation> </message> <message> <source>Show general overview of wallet</source> <translation>Mostrar visão geral da carteira</translation> </message> <message> <source>&amp;Transactions</source> <translation>&amp;Transações</translation> </message> <message> <source>Browse transaction history</source> <translation>Navegar pelo histórico de transações</translation> </message> <message> <source>E&amp;xit</source> <translation>Fec&amp;har</translation> </message> <message> <source>Quit application</source> <translation>Sair da aplicação</translation> </message> <message> <source>About &amp;Qt</source> <translation>Sobre &amp;Qt</translation> </message> <message> <source>Show information about Qt</source> <translation>Mostrar informação sobre Qt</translation> </message> <message> <source>&amp;Options...</source> <translation>&amp;Opções...</translation> </message> <message> <source>&amp;Encrypt Wallet...</source> <translation>E&amp;ncriptar Carteira...</translation> </message> <message> <source>&amp;Backup Wallet...</source> <translation>&amp;Guardar Carteira...</translation> </message> <message> <source>&amp;Change Passphrase...</source> <translation>Mudar &amp;Palavra-passe...</translation> </message> <message> <source>&amp;Sending addresses...</source> <translation>A &amp;enviar endereços...</translation> </message> <message> <source>&amp;Receiving addresses...</source> <translation>A &amp;receber endereços...</translation> </message> <message> <source>Open &amp;URI...</source> <translation>Abrir &amp;URI...</translation> </message> <message> <source>Importing blocks from disk...</source> <translation>A importar blocos do disco...</translation> </message> <message> <source>Reindexing blocks on disk...</source> <translation>A reindexar blocos no disco...</translation> </message> <message> <source>Send coins to a Truthcoin address</source> <translation>Enviar moedas para um endereço truthcoin</translation> </message> <message> <source>Modify configuration options for Truthcoin</source> <translation>Modificar opções de configuração para truthcoin</translation> </message> <message> <source>Backup wallet to another location</source> <translation>Faça uma cópia de segurança da carteira para outra localização</translation> </message> <message> <source>Change the passphrase used for wallet encryption</source> <translation>Mudar a frase de segurança utilizada na encriptação da carteira</translation> </message> <message> <source>&amp;Debug window</source> <translation>Janela de &amp;depuração</translation> </message> <message> <source>Open debugging and diagnostic console</source> <translation>Abrir consola de diagnóstico e depuração</translation> </message> <message> <source>&amp;Verify message...</source> <translation>&amp;Verificar mensagem...</translation> </message> <message> <source>Truthcoin</source> <translation>Truthcoin</translation> </message> <message> <source>Wallet</source> <translation>Carteira</translation> </message> <message> <source>&amp;Send</source> <translation>&amp;Enviar</translation> </message> <message> <source>&amp;Receive</source> <translation>&amp;Receber</translation> </message> <message> <source>&amp;Show / Hide</source> <translation>Mo&amp;strar / Ocultar</translation> </message> <message> <source>Show or hide the main Window</source> <translation>Mostrar ou esconder a janela principal</translation> </message> <message> <source>Encrypt the private keys that belong to your wallet</source> <translation>Encriptar as chaves privadas que pertencem à sua carteira</translation> </message> <message> <source>Sign messages with your Truthcoin addresses to prove you own them</source> <translation>Assine mensagens com os seus endereços Truthcoin para provar que os controla</translation> </message> <message> <source>Verify messages to ensure they were signed with specified Truthcoin addresses</source> <translation>Verifique mensagens para assegurar que foram assinadas com o endereço Truthcoin especificado</translation> </message> <message> <source>&amp;File</source> <translation>&amp;Ficheiro</translation> </message> <message> <source>&amp;Settings</source> <translation>Con&amp;figurações</translation> </message> <message> <source>&amp;Help</source> <translation>A&amp;juda</translation> </message> <message> <source>Tabs toolbar</source> <translation>Barra de separadores</translation> </message> <message> <source>Truthcoin Core</source> <translation>Truthcoin Core</translation> </message> <message> <source>Request payments (generates QR codes and truthcoin: URIs)</source> <translation>Solicitar pagamentos (gera códigos QR e URIs truthcoin:)</translation> </message> <message> <source>&amp;About Truthcoin Core</source> <translation>&amp;Sobre o Truthcoin Core</translation> </message> <message> <source>Show the list of used sending addresses and labels</source> <translation>Mostrar a lista de rótulos e endereços de envio usados</translation> </message> <message> <source>Show the list of used receiving addresses and labels</source> <translation>Mostrar a lista de rótulos e endereços de receção usados</translation> </message> <message> <source>Open a truthcoin: URI or payment request</source> <translation>Abrir URI truthcoin: ou pedido de pagamento</translation> </message> <message> <source>&amp;Command-line options</source> <translation>Opções da linha de &amp;comandos</translation> </message> <message> <source>Show the Truthcoin Core help message to get a list with possible Truthcoin command-line options</source> <translation>Mostrar a mensagem de ajuda do Truthcoin Core para obter uma lista com possíveis opções de linha de comandos</translation> </message> <message numerus="yes"> <source>%n active connection(s) to Truthcoin network</source> <translation><numerusform>%n ligação ativa à rede Truthcoin</numerusform><numerusform>%n ligações ativas à rede Truthcoin</numerusform></translation> </message> <message> <source>No block source available...</source> <translation>Nenhuma fonte de blocos disponível...</translation> </message> <message numerus="yes"> <source>%n hour(s)</source> <translation><numerusform>%n hora</numerusform><numerusform>%n horas</numerusform></translation> </message> <message numerus="yes"> <source>%n day(s)</source> <translation><numerusform>%n dia</numerusform><numerusform>%n dias</numerusform></translation> </message> <message numerus="yes"> <source>%n week(s)</source> <translation><numerusform>%n semana</numerusform><numerusform>%n semanas</numerusform></translation> </message> <message> <source>%1 and %2</source> <translation>%1 e %2</translation> </message> <message numerus="yes"> <source>%n year(s)</source> <translation><numerusform>%n ano</numerusform><numerusform>%n anos</numerusform></translation> </message> <message> <source>%1 behind</source> <translation>%1 em atraso</translation> </message> <message> <source>Last received block was generated %1 ago.</source> <translation>O último bloco recebido foi gerado %1 atrás.</translation> </message> <message> <source>Transactions after this will not yet be visible.</source> <translation>Transações posteriores não serão visíveis por enquanto.</translation> </message> <message> <source>Error</source> <translation>Erro</translation> </message> <message> <source>Warning</source> <translation>Aviso</translation> </message> <message> <source>Information</source> <translation>Informação</translation> </message> <message> <source>Up to date</source> <translation>Atualizado</translation> </message> <message> <source>Catching up...</source> <translation>Recuperando o atraso...</translation> </message> <message> <source>Sent transaction</source> <translation>Transação enviada</translation> </message> <message> <source>Incoming transaction</source> <translation>Transação recebida</translation> </message> <message> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Data: %1 Quantia: %2 Tipo: %3 Endereço: %4</translation> </message> <message> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>A carteira está &lt;b&gt;encriptada&lt;/b&gt; e atualmente &lt;b&gt;desbloqueada&lt;/b&gt;</translation> </message> <message> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>A carteira está &lt;b&gt;encriptada&lt;/b&gt; e atualmente &lt;b&gt;bloqueada&lt;/b&gt;</translation> </message> </context> <context> <name>ClientModel</name> <message> <source>Network Alert</source> <translation>Alerta da Rede</translation> </message> </context> <context> <name>CoinControlDialog</name> <message> <source>Quantity:</source> <translation>Quantidade:</translation> </message> <message> <source>Bytes:</source> <translation>Bytes:</translation> </message> <message> <source>Amount:</source> <translation>Quantia:</translation> </message> <message> <source>Priority:</source> <translation>Prioridade:</translation> </message> <message> <source>Fee:</source> <translation>Taxa:</translation> </message> <message> <source>After Fee:</source> <translation>Depois da Taxa:</translation> </message> <message> <source>Change:</source> <translation>Troco:</translation> </message> <message> <source>(un)select all</source> <translation>(des)seleccionar todos</translation> </message> <message> <source>Tree mode</source> <translation>Modo árvore</translation> </message> <message> <source>List mode</source> <translation>Modo lista</translation> </message> <message> <source>Amount</source> <translation>Quantia</translation> </message> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Confirmations</source> <translation>Confirmados</translation> </message> <message> <source>Confirmed</source> <translation>Confirmada</translation> </message> <message> <source>Priority</source> <translation>Prioridade</translation> </message> <message> <source>Copy address</source> <translation>Copiar endereço</translation> </message> <message> <source>Copy label</source> <translation>Copiar rótulo</translation> </message> <message> <source>Copy amount</source> <translation>Copiar quantia</translation> </message> <message> <source>Copy transaction ID</source> <translation>Copiar ID da transação</translation> </message> <message> <source>Lock unspent</source> <translation>Bloquear não gastos</translation> </message> <message> <source>Unlock unspent</source> <translation>Desbloquear não gastos</translation> </message> <message> <source>Copy quantity</source> <translation>Copiar quantidade</translation> </message> <message> <source>Copy fee</source> <translation>Copiar taxa</translation> </message> <message> <source>Copy after fee</source> <translation>Copiar valor após taxa</translation> </message> <message> <source>Copy bytes</source> <translation>Copiar bytes</translation> </message> <message> <source>Copy priority</source> <translation>Copiar prioridade</translation> </message> <message> <source>Copy change</source> <translation>Copiar alteração</translation> </message> <message> <source>highest</source> <translation>muito alta</translation> </message> <message> <source>higher</source> <translation>mais alta</translation> </message> <message> <source>high</source> <translation>alta</translation> </message> <message> <source>medium-high</source> <translation>média-alta</translation> </message> <message> <source>medium</source> <translation>média</translation> </message> <message> <source>low-medium</source> <translation>média-baixa</translation> </message> <message> <source>low</source> <translation>baixa</translation> </message> <message> <source>lower</source> <translation>mais baixa</translation> </message> <message> <source>lowest</source> <translation>muito alta</translation> </message> <message> <source>(%1 locked)</source> <translation>(%1 bloqueados)</translation> </message> <message> <source>none</source> <translation>nenhum</translation> </message> <message> <source>yes</source> <translation>sim</translation> </message> <message> <source>no</source> <translation>não</translation> </message> <message> <source>This label turns red, if the transaction size is greater than 1000 bytes.</source> <translation>Este rótulo fica vermelha se o tamanho da transacção exceder os 1000 bytes.</translation> </message> <message> <source>This means a fee of at least %1 per kB is required.</source> <translation>Isto significa que uma taxa de pelo menos %1 por kB é necessária.</translation> </message> <message> <source>Can vary +/- 1 byte per input.</source> <translation>Pode variar +/- 1 byte por input.</translation> </message> <message> <source>Transactions with higher priority are more likely to get included into a block.</source> <translation>Transacções com uma prioridade mais alta têm uma maior probabilidade de serem incluídas num bloco.</translation> </message> <message> <source>This label turns red, if the priority is smaller than "medium".</source> <translation>Esta legenda fica vermelha, se a prioridade for menor que "média".</translation> </message> <message> <source>This label turns red, if any recipient receives an amount smaller than %1.</source> <translation>Este rótulo fica vermelho se algum recipiente receber uma quantia menor que %1.</translation> </message> <message> <source>(no label)</source> <translation>(sem rótulo)</translation> </message> <message> <source>change from %1 (%2)</source> <translation>troco de %1 (%2)</translation> </message> <message> <source>(change)</source> <translation>(troco)</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <source>Edit Address</source> <translation>Editar Endereço</translation> </message> <message> <source>&amp;Label</source> <translation>&amp;Rótulo</translation> </message> <message> <source>The label associated with this address list entry</source> <translation>O rótulo associado com esta entrada no livro de endereços</translation> </message> <message> <source>The address associated with this address list entry. This can only be modified for sending addresses.</source> <translation>O endereço associado com o esta entrada no livro de endereços. Isto só pode ser modificado para endereços de saída.</translation> </message> <message> <source>&amp;Address</source> <translation>E&amp;ndereço</translation> </message> <message> <source>New receiving address</source> <translation>Novo endereço de entrada</translation> </message> <message> <source>New sending address</source> <translation>Novo endereço de saída</translation> </message> <message> <source>Edit receiving address</source> <translation>Editar endereço de entrada</translation> </message> <message> <source>Edit sending address</source> <translation>Editar endereço de saída</translation> </message> <message> <source>The entered address "%1" is already in the address book.</source> <translation>O endereço introduzido "%1" já se encontra no livro de endereços.</translation> </message> <message> <source>The entered address "%1" is not a valid Truthcoin address.</source> <translation>O endereço introduzido "%1" não é um endereço truthcoin válido.</translation> </message> <message> <source>Could not unlock wallet.</source> <translation>Impossível desbloquear carteira.</translation> </message> <message> <source>New key generation failed.</source> <translation>Falha ao gerar nova chave.</translation> </message> </context> <context> <name>FreespaceChecker</name> <message> <source>A new data directory will be created.</source> <translation>Uma nova pasta de dados será criada.</translation> </message> <message> <source>name</source> <translation>nome</translation> </message> <message> <source>Directory already exists. Add %1 if you intend to create a new directory here.</source> <translation>A pasta já existe. Adicione %1 se pretender criar aqui uma nova pasta.</translation> </message> <message> <source>Path already exists, and is not a directory.</source> <translation>Caminho já existe, e não é uma pasta.</translation> </message> <message> <source>Cannot create data directory here.</source> <translation>Não pode ser criada uma pasta de dados aqui.</translation> </message> </context> <context> <name>HelpMessageDialog</name> <message> <source>Truthcoin Core</source> <translation>Truthcoin Core</translation> </message> <message> <source>version</source> <translation>versão</translation> </message> <message> <source>About Truthcoin Core</source> <translation>Sobre o Truthcoin Core</translation> </message> <message> <source>Command-line options</source> <translation>Opções de linha de comandos</translation> </message> <message> <source>Usage:</source> <translation>Utilização:</translation> </message> <message> <source>command-line options</source> <translation>opções da linha de comandos</translation> </message> <message> <source>UI options</source> <translation>Opções de Interface</translation> </message> <message> <source>Set language, for example "de_DE" (default: system locale)</source> <translation>Definir linguagem, por exemplo "pt_PT" (por defeito: linguagem do sistema)</translation> </message> <message> <source>Start minimized</source> <translation>Iniciar minimizado</translation> </message> <message> <source>Show splash screen on startup (default: 1)</source> <translation>Mostrar imagem ao iniciar (por defeito: 1)</translation> </message> <message> <source>Choose data directory on startup (default: 0)</source> <translation>Escolha a pasta de dados ao iniciar (por defeito: 0)</translation> </message> </context> <context> <name>Intro</name> <message> <source>Welcome</source> <translation>Bem-vindo</translation> </message> <message> <source>Welcome to Truthcoin Core.</source> <translation>Bem-vindo ao Truthcoin Core.</translation> </message> <message> <source>As this is the first time the program is launched, you can choose where Truthcoin Core will store its data.</source> <translation>Sendo esta a primeira vez que o programa é iniciado, poderá escolher onde o Truthcoin Core irá guardar os seus dados.</translation> </message> <message> <source>Truthcoin Core will download and store a copy of the Truthcoin block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</source> <translation>O Truthcoin Core vai transferir e armazenar uma cópia do "block chain" (cadeia de blocos). Pelo menos %1GB de dados serão armazenados nesta pasta, e vão crescer ao longo do tempo. A sua carteira também irá ser armazenada nesta pasta.</translation> </message> <message> <source>Use the default data directory</source> <translation>Utilizar a pasta de dados padrão</translation> </message> <message> <source>Use a custom data directory:</source> <translation>Utilizar uma pasta de dados personalizada:</translation> </message> <message> <source>Truthcoin Core</source> <translation>Truthcoin Core</translation> </message> <message> <source>Error</source> <translation>Erro</translation> </message> </context> <context> <name>OpenURIDialog</name> <message> <source>Open URI</source> <translation>Abir URI</translation> </message> <message> <source>Open payment request from URI or file</source> <translation>Abrir pedido de pagamento de um URI ou ficheiro</translation> </message> <message> <source>URI:</source> <translation>URI:</translation> </message> <message> <source>Select payment request file</source> <translation>Seleccione o ficheiro de pedido de pagamento</translation> </message> <message> <source>Select payment request file to open</source> <translation>Seleccione o ficheiro de pedido de pagamento a abrir</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <source>Options</source> <translation>Opções</translation> </message> <message> <source>&amp;Main</source> <translation>&amp;Principal</translation> </message> <message> <source>Automatically start Truthcoin after logging in to the system.</source> <translation>Começar o Truthcoin automaticamente ao iniciar sessão no sistema.</translation> </message> <message> <source>&amp;Start Truthcoin on system login</source> <translation>&amp;Começar o Truthcoin ao iniciar o sistema</translation> </message> <message> <source>Size of &amp;database cache</source> <translation>Tamanho da cache da base de &amp;dados</translation> </message> <message> <source>MB</source> <translation>MB</translation> </message> <message> <source>Number of script &amp;verification threads</source> <translation>Número de processos de &amp;verificação de scripts</translation> </message> <message> <source>IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)</source> <translation>Endereço IP do proxy (p.ex. IPv4: 127.0.0.1 / IPv6: ::1)</translation> </message> <message> <source>Active command-line options that override above options:</source> <translation>Opções de linha de comandos ativas que se sobrepõem ás opções anteriores:</translation> </message> <message> <source>Reset all client options to default.</source> <translation>Repor todas as opções do cliente.</translation> </message> <message> <source>&amp;Reset Options</source> <translation>&amp;Repor Opções</translation> </message> <message> <source>&amp;Network</source> <translation>&amp;Rede</translation> </message> <message> <source>W&amp;allet</source> <translation>C&amp;arteira</translation> </message> <message> <source>Expert</source> <translation>Especialista</translation> </message> <message> <source>Enable coin &amp;control features</source> <translation>Ativar funcionalidades de controlo de transação.</translation> </message> <message> <source>If you disable the spending of unconfirmed change, the change from a transaction cannot be used until that transaction has at least one confirmation. This also affects how your balance is computed.</source> <translation>No caso de desativar o gasto de troco não confirmado, o troco de uma transação não poderá ser utilizado até que essa transação tenha pelo menos uma confirmação. Isto também afeta o cálculo do seu saldo.</translation> </message> <message> <source>&amp;Spend unconfirmed change</source> <translation>&amp;Gastar troco não confirmado</translation> </message> <message> <source>Automatically open the Truthcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Abrir a porta do cliente truthcoin automaticamente no seu router. Isto apenas funciona se o seu router suportar UPnP e este se encontrar ligado.</translation> </message> <message> <source>Map port using &amp;UPnP</source> <translation>Mapear porta usando &amp;UPnP</translation> </message> <message> <source>Proxy &amp;IP:</source> <translation>&amp;IP do proxy:</translation> </message> <message> <source>&amp;Port:</source> <translation>&amp;Porta:</translation> </message> <message> <source>Port of the proxy (e.g. 9050)</source> <translation>Porta do proxy (p.ex. 9050)</translation> </message> <message> <source>&amp;Window</source> <translation>&amp;Janela</translation> </message> <message> <source>Show only a tray icon after minimizing the window.</source> <translation>Apenas mostrar o ícone da bandeja de sistema após minimizar a janela.</translation> </message> <message> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Minimizar para a bandeja de sistema e não para a barra de ferramentas</translation> </message> <message> <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>Minimize ao invés de sair da aplicação quando a janela é fechada. Com esta opção selecionada, a aplicação apenas será encerrada só quando escolher Sair da aplicação no menu.</translation> </message> <message> <source>M&amp;inimize on close</source> <translation>M&amp;inimizar ao fechar</translation> </message> <message> <source>&amp;Display</source> <translation>Vis&amp;ualização</translation> </message> <message> <source>User Interface &amp;language:</source> <translation>&amp;Linguagem da interface de utilizador:</translation> </message> <message> <source>The user interface language can be set here. This setting will take effect after restarting Truthcoin.</source> <translation>A linguagem da interface do utilizador pode ser definida aqui. Esta definição entrará em efeito após reiniciar o Truthcoin.</translation> </message> <message> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Unidade para mostrar quantias:</translation> </message> <message> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Escolha a subdivisão unitária a ser mostrada por defeito na aplicação e ao enviar moedas.</translation> </message> <message> <source>Whether to show coin control features or not.</source> <translation>Escolha para mostrar funcionalidades de Coin Control ou não.</translation> </message> <message> <source>&amp;OK</source> <translation>&amp;OK</translation> </message> <message> <source>&amp;Cancel</source> <translation>&amp;Cancelar</translation> </message> <message> <source>default</source> <translation>padrão</translation> </message> <message> <source>none</source> <translation>nenhum</translation> </message> <message> <source>Confirm options reset</source> <translation>Confirme a reposição de opções</translation> </message> <message> <source>Client restart required to activate changes.</source> <translation>É necessário reiniciar o cliente para ativar as alterações.</translation> </message> <message> <source>Client will be shutdown, do you want to proceed?</source> <translation>O cliente será desligado, deseja continuar?</translation> </message> <message> <source>This change would require a client restart.</source> <translation>Esta alteração requer um reinício do cliente.</translation> </message> <message> <source>The supplied proxy address is invalid.</source> <translation>O endereço de proxy introduzido é inválido. </translation> </message> </context> <context> <name>OverviewPage</name> <message> <source>Form</source> <translation>Formulário</translation> </message> <message> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Truthcoin network after a connection is established, but this process has not completed yet.</source> <translation>A informação mostrada poderá estar desatualizada. A sua carteira sincroniza automaticamente com a rede Truthcoin depois de estabelecer ligação, mas este processo ainda não está completo.</translation> </message> <message> <source>Available:</source> <translation>Disponível:</translation> </message> <message> <source>Your current spendable balance</source> <translation>O seu saldo (gastável) disponível</translation> </message> <message> <source>Pending:</source> <translation>Pendente:</translation> </message> <message> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source> <translation>Total de transações por confirmar, que ainda não estão contabilizadas no seu saldo gastável</translation> </message> <message> <source>Immature:</source> <translation>Imaturo:</translation> </message> <message> <source>Mined balance that has not yet matured</source> <translation>O saldo minado ainda não amadureceu</translation> </message> <message> <source>Total:</source> <translation>Total:</translation> </message> <message> <source>Your current total balance</source> <translation>O seu saldo total actual</translation> </message> <message> <source>out of sync</source> <translation>fora de sincronia</translation> </message> </context> <context> <name>PaymentServer</name> <message> <source>URI handling</source> <translation>Manuseamento de URI</translation> </message> <message> <source>Invalid payment address %1</source> <translation>Endereço de pagamento inválido %1</translation> </message> <message> <source>Payment request rejected</source> <translation>Pedido de pagamento rejeitado</translation> </message> <message> <source>Requested payment amount of %1 is too small (considered dust).</source> <translation>Quantia solicitada para pagamento de %1 é muito pequena (considerada "pó").</translation> </message> <message> <source>Payment request error</source> <translation>Erro de pedido de pagamento</translation> </message> <message> <source>Cannot start truthcoin: click-to-pay handler</source> <translation>Impossível iniciar o controlador de truthcoin: click-to-pay</translation> </message> <message> <source>Payment request fetch URL is invalid: %1</source> <translation>O URL de pedido de pagamento é inválido: %1</translation> </message> <message> <source>Payment request file handling</source> <translation>Controlo de pedidos de pagamento.</translation> </message> <message> <source>Unverified payment requests to custom payment scripts are unsupported.</source> <translation>Pedidos de pagamento não-verificados para scripts de pagamento personalizados não são suportados.</translation> </message> <message> <source>Refund from %1</source> <translation>Reembolsar de %1</translation> </message> <message> <source>Error communicating with %1: %2</source> <translation>Erro ao comunicar com %1: %2</translation> </message> <message> <source>Bad response from server %1</source> <translation>Má resposta do servidor %1</translation> </message> <message> <source>Payment acknowledged</source> <translation>Pagamento confirmado</translation> </message> <message> <source>Network request error</source> <translation>Erro de pedido de rede</translation> </message> </context> <context> <name>PeerTableModel</name> </context> <context> <name>QObject</name> <message> <source>Amount</source> <translation>Quantia</translation> </message> <message> <source>%1 h</source> <translation>%1 h</translation> </message> <message> <source>%1 m</source> <translation>%1 m</translation> </message> <message> <source>N/A</source> <translation>N/D</translation> </message> </context> <context> <name>QRImageWidget</name> <message> <source>&amp;Save Image...</source> <translation>&amp;Salvar Imagem...</translation> </message> <message> <source>&amp;Copy Image</source> <translation>&amp;Copiar Imagem</translation> </message> <message> <source>Save QR Code</source> <translation>Guardar Código QR</translation> </message> <message> <source>PNG Image (*.png)</source> <translation>Imagem PNG (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <source>Client name</source> <translation>Nome do Cliente</translation> </message> <message> <source>N/A</source> <translation>N/D</translation> </message> <message> <source>Client version</source> <translation>Versão do Cliente</translation> </message> <message> <source>&amp;Information</source> <translation>&amp;Informação</translation> </message> <message> <source>Debug window</source> <translation>Janela de depuração</translation> </message> <message> <source>General</source> <translation>Geral</translation> </message> <message> <source>Using OpenSSL version</source> <translation>Usando versão OpenSSL</translation> </message> <message> <source>Startup time</source> <translation>Hora de inicialização</translation> </message> <message> <source>Network</source> <translation>Rede</translation> </message> <message> <source>Name</source> <translation>Nome</translation> </message> <message> <source>Number of connections</source> <translation>Número de ligações</translation> </message> <message> <source>Block chain</source> <translation>Cadeia de blocos</translation> </message> <message> <source>Current number of blocks</source> <translation>Número actual de blocos</translation> </message> <message> <source>Last block time</source> <translation>Data do último bloco</translation> </message> <message> <source>&amp;Open</source> <translation>&amp;Abrir</translation> </message> <message> <source>&amp;Console</source> <translation>&amp;Consola</translation> </message> <message> <source>&amp;Network Traffic</source> <translation>&amp;Tráfego de Rede</translation> </message> <message> <source>&amp;Clear</source> <translation>&amp;Limpar</translation> </message> <message> <source>Totals</source> <translation>Totais</translation> </message> <message> <source>In:</source> <translation>Entrada:</translation> </message> <message> <source>Out:</source> <translation>Saída:</translation> </message> <message> <source>Build date</source> <translation>Data de compilação</translation> </message> <message> <source>Debug log file</source> <translation>Ficheiro de registo de depuração</translation> </message> <message> <source>Open the Truthcoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Abrir o ficheiro de registo de depuração da pasta de dados actual. Isto pode demorar alguns segundos para ficheiros de registo maiores.</translation> </message> <message> <source>Clear console</source> <translation>Limpar consola</translation> </message> <message> <source>Welcome to the Truthcoin RPC console.</source> <translation>Bem-vindo à consola RPC Truthcoin.</translation> </message> <message> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Use as setas para cima e para baixo para navegar no histórico e &lt;b&gt;Ctrl-L&lt;/b&gt; para limpar o ecrã.</translation> </message> <message> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Insira &lt;b&gt;help&lt;/b&gt; para visualizar os comandos disponíveis.</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> </context> <context> <name>ReceiveCoinsDialog</name> <message> <source>&amp;Amount:</source> <translation>&amp;Quantia:</translation> </message> <message> <source>&amp;Label:</source> <translation>Rótu&amp;lo:</translation> </message> <message> <source>&amp;Message:</source> <translation>&amp;Mensagem:</translation> </message> <message> <source>Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before.</source> <translation>Reutilize um dos endereços de entrada usados anteriormente. Reutilizar endereços pode levar a riscos de segurança e de privacidade. Não use esta função a não ser que esteja a gerar novamente uma requisição de pagamento feita anteriormente.</translation> </message> <message> <source>R&amp;euse an existing receiving address (not recommended)</source> <translation>Reutilizar um endereço de receção existente (não recomendado)</translation> </message> <message> <source>An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the Truthcoin network.</source> <translation>Uma mensagem opcional para anexar ao pedido de pagamento, que será exibida quando o pedido for aberto. Nota: A mensagem não será enviada com o pagamento através da rede Truthcoin.</translation> </message> <message> <source>An optional label to associate with the new receiving address.</source> <translation>Um rótulo opcional a associar ao novo endereço de receção.</translation> </message> <message> <source>Use this form to request payments. All fields are &lt;b&gt;optional&lt;/b&gt;.</source> <translation>Utilize este formulário para solicitar pagamentos. Todos os campos são &lt;b&gt;opcionais&lt;/b&gt;.</translation> </message> <message> <source>An optional amount to request. Leave this empty or zero to not request a specific amount.</source> <translation>Uma quantia opcional a solicitar. Deixe em branco ou zero para não solicitar uma quantidade específica.</translation> </message> <message> <source>Clear all fields of the form.</source> <translation>Limpar todos os campos do formulário.</translation> </message> <message> <source>Clear</source> <translation>Limpar</translation> </message> <message> <source>Requested payments history</source> <translation>Histórico de pagamentos solicitados</translation> </message> <message> <source>&amp;Request payment</source> <translation>&amp;Requisitar Pagamento</translation> </message> <message> <source>Show the selected request (does the same as double clicking an entry)</source> <translation>Mostrar o pedido seleccionado (faz o mesmo que clicar 2 vezes numa entrada)</translation> </message> <message> <source>Show</source> <translation>Mostrar</translation> </message> <message> <source>Remove the selected entries from the list</source> <translation>Remover as entradas seleccionadas da lista</translation> </message> <message> <source>Remove</source> <translation>Remover</translation> </message> <message> <source>Copy label</source> <translation>Copiar rótulo</translation> </message> <message> <source>Copy message</source> <translation>Copiar mensagem</translation> </message> <message> <source>Copy amount</source> <translation>Copiar quantia</translation> </message> </context> <context> <name>ReceiveRequestDialog</name> <message> <source>QR Code</source> <translation>Código QR</translation> </message> <message> <source>Copy &amp;URI</source> <translation>Copiar &amp;URI</translation> </message> <message> <source>Copy &amp;Address</source> <translation>Copi&amp;ar Endereço</translation> </message> <message> <source>&amp;Save Image...</source> <translation>&amp;Salvar Imagem...</translation> </message> <message> <source>Request payment to %1</source> <translation>Requisitar Pagamento para %1</translation> </message> <message> <source>Payment information</source> <translation>Informação de Pagamento</translation> </message> <message> <source>URI</source> <translation>URI</translation> </message> <message> <source>Address</source> <translation>Endereço</translation> </message> <message> <source>Amount</source> <translation>Quantia</translation> </message> <message> <source>Label</source> <translation>Rótulo</translation> </message> <message> <source>Message</source> <translation>Mensagem</translation> </message> <message> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>URI resultante muito longo. Tente reduzir o texto do rótulo / mensagem.</translation> </message> <message> <source>Error encoding URI into QR Code.</source> <translation>Erro ao codificar URI em Código QR.</translation> </message> </context> <context> <name>RecentRequestsTableModel</name> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Label</source> <translation>Rótulo</translation> </message> <message> <source>Message</source> <translation>Mensagem</translation> </message> <message> <source>Amount</source> <translation>Quantia</translation> </message> <message> <source>(no label)</source> <translation>(sem rótulo)</translation> </message> <message> <source>(no message)</source> <translation>(sem mensagem)</translation> </message> <message> <source>(no amount)</source> <translation>(sem quantia)</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <source>Send Coins</source> <translation>Enviar Moedas</translation> </message> <message> <source>Coin Control Features</source> <translation>Funcionalidades de Coin Control:</translation> </message> <message> <source>Inputs...</source> <translation>Entradas...</translation> </message> <message> <source>automatically selected</source> <translation>selecionadas automáticamente</translation> </message> <message> <source>Insufficient funds!</source> <translation>Fundos insuficientes!</translation> </message> <message> <source>Quantity:</source> <translation>Quantidade:</translation> </message> <message> <source>Bytes:</source> <translation>Bytes:</translation> </message> <message> <source>Amount:</source> <translation>Quantia:</translation> </message> <message> <source>Priority:</source> <translation>Prioridade:</translation> </message> <message> <source>Fee:</source> <translation>Taxa:</translation> </message> <message> <source>After Fee:</source> <translation>Depois da taxa:</translation> </message> <message> <source>Change:</source> <translation>Troco:</translation> </message> <message> <source>If this is activated, but the change address is empty or invalid, change will be sent to a newly generated address.</source> <translation>Se isto estiver ativo, mas o endereço de troco estiver vazio ou for inválido, o troco irá ser enviado para um novo endereço.</translation> </message> <message> <source>Custom change address</source> <translation>Endereço de troco personalizado</translation> </message> <message> <source>Send to multiple recipients at once</source> <translation>Enviar para múltiplos destinatários de uma vez</translation> </message> <message> <source>Add &amp;Recipient</source> <translation>Adicionar &amp;Destinatário</translation> </message> <message> <source>Clear all fields of the form.</source> <translation>Limpar todos os campos do formulário.</translation> </message> <message> <source>Clear &amp;All</source> <translation>&amp;Limpar Tudo</translation> </message> <message> <source>Balance:</source> <translation>Saldo:</translation> </message> <message> <source>Confirm the send action</source> <translation>Confirme ação de envio</translation> </message> <message> <source>S&amp;end</source> <translation>&amp;Enviar</translation> </message> <message> <source>Confirm send coins</source> <translation>Confirme envio de moedas</translation> </message> <message> <source>%1 to %2</source> <translation>%1 para %2</translation> </message> <message> <source>Copy quantity</source> <translation>Copiar quantidade</translation> </message> <message> <source>Copy amount</source> <translation>Copiar quantia</translation> </message> <message> <source>Copy fee</source> <translation>Copiar taxa</translation> </message> <message> <source>Copy after fee</source> <translation>Copiar valor após taxa</translation> </message> <message> <source>Copy bytes</source> <translation>Copiar bytes</translation> </message> <message> <source>Copy priority</source> <translation>Copiar prioridade</translation> </message> <message> <source>Copy change</source> <translation>Copiar alteração</translation> </message> <message> <source>Total Amount %1 (= %2)</source> <translation>Quantia Total %1 (= %2)</translation> </message> <message> <source>or</source> <translation>ou</translation> </message> <message> <source>The recipient address is not valid, please recheck.</source> <translation>O endereço de destino não é válido, por favor verifique.</translation> </message> <message> <source>The amount to pay must be larger than 0.</source> <translation>A quantia a pagar deverá ser maior que 0.</translation> </message> <message> <source>The amount exceeds your balance.</source> <translation>A quantia excede o seu saldo.</translation> </message> <message> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>O total excede o seu saldo quando a taxa de transação de %1 for incluída.</translation> </message> <message> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Endereço duplicado encontrado, apenas poderá enviar uma vez para cada endereço por cada operação de envio.</translation> </message> <message> <source>Transaction creation failed!</source> <translation>Erro: A criação da transação falhou! </translation> </message> <message> <source>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>A transação foi rejeitada! Isto poderá acontecer se algumas das moedas na sua carteira já tiverem sido gastas, se por exemplo tiver usado uma cópia do ficheiro wallet.dat e as moedas tiverem sido gastas na cópia mas não tiverem sido marcadas como gastas aqui.</translation> </message> <message> <source>Warning: Invalid Truthcoin address</source> <translation>Aviso: Endereço Truthcoin inválido</translation> </message> <message> <source>(no label)</source> <translation>(sem rótulo)</translation> </message> <message> <source>Warning: Unknown change address</source> <translation>Aviso: Endereço de troco desconhecido</translation> </message> <message> <source>Are you sure you want to send?</source> <translation>Tem a certeza que deseja enviar?</translation> </message> <message> <source>added as transaction fee</source> <translation>adicionados como taxa de transação</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <source>A&amp;mount:</source> <translation>Qu&amp;antia:</translation> </message> <message> <source>Pay &amp;To:</source> <translation>&amp;Pagar A:</translation> </message> <message> <source>Enter a label for this address to add it to your address book</source> <translation>Escreva um rótulo para este endereço para o adicionar ao seu livro de endereços</translation> </message> <message> <source>&amp;Label:</source> <translation>Rótu&amp;lo:</translation> </message> <message> <source>Choose previously used address</source> <translation>Escolher endereço usado previamente</translation> </message> <message> <source>This is a normal payment.</source> <translation>Este é um pagamento normal.</translation> </message> <message> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <source>Paste address from clipboard</source> <translation>Cole endereço da área de transferência</translation> </message> <message> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <source>Remove this entry</source> <translation>Remover esta entrada</translation> </message> <message> <source>Message:</source> <translation>Mensagem:</translation> </message> <message> <source>This is a verified payment request.</source> <translation>Este é um pedido de pagamento verificado.</translation> </message> <message> <source>Enter a label for this address to add it to the list of used addresses</source> <translation>Introduza um rótulo para este endereço para o adicionar à sua lista de endereços usados</translation> </message> <message> <source>A message that was attached to the truthcoin: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the Truthcoin network.</source> <translation>Uma mensagem que estava anexada ao URI truthcoin: que será armazenada com a transação para sua referência. Nota: Esta mensagem não será enviada através da rede Truthcoin.</translation> </message> <message> <source>This is an unverified payment request.</source> <translation>Este é um pedido de pagamento não-verificado.</translation> </message> <message> <source>Pay To:</source> <translation>Pagar A:</translation> </message> <message> <source>Memo:</source> <translation>Memorando:</translation> </message> </context> <context> <name>ShutdownWindow</name> <message> <source>Truthcoin Core is shutting down...</source> <translation>O Truthcoin Core está a encerrar...</translation> </message> <message> <source>Do not shut down the computer until this window disappears.</source> <translation>Não desligue o computador enquanto esta janela não desaparecer.</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <source>Signatures - Sign / Verify a Message</source> <translation>Assinaturas - Assinar / Verificar uma Mensagem</translation> </message> <message> <source>&amp;Sign Message</source> <translation>A&amp;ssinar Mensagem</translation> </message> <message> <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>Pode assinar mensagens com os seus endereços para provar que são seus. Tenha atenção ao assinar mensagens ambíguas, pois ataques de phishing podem tentar enganá-lo de modo a assinar a sua identidade para os atacantes. Apenas assine declarações detalhadas com as quais concorde.</translation> </message> <message> <source>Choose previously used address</source> <translation>Escolher endereço usado previamente</translation> </message> <message> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <source>Paste address from clipboard</source> <translation>Colar endereço da área de transferência</translation> </message> <message> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <source>Enter the message you want to sign here</source> <translation>Escreva aqui a mensagem que deseja assinar</translation> </message> <message> <source>Signature</source> <translation>Assinatura</translation> </message> <message> <source>Copy the current signature to the system clipboard</source> <translation>Copiar a assinatura actual para a área de transferência</translation> </message> <message> <source>Sign the message to prove you own this Truthcoin address</source> <translation>Assine uma mensagem para provar que é dono deste endereço Truthcoin</translation> </message> <message> <source>Sign &amp;Message</source> <translation>Assinar &amp;Mensagem</translation> </message> <message> <source>Reset all sign message fields</source> <translation>Repor todos os campos de assinatura de mensagem</translation> </message> <message> <source>Clear &amp;All</source> <translation>Limpar &amp;Tudo</translation> </message> <message> <source>&amp;Verify Message</source> <translation>&amp;Verificar Mensagem</translation> </message> <message> <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>Introduza o endereço de assinatura, mensagem (assegure-se que copia quebras de linha, espaços, tabulações, etc. exactamente) e assinatura abaixo para verificar a mensagem. Tenha atenção para não ler mais na assinatura do que o que estiver na mensagem assinada, para evitar ser enganado por um atacante que se encontre entre si e quem assinou a mensagem.</translation> </message> <message> <source>Verify the message to ensure it was signed with the specified Truthcoin address</source> <translation>Verifique a mensagem para assegurar que foi assinada com o endereço Truthcoin especificado</translation> </message> <message> <source>Verify &amp;Message</source> <translation>Verificar &amp;Mensagem</translation> </message> <message> <source>Reset all verify message fields</source> <translation>Repor todos os campos de verificação de mensagem</translation> </message> <message> <source>Click "Sign Message" to generate signature</source> <translation>Clique "Assinar mensagem" para gerar a assinatura</translation> </message> <message> <source>The entered address is invalid.</source> <translation>O endereço introduzido é inválido.</translation> </message> <message> <source>Please check the address and try again.</source> <translation>Por favor verifique o endereço e tente de novo.</translation> </message> <message> <source>The entered address does not refer to a key.</source> <translation>O endereço introduzido não refere a nenhuma chave.</translation> </message> <message> <source>Wallet unlock was cancelled.</source> <translation>O desbloqueio da carteira foi cancelado.</translation> </message> <message> <source>Private key for the entered address is not available.</source> <translation>A chave privada para o endereço introduzido não está disponível.</translation> </message> <message> <source>Message signing failed.</source> <translation>Assinatura de mensagem falhou.</translation> </message> <message> <source>Message signed.</source> <translation>Mensagem assinada.</translation> </message> <message> <source>The signature could not be decoded.</source> <translation>A assinatura não pôde ser descodificada.</translation> </message> <message> <source>Please check the signature and try again.</source> <translation>Por favor verifique a assinatura e tente de novo.</translation> </message> <message> <source>The signature did not match the message digest.</source> <translation>A assinatura não condiz com o conteúdo da mensagem.</translation> </message> <message> <source>Message verification failed.</source> <translation>Verificação da mensagem falhou.</translation> </message> <message> <source>Message verified.</source> <translation>Mensagem verificada.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <source>Truthcoin Core</source> <translation>Truthcoin Core</translation> </message> <message> <source>The Truthcoin Core developers</source> <translation>Os programadores do Truthcoin Core</translation> </message> <message> <source>[testnet]</source> <translation>[rede de testes]</translation> </message> </context> <context> <name>TrafficGraphWidget</name> <message> <source>KB/s</source> <translation>KB/s</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <source>Open until %1</source> <translation>Aberto até %1</translation> </message> <message> <source>conflicted</source> <translation>em conflito:</translation> </message> <message> <source>%1/offline</source> <translation>%1/desligado</translation> </message> <message> <source>%1/unconfirmed</source> <translation>%1/não confirmada</translation> </message> <message> <source>%1 confirmations</source> <translation>%1 confirmações</translation> </message> <message> <source>Status</source> <translation>Estado</translation> </message> <message numerus="yes"> <source>, broadcast through %n node(s)</source> <translation><numerusform>, transmitida através de %n nó</numerusform><numerusform>, transmitida através de %n nós</numerusform></translation> </message> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Source</source> <translation>Origem</translation> </message> <message> <source>Generated</source> <translation>Gerado</translation> </message> <message> <source>From</source> <translation>De</translation> </message> <message> <source>To</source> <translation>Para</translation> </message> <message> <source>own address</source> <translation>endereço próprio</translation> </message> <message> <source>label</source> <translation>rótulo</translation> </message> <message> <source>Credit</source> <translation>Crédito</translation> </message> <message numerus="yes"> <source>matures in %n more block(s)</source> <translation><numerusform>matura em %n bloco</numerusform><numerusform>matura em %n blocos</numerusform></translation> </message> <message> <source>not accepted</source> <translation>não aceite</translation> </message> <message> <source>Debit</source> <translation>Débito</translation> </message> <message> <source>Transaction fee</source> <translation>Taxa de transação</translation> </message> <message> <source>Net amount</source> <translation>Valor líquido</translation> </message> <message> <source>Message</source> <translation>Mensagem</translation> </message> <message> <source>Comment</source> <translation>Comentário</translation> </message> <message> <source>Transaction ID</source> <translation>ID da Transação</translation> </message> <message> <source>Merchant</source> <translation>Comerciante</translation> </message> <message> <source>Generated coins must mature %1 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>Moedas geradas deverão maturar por %1 blocos antes de poderem ser gastas. Quando gerou este bloco, ele foi transmitido para a rede para ser incluído na cadeia de blocos. Se a inclusão na cadeia de blocos falhar, o seu estado irá ser alterado para "não aceite" e as moedas não poderão ser gastas. Isto poderá acontecer ocasionalmente se outro nó da rede gerar um bloco a poucos segundos de diferença do seu.</translation> </message> <message> <source>Debug information</source> <translation>Informação de depuração</translation> </message> <message> <source>Transaction</source> <translation>Transação</translation> </message> <message> <source>Inputs</source> <translation>Entradas</translation> </message> <message> <source>Amount</source> <translation>Quantia</translation> </message> <message> <source>true</source> <translation>verdadeiro</translation> </message> <message> <source>false</source> <translation>falso</translation> </message> <message> <source>, has not been successfully broadcast yet</source> <translation>, ainda não foi transmitida com sucesso</translation> </message> <message numerus="yes"> <source>Open for %n more block(s)</source> <translation><numerusform>Aberta por mais %n bloco</numerusform><numerusform>Aberta por mais %n blocos</numerusform></translation> </message> <message> <source>unknown</source> <translation>desconhecido</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <source>Transaction details</source> <translation>Detalhes da transação</translation> </message> <message> <source>This pane shows a detailed description of the transaction</source> <translation>Esta janela mostra uma descrição detalhada da transação</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Type</source> <translation>Tipo</translation> </message> <message> <source>Address</source> <translation>Endereço</translation> </message> <message> <source>Immature (%1 confirmations, will be available after %2)</source> <translation>Imaturo (%1 confirmações, estará disponível após %2)</translation> </message> <message numerus="yes"> <source>Open for %n more block(s)</source> <translation><numerusform>Aberta por mais %n bloco</numerusform><numerusform>Aberta por mais %n blocos</numerusform></translation> </message> <message> <source>Open until %1</source> <translation>Aberto até %1</translation> </message> <message> <source>Confirmed (%1 confirmations)</source> <translation>Confirmada (%1 confirmações)</translation> </message> <message> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Este bloco não foi recebido por outros nós e provavelmente não será aceite pela rede!</translation> </message> <message> <source>Generated but not accepted</source> <translation>Gerado mas não aceite</translation> </message> <message> <source>Offline</source> <translation>Offline</translation> </message> <message> <source>Unconfirmed</source> <translation>Não confirmado:</translation> </message> <message> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation>A confirmar (%1 de %2 confirmações recomendadas)</translation> </message> <message> <source>Conflicted</source> <translation>Em Conflito:</translation> </message> <message> <source>Received with</source> <translation>Recebido com</translation> </message> <message> <source>Received from</source> <translation>Recebido de</translation> </message> <message> <source>Sent to</source> <translation>Enviado para</translation> </message> <message> <source>Payment to yourself</source> <translation>Pagamento a si mesmo</translation> </message> <message> <source>Mined</source> <translation>Minadas</translation> </message> <message> <source>(n/a)</source> <translation>(n/d)</translation> </message> <message> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Estado da transação. Passar o cursor por cima deste campo para mostrar o número de confirmações.</translation> </message> <message> <source>Date and time that the transaction was received.</source> <translation>Data e hora em que a transação foi recebida.</translation> </message> <message> <source>Type of transaction.</source> <translation>Tipo de transação.</translation> </message> <message> <source>Destination address of transaction.</source> <translation>Endereço de destino da transação.</translation> </message> <message> <source>Amount removed from or added to balance.</source> <translation>Quantia retirada ou adicionada ao saldo.</translation> </message> </context> <context> <name>TransactionView</name> <message> <source>All</source> <translation>Todas</translation> </message> <message> <source>Today</source> <translation>Hoje</translation> </message> <message> <source>This week</source> <translation>Esta semana</translation> </message> <message> <source>This month</source> <translation>Este mês</translation> </message> <message> <source>Last month</source> <translation>Mês passado</translation> </message> <message> <source>This year</source> <translation>Este ano</translation> </message> <message> <source>Range...</source> <translation>Período...</translation> </message> <message> <source>Received with</source> <translation>Recebida com</translation> </message> <message> <source>Sent to</source> <translation>Enviada para</translation> </message> <message> <source>To yourself</source> <translation>Para si mesmo</translation> </message> <message> <source>Mined</source> <translation>Minadas</translation> </message> <message> <source>Other</source> <translation>Outras</translation> </message> <message> <source>Enter address or label to search</source> <translation>Escreva endereço ou rótulo a procurar</translation> </message> <message> <source>Min amount</source> <translation>Quantia mínima</translation> </message> <message> <source>Copy address</source> <translation>Copiar endereço</translation> </message> <message> <source>Copy label</source> <translation>Copiar rótulo</translation> </message> <message> <source>Copy amount</source> <translation>Copiar quantia</translation> </message> <message> <source>Copy transaction ID</source> <translation>Copiar ID da Transação</translation> </message> <message> <source>Edit label</source> <translation>Editar rótulo</translation> </message> <message> <source>Show transaction details</source> <translation>Mostrar detalhes da transação</translation> </message> <message> <source>Export Transaction History</source> <translation>Exportar Histórico de Transacções</translation> </message> <message> <source>Exporting Failed</source> <translation>A Exportação Falhou</translation> </message> <message> <source>There was an error trying to save the transaction history to %1.</source> <translation>Ocorreu um erro ao tentar guardar o histórico de transações em %1.</translation> </message> <message> <source>Exporting Successful</source> <translation>Exportação Bem Sucedida</translation> </message> <message> <source>The transaction history was successfully saved to %1.</source> <translation>O histórico de transacções foi com guardado com sucesso em %1.</translation> </message> <message> <source>Comma separated file (*.csv)</source> <translation>Ficheiro separado por vírgulas (*.csv)</translation> </message> <message> <source>Confirmed</source> <translation>Confirmada</translation> </message> <message> <source>Date</source> <translation>Data</translation> </message> <message> <source>Type</source> <translation>Tipo</translation> </message> <message> <source>Label</source> <translation>Rótulo</translation> </message> <message> <source>Address</source> <translation>Endereço</translation> </message> <message> <source>ID</source> <translation>ID</translation> </message> <message> <source>Range:</source> <translation>Período:</translation> </message> <message> <source>to</source> <translation>até</translation> </message> </context> <context> <name>UnitDisplayStatusBarControl</name> </context> <context> <name>WalletFrame</name> <message> <source>No wallet has been loaded.</source> <translation>Nenhuma carteira foi carregada.</translation> </message> </context> <context> <name>WalletModel</name> <message> <source>Send Coins</source> <translation>Enviar Moedas</translation> </message> </context> <context> <name>WalletView</name> <message> <source>&amp;Export</source> <translation>&amp;Exportar</translation> </message> <message> <source>Export the data in the current tab to a file</source> <translation>Exportar os dados no separador actual para um ficheiro</translation> </message> <message> <source>Backup Wallet</source> <translation>Cópia de Segurança da Carteira</translation> </message> <message> <source>Wallet Data (*.dat)</source> <translation>Dados da Carteira (*.dat)</translation> </message> <message> <source>Backup Failed</source> <translation>Cópia de Segurança Falhou</translation> </message> <message> <source>There was an error trying to save the wallet data to %1.</source> <translation>Ocorreu um erro ao tentar guardar os dados da carteira em %1.</translation> </message> <message> <source>The wallet data was successfully saved to %1.</source> <translation>Os dados da carteira foram guardados com sucesso em %1.</translation> </message> <message> <source>Backup Successful</source> <translation>Cópia de Segurança Bem Sucedida</translation> </message> </context> <context> <name>truthcoin-core</name> <message> <source>Options:</source> <translation>Opções:</translation> </message> <message> <source>Specify data directory</source> <translation>Especificar pasta de dados</translation> </message> <message> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Ligar a um nó para recuperar endereços de pares, e desligar</translation> </message> <message> <source>Specify your own public address</source> <translation>Especifique o seu endereço público</translation> </message> <message> <source>Accept command line and JSON-RPC commands</source> <translation>Aceitar comandos de linha de comandos e JSON-RPC</translation> </message> <message> <source>Run in the background as a daemon and accept commands</source> <translation>Correr o processo em segundo plano e aceitar comandos</translation> </message> <message> <source>Use the test network</source> <translation>Utilizar a rede de testes</translation> </message> <message> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Aceitar ligações externas (padrão: 1 sem -proxy ou -connect)</translation> </message> <message> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=truthcoinrpc 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 "Truthcoin Alert" admin@foo.com </source> <translation>%s, deverá definir uma rpcpassword no ficheiro de configuração: %s É recomendado que use a seguinte palavra-passe aleatória: rpcuser=truthcoinrpc rpcpassword=%s (não é necessário lembrar esta palavra-passe) O nome de utilizador e palavra-passe NÃO PODEM ser iguais. Se o ficheiro não existir, crie-o com permissões de leitura apenas para o dono. Também é recomendado definir um alertnotify para que seja alertado sobre problemas; por exemplo: alertnotify=echo %%s | mail -s "Alerta Truthcoin" admin@foo.com</translation> </message> <message> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation>Associar a endereço específico e escutar sempre nele. Use a notação [anfitrião]:porta para IPv6</translation> </message> <message> <source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly.</source> <translation>Entre no modo de teste de regressão, que usa uma cadeia especial cujos blocos podem ser resolvidos instantaneamente.</translation> </message> <message> <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>Erro: A transação foi rejeitada! Isso poderá acontecer se algumas das moedas na sua carteira já tiverem sido gastas, se por exemplo tiver usado uma cópia do ficheiro wallet.dat e as moedas tiverem sido gastas na cópia mas não tiverem sido marcadas como gastas aqui.</translation> </message> <message> <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>Erro: Esta transação requer uma taxa de transação mínima de %s devido á sua quantia, complexidade, ou uso de fundos recebidos recentemente!</translation> </message> <message> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Executar comando quando uma das transações na carteira mudar (no comando, %s é substituído pelo ID da Transação)</translation> </message> <message> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation>Esta é uma versão de testes pré-lançamento - use à sua responsabilidade - não usar para minar ou aplicações comerciais</translation> </message> <message> <source>Unable to bind to %s on this computer. Truthcoin Core is probably already running.</source> <translation>Incapaz de vincular à porta %s neste computador. O Truthcoin Core provavelmente já está a correr.</translation> </message> <message> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Atenção: -paytxfee está definida com um valor muito alto! Esta é a taxa que irá pagar se enviar uma transação.</translation> </message> <message> <source>Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.</source> <translation>Aviso: A rede não parece estar completamente de acordo! Parece que alguns mineiros estão com dificuldades técnicas.</translation> </message> <message> <source>Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.</source> <translation>Atenção: Parecemos não estar de acordo com os nossos pares! Poderá ter que atualizar o seu cliente, ou outros nós poderão ter que atualizar os seus clientes.</translation> </message> <message> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Atenção: erro ao ler wallet.dat! Todas as chaves foram lidas correctamente, mas dados de transação ou do livro de endereços podem estar em falta ou incorrectos.</translation> </message> <message> <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>Atenção: wallet.dat corrompido, dados recuperados! wallet.dat original salvo como wallet.{timestamp}.bak em %s; se o seu saldo ou transações estiverem incorrectos deverá recuperar uma cópia de segurança.</translation> </message> <message> <source>&lt;category&gt; can be:</source> <translation>&lt;categoria&gt; pode ser:</translation> </message> <message> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Tentar recuperar chaves privadas de um wallet.dat corrupto</translation> </message> <message> <source>Block creation options:</source> <translation>Opções de criação de bloco:</translation> </message> <message> <source>Connect only to the specified node(s)</source> <translation>Apenas ligar ao(s) nó(s) especificado(s)</translation> </message> <message> <source>Corrupted block database detected</source> <translation>Cadeia de blocos corrompida detectada</translation> </message> <message> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Descobrir endereço IP próprio (padrão: 1 ao escutar sem -externalip)</translation> </message> <message> <source>Do not load the wallet and disable wallet RPC calls</source> <translation>Não carregar a carteira e desativar chamadas RPC de carteira.</translation> </message> <message> <source>Do you want to rebuild the block database now?</source> <translation>Deseja reconstruir agora a base de dados de blocos.</translation> </message> <message> <source>Error initializing block database</source> <translation>Erro ao inicializar a cadeia de blocos</translation> </message> <message> <source>Error initializing wallet database environment %s!</source> <translation>Erro ao inicializar o ambiente %s da base de dados da carteira</translation> </message> <message> <source>Error loading block database</source> <translation>Erro ao carregar base de dados de blocos</translation> </message> <message> <source>Error opening block database</source> <translation>Erro ao abrir a base de dados de blocos</translation> </message> <message> <source>Error: Disk space is low!</source> <translation>Erro: Pouco espaço em disco!</translation> </message> <message> <source>Error: Wallet locked, unable to create transaction!</source> <translation>Erro: Carteira bloqueada, incapaz de criar transação! </translation> </message> <message> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Falhou a escutar em qualquer porta. Use -listen=0 se quiser isto.</translation> </message> <message> <source>If &lt;category&gt; is not supplied, output all debugging information.</source> <translation>Se uma &lt;categoria&gt; não é fornecida, imprimir toda a informação de depuração.</translation> </message> <message> <source>Incorrect or no genesis block found. Wrong datadir for network?</source> <translation>Bloco génese incorreto ou nenhum bloco génese encontrado. Pasta de dados errada para a rede?</translation> </message> <message> <source>Invalid -onion address: '%s'</source> <translation>Endereço -onion inválido: '%s'</translation> </message> <message> <source>Not enough file descriptors available.</source> <translation>Os descritores de ficheiros disponíveis são insuficientes.</translation> </message> <message> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>Reconstruir a cadeia de blocos a partir dos ficheiros blk000??.dat atuais</translation> </message> <message> <source>Set database cache size in megabytes (%d to %d, default: %d)</source> <translation>Definir o tamanho da cache de base de dados em megabytes (%d a %d, padrão: %d)</translation> </message> <message> <source>Set maximum block size in bytes (default: %d)</source> <translation>Definir tamanho máximo por bloco em bytes (por defeito: %d)</translation> </message> <message> <source>Specify wallet file (within data directory)</source> <translation>Especifique ficheiro de carteira (dentro da pasta de dados)</translation> </message> <message> <source>This is intended for regression testing tools and app development.</source> <translation>Isto têm como fim a realização de testes de regressão para pools e desenvolvimento de aplicações.</translation> </message> <message> <source>Verifying blocks...</source> <translation>A verificar blocos...</translation> </message> <message> <source>Verifying wallet...</source> <translation>A verificar carteira...</translation> </message> <message> <source>Wallet %s resides outside data directory %s</source> <translation>A carteira %s reside fora da pasta de dados %s</translation> </message> <message> <source>Wallet options:</source> <translation>Opções da carteira:</translation> </message> <message> <source>You need to rebuild the database using -reindex to change -txindex</source> <translation>É necessário reconstruir as bases de dados usando -reindex para mudar o -txindex</translation> </message> <message> <source>Imports blocks from external blk000??.dat file</source> <translation>Importar blocos de um ficheiro blk000??.dat externo</translation> </message> <message> <source>Cannot obtain a lock on data directory %s. Truthcoin Core is probably already running.</source> <translation>Impossível trancar a pasta de dados %s. Provavelmente o Truthcoin Core já está a ser executado.</translation> </message> <message> <source>Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)</source> <translation>Executar comando quando um alerta relevante for recebido ou em caso de uma divisão longa da cadeia de blocos (no comando, %s é substituído pela mensagem)</translation> </message> <message> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: %d)</source> <translation>Definir tamanho máximo de transações com alta-prioridade/baixa-taxa em bytes (por defeito: %d)</translation> </message> <message> <source>Information</source> <translation>Informação</translation> </message> <message> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: '%s'</source> <translation>Quantia inválida para -minrelaytxfee=&lt;quantidade&gt;: '%s'</translation> </message> <message> <source>Invalid amount for -mintxfee=&lt;amount&gt;: '%s'</source> <translation>Quantia inválida para -mintxfee=&lt;quantidade&gt;: '%s'</translation> </message> <message> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Enviar informação de rastreio/depuração para a consola e não para o ficheiro debug.log</translation> </message> <message> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Encolher ficheiro debug.log ao iniciar o cliente (por defeito: 1 sem -debug definido)</translation> </message> <message> <source>Signing transaction failed</source> <translation>Falhou assinatura da transação</translation> </message> <message> <source>Transaction amount too small</source> <translation>Quantia da transação é muito baixa</translation> </message> <message> <source>Transaction amounts must be positive</source> <translation>Quantia da transação deverá ser positiva</translation> </message> <message> <source>Transaction too large</source> <translation>Transação grande demais</translation> </message> <message> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Usar UPnP para mapear a porta de escuta (padrão: 1 ao escutar)</translation> </message> <message> <source>Username for JSON-RPC connections</source> <translation>Nome de utilizador para ligações JSON-RPC</translation> </message> <message> <source>Warning</source> <translation>Aviso</translation> </message> <message> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Atenção: Esta versão está obsoleta, é necessário actualizar!</translation> </message> <message> <source>Zapping all transactions from wallet...</source> <translation>A limpar todas as transações da carteira...</translation> </message> <message> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat corrompido, recuperação falhou</translation> </message> <message> <source>Password for JSON-RPC connections</source> <translation>Palavra-passe para ligações JSON-RPC</translation> </message> <message> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Executar comando quando o melhor bloco mudar (no comando, %s é substituído pela hash do bloco)</translation> </message> <message> <source>Upgrade wallet to latest format</source> <translation>Atualize a carteira para o formato mais recente</translation> </message> <message> <source>Rescan the block chain for missing wallet transactions</source> <translation>Procurar transações em falta na cadeia de blocos</translation> </message> <message> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Usar OpenSSL (https) para ligações JSON-RPC</translation> </message> <message> <source>This help message</source> <translation>Esta mensagem de ajuda</translation> </message> <message> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Permitir procuras DNS para -addnode, -seednode e -connect</translation> </message> <message> <source>Loading addresses...</source> <translation>A carregar endereços...</translation> </message> <message> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Erro ao carregar wallet.dat: Carteira danificada</translation> </message> <message> <source>Error loading wallet.dat</source> <translation>Erro ao carregar wallet.dat</translation> </message> <message> <source>Invalid -proxy address: '%s'</source> <translation>Endereço -proxy inválido: '%s'</translation> </message> <message> <source>Unknown network specified in -onlynet: '%s'</source> <translation>Rede desconhecida especificada em -onlynet: '%s'</translation> </message> <message> <source>Cannot resolve -bind address: '%s'</source> <translation>Não foi possível resolver o endereço -bind: '%s'</translation> </message> <message> <source>Cannot resolve -externalip address: '%s'</source> <translation>Não foi possível resolver o endereço -externalip: '%s'</translation> </message> <message> <source>Invalid amount for -paytxfee=&lt;amount&gt;: '%s'</source> <translation>Quantia inválida para -paytxfee=&lt;amount&gt;: '%s'</translation> </message> <message> <source>Invalid amount</source> <translation>Quantia inválida</translation> </message> <message> <source>Insufficient funds</source> <translation>Fundos insuficientes</translation> </message> <message> <source>Loading block index...</source> <translation>A carregar índice de blocos...</translation> </message> <message> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Adicionar um nó para se ligar e tentar manter a ligação aberta</translation> </message> <message> <source>Loading wallet...</source> <translation>A carregar carteira...</translation> </message> <message> <source>Cannot downgrade wallet</source> <translation>Impossível mudar a carteira para uma versão anterior</translation> </message> <message> <source>Cannot write default address</source> <translation>Impossível escrever endereço por defeito</translation> </message> <message> <source>Rescanning...</source> <translation>Reexaminando...</translation> </message> <message> <source>Done loading</source> <translation>Carregamento completo</translation> </message> <message> <source>To use the %s option</source> <translation>Para usar a opção %s</translation> </message> <message> <source>Error</source> <translation>Erro</translation> </message> </context> </TS>
mit
emilti/Telerik-Academy-My-Courses
Web Services and Cloud/02.ASP.NET Web API/StudentsSystem/Data/StudentsSystem.Data/StudentsSystemData.cs
1830
namespace StudentSystem.Data { using System; using System.Collections.Generic; using StudentsSystem.Data; using StudentsSystem.Data.Repositories; using Models; public class StudentsSystemData : IStudentsSystemData { private IStudentSystemDbContext context; private IDictionary<Type, object> repositories; public StudentsSystemData() : this(new StudentsSystemDbContext()) { } public StudentsSystemData(IStudentSystemDbContext context) { this.context = context; this.repositories = new Dictionary<Type, object>(); } public IRepository<Course> Courses { get { return this.GetRepository<Course>(); } } public IRepository<Homework> Homeworks { get { return this.GetRepository<Homework>(); } } public IRepository<Student> Students { get { return this.GetRepository<Student>(); } } public void SaveChanges() { this.context.SaveChanges(); } private IRepository<T> GetRepository<T>() where T : class { var typeOfModel = typeof(T); if (!this.repositories.ContainsKey(typeOfModel)) { var type = typeof(Repository<T>); if (typeOfModel.IsAssignableFrom(typeof(Student))) { type = typeof(Repository<T>); } this.repositories.Add(typeOfModel, Activator.CreateInstance(type, this.context)); } return (IRepository<T>)this.repositories[typeOfModel]; } } }
mit
HAKASHUN/gulp-translate-html
test/main.js
2576
/*global describe, it*/ "use strict"; var fs = require("fs"), es = require("event-stream"), should = require("should"); require("mocha"); delete require.cache[require.resolve("../")]; var gutil = require("gulp-util"), translateHtml = require("../"); describe("gulp-translate-html", function () { var expectedFile = new gutil.File({ path: "test/expected/index.html", cwd: "test/", base: "test/expected", contents: fs.readFileSync("test/expected/index.html") }); it("should produce expected file via buffer", function (done) { // target files var srcFile = new gutil.File({ path: "test/fixtures/index.html", cwd: "test/", base: "test/fixtures", contents: fs.readFileSync("test/fixtures/index.html") }); var messages = { "game": { "title": "poti", "description": "hello world!" } }; var stream = translateHtml({ messages: messages }); stream.on("error", function(err) { should.exist(err); done(err); }); stream.on("data", function (newFile) { should.exist(newFile); should.exist(newFile.contents); String(newFile.contents).should.equal(String(expectedFile.contents)); done(); }); stream.write(srcFile); stream.end(); }); it("should produce expected file via buffer with custom delimiters", function (done) { // target files var srcFile = new gutil.File({ path: "test/fixtures/custom.html", cwd: "test/", base: "test/fixtures", contents: fs.readFileSync("test/fixtures/custom.html") }); var messages = { "game": { "title": "poti", "description": "hello world!" } }; var stream = translateHtml({ messages: messages, templateSettings: { interpolate: /{{([\s\S]+?)}}/g } }); stream.on("error", function(err) { should.exist(err); done(err); }); stream.on("data", function (newFile) { should.exist(newFile); should.exist(newFile.contents); String(newFile.contents).should.equal(String(expectedFile.contents)); done(); }); stream.write(srcFile); stream.end(); }); it("should error on stream", function (done) { var srcFile = new gutil.File({ path: "test/fixtures/index.html", cwd: "test/", base: "test/fixtures", contents: fs.createReadStream("test/fixtures/index.html") }); var stream = translateHtml("World"); stream.on("error", function(err) { should.exist(err); done(); }); stream.on("data", function (newFile) { newFile.contents.pipe(es.wait(function(err, data) { done(err); })); }); stream.write(srcFile); stream.end(); }); });
mit
gesinn-it/IDProvider
tests/phpunit/Unit/Generators/UuidGeneratorTest.php
620
<?php /** * MediaWiki IDProvider Extension * * Provides (unique) IDs using different ID algorithms. * * @link https://github.com/gesinn-it/IDProvider * * @author gesinn.it GmbH & Co. KG * @license MIT */ namespace Tests\Unit; use MediaWiki\Extension\IdProvider\Generators\UuidGenerator; use PHPUnit\Framework\TestCase; /** * @group IDProvider * @covers \MediaWiki\Extension\IdProvider\Generators\UuidGenerator */ class UuidGeneratorTest extends TestCase { public function testGeneratesUuidsOfTheRightLength() { $id = ( new UuidGenerator )->generate(); $this->assertEquals( 36, strlen( $id ) ); } }
mit
thenatek/KnightsRound
KnightsRound/src/PotFig.java
1078
import java.awt.*; import javax.imageio.*; import java.io.*; import javax.swing.JPanel; /** * * @author Nate */ public class PotFig extends PFigure { private int xVel = 20; private int yVel = 20; private Image img; public PotFig(JPanel p) { super(10, 10, 80, 80, 1,p); try { File file = new File("smallpot.png"); img = ImageIO.read(file); } catch ( Exception e ) { System.out.println("Crashing: " + e); // Whatever??? } } @Override public void move() { if ( xVel < 0 && xPos <= 0 || xVel > 0 && xPos + width >= panel.getSize().width ) xVel = - xVel; if ( yVel < 0 && yPos <= 0 || yVel > 0 && yPos + height >= panel.getSize().height ) yVel = - yVel; xPos = xPos + xVel; yPos = yPos + yVel; } @Override public void draw() { if( img != null ) { Graphics g = panel.getGraphics(); g.drawImage( img, xPos, yPos, width-40, height-40, null ); } } }
mit
edinsonbravo/Gestion
vendor/autoload.php
178
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInit57fb8c01b564c3afbf75419b7ab48710::getLoader();
mit
Shopify/vcr
spec/spec_helper.rb
1779
require "codeclimate-test-reporter" CodeClimate::TestReporter.start require "pry" require "rspec" require "vcr" require "date" require "forwardable" require "uri" require "vcr/util/internet_connection" require_relative "support/fixnum_extension" require_relative "support/limited_uri" require_relative "support/ruby_interpreter" require_relative "support/shared_example_groups/hook_into_http_library" require_relative "support/shared_example_groups/request_hooks" require_relative "support/vcr_stub_helpers" require_relative "support/vcr_localhost_server" require_relative "support/sinatra_app" require_relative "monkey_patches" require_relative "support/http_library_adapters" module VCR SPEC_ROOT = File.dirname(File.expand_path('.', __FILE__)) def reset!(hook = :fakeweb) instance_variables.each do |ivar| instance_variable_set(ivar, nil) end configuration.hook_into hook if hook end end RSpec.configure do |config| tmp_dir = File.expand_path('../../tmp/cassette_library_dir', __FILE__) config.before(:each) do |example| unless example.metadata[:skip_vcr_reset] VCR.reset! VCR.configuration.cassette_library_dir = tmp_dir VCR.configuration.uri_parser = LimitedURI VCR.configuration.debug_logger = STDOUT if ENV['DEBUG'] end end config.after(:each) do FileUtils.rm_rf tmp_dir end unless ENV['DEBUG'] config.before(:all, :disable_warnings => true) do @orig_std_err = $stderr $stderr = StringIO.new end config.after(:all, :disable_warnings => true) do $stderr = @orig_std_err end end config.filter_run :focus => true config.run_all_when_everything_filtered = true config.alias_it_should_behave_like_to :it_performs, 'it performs' end VCR::SinatraApp.boot
mit
pboling/csv_pirate
spec/csv_pirate/the_capn_spec.rb
10932
require 'spec_helper' #here in this same config/ dir describe CsvPirate::TheCapn do describe "#initialize" do before(:each) do @csv_pirate = CsvPirate::TheCapn.new({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall"], :booty => [:name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => false, :gibbet => "", :aft => ".csv", :swab => :none, :mop => :clean, :waggoner => 'data' }) end it "should return an instance of CsvPirate" do @csv_pirate.class.should == CsvPirate::TheCapn end it "should not export anything" do @csv_pirate.maroon.should == "" end end describe "#create" do before(:each) do @csv_pirate = CsvPirate::TheCapn.create({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall"], :booty => [:name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => false, :gibbet => "", :aft => ".csv", :swab => :none, :mop => :clean, :waggoner => 'data' }) end it "should return an instance of CsvPirate" do @csv_pirate.class.should == CsvPirate::TheCapn end it "should store export in maroon instance variable" do @csv_pirate.maroon[0..100].should == "Name,Distance,Spectral type,Name hash,Name next,Name upcase,Star vowels\nProxima Centauri,4.2 LY,M5.5V" end end describe "#create with function-arg booty" do before(:each) do @csv_pirate = CsvPirate::TheCapn.create({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall"], :booty => [[:sub_name, 'a', 'Z'], :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => false, :gibbet => "", :aft => ".csv", :swab => :none, :mop => :clean, :waggoner => 'data' }) end it "should call instance functions with arguments an instance of CsvPirate" do @csv_pirate.maroon.should =~ /ProximZ CentZuri/ end end describe "#hoist_mainstay" do before(:each) do @csv_pirate = CsvPirate::TheCapn.new({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall"], :booty => [:name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => false, :gibbet => "", :aft => ".csv", :swab => :none, :mop => :clean, :waggoner => 'data' }) end it "should return an instance of String" do @csv_pirate.hoist_mainstay.class.should == String end it "should return the export as a string" do @csv_pirate.hoist_mainstay[0..100].should == "Name,Distance,Spectral type,Name hash,Name next,Name upcase,Star vowels\nProxima Centauri,4.2 LY,M5.5V" end it "should store export in maroon instance variable" do @csv_pirate.maroon.should == "" @csv_pirate.hoist_mainstay @csv_pirate.maroon[0..100].should == "Name,Distance,Spectral type,Name hash,Name next,Name upcase,Star vowels\nProxima Centauri,4.2 LY,M5.5V" end end describe "dated dumps" do before(:each) do ["1/1/1998","2/2/2002","1/2/2003","3/2/2001","2/1/2007"].each do |x| date = Date.parse(x) @csv_pirate = CsvPirate::TheCapn.new({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall","dumps"], :booty => [:name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => date, :swab => :none, :mop => :clean }) @csv_pirate.hoist_mainstay end end describe "#flies" do it "should list exported files" do @csv_pirate.flies.include?("GlowingGasBall.19980101.export.csv").should be_true @csv_pirate.flies.include?("GlowingGasBall.20010203.export.csv").should be_true @csv_pirate.flies.include?("GlowingGasBall.20020202.export.csv").should be_true @csv_pirate.flies.include?("GlowingGasBall.20030201.export.csv").should be_true @csv_pirate.flies.include?("GlowingGasBall.20070102.export.csv").should be_true end end describe "#old_csv_dump" do it "should find first (oldest) dump" do @new_csv_pirate = CsvPirate::TheCapn.new({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall","dumps"], :booty => [:name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => Date.parse('18/4/2011'), :brigantine => :first, :swab => :none, :mop => :clean }) @new_csv_pirate.brigantine.should == "spec/csv/GlowingGasBall/dumps/GlowingGasBall.19980101.export.csv" end it "should find last (newest) dump" do @new_csv_pirate = CsvPirate::TheCapn.new({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall","dumps"], :booty => [:name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => nil, :brigantine => :last, :swab => :none, :mop => :clean }) @new_csv_pirate.brigantine.should == "spec/csv/GlowingGasBall/dumps/GlowingGasBall.20070102.export.csv" end end describe "#to_memory" do it "should return an array of 10 grubs built from data in CSV" do @new_csv_pirate = CsvPirate::TheCapn.new({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall","dumps"], :booty => [:name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => false, :brigantine => :last, :swab => :none, :mop => :clean }) @new_csv_pirate.brigantine.should == "spec/csv/GlowingGasBall/dumps/GlowingGasBall.export.csv" @new_csv_pirate.to_memory.class.should == Array @new_csv_pirate.hoist_mainstay # After the CSV is written we should have an array of stuff @new_csv_pirate.to_memory.length.should == 10 end end context "protected methods" do before(:each) do @new_csv_pirate = CsvPirate::TheCapn.new({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall","dumps"], :booty => [:name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => false, :swab => :none, :mop => :clean }) end describe "#lantern" do it "should be a glob" do @new_csv_pirate.send(:lantern).should == "spec/csv/GlowingGasBall/dumps/GlowingGasBall.export.*" end end describe "#merchantman" do it "should be" do @new_csv_pirate.send(:merchantman).should == "GlowingGasBall.export" end end end end describe ":blackjack option" do before(:each) do @csv_pirate = CsvPirate::TheCapn.new({ :grub => GlowingGasBall, :spyglasses => [:get_stars], :chart => ["spec","csv","GlowingGasBall"], :booty => [:name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ], :chronometer => false, :gibbet => "", :aft => ".csv", :swab => :none, :mop => :clean, :waggoner => 'data' }) end it "should be {humanize => '_'} by default" do @csv_pirate.blackjack.should == {:humanize => '_'} @csv_pirate.hoist_mainstay @csv_pirate.maroon[0..100].should == "Name,Distance,Spectral type,Name hash,Name next,Name upcase,Star vowels\nProxima Centauri,4.2 LY,M5.5V" end it "should work as {:join => '_'}" do @csv_pirate.blackjack = {:join => '_'} @csv_pirate.blackjack.should == {:join => '_'} @csv_pirate.hoist_mainstay @csv_pirate.maroon[0..100].should == "name,distance,spectral_type,name_hash,name_next,name_upcase,star_vowels\nProxima Centauri,4.2 LY,M5.5V" end end describe ":bury_treasure option" do describe "when true" do before(:each) do # Similar to example from the readme @csv_pirate = CsvPirate::TheCapn.create({ :swag => [Struct.new(:first_name, :last_name, :birthday).new('Joe','Smith','12/24/1805')], :waggoner => 'active_users_logged_in', :booty => [:first_name, :last_name], :chart => ['log','csv'], :bury_treasure => true }) end it "should bury treasure in buried_treasure as array" do @csv_pirate.buried_treasure.class.should == Array end it "should have buried treasure" do @csv_pirate.buried_treasure.first.should == %w(Joe Smith) end end describe "when false" do before(:each) do # Similar to example from the readme @csv_pirate = CsvPirate::TheCapn.create({ :swag => [Struct.new(:first_name, :last_name, :birthday).new('Joe','Smith','12/24/1805')], :waggoner => 'active_users_logged_in', :booty => [:first_name, :last_name], :chart => ['log','csv'], :bury_treasure => false }) end it "should not bury any treasure in the buried_treasure array" do @csv_pirate.buried_treasure.should == [] end end end end
mit
luisTJ/nodeschool_learnyounode_solution
readFileAsync_1_4.js
228
var fs = require('fs'); function lineCount(err,data){ if(err) throw err; var sum = 0; for(var i = 0;i<data.length;++i){ if(data[i] == '\n') ++sum; } console.log(sum); } fs.readFile(process.argv[2],"utf8",lineCount);
mit
GoSkyer/blog-service
src/main/kotlin/org/goskyer/mapping/PostMapper.java
514
package org.goskyer.mapping; import org.apache.ibatis.annotations.Mapper; import org.goskyer.domain.Post; import org.goskyer.domain.Tag; import org.springframework.stereotype.Repository; import java.util.List; /** * Created by zohar on 2017/4/14. * desc: */ @Mapper @Repository public interface PostMapper { public Post selectByPostId(int postId); List<Post> selectByUserId(int UserId); int insertPost(Post post); int insertTagPostTotal(List<Tag> tag); int deletePost(int postId); }
mit
Stevoman/DuplicatesDetector
SoundFingerprinting/FFT/FFTW/InteropFFTWKind.cs
477
namespace SoundFingerprinting.FFT.FFTW { /// <summary> /// Kinds of real-to-real transforms /// </summary> internal enum InteropFFTWKind : uint { // ReSharper disable InconsistentNaming R2HC = 0, HC2R = 1, DHT = 2, REDFT00 = 3, REDFT01 = 4, REDFT10 = 5, REDFT11 = 6, RODFT00 = 7, RODFT01 = 8, RODFT10 = 9, RODFT11 = 10 // ReSharper restore InconsistentNaming } }
mit
wongatech/remi
ReMi.Api/Tests/ReMi.QueryHandlers.Tests/ContinuousDelivery/GetApiDescriptionHandlerTests.cs
8390
using System.Collections.Generic; using System.Linq; using AutoMapper; using FizzWare.NBuilder; using Moq; using NUnit.Framework; using ReMi.BusinessEntities.Api; using ReMi.BusinessEntities.Auth; using ReMi.BusinessLogic.Api; using ReMi.TestUtils.UnitTests; using ReMi.Contracts.Cqrs.Queries; using ReMi.DataAccess.BusinessEntityGateways.Api; using ReMi.DataAccess.BusinessEntityGateways.Auth; using ReMi.Queries.ContinuousDelivery; using ReMi.QueryHandlers.ContinuousDelivery; namespace ReMi.QueryHandlers.Tests.ContinuousDelivery { public class GetApiDescriptionHandlerTests : TestClassFor<GetApiDescriptionHandler> { private Mock<IApiDescriptionGateway> _apiDescriptionGatewayMock; private Mock<ICommandPermissionsGateway> _commandPermissionsGatewayMock; private Mock<IQueryPermissionsGateway> _queryPermissionsGatewayMock; private Mock<IApiDescriptionBuilder> _apiDescriptionBuilderMock; private Mock<IMappingEngine> _mappingEngineMock; protected override GetApiDescriptionHandler ConstructSystemUnderTest() { return new GetApiDescriptionHandler { ApiBuilder = _apiDescriptionBuilderMock.Object, ApiDescriptionGatewayFactory = () => _apiDescriptionGatewayMock.Object, CommandPermissionsGatewayFactory = () => _commandPermissionsGatewayMock.Object, QueryPermissionsGatewayFactory = () => _queryPermissionsGatewayMock.Object, MappingEngine = _mappingEngineMock.Object }; } protected override void TestInitialize() { _mappingEngineMock = new Mock<IMappingEngine>(); _apiDescriptionGatewayMock = new Mock<IApiDescriptionGateway>(); _commandPermissionsGatewayMock = new Mock<ICommandPermissionsGateway>(); _queryPermissionsGatewayMock = new Mock<IQueryPermissionsGateway>(); _mappingEngineMock = new Mock<IMappingEngine>(); _mappingEngineMock.Setup(o => o.Map<ApiDescription, ApiDescriptionFull>(It.IsAny<ApiDescription>())) .Returns<ApiDescription>(o => new ApiDescriptionFull { Description = o.Description, InputFormat = o.InputFormat, Method = o.Method, Name = o.Name, OutputFormat = o.OutputFormat, Url = o.Url }); _apiDescriptionBuilderMock = new Mock<IApiDescriptionBuilder>(); _apiDescriptionBuilderMock.Setup(o => o.GetApiDescriptions()) .Returns(ConstructApiDescriptions()); SetupApiDescriptionGateway(); SetupCommandPermissionsGateway(); SetupQueryPermissionsGateway(); base.TestInitialize(); } [Test] public void Handle_ShouldPopulateDescriptionFromDB_WhenInvoked() { var request = CreateRequest(); var result = Sut.Handle(request); Assert.IsNotNull(result); Assert.AreEqual(3, result.ApiDescriptions.Count()); Assert.AreEqual("description1", result.ApiDescriptions.First().Description); Assert.AreEqual("description2", result.ApiDescriptions.ElementAt(1).Description); Assert.IsNull(result.ApiDescriptions.ElementAt(2).Description); } [Test] public void Handle_ShouldPopulateCommandInformationFromDb_WhenInvoked() { var request = CreateRequest(); var result = Sut.Handle(request); Assert.AreEqual("R 1, R 2", result.ApiDescriptions.First().Roles); Assert.AreEqual("command desc", result.ApiDescriptions.First().DescriptionShort); Assert.AreEqual("command group", result.ApiDescriptions.First().Group); } [Test] public void Handle_ShouldPopulateQueryInformationFromDb_WhenInvoked() { var request = CreateRequest(); var result = Sut.Handle(request); Assert.AreEqual("R 3, R 4", result.ApiDescriptions.ElementAt(1).Roles); Assert.AreEqual("query desc", result.ApiDescriptions.ElementAt(1).DescriptionShort); Assert.AreEqual("query group", result.ApiDescriptions.ElementAt(1).Group); } [Test] public void Handle_ShouldNotPopulateCommandInformationFromDb_WhenAccordingRowsNotFound() { var request = CreateRequest(); var result = Sut.Handle(request); Assert.IsNull(result.ApiDescriptions.ElementAt(2).Roles); Assert.IsNull(result.ApiDescriptions.ElementAt(2).DescriptionShort); Assert.IsNull(result.ApiDescriptions.ElementAt(2).Group); } private GetApiDescriptionRequest CreateRequest() { return new GetApiDescriptionRequest { Context = new QueryContext() }; } private IEnumerable<ApiDescription> ConstructApiDescriptions() { var result = new List<ApiDescription> { Builder<ApiDescription>.CreateNew() .With(o => o.Url, "http://ref1") .With(o => o.Description, null) .With(o => o.Method, "Post") .With(o => o.Name, "ComRef1") .Build(), Builder<ApiDescription>.CreateNew() .With(o => o.Url, "http://ref2") .With(o => o.Name, "QueryRef2") .With(o => o.Description, null) .With(o => o.Method, "Get") .Build(), Builder<ApiDescription>.CreateNew() .With(o => o.Url, "http://ref3") .With(o => o.Name, "ComRef3") .With(o => o.Description, null) .With(o => o.Method, "Post") .Build() }; return result; } private void SetupApiDescriptionGateway() { var result = new List<ApiDescription> { Builder<ApiDescription>.CreateNew() .With(o => o.Url, "http://ref1") .With(o => o.Description, "description1") .Build(), Builder<ApiDescription>.CreateNew() .With(o => o.Url, "http://ref2") .With(o => o.Description, "description2") .Build(), Builder<ApiDescription>.CreateNew() .With(o => o.Url, "http://ref4") .With(o => o.Description, "description4") .Build() }; _apiDescriptionGatewayMock.Setup(o => o.GetApiDescriptions()) .Returns(result); } private void SetupCommandPermissionsGateway() { var result = new List<Command> { Builder<Command>.CreateNew() .With(o => o.Name, "ComRef1") .With(o => o.Group, "command group") .With(o => o.Description, "command desc") .With(o => o.Roles, new[] { new Role{ Description = "R 1", Name = "R1"}, new Role{ Description = "R 2", Name = "R2"} }) .Build() }; _commandPermissionsGatewayMock.Setup(o => o.GetCommands(false)) .Returns(result); } private void SetupQueryPermissionsGateway() { var result = new List<Query> { Builder<Query>.CreateNew() .With(o => o.Name, "QueryRef2") .With(o => o.Group, "query group") .With(o => o.Description, "query desc") .With(o => o.Roles, new[] { new Role{ Description = "R 3", Name = "R3"}, new Role{ Description = "R 4", Name = "R4"} }) .Build() }; _queryPermissionsGatewayMock.Setup(o => o.GetQueries(false)) .Returns(result); } } }
mit
warmer/quick_tools
websocket/regress/invalid_client_request_socket_key.rb
1516
#!/usr/bin/env ruby require_relative 'harness.rb' Harness.run_test do scenario 'Initiate a close from the client to the server' server_connected = server_disconnected = false log 'Start websocket server' server = start_websocket_server log 'Set a handler for receiving server connect and disconnect events' server.on(:client_connect) do |_client| log 'Server has connected to a client' server_connected = true end server.on(:client_disconnect) do |_client| log 'Server has disconnected from a client' server_disconnected = true end log 'Initiate a connection with an invalid request verb' request = [ 'GET / HTTP/1.1', "Host: #{@host}:#{@port}", 'Connection: Upgrade', 'Upgrade: websocket', 'Sec-WebSocket-Version: 13', # missing: #'Sec-WebSocket-Key: abcdefghijklmnopqrstuv==', 'User-Agent: test-client', '', '', ].join("\r\n") log log 'Client request:' log '+' * 80 log request log '+' * 80 connection = TCPSocket.new(@host, @port.to_i) connection.write(request) response = '' while(content = connection.recv(1024)) do break if content.empty? response += content end Timeout::timeout(0.5) do loop do break if server_connected sleep 0.1 end end rescue nil log "Server connected: #{server_connected}" log 'Close the socket' connection.close log log 'Server response:' log '+' * 80 log response log '+' * 80 log 'Stop websocket server' server.stop! end
mit
NETWORKCOIN/NETC-NETWORKCOINX_13
src/qt/locale/bitcoin_fa.ts
123241
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About NetworkCoin</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;NetworkCoin&lt;/b&gt; version</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The NetworkCoin 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>⏎ ⏎ این یک نرم‌افزار آزمایشی است⏎ ⏎ نرم افزار تحت مجوز MIT/X11 منتشر شده است. پروندهٔ COPYING یا نشانی http://www.opensource.org/licenses/mit-license.php. را ببینید⏎ ⏎ این محصول شامل نرم‌افزار توسعه داده‌شده در پروژهٔ OpenSSL است. در این نرم‌افزار از OpenSSL Toolkit (http://www.openssl.org/) و نرم‌افزار رمزنگاری نوشته شده توسط اریک یانگ (eay@cryptsoft.com) و UPnP توسط توماس برنارد استفاده شده است.</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>برای ویرایش نشانی یا برچسب دوبار کلیک کنید</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>ایجاد نشانی جدید</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>نشانی انتخاب شده را در حافظهٔ سیستم کپی کن!</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location line="-46"/> <source>These are your NetworkCoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <source>&amp;Copy Address</source> <translation>&amp;کپی نشانی</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a NetworkCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>حذف نشانی انتخاب‌شده از لیست</translation> </message> <message> <location line="-14"/> <source>Verify a message to ensure it was signed with a specified NetworkCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;حذف</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation>کپی و برچسب‌&amp;گذاری</translation> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation>&amp;ویرایش</translation> </message> <message> <location line="+250"/> <source>Export Address Book Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>پروندهٔ نوع CSV جداشونده با کاما (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation 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>برچسب</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>نشانی</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(بدون برچسب)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>پنجرهٔ گذرواژه</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>گذرواژه را وارد کنید</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>گذرواژهٔ جدید</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>تکرار گذرواژهٔ جدید</translation> </message> <message> <location line="+33"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>For staking only</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+35"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>گذرواژهٔ جدید کیف پول خود را وارد کنید.&lt;br/&gt;لطفاً از گذرواژه‌ای با &lt;b&gt;حداقل ۱۰ حرف تصادفی&lt;/b&gt;، یا &lt;b&gt;حداقل هشت کلمه&lt;/b&gt; انتخاب کنید.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>رمزنگاری کیف پول</translation> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>انجام این عملیات نیازمند گذرواژهٔ کیف پول شما برای باز کردن قفل آن است.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>باز کردن قفل کیف پول</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>انجام این عملیات نیازمند گذرواژهٔ کیف پول شما برای رمزگشایی کردن آن است.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>رمزگشایی کیف پول</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>تغییر گذرواژه</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>گذرواژهٔ قدیمی و جدید کیف پول را وارد کنید.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>تأیید رمزنگاری کیف پول</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>آیا مطمئن هستید که می‌خواهید کیف پول خود را رمزنگاری کنید؟</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>مهم: هر نسخهٔ پشتیبانی که تا کنون از کیف پول خود تهیه کرده‌اید، باید با کیف پول رمزنگاری شدهٔ جدید جایگزین شود. به دلایل امنیتی، پروندهٔ قدیمی کیف پول بدون رمزنگاری، تا زمانی که از کیف پول رمزنگاری‌شدهٔ جدید استفاده نکنید، غیرقابل استفاده خواهد بود.</translation> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>هشدار: کلید Caps Lock روشن است!</translation> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>کیف پول رمزنگاری شد</translation> </message> <message> <location line="-58"/> <source>NetworkCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+44"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>رمزنگاری کیف پول با خطا مواجه شد</translation> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>رمزنگاری کیف پول بنا به یک خطای داخلی با شکست مواجه شد. کیف پول شما رمزنگاری نشد.</translation> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation>گذرواژه‌های داده شده با هم تطابق ندارند.</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>بازگشایی قفل کیف‌پول با شکست مواجه شد</translation> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>گذرواژهٔ وارد شده برای رمزگشایی کیف پول نادرست بود.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>رمزگشایی ناموفق کیف پول</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>گذرواژهٔ کیف پول با موفقیت عوض شد.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+282"/> <source>Sign &amp;message...</source> <translation>&amp;امضای پیام...</translation> </message> <message> <location line="+251"/> <source>Synchronizing with network...</source> <translation>همگام‌سازی با شبکه...</translation> </message> <message> <location line="-319"/> <source>&amp;Overview</source> <translation>&amp;بررسی اجمالی</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>نمایش بررسی اجمالی کیف پول</translation> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation>&amp;تراکنش‌ها</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>مرور تاریخچهٔ تراکنش‌ها</translation> </message> <message> <location line="+5"/> <source>&amp;Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit the list of stored addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="-13"/> <source>&amp;Receive coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"/> </message> <message> <location line="-7"/> <source>&amp;Send coins</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>E&amp;xit</source> <translation>&amp;خروج</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>خروج از برنامه</translation> </message> <message> <location line="+6"/> <source>Show information about NetworkCoin</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>دربارهٔ &amp;کیوت</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>نمایش اطلاعات دربارهٔ کیوت</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;تنظیمات...</translation> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;رمزنگاری کیف پول...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;پیشتیبان‌گیری از کیف پول...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;تغییر گذرواژه...</translation> </message> <message numerus="yes"> <location line="+259"/> <source>~%n block(s) remaining</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation type="unfinished"/> </message> <message> <location line="-256"/> <source>&amp;Export...</source> <translation type="unfinished"/> </message> <message> <location line="-64"/> <source>Send coins to a NetworkCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Modify configuration options for NetworkCoin</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Encrypt or decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup wallet to another location</source> <translation>تهیهٔ پشتیبان از کیف پول در یک مکان دیگر</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>تغییر گذرواژهٔ مورد استفاده در رمزنگاری کیف پول</translation> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation>پنجرهٔ ا&amp;شکال‌زدایی</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>باز کردن کنسول خطایابی و اشکال‌زدایی</translation> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation>با&amp;زبینی پیام...</translation> </message> <message> <location line="-202"/> <source>NetworkCoin</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet</source> <translation>کیف پول</translation> </message> <message> <location line="+180"/> <source>&amp;About NetworkCoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>&amp;نمایش/ عدم نمایش</translation> </message> <message> <location line="+9"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>&amp;File</source> <translation>&amp;پرونده</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;تنظیمات</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>&amp;کمک‌رسانی</translation> </message> <message> <location line="+12"/> <source>Tabs toolbar</source> <translation>نوارابزار برگه‌ها</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>[شبکهٔ آزمایش]</translation> </message> <message> <location line="+0"/> <location line="+60"/> <source>NetworkCoin client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+75"/> <source>%n active connection(s) to NetworkCoin network</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message> <location line="+40"/> <source>Downloaded %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+413"/> <source>Staking.&lt;br&gt;Your weight is %1&lt;br&gt;Network weight is %2&lt;br&gt;Expected time to earn reward is %3</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Not staking because wallet is locked</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is syncing</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because you don&apos;t have mature coins</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-403"/> <source>%n second(s) ago</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message> <location line="-312"/> <source>About NetworkCoin card</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about NetworkCoin card</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>&amp;Unlock Wallet...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+297"/> <source>%n minute(s) ago</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s) ago</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s) ago</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Up to date</source> <translation>وضعیت به‌روز</translation> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation>به‌روز رسانی...</translation> </message> <message> <location line="+10"/> <source>Last received block was generated %1.</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation>تراکنش ارسال شد</translation> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation>تراکنش دریافت شد</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>تاریخ: %1 مبلغ: %2 نوع: %3 نشانی: %4 </translation> </message> <message> <location line="+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 NetworkCoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>کیف پول &lt;b&gt;رمزنگاری شده&lt;/b&gt; است و هم‌اکنون &lt;b&gt;باز&lt;/b&gt; است</translation> </message> <message> <location line="+10"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>کیف پول &lt;b&gt;رمزنگاری شده&lt;/b&gt; است و هم‌اکنون &lt;b&gt;قفل&lt;/b&gt; است</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></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation type="unfinished"><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s)</source> <translation><numerusform>%n ساعت</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n روز</numerusform></translation> </message> <message> <location line="+18"/> <source>Not staking</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="+109"/> <source>A fatal error occurred. NetworkCoin 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>پیام شبکه</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 type="unfinished"/> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Amount:</source> <translation>مبلغ:</translation> </message> <message> <location line="+32"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="+551"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change:</source> <translation type="unfinished"/> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>List mode</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Amount</source> <translation>مبلغ</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Address</source> <translation>نشانی</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>تاریخ</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation>تأیید شده</translation> </message> <message> <location line="+5"/> <source>Priority</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation>کپی نشانی</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>کپی برچسب</translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>کپی مقدار</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation>کپی شناسهٔ تراکنش</translation> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+317"/> <source>highest</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium-high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>low-medium</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>low</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>lowest</source> <translation type="unfinished"/> </message> <message> <location line="+155"/> <source>DUST</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>yes</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. 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>(بدون برچسب)</translation> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>(change)</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>ویرایش نشانی</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;برچسب</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>&amp;Address</source> <translation>&amp;نشانی</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>نشانی دریافتی جدید</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>نشانی ارسالی جدید</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>ویرایش نشانی دریافتی</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>ویرایش نشانی ارسالی</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>نشانی وارد شده «%1» در حال حاضر در دفترچه وجود دارد.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid NetworkCoin address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>نمی‌توان کیف پول را رمزگشایی کرد.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>ایجاد کلید جدید با شکست مواجه شد.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>NetworkCoin-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 &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>گزینه‌ها</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;عمومی</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 &amp;fee</source> <translation>پرداخت &amp;کارمزد تراکنش</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 type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start NetworkCoin after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start NetworkCoin 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>&amp;Detach databases at shutdown</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation>&amp;شبکه</translation> </message> <message> <location line="+6"/> <source>Automatically open the NetworkCoin 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 &amp;UPnP</source> <translation>نگاشت درگاه شبکه با استفاده از پروتکل &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the NetworkCoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>آ&amp;ی‌پی پراکسی:</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>&amp;Port:</source> <translation>&amp;درگاه:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>درگاه پراکسی (مثال 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>&amp;نسخهٔ SOCKS:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>نسخهٔ پراکسی SOCKS (مثلاً 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;پنجره</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>تنها بعد از کوچک کردن پنجره، tray icon را نشان بده.</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;کوچک کردن به سینی به‌جای نوار وظیفه</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>مخفی کردن در نوار کناری به‌جای خروج هنگام بستن پنجره. زمانی که این گزینه فعال است، برنامه فقط با استفاده از گزینهٔ خروج در منو قابل بسته شدن است.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>کوچک کردن &amp;در زمان بسته شدن</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;نمایش</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>زبان &amp;رابط کاربری:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting NetworkCoin.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;واحد نمایش مبالغ:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>انتخاب واحد پول مورد استفاده برای نمایش در پنجره‌ها و برای ارسال سکه.</translation> </message> <message> <location line="+9"/> <source>Whether to show NetworkCoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>نمایش ن&amp;شانی‌ها در فهرست تراکنش‌ها</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 &amp;control features (experts only!)</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;تأیید</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;لغو</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+55"/> <source>default</source> <translation>پیش‌فرض</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 NetworkCoin.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>آدرس پراکسی داده شده صحیح نیست.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>فرم</translation> </message> <message> <location line="+33"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the NetworkCoin 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 type="unfinished"/> </message> <message> <location line="-107"/> <source>Wallet</source> <translation>کیف پول</translation> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation>تراز علی‌الحساب شما</translation> </message> <message> <location line="+71"/> <source>Immature:</source> <translation>نارسیده:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>تراز استخراج شده از معدن که هنوز بالغ نشده است</translation> </message> <message> <location line="+20"/> <source>Total:</source> <translation>جمع کل:</translation> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation>تراز کل فعلی شما</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;تراکنش‌های اخیر&lt;/b&gt;</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>ناهمگام</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>&amp;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>نام کلاینت</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>ناموجود</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>نسخهٔ کلاینت</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;اطلاعات</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>نسخهٔ OpenSSL استفاده شده</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>زمان آغاز به کار</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>شبکه</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>تعداد ارتباطات</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>زنجیرهٔ بلوک‌ها</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>تعداد فعلی بلوک‌ها</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>تعداد تخمینی بلوک‌ها</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>زمان آخرین بلوک</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>با&amp;ز کردن</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the NetworkCoin-Qt help message to get a list with possible NetworkCoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;کنسول</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>ساخت تاریخ</translation> </message> <message> <location line="-104"/> <source>NetworkCoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>NetworkCoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>فایلِ لاگِ اشکال زدایی</translation> </message> <message> <location line="+7"/> <source>Open the NetworkCoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>پاکسازی کنسول</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-33"/> <source>Welcome to the NetworkCoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>دکمه‌های بالا و پایین برای پیمایش تاریخچه و &lt;b&gt;Ctrl-L&lt;/b&gt; برای پاک کردن صفحه.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>برای نمایش یک مرور کلی از دستورات ممکن، عبارت &lt;b&gt;help&lt;/b&gt; را بنویسید.</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>ارسال سکه</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 type="unfinished"/> </message> <message> <location line="+22"/> <location line="+35"/> <source>0</source> <translation type="unfinished"/> </message> <message> <location line="-19"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Amount:</source> <translation>مبلغ:</translation> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 NETC</source> <translation type="unfinished"/> </message> <message> <location line="-191"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>custom change address</source> <translation type="unfinished"/> </message> <message> <location line="+106"/> <source>Send to multiple recipients at once</source> <translation>ارسال به چند دریافت‌کنندهٔ به‌طور همزمان</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;دریافت‌کنندهٔ جدید</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>پاکسازی &amp;همه</translation> </message> <message> <location line="+28"/> <source>Balance:</source> <translation>تزار:</translation> </message> <message> <location line="+16"/> <source>123.456 NETC</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>عملیات ارسال را تأیید کنید</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;ارسال</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-173"/> <source>Enter a NetworkCoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>کپی مقدار</translation> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+86"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>ارسال سکه را تأیید کنید</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation 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>نشانی گیرنده معتبر نیست؛ لطفا دوباره بررسی کنید.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>مبلغ پرداخت باید بیشتر از ۰ باشد.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>میزان پرداخت از تراز شما بیشتر است.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>با احتساب هزینهٔ %1 برای هر تراکنش، مجموع میزان پرداختی از مبلغ تراز شما بیشتر می‌شود.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>یک نشانی تکراری پیدا شد. در هر عملیات ارسال، به هر نشانی فقط مبلغ می‌توان ارسال کرد.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed.</source> <translation 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 NetworkCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>(no label)</source> <translation>(بدون برچسب)</translation> </message> <message> <location line="+4"/> <source>WARNING: unknown change address</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>A&amp;مبلغ :</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>پرداخ&amp;ت به:</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>برای این نشانی یک برچسب وارد کنید تا در دفترچهٔ آدرس ذخیره شود</translation> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation>&amp;برچسب:</translation> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</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>چسباندن نشانی از حافظهٔ سیستم</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 NetworkCoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</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>امضاها - امضا / تأیید یک پیام</translation> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation>ا&amp;مضای پیام</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>برای احراز اینکه پیام‌ها از جانب شما هستند، می‌توانید آن‌ها را با نشانی خودتان امضا کنید. مراقب باشید چیزی که بدان اطمینان ندارید را امضا نکنید زیرا حملات فیشینگ ممکن است بخواهند از.پیامی با امضای شما سوءاستفاده کنند. تنها مواردی را که حاوی اطلاعات دقیق و قابل قبول برای شما هستند امضا کنید.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</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>چسباندن نشانی از حافظهٔ سیستم</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>پیامی را که می‌خواهید امضا کنید در اینجا وارد کنید</translation> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation>امضای فعلی را به حافظهٔ سیستم کپی کن</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this NetworkCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation>بازنشانی تمام فیلدهای پیام</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>پاک &amp;کردن همه</translation> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation>&amp;شناسایی پیام</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>برای شناسایی پیام، نشانیِ امضا کننده و متن پیام را وارد کنید. (مطمئن شوید که فاصله‌ها، تب‌ها و خطوط را عیناً کپی می‌کنید.) مراقب باشید در امضا چیزی بیشتر از آنچه در پیام می‌بینید وجود نداشته باشد تا فریب دزدان اینترنتی و حملات از نوع MITM را نخورید.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified NetworkCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation>بازنشانی تمام فیلدهای پیام</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a NetworkCoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>برای ایجاد یک امضای جدید روی «امضای پیام» کلیک کنید</translation> </message> <message> <location line="+3"/> <source>Enter NetworkCoin signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>نشانی وارد شده نامعتبر است.</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>لطفاً نشانی را بررسی کنید و دوباره تلاش کنید.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>نشانی وارد شده به هیچ کلیدی اشاره نمی‌کند.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>عملیات باز کرن قفل کیف پول لغو شد.</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>کلید خصوصی برای نشانی وارد شده در دسترس نیست.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>امضای پیام با شکست مواجه شد.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>پیام امضا شد.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>امضا نمی‌تواند کدگشایی شود.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>لطفاً امضا را بررسی نموده و دوباره تلاش کنید.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>امضا با خلاصهٔ پیام مطابقت ندارد.</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>شناسایی پیام با شکست مواجه شد.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>پیام شناسایی شد.</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation>باز تا %1</translation> </message> <message numerus="yes"> <location line="-2"/> <source>Open for %n block(s)</source> <translation type="unfinished"><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/آفلاین</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/تأیید نشده</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 تأییدیه</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>وضعیت</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>، پخش از طریق %n گره</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>تاریخ</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>منبع</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>تولید شده</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>فرستنده</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>گیرنده</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>آدرس شما</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>برچسب</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>بدهی</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>بلوغ در %n بلوک دیگر</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>پذیرفته نشد</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>اعتبار</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>هزینهٔ تراکنش</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>مبلغ خالص</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>پیام</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>نظر</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>شناسهٔ تراکنش</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;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>اطلاعات اشکال‌زدایی</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>تراکنش</translation> </message> <message> <location line="+5"/> <source>Inputs</source> <translation>ورودی‌ها</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>مبلغ</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>درست</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>نادرست</translation> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation>، هنوز با موفقیت ارسال نشده</translation> </message> <message> <location line="+35"/> <source>unknown</source> <translation>ناشناس</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>جزئیات تراکنش</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>این پانل شامل توصیف کاملی از جزئیات تراکنش است</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+226"/> <source>Date</source> <translation>تاریخ</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>نوع</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>نشانی</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>مبلغ</translation> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation>باز شده تا %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>تأیید شده (%1 تأییدیه)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation><numerusform>باز برای %n بلوک دیگر</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>این بلوک از هیچ همتای دیگری دریافت نشده است و احتمال می‌رود پذیرفته نشود!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>تولید شده ولی قبول نشده</translation> </message> <message> <location line="+42"/> <source>Received with</source> <translation>دریافت‌شده با</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>دریافت‌شده از</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>ارسال‌شده به</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>پر داخت به خودتان</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>استخراج‌شده</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(ناموجود)</translation> </message> <message> <location line="+190"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>وضعیت تراکنش. نشانگر را روی این فیلد نگه دارید تا تعداد تأییدیه‌ها نشان داده شود.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>تاریخ و ساعت دریافت تراکنش.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>نوع تراکنش.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>نشانی مقصد تراکنش.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>مبلغ کسر شده و یا اضافه شده به تراز.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation>همه</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>امروز</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>این هفته</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>این ماه</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>ماه گذشته</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>امسال</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>محدوده...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>دریافت‌شده با </translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>ارسال به</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>به خودتان</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>استخراج‌شده</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>دیگر</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>برای جست‌‌وجو نشانی یا برچسب را وارد کنید</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>مبلغ حداقل</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>کپی نشانی</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>کپی برچسب</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>کپی مقدار</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>کپی شناسهٔ تراکنش</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>ویرایش برچسب</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>نمایش جزئیات تراکنش</translation> </message> <message> <location line="+144"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>پروندهٔ نوع CSV جداشونده با کاما (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>تأیید شده</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>تاریخ</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>نوع</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>برچسب</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>نشانی</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>مبلغ</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>شناسه</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>محدوده:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>به</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>NetworkCoin version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Usage:</source> <translation>استفاده:</translation> </message> <message> <location line="+1"/> <source>Send command to -server or NetworkCoind</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>List commands</source> <translation>نمایش لیست فرمان‌ها</translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>راهنمایی در مورد یک دستور</translation> </message> <message> <location line="+2"/> <source>Options:</source> <translation>گزینه‌ها:</translation> </message> <message> <location line="+2"/> <source>Specify configuration file (default: NetworkCoin.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify pid file (default: NetworkCoind.pid)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>مشخص کردن دایرکتوری داده‌ها</translation> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>تنظیم اندازهٔ کَش پایگاه‌داده برحسب مگابایت (پیش‌فرض: ۲۵)</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 &lt;port&gt; (default: 15714 or testnet: 25714)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>حداکثر &lt;n&gt; اتصال با همتایان برقرار شود (پیش‌فرض: ۱۲۵)</translation> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>اتصال به یک گره برای دریافت آدرس‌های همتا و قطع اتصال پس از اتمام عملیات</translation> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation>آدرس عمومی خود را مشخص کنید</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>حد آستانه برای قطع ارتباط با همتایان بدرفتار (پیش‌فرض: ۱۰۰)</translation> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>مدت زمان جلوگیری از اتصال مجدد همتایان بدرفتار، به ثانیه (پیش‌فرض: ۸۴۶۰۰)</translation> </message> <message> <location line="-44"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>هنگام تنظیم پورت RPC %u برای گوش دادن روی IPv4 خطایی رخ داده است: %s</translation> </message> <message> <location line="+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 &lt;port&gt; (default: 15715 or testnet: 25715)</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation>پذیرش دستورات خط فرمان و دستورات 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>اجرا در پشت زمینه به‌صورت یک سرویس و پذیرش دستورات</translation> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation>استفاده از شبکهٔ آزمایش</translation> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>پذیرش اتصالات از بیرون (پیش فرض:1 بدون پراکسی یا اتصال)</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 type="unfinished"/> </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>هشدار: مبلغ paytxfee بسیار بالایی تنظیم شده است! این مبلغ هزینه‌ای است که شما برای تراکنش‌ها پرداخت می‌کنید.</translation> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong NetworkCoin 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 type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation>بستن گزینه ایجاد</translation> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation>تنها در گره (های) مشخص شده متصل شوید</translation> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>آدرس آی.پی. خود را شناسایی کنید (پیش فرض:1 در زمان when listening وno -externalip)</translation> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>شنیدن هر گونه درگاه انجام پذیر نیست. ازlisten=0 برای اینکار استفاده کیند.</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: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>حداکثر بافر دریافت شده بر اساس اتصال &lt;n&gt;* 1000 بایت (پیش فرض:5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>حداکثر بافر دریافت شده بر اساس اتصال &lt;n&gt;* 1000 بایت (پیش فرض:1000)</translation> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>تنها =به گره ها در شبکه متصا شوید &lt;net&gt; (IPv4, IPv6 or 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>گزینه ssl (به ویکیbitcoin برای راهنمای راه اندازی 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>اطلاعات ردگیری/اشکال‌زدایی را به جای فایل لاگ اشکال‌زدایی به کنسول بفرستید</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>حداقل سایز بلاک بر اساس بایت تنظیم شود (پیش فرض: 0)</translation> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>فایل debug.log را در startup مشتری کوچک کن (پیش فرض:1 اگر اشکال زدایی روی نداد)</translation> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>(میلی ثانیه )فاصله ارتباط خاص</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>از UPnP برای شناسایی درگاه شنیداری استفاده کنید (پیش فرض:0)</translation> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>از UPnP برای شناسایی درگاه شنیداری استفاده کنید (پیش فرض:1 در زمان شنیدن)</translation> </message> <message> <location line="-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>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>هشدار: این نسخه قدیمی است، روزآمدسازی مورد نیاز است</translation> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation>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=NetworkCoinrpc 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 &quot;NetworkCoin Alert&quot; 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>از آدرس آی پی خاص JSON-RPC قبول ارتباطات</translation> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>(127.0.0.1پیش فرض: ) &amp;lt;ip&amp;gt; دادن فرمانها برای استفاده گره ها روی</translation> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>زمانی که بهترین بلاک تغییر کرد، دستور را اجرا کن (%s در cmd با block hash جایگزین شده است)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>هنگامی که یک تراکنش در کیف پولی رخ می دهد، دستور را اجرا کن(%s در دستورات بوسیله ی 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>wallet را به جدیدترین فرمت روزآمد کنید</translation> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation> (100پیش فرض:)&amp;lt;n&amp;gt; گذاشتن اندازه کلید روی </translation> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>اسکان مجدد زنجیر بلوکها برای گم والت معامله</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>JSON-RPCبرای ارتباطات استفاده کنید OpenSSL (https)</translation> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation> (server.certپیش فرض: )گواهی نامه سرور</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>(server.pemپیش فرض: ) کلید خصوصی سرور</translation> </message> <message> <location line="+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>پیام کمکی</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. NetworkCoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-98"/> <source>NetworkCoin</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>امکان اتصال به %s از این رایانه وجود ندارد ( bind returned error %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>به DNS اجازه بده تا برای addnode ، seednode و اتصال جستجو کند</translation> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation>بار گیری آدرس ها</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>خطا در بارگیری wallet.dat: کیف پول خراب شده است</translation> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of NetworkCoin</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart NetworkCoin to complete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation>خطا در بارگیری wallet.dat</translation> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>آدرس پراکسی اشتباه %s</translation> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>شبکه مشخص شده غیرقابل شناسایی در onlynet: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>نسخه پراکسی ساکس غیرقابل شناسایی درخواست شده است: %i</translation> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>آدرس قابل اتصال- شناسایی نیست %s</translation> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>آدرس خارجی قابل اتصال- شناسایی نیست %s</translation> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>میزان وجه اشتباه برای paytxfee=&lt;میزان وجه&gt;: %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>میزان وجه اشتباه</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation>بود جه نا کافی </translation> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation>بار گیری شاخص بلوک</translation> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>به اتصال یک گره اضافه کنید و اتصال را باز نگاه دارید</translation> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. NetworkCoin 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=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation>بار گیری والت</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation>امکان تنزل نسخه در wallet وجود ندارد</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>آدرس پیش فرض قابل ذخیره نیست</translation> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>اسکان مجدد</translation> </message> <message> <location line="+5"/> <source>Done loading</source> <translation>بار گیری انجام شده است</translation> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation>برای استفاده از %s از انتخابات</translation> </message> <message> <location line="+14"/> <source>Error</source> <translation>خطا</translation> </message> <message> <location line="+6"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>%s، شما باید یک rpcpassword را در فایل پیکربندی تنظیم کنید :⏎%s⏎ اگر فایل ایجاد نشد، یک فایل فقط متنی ایجاد کنید. </translation> </message> </context> </TS>
mit
DrSkipper/twogames
bin/windows/cpp/obj/src/openfl/Assets.cpp
49898
#include <hxcpp.h> #ifndef INCLUDED_DefaultAssetLibrary #include <DefaultAssetLibrary.h> #endif #ifndef INCLUDED_IMap #include <IMap.h> #endif #ifndef INCLUDED_Type #include <Type.h> #endif #ifndef INCLUDED_flash_display_BitmapData #include <flash/display/BitmapData.h> #endif #ifndef INCLUDED_flash_display_DisplayObject #include <flash/display/DisplayObject.h> #endif #ifndef INCLUDED_flash_display_DisplayObjectContainer #include <flash/display/DisplayObjectContainer.h> #endif #ifndef INCLUDED_flash_display_IBitmapDrawable #include <flash/display/IBitmapDrawable.h> #endif #ifndef INCLUDED_flash_display_InteractiveObject #include <flash/display/InteractiveObject.h> #endif #ifndef INCLUDED_flash_display_MovieClip #include <flash/display/MovieClip.h> #endif #ifndef INCLUDED_flash_display_Sprite #include <flash/display/Sprite.h> #endif #ifndef INCLUDED_flash_events_EventDispatcher #include <flash/events/EventDispatcher.h> #endif #ifndef INCLUDED_flash_events_IEventDispatcher #include <flash/events/IEventDispatcher.h> #endif #ifndef INCLUDED_flash_media_Sound #include <flash/media/Sound.h> #endif #ifndef INCLUDED_flash_text_Font #include <flash/text/Font.h> #endif #ifndef INCLUDED_flash_utils_ByteArray #include <flash/utils/ByteArray.h> #endif #ifndef INCLUDED_flash_utils_IDataInput #include <flash/utils/IDataInput.h> #endif #ifndef INCLUDED_flash_utils_IDataOutput #include <flash/utils/IDataOutput.h> #endif #ifndef INCLUDED_haxe_Log #include <haxe/Log.h> #endif #ifndef INCLUDED_haxe_Unserializer #include <haxe/Unserializer.h> #endif #ifndef INCLUDED_haxe_ds_StringMap #include <haxe/ds/StringMap.h> #endif #ifndef INCLUDED_haxe_io_Bytes #include <haxe/io/Bytes.h> #endif #ifndef INCLUDED_openfl_AssetCache #include <openfl/AssetCache.h> #endif #ifndef INCLUDED_openfl_AssetLibrary #include <openfl/AssetLibrary.h> #endif #ifndef INCLUDED_openfl_AssetType #include <openfl/AssetType.h> #endif #ifndef INCLUDED_openfl_Assets #include <openfl/Assets.h> #endif #ifndef INCLUDED_openfl_utils_IMemoryRange #include <openfl/utils/IMemoryRange.h> #endif namespace openfl{ Void Assets_obj::__construct() { return null(); } Assets_obj::~Assets_obj() { } Dynamic Assets_obj::__CreateEmpty() { return new Assets_obj; } hx::ObjectPtr< Assets_obj > Assets_obj::__new() { hx::ObjectPtr< Assets_obj > result = new Assets_obj(); result->__construct(); return result;} Dynamic Assets_obj::__Create(hx::DynamicArray inArgs) { hx::ObjectPtr< Assets_obj > result = new Assets_obj(); result->__construct(); return result;} ::openfl::AssetCache Assets_obj::cache; ::haxe::ds::StringMap Assets_obj::libraries; bool Assets_obj::initialized; bool Assets_obj::exists( ::String id,::openfl::AssetType type){ HX_STACK_PUSH("Assets::exists","openfl/Assets.hx",40); HX_STACK_ARG(id,"id"); HX_STACK_ARG(type,"type"); HX_STACK_LINE(42) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(46) if (((type == null()))){ HX_STACK_LINE(46) type = ::openfl::AssetType_obj::BINARY; } HX_STACK_LINE(52) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(53) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(54) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(56) if (((library != null()))){ HX_STACK_LINE(56) return library->exists(symbolName,type); } HX_STACK_LINE(64) return false; } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,exists,return ) ::flash::display::BitmapData Assets_obj::getBitmapData( ::String id,hx::Null< bool > __o_useCache){ bool useCache = __o_useCache.Default(true); HX_STACK_PUSH("Assets::getBitmapData","openfl/Assets.hx",76); HX_STACK_ARG(id,"id"); HX_STACK_ARG(useCache,"useCache"); { HX_STACK_LINE(78) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(82) if (((bool((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled))) && bool(::openfl::Assets_obj::cache->bitmapData->exists(id))))){ HX_STACK_LINE(84) ::flash::display::BitmapData bitmapData = ::openfl::Assets_obj::cache->bitmapData->get(id); HX_STACK_VAR(bitmapData,"bitmapData"); HX_STACK_LINE(86) if ((::openfl::Assets_obj::isValidBitmapData(bitmapData))){ HX_STACK_LINE(86) return bitmapData; } } HX_STACK_LINE(94) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(95) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(96) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(98) if (((library != null()))){ HX_STACK_LINE(98) if ((library->exists(symbolName,::openfl::AssetType_obj::IMAGE))){ HX_STACK_LINE(100) if ((library->isLocal(symbolName,::openfl::AssetType_obj::IMAGE))){ HX_STACK_LINE(104) ::flash::display::BitmapData bitmapData = library->getBitmapData(symbolName); HX_STACK_VAR(bitmapData,"bitmapData"); HX_STACK_LINE(106) if (((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled)))){ HX_STACK_LINE(106) ::openfl::Assets_obj::cache->bitmapData->set(id,bitmapData); } HX_STACK_LINE(112) return bitmapData; } else{ HX_STACK_LINE(114) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] BitmapData asset \"") + id) + HX_CSTRING("\" exists, but only asynchronously")),hx::SourceInfo(HX_CSTRING("Assets.hx"),116,HX_CSTRING("openfl.Assets"),HX_CSTRING("getBitmapData"))); } } else{ HX_STACK_LINE(120) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no BitmapData asset with an ID of \"") + id) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),122,HX_CSTRING("openfl.Assets"),HX_CSTRING("getBitmapData"))); } } else{ HX_STACK_LINE(126) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),128,HX_CSTRING("openfl.Assets"),HX_CSTRING("getBitmapData"))); } HX_STACK_LINE(134) return null(); } } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,getBitmapData,return ) ::flash::utils::ByteArray Assets_obj::getBytes( ::String id){ HX_STACK_PUSH("Assets::getBytes","openfl/Assets.hx",145); HX_STACK_ARG(id,"id"); HX_STACK_LINE(147) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(151) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(152) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(153) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(155) if (((library != null()))){ HX_STACK_LINE(155) if ((library->exists(symbolName,::openfl::AssetType_obj::BINARY))){ HX_STACK_LINE(157) if ((library->isLocal(symbolName,::openfl::AssetType_obj::BINARY))){ HX_STACK_LINE(159) return library->getBytes(symbolName); } else{ HX_STACK_LINE(163) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] String or ByteArray asset \"") + id) + HX_CSTRING("\" exists, but only asynchronously")),hx::SourceInfo(HX_CSTRING("Assets.hx"),165,HX_CSTRING("openfl.Assets"),HX_CSTRING("getBytes"))); } } else{ HX_STACK_LINE(169) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no String or ByteArray asset with an ID of \"") + id) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),171,HX_CSTRING("openfl.Assets"),HX_CSTRING("getBytes"))); } } else{ HX_STACK_LINE(175) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),177,HX_CSTRING("openfl.Assets"),HX_CSTRING("getBytes"))); } HX_STACK_LINE(183) return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,getBytes,return ) ::flash::text::Font Assets_obj::getFont( ::String id,hx::Null< bool > __o_useCache){ bool useCache = __o_useCache.Default(true); HX_STACK_PUSH("Assets::getFont","openfl/Assets.hx",194); HX_STACK_ARG(id,"id"); HX_STACK_ARG(useCache,"useCache"); { HX_STACK_LINE(196) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(200) if (((bool((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled))) && bool(::openfl::Assets_obj::cache->font->exists(id))))){ HX_STACK_LINE(200) return ::openfl::Assets_obj::cache->font->get(id); } HX_STACK_LINE(206) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(207) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(208) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(210) if (((library != null()))){ HX_STACK_LINE(210) if ((library->exists(symbolName,::openfl::AssetType_obj::FONT))){ HX_STACK_LINE(212) if ((library->isLocal(symbolName,::openfl::AssetType_obj::FONT))){ HX_STACK_LINE(216) ::flash::text::Font font = library->getFont(symbolName); HX_STACK_VAR(font,"font"); HX_STACK_LINE(218) if (((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled)))){ HX_STACK_LINE(218) ::openfl::Assets_obj::cache->font->set(id,font); } HX_STACK_LINE(224) return font; } else{ HX_STACK_LINE(226) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] Font asset \"") + id) + HX_CSTRING("\" exists, but only asynchronously")),hx::SourceInfo(HX_CSTRING("Assets.hx"),228,HX_CSTRING("openfl.Assets"),HX_CSTRING("getFont"))); } } else{ HX_STACK_LINE(232) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no Font asset with an ID of \"") + id) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),234,HX_CSTRING("openfl.Assets"),HX_CSTRING("getFont"))); } } else{ HX_STACK_LINE(238) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),240,HX_CSTRING("openfl.Assets"),HX_CSTRING("getFont"))); } HX_STACK_LINE(246) return null(); } } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,getFont,return ) ::openfl::AssetLibrary Assets_obj::getLibrary( ::String name){ HX_STACK_PUSH("Assets::getLibrary","openfl/Assets.hx",251); HX_STACK_ARG(name,"name"); HX_STACK_LINE(253) if (((bool((name == null())) || bool((name == HX_CSTRING("")))))){ HX_STACK_LINE(253) name = HX_CSTRING("default"); } HX_STACK_LINE(259) return ::openfl::Assets_obj::libraries->get(name); } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,getLibrary,return ) ::flash::display::MovieClip Assets_obj::getMovieClip( ::String id){ HX_STACK_PUSH("Assets::getMovieClip","openfl/Assets.hx",270); HX_STACK_ARG(id,"id"); HX_STACK_LINE(272) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(276) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(277) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(278) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(280) if (((library != null()))){ HX_STACK_LINE(280) if ((library->exists(symbolName,::openfl::AssetType_obj::MOVIE_CLIP))){ HX_STACK_LINE(282) if ((library->isLocal(symbolName,::openfl::AssetType_obj::MOVIE_CLIP))){ HX_STACK_LINE(284) return library->getMovieClip(symbolName); } else{ HX_STACK_LINE(288) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] MovieClip asset \"") + id) + HX_CSTRING("\" exists, but only asynchronously")),hx::SourceInfo(HX_CSTRING("Assets.hx"),290,HX_CSTRING("openfl.Assets"),HX_CSTRING("getMovieClip"))); } } else{ HX_STACK_LINE(294) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no MovieClip asset with an ID of \"") + id) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),296,HX_CSTRING("openfl.Assets"),HX_CSTRING("getMovieClip"))); } } else{ HX_STACK_LINE(300) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),302,HX_CSTRING("openfl.Assets"),HX_CSTRING("getMovieClip"))); } HX_STACK_LINE(308) return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,getMovieClip,return ) ::flash::media::Sound Assets_obj::getMusic( ::String id,hx::Null< bool > __o_useCache){ bool useCache = __o_useCache.Default(true); HX_STACK_PUSH("Assets::getMusic","openfl/Assets.hx",319); HX_STACK_ARG(id,"id"); HX_STACK_ARG(useCache,"useCache"); { HX_STACK_LINE(321) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(325) if (((bool((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled))) && bool(::openfl::Assets_obj::cache->sound->exists(id))))){ HX_STACK_LINE(327) ::flash::media::Sound sound = ::openfl::Assets_obj::cache->sound->get(id); HX_STACK_VAR(sound,"sound"); HX_STACK_LINE(329) if ((::openfl::Assets_obj::isValidSound(sound))){ HX_STACK_LINE(329) return sound; } } HX_STACK_LINE(337) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(338) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(339) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(341) if (((library != null()))){ HX_STACK_LINE(341) if ((library->exists(symbolName,::openfl::AssetType_obj::MUSIC))){ HX_STACK_LINE(343) if ((library->isLocal(symbolName,::openfl::AssetType_obj::MUSIC))){ HX_STACK_LINE(347) ::flash::media::Sound sound = library->getMusic(symbolName); HX_STACK_VAR(sound,"sound"); HX_STACK_LINE(349) if (((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled)))){ HX_STACK_LINE(349) ::openfl::Assets_obj::cache->sound->set(id,sound); } HX_STACK_LINE(355) return sound; } else{ HX_STACK_LINE(357) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] Sound asset \"") + id) + HX_CSTRING("\" exists, but only asynchronously")),hx::SourceInfo(HX_CSTRING("Assets.hx"),359,HX_CSTRING("openfl.Assets"),HX_CSTRING("getMusic"))); } } else{ HX_STACK_LINE(363) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no Sound asset with an ID of \"") + id) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),365,HX_CSTRING("openfl.Assets"),HX_CSTRING("getMusic"))); } } else{ HX_STACK_LINE(369) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),371,HX_CSTRING("openfl.Assets"),HX_CSTRING("getMusic"))); } HX_STACK_LINE(377) return null(); } } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,getMusic,return ) ::String Assets_obj::getPath( ::String id){ HX_STACK_PUSH("Assets::getPath","openfl/Assets.hx",388); HX_STACK_ARG(id,"id"); HX_STACK_LINE(390) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(394) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(395) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(396) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(398) if (((library != null()))){ HX_STACK_LINE(398) if ((library->exists(symbolName,null()))){ HX_STACK_LINE(400) return library->getPath(symbolName); } else{ HX_STACK_LINE(404) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset with an ID of \"") + id) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),406,HX_CSTRING("openfl.Assets"),HX_CSTRING("getPath"))); } } else{ HX_STACK_LINE(410) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),412,HX_CSTRING("openfl.Assets"),HX_CSTRING("getPath"))); } HX_STACK_LINE(418) return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,getPath,return ) ::flash::media::Sound Assets_obj::getSound( ::String id,hx::Null< bool > __o_useCache){ bool useCache = __o_useCache.Default(true); HX_STACK_PUSH("Assets::getSound","openfl/Assets.hx",429); HX_STACK_ARG(id,"id"); HX_STACK_ARG(useCache,"useCache"); { HX_STACK_LINE(431) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(435) if (((bool((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled))) && bool(::openfl::Assets_obj::cache->sound->exists(id))))){ HX_STACK_LINE(437) ::flash::media::Sound sound = ::openfl::Assets_obj::cache->sound->get(id); HX_STACK_VAR(sound,"sound"); HX_STACK_LINE(439) if ((::openfl::Assets_obj::isValidSound(sound))){ HX_STACK_LINE(439) return sound; } } HX_STACK_LINE(447) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(448) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(449) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(451) if (((library != null()))){ HX_STACK_LINE(451) if ((library->exists(symbolName,::openfl::AssetType_obj::SOUND))){ HX_STACK_LINE(453) if ((library->isLocal(symbolName,::openfl::AssetType_obj::SOUND))){ HX_STACK_LINE(457) ::flash::media::Sound sound = library->getSound(symbolName); HX_STACK_VAR(sound,"sound"); HX_STACK_LINE(459) if (((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled)))){ HX_STACK_LINE(459) ::openfl::Assets_obj::cache->sound->set(id,sound); } HX_STACK_LINE(465) return sound; } else{ HX_STACK_LINE(467) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] Sound asset \"") + id) + HX_CSTRING("\" exists, but only asynchronously")),hx::SourceInfo(HX_CSTRING("Assets.hx"),469,HX_CSTRING("openfl.Assets"),HX_CSTRING("getSound"))); } } else{ HX_STACK_LINE(473) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no Sound asset with an ID of \"") + id) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),475,HX_CSTRING("openfl.Assets"),HX_CSTRING("getSound"))); } } else{ HX_STACK_LINE(479) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),481,HX_CSTRING("openfl.Assets"),HX_CSTRING("getSound"))); } HX_STACK_LINE(487) return null(); } } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,getSound,return ) ::String Assets_obj::getText( ::String id){ HX_STACK_PUSH("Assets::getText","openfl/Assets.hx",498); HX_STACK_ARG(id,"id"); HX_STACK_LINE(500) ::flash::utils::ByteArray bytes = ::openfl::Assets_obj::getBytes(id); HX_STACK_VAR(bytes,"bytes"); HX_STACK_LINE(502) if (((bytes == null()))){ HX_STACK_LINE(502) return null(); } else{ HX_STACK_LINE(506) return bytes->readUTFBytes(bytes->length); } HX_STACK_LINE(502) return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,getText,return ) Void Assets_obj::initialize( ){ { HX_STACK_PUSH("Assets::initialize","openfl/Assets.hx",515); HX_STACK_LINE(515) if ((!(::openfl::Assets_obj::initialized))){ HX_STACK_LINE(521) ::openfl::Assets_obj::registerLibrary(HX_CSTRING("default"),::DefaultAssetLibrary_obj::__new()); HX_STACK_LINE(525) ::openfl::Assets_obj::initialized = true; } } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC0(Assets_obj,initialize,(void)) bool Assets_obj::isLocal( ::String id,::openfl::AssetType type,hx::Null< bool > __o_useCache){ bool useCache = __o_useCache.Default(true); HX_STACK_PUSH("Assets::isLocal","openfl/Assets.hx",532); HX_STACK_ARG(id,"id"); HX_STACK_ARG(type,"type"); HX_STACK_ARG(useCache,"useCache"); { HX_STACK_LINE(534) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(538) if (((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled)))){ HX_STACK_LINE(540) if (((bool((type == ::openfl::AssetType_obj::IMAGE)) || bool((type == null()))))){ HX_STACK_LINE(540) if ((::openfl::Assets_obj::cache->bitmapData->exists(id))){ HX_STACK_LINE(542) return true; } } HX_STACK_LINE(546) if (((bool((type == ::openfl::AssetType_obj::FONT)) || bool((type == null()))))){ HX_STACK_LINE(546) if ((::openfl::Assets_obj::cache->font->exists(id))){ HX_STACK_LINE(548) return true; } } HX_STACK_LINE(552) if (((bool((bool((type == ::openfl::AssetType_obj::SOUND)) || bool((type == ::openfl::AssetType_obj::MUSIC)))) || bool((type == null()))))){ HX_STACK_LINE(552) if ((::openfl::Assets_obj::cache->sound->exists(id))){ HX_STACK_LINE(554) return true; } } } HX_STACK_LINE(560) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(561) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(562) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(564) if (((library != null()))){ HX_STACK_LINE(564) return library->isLocal(symbolName,type); } HX_STACK_LINE(572) return false; } } STATIC_HX_DEFINE_DYNAMIC_FUNC3(Assets_obj,isLocal,return ) bool Assets_obj::isValidBitmapData( ::flash::display::BitmapData bitmapData){ HX_STACK_PUSH("Assets::isValidBitmapData","openfl/Assets.hx",577); HX_STACK_ARG(bitmapData,"bitmapData"); HX_STACK_LINE(581) return (bitmapData->__handle != null()); HX_STACK_LINE(597) return true; } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,isValidBitmapData,return ) bool Assets_obj::isValidSound( ::flash::media::Sound sound){ HX_STACK_PUSH("Assets::isValidSound","openfl/Assets.hx",602); HX_STACK_ARG(sound,"sound"); HX_STACK_LINE(602) return (bool((sound->__handle != null())) && bool((sound->__handle != (int)0))); } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,isValidSound,return ) Void Assets_obj::loadBitmapData( ::String id,Dynamic handler,hx::Null< bool > __o_useCache){ bool useCache = __o_useCache.Default(true); HX_STACK_PUSH("Assets::loadBitmapData","openfl/Assets.hx",617); HX_STACK_ARG(id,"id"); HX_STACK_ARG(handler,"handler"); HX_STACK_ARG(useCache,"useCache"); { HX_STACK_LINE(617) Dynamic handler1 = Dynamic( Array_obj<Dynamic>::__new().Add(handler)); HX_STACK_VAR(handler1,"handler1"); HX_STACK_LINE(617) Array< ::String > id1 = Array_obj< ::String >::__new().Add(id); HX_STACK_VAR(id1,"id1"); HX_STACK_LINE(619) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(623) if (((bool((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled))) && bool(::openfl::Assets_obj::cache->bitmapData->exists(id1->__get((int)0)))))){ HX_STACK_LINE(625) ::flash::display::BitmapData bitmapData = ::openfl::Assets_obj::cache->bitmapData->get(id1->__get((int)0)); HX_STACK_VAR(bitmapData,"bitmapData"); HX_STACK_LINE(627) if ((::openfl::Assets_obj::isValidBitmapData(bitmapData))){ HX_STACK_LINE(629) handler1->__GetItem((int)0)(bitmapData).Cast< Void >(); HX_STACK_LINE(630) return null(); } } HX_STACK_LINE(636) ::String libraryName = id1->__get((int)0).substring((int)0,id1->__get((int)0).indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(637) ::String symbolName = id1->__get((int)0).substr((id1->__get((int)0).indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(638) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(640) if (((library != null()))){ HX_STACK_LINE(640) if ((library->exists(symbolName,::openfl::AssetType_obj::IMAGE))){ HX_STACK_LINE(644) if (((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled)))){ HX_BEGIN_LOCAL_FUNC_S2(hx::LocalFunc,_Function_4_1,Array< ::String >,id1,Dynamic,handler1) Void run(::flash::display::BitmapData bitmapData){ HX_STACK_PUSH("*::_Function_4_1","openfl/Assets.hx",646); HX_STACK_ARG(bitmapData,"bitmapData"); { HX_STACK_LINE(648) ::openfl::Assets_obj::cache->bitmapData->set(id1->__get((int)0),bitmapData); HX_STACK_LINE(649) handler1->__GetItem((int)0)(bitmapData).Cast< Void >(); } return null(); } HX_END_LOCAL_FUNC1((void)) HX_STACK_LINE(644) library->loadBitmapData(symbolName, Dynamic(new _Function_4_1(id1,handler1))); } else{ HX_STACK_LINE(653) library->loadBitmapData(symbolName,handler1->__GetItem((int)0)); } HX_STACK_LINE(659) return null(); } else{ HX_STACK_LINE(661) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no BitmapData asset with an ID of \"") + id1->__get((int)0)) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),663,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadBitmapData"))); } } else{ HX_STACK_LINE(667) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),669,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadBitmapData"))); } HX_STACK_LINE(675) handler1->__GetItem((int)0)(null()).Cast< Void >(); } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC3(Assets_obj,loadBitmapData,(void)) Void Assets_obj::loadBytes( ::String id,Dynamic handler){ { HX_STACK_PUSH("Assets::loadBytes","openfl/Assets.hx",680); HX_STACK_ARG(id,"id"); HX_STACK_ARG(handler,"handler"); HX_STACK_LINE(682) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(686) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(687) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(688) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(690) if (((library != null()))){ HX_STACK_LINE(690) if ((library->exists(symbolName,::openfl::AssetType_obj::BINARY))){ HX_STACK_LINE(694) library->loadBytes(symbolName,handler); HX_STACK_LINE(695) return null(); } else{ HX_STACK_LINE(697) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no String or ByteArray asset with an ID of \"") + id) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),699,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadBytes"))); } } else{ HX_STACK_LINE(703) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),705,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadBytes"))); } HX_STACK_LINE(711) handler(null()).Cast< Void >(); } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,loadBytes,(void)) Void Assets_obj::loadFont( ::String id,Dynamic handler,hx::Null< bool > __o_useCache){ bool useCache = __o_useCache.Default(true); HX_STACK_PUSH("Assets::loadFont","openfl/Assets.hx",716); HX_STACK_ARG(id,"id"); HX_STACK_ARG(handler,"handler"); HX_STACK_ARG(useCache,"useCache"); { HX_STACK_LINE(716) Dynamic handler1 = Dynamic( Array_obj<Dynamic>::__new().Add(handler)); HX_STACK_VAR(handler1,"handler1"); HX_STACK_LINE(716) Array< ::String > id1 = Array_obj< ::String >::__new().Add(id); HX_STACK_VAR(id1,"id1"); HX_STACK_LINE(718) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(722) if (((bool((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled))) && bool(::openfl::Assets_obj::cache->font->exists(id1->__get((int)0)))))){ HX_STACK_LINE(724) handler1->__GetItem((int)0)(::openfl::Assets_obj::cache->font->get(id1->__get((int)0))).Cast< Void >(); HX_STACK_LINE(725) return null(); } HX_STACK_LINE(729) ::String libraryName = id1->__get((int)0).substring((int)0,id1->__get((int)0).indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(730) ::String symbolName = id1->__get((int)0).substr((id1->__get((int)0).indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(731) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(733) if (((library != null()))){ HX_STACK_LINE(733) if ((library->exists(symbolName,::openfl::AssetType_obj::FONT))){ HX_STACK_LINE(737) if (((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled)))){ HX_BEGIN_LOCAL_FUNC_S2(hx::LocalFunc,_Function_4_1,Array< ::String >,id1,Dynamic,handler1) Void run(::flash::text::Font font){ HX_STACK_PUSH("*::_Function_4_1","openfl/Assets.hx",739); HX_STACK_ARG(font,"font"); { HX_STACK_LINE(741) ::openfl::Assets_obj::cache->font->set(id1->__get((int)0),font); HX_STACK_LINE(742) handler1->__GetItem((int)0)(font).Cast< Void >(); } return null(); } HX_END_LOCAL_FUNC1((void)) HX_STACK_LINE(737) library->loadFont(symbolName, Dynamic(new _Function_4_1(id1,handler1))); } else{ HX_STACK_LINE(746) library->loadFont(symbolName,handler1->__GetItem((int)0)); } HX_STACK_LINE(752) return null(); } else{ HX_STACK_LINE(754) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no Font asset with an ID of \"") + id1->__get((int)0)) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),756,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadFont"))); } } else{ HX_STACK_LINE(760) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),762,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadFont"))); } HX_STACK_LINE(768) handler1->__GetItem((int)0)(null()).Cast< Void >(); } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC3(Assets_obj,loadFont,(void)) Void Assets_obj::loadLibrary( ::String name,Dynamic handler){ { HX_STACK_PUSH("Assets::loadLibrary","openfl/Assets.hx",773); HX_STACK_ARG(name,"name"); HX_STACK_ARG(handler,"handler"); HX_STACK_LINE(775) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(779) ::String data = ::openfl::Assets_obj::getText(((HX_CSTRING("libraries/") + name) + HX_CSTRING(".dat"))); HX_STACK_VAR(data,"data"); HX_STACK_LINE(781) if (((bool((data != null())) && bool((data != HX_CSTRING("")))))){ HX_STACK_LINE(783) ::haxe::Unserializer unserializer = ::haxe::Unserializer_obj::__new(data); HX_STACK_VAR(unserializer,"unserializer"); struct _Function_2_1{ inline static Dynamic Block( ){ HX_STACK_PUSH("*::closure","openfl/Assets.hx",784); { hx::Anon __result = hx::Anon_obj::Create(); __result->Add(HX_CSTRING("resolveEnum") , ::openfl::Assets_obj::resolveEnum_dyn(),false); __result->Add(HX_CSTRING("resolveClass") , ::openfl::Assets_obj::resolveClass_dyn(),false); return __result; } return null(); } }; HX_STACK_LINE(784) unserializer->setResolver(_Function_2_1::Block()); HX_STACK_LINE(786) ::openfl::AssetLibrary library = unserializer->unserialize(); HX_STACK_VAR(library,"library"); HX_STACK_LINE(787) ::openfl::Assets_obj::libraries->set(name,library); HX_STACK_LINE(788) library->load(handler); } else{ HX_STACK_LINE(790) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + name) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),792,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadLibrary"))); } } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,loadLibrary,(void)) Void Assets_obj::loadMusic( ::String id,Dynamic handler,hx::Null< bool > __o_useCache){ bool useCache = __o_useCache.Default(true); HX_STACK_PUSH("Assets::loadMusic","openfl/Assets.hx",801); HX_STACK_ARG(id,"id"); HX_STACK_ARG(handler,"handler"); HX_STACK_ARG(useCache,"useCache"); { HX_STACK_LINE(801) Dynamic handler1 = Dynamic( Array_obj<Dynamic>::__new().Add(handler)); HX_STACK_VAR(handler1,"handler1"); HX_STACK_LINE(801) Array< ::String > id1 = Array_obj< ::String >::__new().Add(id); HX_STACK_VAR(id1,"id1"); HX_STACK_LINE(803) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(807) if (((bool((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled))) && bool(::openfl::Assets_obj::cache->sound->exists(id1->__get((int)0)))))){ HX_STACK_LINE(809) ::flash::media::Sound sound = ::openfl::Assets_obj::cache->sound->get(id1->__get((int)0)); HX_STACK_VAR(sound,"sound"); HX_STACK_LINE(811) if ((::openfl::Assets_obj::isValidSound(sound))){ HX_STACK_LINE(813) handler1->__GetItem((int)0)(sound).Cast< Void >(); HX_STACK_LINE(814) return null(); } } HX_STACK_LINE(820) ::String libraryName = id1->__get((int)0).substring((int)0,id1->__get((int)0).indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(821) ::String symbolName = id1->__get((int)0).substr((id1->__get((int)0).indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(822) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(824) if (((library != null()))){ HX_STACK_LINE(824) if ((library->exists(symbolName,::openfl::AssetType_obj::MUSIC))){ HX_STACK_LINE(828) if (((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled)))){ HX_BEGIN_LOCAL_FUNC_S2(hx::LocalFunc,_Function_4_1,Array< ::String >,id1,Dynamic,handler1) Void run(::flash::media::Sound sound){ HX_STACK_PUSH("*::_Function_4_1","openfl/Assets.hx",830); HX_STACK_ARG(sound,"sound"); { HX_STACK_LINE(832) ::openfl::Assets_obj::cache->sound->set(id1->__get((int)0),sound); HX_STACK_LINE(833) handler1->__GetItem((int)0)(sound).Cast< Void >(); } return null(); } HX_END_LOCAL_FUNC1((void)) HX_STACK_LINE(828) library->loadMusic(symbolName, Dynamic(new _Function_4_1(id1,handler1))); } else{ HX_STACK_LINE(837) library->loadMusic(symbolName,handler1->__GetItem((int)0)); } HX_STACK_LINE(843) return null(); } else{ HX_STACK_LINE(845) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no Sound asset with an ID of \"") + id1->__get((int)0)) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),847,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadMusic"))); } } else{ HX_STACK_LINE(851) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),853,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadMusic"))); } HX_STACK_LINE(859) handler1->__GetItem((int)0)(null()).Cast< Void >(); } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC3(Assets_obj,loadMusic,(void)) Void Assets_obj::loadMovieClip( ::String id,Dynamic handler){ { HX_STACK_PUSH("Assets::loadMovieClip","openfl/Assets.hx",864); HX_STACK_ARG(id,"id"); HX_STACK_ARG(handler,"handler"); HX_STACK_LINE(866) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(870) ::String libraryName = id.substring((int)0,id.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(871) ::String symbolName = id.substr((id.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(872) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(874) if (((library != null()))){ HX_STACK_LINE(874) if ((library->exists(symbolName,::openfl::AssetType_obj::MOVIE_CLIP))){ HX_STACK_LINE(878) library->loadMovieClip(symbolName,handler); HX_STACK_LINE(879) return null(); } else{ HX_STACK_LINE(881) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no MovieClip asset with an ID of \"") + id) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),883,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadMovieClip"))); } } else{ HX_STACK_LINE(887) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),889,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadMovieClip"))); } HX_STACK_LINE(895) handler(null()).Cast< Void >(); } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,loadMovieClip,(void)) Void Assets_obj::loadSound( ::String id,Dynamic handler,hx::Null< bool > __o_useCache){ bool useCache = __o_useCache.Default(true); HX_STACK_PUSH("Assets::loadSound","openfl/Assets.hx",900); HX_STACK_ARG(id,"id"); HX_STACK_ARG(handler,"handler"); HX_STACK_ARG(useCache,"useCache"); { HX_STACK_LINE(900) Dynamic handler1 = Dynamic( Array_obj<Dynamic>::__new().Add(handler)); HX_STACK_VAR(handler1,"handler1"); HX_STACK_LINE(900) Array< ::String > id1 = Array_obj< ::String >::__new().Add(id); HX_STACK_VAR(id1,"id1"); HX_STACK_LINE(902) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(906) if (((bool((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled))) && bool(::openfl::Assets_obj::cache->sound->exists(id1->__get((int)0)))))){ HX_STACK_LINE(908) ::flash::media::Sound sound = ::openfl::Assets_obj::cache->sound->get(id1->__get((int)0)); HX_STACK_VAR(sound,"sound"); HX_STACK_LINE(910) if ((::openfl::Assets_obj::isValidSound(sound))){ HX_STACK_LINE(912) handler1->__GetItem((int)0)(sound).Cast< Void >(); HX_STACK_LINE(913) return null(); } } HX_STACK_LINE(919) ::String libraryName = id1->__get((int)0).substring((int)0,id1->__get((int)0).indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(920) ::String symbolName = id1->__get((int)0).substr((id1->__get((int)0).indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(921) ::openfl::AssetLibrary library = ::openfl::Assets_obj::getLibrary(libraryName); HX_STACK_VAR(library,"library"); HX_STACK_LINE(923) if (((library != null()))){ HX_STACK_LINE(923) if ((library->exists(symbolName,::openfl::AssetType_obj::SOUND))){ HX_STACK_LINE(927) if (((bool(useCache) && bool(::openfl::Assets_obj::cache->enabled)))){ HX_BEGIN_LOCAL_FUNC_S2(hx::LocalFunc,_Function_4_1,Array< ::String >,id1,Dynamic,handler1) Void run(::flash::media::Sound sound){ HX_STACK_PUSH("*::_Function_4_1","openfl/Assets.hx",929); HX_STACK_ARG(sound,"sound"); { HX_STACK_LINE(931) ::openfl::Assets_obj::cache->sound->set(id1->__get((int)0),sound); HX_STACK_LINE(932) handler1->__GetItem((int)0)(sound).Cast< Void >(); } return null(); } HX_END_LOCAL_FUNC1((void)) HX_STACK_LINE(927) library->loadSound(symbolName, Dynamic(new _Function_4_1(id1,handler1))); } else{ HX_STACK_LINE(936) library->loadSound(symbolName,handler1->__GetItem((int)0)); } HX_STACK_LINE(942) return null(); } else{ HX_STACK_LINE(944) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no Sound asset with an ID of \"") + id1->__get((int)0)) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),946,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadSound"))); } } else{ HX_STACK_LINE(950) ::haxe::Log_obj::trace(((HX_CSTRING("[openfl.Assets] There is no asset library named \"") + libraryName) + HX_CSTRING("\"")),hx::SourceInfo(HX_CSTRING("Assets.hx"),952,HX_CSTRING("openfl.Assets"),HX_CSTRING("loadSound"))); } HX_STACK_LINE(958) handler1->__GetItem((int)0)(null()).Cast< Void >(); } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC3(Assets_obj,loadSound,(void)) Void Assets_obj::loadText( ::String id,Dynamic handler){ { HX_STACK_PUSH("Assets::loadText","openfl/Assets.hx",963); HX_STACK_ARG(id,"id"); HX_STACK_ARG(handler,"handler"); HX_STACK_LINE(963) Dynamic handler1 = Dynamic( Array_obj<Dynamic>::__new().Add(handler)); HX_STACK_VAR(handler1,"handler1"); HX_STACK_LINE(965) ::openfl::Assets_obj::initialize(); HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_Function_1_1,Dynamic,handler1) Void run(::flash::utils::ByteArray bytes){ HX_STACK_PUSH("*::_Function_1_1","openfl/Assets.hx",969); HX_STACK_ARG(bytes,"bytes"); { HX_STACK_LINE(969) if (((bytes == null()))){ HX_STACK_LINE(971) handler1->__GetItem((int)0)(null()).Cast< Void >(); } else{ HX_STACK_LINE(975) handler1->__GetItem((int)0)(bytes->readUTFBytes(bytes->length)).Cast< Void >(); } } return null(); } HX_END_LOCAL_FUNC1((void)) HX_STACK_LINE(969) Dynamic callback = Dynamic(new _Function_1_1(handler1)); HX_STACK_VAR(callback,"callback"); HX_STACK_LINE(983) ::openfl::Assets_obj::loadBytes(id,callback); } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,loadText,(void)) Void Assets_obj::registerLibrary( ::String name,::openfl::AssetLibrary library){ { HX_STACK_PUSH("Assets::registerLibrary","openfl/Assets.hx",994); HX_STACK_ARG(name,"name"); HX_STACK_ARG(library,"library"); HX_STACK_LINE(996) if ((::openfl::Assets_obj::libraries->exists(name))){ HX_STACK_LINE(996) ::openfl::Assets_obj::unloadLibrary(name); } HX_STACK_LINE(1002) ::openfl::Assets_obj::libraries->set(name,library); } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Assets_obj,registerLibrary,(void)) ::Class Assets_obj::resolveClass( ::String name){ HX_STACK_PUSH("Assets::resolveClass","openfl/Assets.hx",1007); HX_STACK_ARG(name,"name"); HX_STACK_LINE(1007) return ::Type_obj::resolveClass(name); } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,resolveClass,return ) ::Enum Assets_obj::resolveEnum( ::String name){ HX_STACK_PUSH("Assets::resolveEnum","openfl/Assets.hx",1014); HX_STACK_ARG(name,"name"); HX_STACK_LINE(1016) ::Enum value = ::Type_obj::resolveEnum(name); HX_STACK_VAR(value,"value"); HX_STACK_LINE(1028) return value; } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,resolveEnum,return ) Void Assets_obj::unloadLibrary( ::String name){ { HX_STACK_PUSH("Assets::unloadLibrary","openfl/Assets.hx",1033); HX_STACK_ARG(name,"name"); HX_STACK_LINE(1035) ::openfl::Assets_obj::initialize(); HX_STACK_LINE(1039) Dynamic keys = ::openfl::Assets_obj::cache->bitmapData->keys(); HX_STACK_VAR(keys,"keys"); HX_STACK_LINE(1041) for(::cpp::FastIterator_obj< ::String > *__it = ::cpp::CreateFastIterator< ::String >(keys); __it->hasNext(); ){ ::String key = __it->next(); { HX_STACK_LINE(1043) ::String libraryName = key.substring((int)0,key.indexOf(HX_CSTRING(":"),null())); HX_STACK_VAR(libraryName,"libraryName"); HX_STACK_LINE(1044) ::String symbolName = key.substr((key.indexOf(HX_CSTRING(":"),null()) + (int)1),null()); HX_STACK_VAR(symbolName,"symbolName"); HX_STACK_LINE(1046) if (((libraryName == name))){ HX_STACK_LINE(1046) ::openfl::Assets_obj::cache->bitmapData->remove(key); } } ; } HX_STACK_LINE(1054) ::openfl::Assets_obj::libraries->remove(name); } return null(); } STATIC_HX_DEFINE_DYNAMIC_FUNC1(Assets_obj,unloadLibrary,(void)) Assets_obj::Assets_obj() { } void Assets_obj::__Mark(HX_MARK_PARAMS) { HX_MARK_BEGIN_CLASS(Assets); HX_MARK_END_CLASS(); } void Assets_obj::__Visit(HX_VISIT_PARAMS) { } Dynamic Assets_obj::__Field(const ::String &inName,bool inCallProp) { switch(inName.length) { case 5: if (HX_FIELD_EQ(inName,"cache") ) { return cache; } break; case 6: if (HX_FIELD_EQ(inName,"exists") ) { return exists_dyn(); } break; case 7: if (HX_FIELD_EQ(inName,"getFont") ) { return getFont_dyn(); } if (HX_FIELD_EQ(inName,"getPath") ) { return getPath_dyn(); } if (HX_FIELD_EQ(inName,"getText") ) { return getText_dyn(); } if (HX_FIELD_EQ(inName,"isLocal") ) { return isLocal_dyn(); } break; case 8: if (HX_FIELD_EQ(inName,"getBytes") ) { return getBytes_dyn(); } if (HX_FIELD_EQ(inName,"getMusic") ) { return getMusic_dyn(); } if (HX_FIELD_EQ(inName,"getSound") ) { return getSound_dyn(); } if (HX_FIELD_EQ(inName,"loadFont") ) { return loadFont_dyn(); } if (HX_FIELD_EQ(inName,"loadText") ) { return loadText_dyn(); } break; case 9: if (HX_FIELD_EQ(inName,"libraries") ) { return libraries; } if (HX_FIELD_EQ(inName,"loadBytes") ) { return loadBytes_dyn(); } if (HX_FIELD_EQ(inName,"loadMusic") ) { return loadMusic_dyn(); } if (HX_FIELD_EQ(inName,"loadSound") ) { return loadSound_dyn(); } break; case 10: if (HX_FIELD_EQ(inName,"getLibrary") ) { return getLibrary_dyn(); } if (HX_FIELD_EQ(inName,"initialize") ) { return initialize_dyn(); } break; case 11: if (HX_FIELD_EQ(inName,"initialized") ) { return initialized; } if (HX_FIELD_EQ(inName,"loadLibrary") ) { return loadLibrary_dyn(); } if (HX_FIELD_EQ(inName,"resolveEnum") ) { return resolveEnum_dyn(); } break; case 12: if (HX_FIELD_EQ(inName,"getMovieClip") ) { return getMovieClip_dyn(); } if (HX_FIELD_EQ(inName,"isValidSound") ) { return isValidSound_dyn(); } if (HX_FIELD_EQ(inName,"resolveClass") ) { return resolveClass_dyn(); } break; case 13: if (HX_FIELD_EQ(inName,"getBitmapData") ) { return getBitmapData_dyn(); } if (HX_FIELD_EQ(inName,"loadMovieClip") ) { return loadMovieClip_dyn(); } if (HX_FIELD_EQ(inName,"unloadLibrary") ) { return unloadLibrary_dyn(); } break; case 14: if (HX_FIELD_EQ(inName,"loadBitmapData") ) { return loadBitmapData_dyn(); } break; case 15: if (HX_FIELD_EQ(inName,"registerLibrary") ) { return registerLibrary_dyn(); } break; case 17: if (HX_FIELD_EQ(inName,"isValidBitmapData") ) { return isValidBitmapData_dyn(); } } return super::__Field(inName,inCallProp); } Dynamic Assets_obj::__SetField(const ::String &inName,const Dynamic &inValue,bool inCallProp) { switch(inName.length) { case 5: if (HX_FIELD_EQ(inName,"cache") ) { cache=inValue.Cast< ::openfl::AssetCache >(); return inValue; } break; case 9: if (HX_FIELD_EQ(inName,"libraries") ) { libraries=inValue.Cast< ::haxe::ds::StringMap >(); return inValue; } break; case 11: if (HX_FIELD_EQ(inName,"initialized") ) { initialized=inValue.Cast< bool >(); return inValue; } } return super::__SetField(inName,inValue,inCallProp); } void Assets_obj::__GetFields(Array< ::String> &outFields) { super::__GetFields(outFields); }; static ::String sStaticFields[] = { HX_CSTRING("cache"), HX_CSTRING("libraries"), HX_CSTRING("initialized"), HX_CSTRING("exists"), HX_CSTRING("getBitmapData"), HX_CSTRING("getBytes"), HX_CSTRING("getFont"), HX_CSTRING("getLibrary"), HX_CSTRING("getMovieClip"), HX_CSTRING("getMusic"), HX_CSTRING("getPath"), HX_CSTRING("getSound"), HX_CSTRING("getText"), HX_CSTRING("initialize"), HX_CSTRING("isLocal"), HX_CSTRING("isValidBitmapData"), HX_CSTRING("isValidSound"), HX_CSTRING("loadBitmapData"), HX_CSTRING("loadBytes"), HX_CSTRING("loadFont"), HX_CSTRING("loadLibrary"), HX_CSTRING("loadMusic"), HX_CSTRING("loadMovieClip"), HX_CSTRING("loadSound"), HX_CSTRING("loadText"), HX_CSTRING("registerLibrary"), HX_CSTRING("resolveClass"), HX_CSTRING("resolveEnum"), HX_CSTRING("unloadLibrary"), String(null()) }; static ::String sMemberFields[] = { String(null()) }; static void sMarkStatics(HX_MARK_PARAMS) { HX_MARK_MEMBER_NAME(Assets_obj::__mClass,"__mClass"); HX_MARK_MEMBER_NAME(Assets_obj::cache,"cache"); HX_MARK_MEMBER_NAME(Assets_obj::libraries,"libraries"); HX_MARK_MEMBER_NAME(Assets_obj::initialized,"initialized"); }; static void sVisitStatics(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(Assets_obj::__mClass,"__mClass"); HX_VISIT_MEMBER_NAME(Assets_obj::cache,"cache"); HX_VISIT_MEMBER_NAME(Assets_obj::libraries,"libraries"); HX_VISIT_MEMBER_NAME(Assets_obj::initialized,"initialized"); }; Class Assets_obj::__mClass; void Assets_obj::__register() { hx::Static(__mClass) = hx::RegisterClass(HX_CSTRING("openfl.Assets"), hx::TCanCast< Assets_obj> ,sStaticFields,sMemberFields, &__CreateEmpty, &__Create, &super::__SGetClass(), 0, sMarkStatics, sVisitStatics); } void Assets_obj::__boot() { cache= ::openfl::AssetCache_obj::__new(); libraries= ::haxe::ds::StringMap_obj::__new(); initialized= false; } } // end namespace openfl
mit
usainzg/todo-proyect
Proyect/app/src/main/java/com/codi6/proyect/ui/fragments/ItemFragment.java
1410
package com.codi6.proyect.ui.fragments; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.codi6.proyect.R; public class ItemFragment extends Fragment{ private static final String ARG_COLUMN_COUNT = "column-count"; private int mColumnCount = 1; /** * Mandatory empty constructor for the fragment manager to instantiate the * fragment (e.g. upon screen orientation changes). */ public ItemFragment() { } public static ItemFragment newInstance(int columnCount){ ItemFragment fragment = new ItemFragment(); Bundle args = new Bundle(); args.putInt(ARG_COLUMN_COUNT, columnCount); fragment.setArguments(args); return fragment; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mColumnCount = getArguments().getInt(ARG_COLUMN_COUNT); } } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_item_list, container, false); return view; } @Override public void onDestroy() { super.onDestroy(); } }
mit
Alfie-mx/BCIT_clientProject
src/Earls/LeaseBundle/Entity/Directors.php
3684
<?php namespace Earls\LeaseBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Directors * * @ORM\Table(name="directors") * @ORM\Entity */ class Directors { /** * @var string * * @ORM\Column(name="directorName", type="string", length=255, nullable=true) */ private $directorname; /** * @var string * * @ORM\Column(name="address", type="string", length=255, nullable=true) */ private $address; /** * @var string * * @ORM\Column(name="postalZip", type="string", length=45, nullable=true) */ private $postalzip; /** * @var integer * * @ORM\Column(name="directorID", type="smallint") * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ private $directorid; /** * @var \Earls\LeaseBundle\Entity\Provincestate * * @ORM\ManyToOne(targetEntity="Earls\LeaseBundle\Entity\Provincestate") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="provinceStateID", referencedColumnName="provinceStateID") * }) */ private $provincestateid; /** * @var \Earls\LeaseBundle\Entity\Northamericancities * * @ORM\ManyToOne(targetEntity="Earls\LeaseBundle\Entity\Northamericancities") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="city", referencedColumnName="northAmericanCityID") * }) */ private $city; /** * Set directorname * * @param string $directorname * @return Directors */ public function setDirectorname($directorname) { $this->directorname = $directorname; return $this; } /** * Get directorname * * @return string */ public function getDirectorname() { return $this->directorname; } /** * Set address * * @param string $address * @return Directors */ public function setAddress($address) { $this->address = $address; return $this; } /** * Get address * * @return string */ public function getAddress() { return $this->address; } /** * Set postalzip * * @param string $postalzip * @return Directors */ public function setPostalzip($postalzip) { $this->postalzip = $postalzip; return $this; } /** * Get postalzip * * @return string */ public function getPostalzip() { return $this->postalzip; } /** * Get directorid * * @return integer */ public function getDirectorid() { return $this->directorid; } /** * Set provincestateid * * @param \Earls\LeaseBundle\Entity\Provincestate $provincestateid * @return Directors */ public function setProvincestateid(\Earls\LeaseBundle\Entity\Provincestate $provincestateid = null) { $this->provincestateid = $provincestateid; return $this; } /** * Get provincestateid * * @return \Earls\LeaseBundle\Entity\Provincestate */ public function getProvincestateid() { return $this->provincestateid; } /** * Set city * * @param \Earls\LeaseBundle\Entity\Northamericancities $city * @return Directors */ public function setCity(\Earls\LeaseBundle\Entity\Northamericancities $city = null) { $this->city = $city; return $this; } /** * Get city * * @return \Earls\LeaseBundle\Entity\Northamericancities */ public function getCity() { return $this->city; } }
mit
artsy/force
src/v2/Utils/Hooks/__tests__/useAuthValidation.jest.tsx
1644
import { renderHook } from "@testing-library/react-hooks" import { fetchQuery } from "react-relay" import { useAuthValidation } from "../useAuthValidation" import { logout } from "../../auth" import { flushPromiseQueue } from "v2/DevTools" jest.mock("react-relay") jest.mock("../../auth") describe("useAuthValidation", () => { const mockFetchQuery = fetchQuery as jest.Mock const mockLogout = logout as jest.Mock beforeEach(() => { mockLogout.mockImplementation(() => Promise.resolve()) }) afterEach(() => { mockFetchQuery.mockClear() mockLogout.mockClear() }) it("does nothing if the status is logged in", async () => { mockFetchQuery.mockImplementation(() => Promise.resolve({ authenticationStatus: "LOGGED_IN", }) ) expect(mockLogout).not.toBeCalled() renderHook(() => useAuthValidation()) await flushPromiseQueue() expect(mockLogout).not.toBeCalled() }) it("does nothing if the status is logged out", async () => { mockFetchQuery.mockImplementation(() => Promise.resolve({ authenticationStatus: "LOGGED_OUT", }) ) expect(mockLogout).not.toBeCalled() renderHook(() => useAuthValidation()) await flushPromiseQueue() expect(mockLogout).not.toBeCalled() }) it("logs out the user if the status is invalid", async () => { mockFetchQuery.mockImplementation(() => Promise.resolve({ authenticationStatus: "INVALID", }) ) expect(mockLogout).not.toBeCalled() renderHook(() => useAuthValidation()) await flushPromiseQueue() expect(mockLogout).toBeCalledTimes(1) }) })
mit
theofidry/alice
tests/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/StringArrayTokenParserTest.php
5128
<?php /* * This file is part of the Alice package. * * (c) Nelmio <hello@nelm.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParser\Chainable; use Nelmio\Alice\Throwable\Exception\FixtureBuilder\ExpressionLanguage\ParseException; use Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\ChainableTokenParserInterface; use Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\FakeParser; use Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface; use Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Token; use Nelmio\Alice\FixtureBuilder\ExpressionLanguage\TokenType; use Prophecy\Argument; /** * @covers \Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParser\Chainable\StringArrayTokenParser */ class StringArrayTokenParserTest extends \PHPUnit_Framework_TestCase { public function testIsAChainableTokenParser() { $this->assertTrue(is_a(StringArrayTokenParser::class, ChainableTokenParserInterface::class, true)); } /** * @expectedException \DomainException */ public function testIsNotClonable() { clone new StringArrayTokenParser(); } public function testCanParseDynamicArrayTokens() { $token = new Token('', new TokenType(TokenType::STRING_ARRAY_TYPE)); $anotherToken = new Token('', new TokenType(TokenType::IDENTITY_TYPE)); $parser = new StringArrayTokenParser(); $this->assertTrue($parser->canParse($token)); $this->assertFalse($parser->canParse($anotherToken)); } /** * @expectedException \Nelmio\Alice\Throwable\Exception\FixtureBuilder\ExpressionLanguage\ParserNotFoundException * @expectedExceptionMessage Expected method "Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParser\Chainable\AbstractChainableParserAwareParser::parse" to be called only if it has a parser. */ public function testThrowsAnExceptionIfNoDecoratedParserIsFound() { $token = new Token('', new TokenType(TokenType::STRING_ARRAY_TYPE)); $parser = new StringArrayTokenParser(); $parser->parse($token); } public function testThrowsAnErrorIfCouldNotParseToken() { try { $token = new Token('', new TokenType(TokenType::STRING_ARRAY_TYPE)); $parser = new StringArrayTokenParser(new FakeParser()); $parser->parse($token); $this->fail('Expected exception to be thrown.'); } catch (ParseException $exception) { $this->assertEquals( 'Could not parse the token "" (type: STRING_ARRAY_TYPE).', $exception->getMessage() ); $this->assertEquals(0, $exception->getCode()); $this->assertNotNull($exception->getPrevious()); } } public function testParsesEachArrayElementAndReturnsTheConstructedArray() { $token = new Token('[val1, val2]', new TokenType(TokenType::STRING_ARRAY_TYPE)); $decoratedParserProphecy = $this->prophesize(ParserInterface::class); $decoratedParserProphecy->parse('val1')->willReturn('parsed_val1'); $decoratedParserProphecy->parse('val2')->willReturn('parsed_val2'); /** @var ParserInterface $decoratedParser */ $decoratedParser = $decoratedParserProphecy->reveal(); $expected = ['parsed_val1', 'parsed_val2']; $parser = new StringArrayTokenParser($decoratedParser); $actual = $parser->parse($token); $this->assertEquals($expected, $actual); $decoratedParserProphecy->parse(Argument::any())->shouldHaveBeenCalledTimes(2); } public function testIsAbleToParseEmptyArrays() { $token = new Token('[]', new TokenType(TokenType::STRING_ARRAY_TYPE)); $decoratedParserProphecy = $this->prophesize(ParserInterface::class); $decoratedParserProphecy->parse(Argument::any())->shouldNotBeCalled(); /** @var ParserInterface $decoratedParser */ $decoratedParser = $decoratedParserProphecy->reveal(); $expected = []; $parser = new StringArrayTokenParser($decoratedParser); $actual = $parser->parse($token); $this->assertEquals($expected, $actual); } public function testTrimsEachArgumentValueBeforePassingThemToTheDecoratedParser() { $token = new Token('[ val1 , val2 ]', new TokenType(TokenType::STRING_ARRAY_TYPE)); $decoratedParserProphecy = $this->prophesize(ParserInterface::class); $decoratedParserProphecy->parse('val1')->willReturn('parsed_val1'); $decoratedParserProphecy->parse('val2')->willReturn('parsed_val2'); /** @var ParserInterface $decoratedParser */ $decoratedParser = $decoratedParserProphecy->reveal(); $expected = ['parsed_val1', 'parsed_val2']; $parser = new StringArrayTokenParser($decoratedParser); $actual = $parser->parse($token); $this->assertEquals($expected, $actual); } }
mit
idfive/UniCal
app/services/date.service.js
5030
(function() { 'use strict'; angular .module('calendar') .factory('dateService', dateService); dateService.$inject = []; function dateService() { var _defaultDateFormat = 'YYYY-MM-DD'; var service = { createDrupalDateFromPieces: createDrupalDateFromPieces, dateNow: dateNow, dateNowUnix: dateNowUnix, dateWeekArchiveStart: dateWeekArchiveStart, dateMonthArchiveStart: dateMonthArchiveStart, dateSixMonthsArchiveStart: dateSixMonthsArchiveStart, dateYearArchiveStart: dateYearArchiveStart, dateTodayStart: dateTodayStart, dateTodayEnd: dateTodayEnd, dateTomorrowStart: dateTomorrowStart, dateTomorrowEnd: dateTomorrowEnd, dateWeekStart: dateWeekStart, dateWeekEnd: dateWeekEnd, dateMonthStart: dateMonthStart, dateMonthEnd: dateMonthEnd, dateMonthCurrent: dateMonthCurrent, dateYearCurrent: dateYearCurrent }; return service; /* * Get date-time in correct format for Drupal * */ function createDrupalDateFromPieces(date, hour, minute, marker) { //Build time var time = hour + ':' + minute + ' ' + marker; //Build full date var dateTime = moment(date + ' ' + time, 'YYYY-MM-DD hh:mm A'); //Return date in 24-hour format return moment(dateTime); } /* * Date right now (Don't get minutes so we can cache better) * */ function dateNow(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().format(_defaultDateFormat + ' HH') + ':00:00'; } /* * Date right now in unix * */ function dateNowUnix() { return moment().unix(); } /* * Date a week ago, for archive * */ function dateWeekArchiveStart(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().subtract(7, 'days').format(_defaultDateFormat + ' HH') + ':00:00'; } /* * Date a month ago, for archive * */ function dateMonthArchiveStart(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().subtract(1, 'months').format(_defaultDateFormat + ' HH') + ':00:00'; } /* * Date six months ago, for archive * */ function dateSixMonthsArchiveStart(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().subtract(6, 'months').format(_defaultDateFormat + ' HH') + ':00:00'; } /* * Date a year ago, for archive * */ function dateYearArchiveStart(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().subtract(1, 'years').format(_defaultDateFormat + ' HH') + ':00:00'; } /* * Date at the start of today * */ function dateTodayStart(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().format(_defaultDateFormat) + ' 00:00:00'; } /* * Date at the end of today * */ function dateTodayEnd(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().format(_defaultDateFormat) + ' 23:59:59'; } /* * Date at the start of tomorrow * */ function dateTomorrowStart(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().add(1, 'days').format(_defaultDateFormat) + ' 00:00:00'; } /* * Date at the end of tomorrow * */ function dateTomorrowEnd(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().add(1, 'days').format(_defaultDateFormat) + ' 23:59:59'; } /* * Date at the start of the week * */ function dateWeekStart(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().startOf('week').format(_defaultDateFormat + ' HH:mm:ss'); } /* * Date at the end of the week * */ function dateWeekEnd(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().endOf('week').format(_defaultDateFormat + ' HH:mm:ss'); } /* * Date at the start of the month * */ function dateMonthStart(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().startOf('month').format(_defaultDateFormat + ' HH:mm:ss'); } /* * Date at the end of the month * */ function dateMonthEnd(dateFormat) { dateFormat = dateFormat || _defaultDateFormat; return moment().endOf('month').format(_defaultDateFormat + ' HH:mm:ss'); } /* * Returns current month as full name * */ function dateMonthCurrent(dateFormat) { dateFormat = dateFormat || 'MMMM'; return moment().format(dateFormat); } /* * Returns current year as four digit year * */ function dateYearCurrent(dateFormat) { dateFormat = dateFormat || 'YYYY'; return moment().format(dateFormat); } }; })();
mit
holderdeord/hdo-storting-importer
spec/hdo/storting_importer/vote_spec.rb
5598
# encoding: UTF-8 require 'spec_helper' module Hdo module StortingImporter describe Vote do it_behaves_like 'type with JSON schema' it_behaves_like 'type with #short_inspect' it "builds votes from the Storting XML list" do xml = <<-XML <?xml version="1.0" encoding="utf-8"?> <sak_votering_oversikt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://data.stortinget.no"> <versjon>1.0</versjon> <sak_id>51448</sak_id> <sak_votering_liste> <sak_votering> <versjon>1.0</versjon> <alternativ_votering_id>-1</alternativ_votering_id> <antall_for>2</antall_for> <antall_ikke_tilstede>71</antall_ikke_tilstede> <antall_mot>96</antall_mot> <behandlingsrekkefoelge>1</behandlingsrekkefoelge> <dagsorden_sak_nummer>2</dagsorden_sak_nummer> <fri_votering>false</fri_votering> <kommentar>Dette gikk fint.</kommentar> <personlig_votering>true</personlig_votering> <president> <versjon>1.0</versjon> <doedsdato>0001-01-01T00:00:00</doedsdato> <etternavn>Nybakk</etternavn> <foedselsdato>1947-02-14T00:00:00</foedselsdato> <fornavn>Marit</fornavn> <id>MN</id> <kjoenn>kvinne</kjoenn> <fylke> <versjon>1.0</versjon> <id>Os</id> <navn>Oslo</navn> </fylke> <parti> <versjon>1.0</versjon> <id>A</id> <navn>Arbeiderpartiet</navn> </parti> </president> <sak_id>51448</sak_id> <vedtatt>false</vedtatt> <votering_id>2175</votering_id> <votering_metode>ikke_spesifisert</votering_metode> <votering_resultat_type>ikke_spesifisert</votering_resultat_type> <votering_resultat_type_tekst i:nil="true" /> <votering_tema>Forslag 24 - 26 på vegne av Per Olaf Lundteigen</votering_tema> <votering_tid>2012-04-12T16:37:27.053</votering_tid> </sak_votering> </sak_votering_liste> </sak_votering_oversikt> XML votes = Vote.from_storting_doc(parse(xml)) votes.size.should == 1 vote = votes.first vote.external_id.should == "2175" vote.external_issue_id.should == "51448" vote.should be_personal vote.enacted.should be false vote.subject.should == 'Forslag 24 - 26 på vegne av Per Olaf Lundteigen' vote.method_name.should == 'ikke_spesifisert' vote.result_type.should == 'ikke_spesifisert' vote.time.should == '2012-04-12T16:37:27.053' vote.counts.for.should == 2 vote.counts.against.should == 96 vote.counts.absent.should == 71 vote.comment.should == 'Dette gikk fint.' end it 'can serialize as JSON' do Vote.example.to_json.should be_json <<-JSON { "kind": "hdo#vote", "external_id": "2175", "external_issue_id": "51448", "counts": { "for": 2, "against": 96, "absent": 71 }, "personal": true, "enacted": false, "subject": "Forslag 24 - 26 på vegne av Per Olaf Lundteigen", "method": "ikke_spesifisert", "result_type": "ikke_spesifisert", "time": "2012-04-12T16:37:27.053", "comment": "hei", "representatives": [ { "kind": "hdo#representative", "external_id": "ADA", "first_name": "André Oktay", "last_name": "Dahl", "email": "aod@stortinget.no", "gender": "M", "date_of_birth": "1975-07-07T00:00:00", "date_of_death": "0001-01-01T00:00:00", "district": "Akershus", "parties": [{"kind": "hdo#party_membership", "external_id": "H", "start_date": "2011-10-01", "end_date": null}], "committees": [{"kind": "hdo#committee_membership", "external_id": "JUSTIS", "start_date": "2011-10-01", "end_date": null}], "vote_result": "for" } ], "propositions": [ { "kind": "hdo#proposition", "external_id": "1234", "description": "description", "on_behalf_of": "on behalf of", "body": "body", "delivered_by": { "kind": "hdo#representative", "external_id": "ADA", "first_name": "André Oktay", "last_name": "Dahl", "email": "aod@stortinget.no", "gender": "M", "date_of_birth": "1975-07-07T00:00:00", "date_of_death": "0001-01-01T00:00:00", "district": "Akershus", "parties": [{"kind": "hdo#party_membership", "external_id": "H", "start_date": "2011-10-01", "end_date": null}], "committees": [{"kind": "hdo#committee_membership", "external_id": "JUSTIS", "start_date": "2011-10-01", "end_date": null}] } } ] } JSON end it 'can create a customized example' do obj = Vote.example('subject' => 'foo') obj.subject.should == 'foo' end end end end
mit
allenlooplee/AppBarUtils
AppBarUtils.TestApp (WP8)/ViewModels/ViewModelBase.cs
818
//=============================================================================== // Copyright © 2013 Allen Lee // This code released under the terms of the MIT License (http://appbarutils.codeplex.com/license) //=============================================================================== using System.ComponentModel; namespace AppBarUtils.TestApp.ViewModels { public class ViewModelBase : INotifyPropertyChanged { #region INotifyPropertyChanged implementation public event PropertyChangedEventHandler PropertyChanged; protected void RaisePropertyChanged(string propertyName) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } #endregion } }
mit
Clerenz/ElanReceiver
src/de/clemensloos/elan/receiver/util/SystemUiHider.java
5590
package de.clemensloos.elan.receiver.util; import android.app.Activity; import android.os.Build; import android.view.View; /** * A utility class that helps with showing and hiding system UI such as the * status bar and navigation/system bar. This class uses backward-compatibility * techniques described in <a href= * "http://developer.android.com/training/backward-compatible-ui/index.html"> * Creating Backward-Compatible UIs</a> to ensure that devices running any * version of ndroid OS are supported. More specifically, there are separate * implementations of this abstract class: for newer devices, * {@link #getInstance} will return a {@link SystemUiHiderHoneycomb} instance, * while on older devices {@link #getInstance} will return a * {@link SystemUiHiderBase} instance. * <p> * For more on system bars, see <a href= * "http://developer.android.com/design/get-started/ui-overview.html#system-bars" * > System Bars</a>. * * @see android.view.View#setSystemUiVisibility(int) * @see android.view.WindowManager.LayoutParams#FLAG_FULLSCREEN */ public abstract class SystemUiHider { /** * When this flag is set, the * {@link android.view.WindowManager.LayoutParams#FLAG_LAYOUT_IN_SCREEN} * flag will be set on older devices, making the status bar "float" on top * of the activity layout. This is most useful when there are no controls at * the top of the activity layout. * <p> * This flag isn't used on newer devices because the <a * href="http://developer.android.com/design/patterns/actionbar.html">action * bar</a>, the most important structural element of an Android app, should * be visible and not obscured by the system UI. */ public static final int FLAG_LAYOUT_IN_SCREEN_OLDER_DEVICES = 0x1; /** * When this flag is set, {@link #show()} and {@link #hide()} will toggle * the visibility of the status bar. If there is a navigation bar, show and * hide will toggle low profile mode. */ public static final int FLAG_FULLSCREEN = 0x2; /** * When this flag is set, {@link #show()} and {@link #hide()} will toggle * the visibility of the navigation bar, if it's present on the device and * the device allows hiding it. In cases where the navigation bar is present * but cannot be hidden, show and hide will toggle low profile mode. */ public static final int FLAG_HIDE_NAVIGATION = FLAG_FULLSCREEN | 0x4; /** * The activity associated with this UI hider object. */ protected Activity mActivity; /** * The view on which {@link View#setSystemUiVisibility(int)} will be called. */ protected View mAnchorView; /** * The current UI hider flags. * * @see #FLAG_FULLSCREEN * @see #FLAG_HIDE_NAVIGATION * @see #FLAG_LAYOUT_IN_SCREEN_OLDER_DEVICES */ protected int mFlags; /** * The current visibility callback. */ protected OnVisibilityChangeListener mOnVisibilityChangeListener = sDummyListener; /** * Creates and returns an instance of {@link SystemUiHider} that is * appropriate for this device. The object will be either a * {@link SystemUiHiderBase} or {@link SystemUiHiderHoneycomb} depending on * the device. * * @param activity * The activity whose window's system UI should be controlled by * this class. * @param anchorView * The view on which {@link View#setSystemUiVisibility(int)} will * be called. * @param flags * Either 0 or any combination of {@link #FLAG_FULLSCREEN}, * {@link #FLAG_HIDE_NAVIGATION}, and * {@link #FLAG_LAYOUT_IN_SCREEN_OLDER_DEVICES}. */ public static SystemUiHider getInstance(Activity activity, View anchorView, int flags) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { return new SystemUiHiderHoneycomb(activity, anchorView, flags); } else { return new SystemUiHiderBase(activity, anchorView, flags); } } protected SystemUiHider(Activity activity, View anchorView, int flags) { mActivity = activity; mAnchorView = anchorView; mFlags = flags; } /** * Sets up the system UI hider. Should be called from * {@link Activity#onCreate}. */ public abstract void setup(); /** * Returns whether or not the system UI is visible. */ public abstract boolean isVisible(); /** * Hide the system UI. */ public abstract void hide(); /** * Show the system UI. */ public abstract void show(); /** * Toggle the visibility of the system UI. */ public void toggle() { if (isVisible()) { hide(); } else { show(); } } /** * Registers a callback, to be triggered when the system UI visibility * changes. */ public void setOnVisibilityChangeListener( OnVisibilityChangeListener listener) { if (listener == null) { listener = sDummyListener; } mOnVisibilityChangeListener = listener; } /** * A dummy no-op callback for use when there is no other listener set. */ private static OnVisibilityChangeListener sDummyListener = new OnVisibilityChangeListener() { @Override public void onVisibilityChange(boolean visible) { } }; /** * A callback interface used to listen for system UI visibility changes. */ public interface OnVisibilityChangeListener { /** * Called when the system UI visibility has changed. * * @param visible * True if the system UI is visible. */ public void onVisibilityChange(boolean visible); } }
mit
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s05/CWE78_OS_Command_Injection__char_listen_socket_w32_spawnv_82_goodG2B.cpp
1272
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_listen_socket_w32_spawnv_82_goodG2B.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-82_goodG2B.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using a listen socket (server side) * GoodSource: Fixed string * Sinks: w32_spawnv * BadSink : execute command with spawnv * Flow Variant: 82 Data flow: data passed in a parameter to an virtual method called via a pointer * * */ #ifndef OMITGOOD #include "std_testcase.h" #include "CWE78_OS_Command_Injection__char_listen_socket_w32_spawnv_82.h" #include <process.h> namespace CWE78_OS_Command_Injection__char_listen_socket_w32_spawnv_82 { void CWE78_OS_Command_Injection__char_listen_socket_w32_spawnv_82_goodG2B::action(char * data) { { char *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* spawnv - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ _spawnv(_P_WAIT, COMMAND_INT_PATH, args); } } } #endif /* OMITGOOD */
mit
MRN-Code/coinstac
packages/coinstac-client-core/test/mock.js
994
const CORE_CONFIGURATION = { logger: { silly: () => {}, }, userId: 'test-1', logLevel: 'info', appDirectory: '/etc/coinstac', fileServer: { hostname: 'localhost', pathname: '/transfer', port: '3300', protocol: 'http:', }, mqttServer: { hostname: 'localhost', pathname: '', port: '1883', protocol: 'mqtt:', }, }; const METAFILE = [ ['niftifile', 'site', 'isControl', 'age', 'sex'], ['M55406768_swc1t1r1_brain.nii', 'UMN', 'true', '35', 'F'], ['M55410676_swc1t1r1_brain.nii', 'UMN', 'true', '27', 'M'], ['M55410836_swc1t1r1_brain.nii', 'UMN', 'true', '27', 'M'], ['M55411523_swc1t1r1_brain.nii', 'UMN', 'true', '42', 'M'], ['M55412141_swc1t1r1_brain.nii', 'UMN', 'true', '24', 'M'], ['M55414769_swc1t1r1_brain.nii', 'UMN', 'true', '48', 'F'], ['M55415129_swc1t1r1_brain.nii', 'UMN', 'true', '20', 'M'], ['M55418630_swc1t1r1_brain.nii', 'UMN', 'true', '34', 'M'], ]; module.exports = { CORE_CONFIGURATION, METAFILE, };
mit
yoheiMune/frontend-playground
008-es2015/mymoduleES6.js
59
export var foo = () => "foo"; export var bar = () => "bar";
mit
donejs/bitcentive
migrations/20170613191245-contribution-month-contributors.js
1026
'use strict'; const app = require('../src/app'); const denodeify = require('denodeify'); exports.up = function(db) { const service = app.service('/api/contribution_months'); const ContributionMonth = service.Model; const update = denodeify(ContributionMonth.update.bind(ContributionMonth)); return app.service('/api/contributors').find().then(contributors => { return service.find({ monthlyContributors: { '$exists': false } }).then((results) => { const stack = []; for (let item of results) { item.monthlyContributors = contributors.map(contributor => { return { contributorRef: contributor._id, }; }); stack.push(service.update(item._id, item)); } return Promise.all(stack); }); }); }; exports.down = function(db) { const service = app.service('/api/contribution_months'); const ContributionMonth = service.Model; const update = denodeify(ContributionMonth.update.bind(ContributionMonth)); return update({}, { '$unset': { monthlyContributors: 1 } }); };
mit
aburato/plotly.js
src/components/colorscale/calc.js
1984
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var isNumeric = require('fast-isnumeric'); var Lib = require('../../lib'); var extractOpts = require('./helpers').extractOpts; module.exports = function calc(gd, trace, opts) { var fullLayout = gd._fullLayout; var vals = opts.vals; var containerStr = opts.containerStr; var container = containerStr ? Lib.nestedProperty(trace, containerStr).get() : trace; var cOpts = extractOpts(container); var auto = cOpts.auto !== false; var min = cOpts.min; var max = cOpts.max; var mid = cOpts.mid; var minVal = function() { return Lib.aggNums(Math.min, null, vals); }; var maxVal = function() { return Lib.aggNums(Math.max, null, vals); }; if(min === undefined) { min = minVal(); } else if(auto) { if(container._colorAx && isNumeric(min)) { min = Math.min(min, minVal()); } else { min = minVal(); } } if(max === undefined) { max = maxVal(); } else if(auto) { if(container._colorAx && isNumeric(max)) { max = Math.max(max, maxVal()); } else { max = maxVal(); } } if(auto && mid !== undefined) { if(max - mid > mid - min) { min = mid - (max - mid); } else if(max - mid < mid - min) { max = mid + (mid - min); } } if(min === max) { min -= 0.5; max += 0.5; } cOpts._sync('min', min); cOpts._sync('max', max); if(cOpts.autocolorscale) { var scl; if(min * max < 0) scl = fullLayout.colorscale.diverging; else if(min >= 0) scl = fullLayout.colorscale.sequential; else scl = fullLayout.colorscale.sequentialminus; cOpts._sync('colorscale', scl); } };
mit
NightmareX91/discord-momijibot
main.js
30004
try { var discord = require("discord.js"); var mysql = require("mysql"); var moment = require("moment"); var momenttz = require("moment-timezone"); } catch (e) { throw e; console.log("You need to run npm install and make sure it passes with no errors!"); process.exit(); } try { var authDetails = require("./auth.json"); } catch (e) { console.log("You need to make an auth.json using the example file on the github!"); process.exit(); } try { var sqlTables = require("./tables.json"); } catch (e) { console.log("You need to make a tables.json using the example file on the github!"); process.exit(); } var commands = { "ban": { description: "Ban a cunt", usage: "<@user> <reason>", hidden: false, process: function (bot, msg, suffix) { if (!msg.channel.server) { bot.sendMessage(msg.author, "Sorry, but I cannot perform this command in a DM."); return; } if (!msg.channel.permissionsOf(msg.author).hasPermission("manageRoles")) { bot.reply(msg, "you do not have the `manageRoles` permission."); return; } if (!msg.channel.permissionsOf(bot.user).hasPermission("manageRoles")) { bot.reply(msg, "I do not have the `manageRoles` permission."); return; } if (msg.mentions.length < 2) { bot.reply(msg, "please mention someone you want to ban. I cannot ban myself."); return; } var memberRole; var bannedRole; var reason = "NULL"; for (i = 0; i < msg.channel.server.roles.length; i++) { if (msg.channel.server.roles[i].name === "Members") { memberRole = msg.channel.server.roles[i]; } else if (msg.channel.server.roles[i].name === "BANNED") { bannedRole = msg.channel.server.roles[i]; } } msg.mentions.map(function (user) { if (user !== bot.user) { if (suffix.split(user)[1] !== undefined) { reason = connection.escape(suffix.split(user + " ")[1]); if (reason.length > 200) { bot.reply(msg, "that ban reason is too long. The limit is 200 characters, sometimes smaller, depending on the content."); msg.mentions.length = 0; return; } } if (bot.userHasRole(user, memberRole)) { bot.removeUserFromRole(user, memberRole, function (err) { if (err) { bot.sendMessage(msg.channel, "Woops, error: " + err.code); console.log(err); return; } bot.addUserToRole(user, bannedRole, function (err) { if (err) { bot.sendMessage(msg.channel, "Woops, error: " + err.code); console.log(err); return; } if (reason !== "NULL") { bot.sendMessage(msg.channel, user + " has been banned by " + msg.author + " for the reason: " + reason + "."); } else { bot.sendMessage(msg.channel, user + " has been banned by " + msg.author + "."); } connection.query("INSERT INTO " + sqlTables.bans + " VALUES ( '" + user + "', " + reason + " , NOW(), NULL );", function (err, results, fields) { if (err) { throw err; } connection.query("SELECT * FROM " + sqlTables.bans + " ORDER BY bannedAt DESC LIMIT 1;", function (err, results, fields) { if (err) { throw err; } var reason = results[0]["reason"]; var bannedAt = results[0]["bannedAt"]; var msgArray = []; msgArray.push("```"); msgArray.push("User banned: " + user.username); msgArray.push("Banned by: " + msg.author.username); if (reason !== null) { msgArray.push("Reason: " + reason); } msgArray.push("Banned at: " + bannedAt); msgArray.push("```"); for (i = 0; i < msg.channel.server.channels.length; i++) { if (msg.channel.server.channels[i].topic === "momiji-event-log") { bot.sendMessage(msg.channel.server.channels[i], msgArray); } } }); }); }); }); } else { bot.reply(msg, "that user is not in the `Members` role."); } } }); } }, "unban": { description: "Unban a cunt", usage: "<@user>", hidden: false, process: function (bot, msg, suffix) { if (!msg.channel.server) { bot.sendMessage(msg.author, "Sorry, but I cannot perform this command in a DM."); return; } if (!msg.channel.permissionsOf(msg.author).hasPermission("manageRoles")) { bot.reply(msg, "you do not have the `manageRoles` permission."); return; } if (!msg.channel.permissionsOf(bot.user).hasPermission("manageRoles")) { bot.reply(msg, "I do not have the `manageRoles` permission."); return; } if (msg.mentions.length < 2) { bot.reply(msg, "please mention someone you want to unban. I cannot unban myself."); return; } var memberRole; var bannedRole; for (i = 0; i < msg.channel.server.roles.length; i++) { if (msg.channel.server.roles[i].name === "Members") { memberRole = msg.channel.server.roles[i]; } else if (msg.channel.server.roles[i].name === "BANNED") { bannedRole = msg.channel.server.roles[i]; } } msg.mentions.map(function (user) { if (user !== bot.user) { if (bot.userHasRole(user, bannedRole)) { bot.removeUserFromRole(user, bannedRole, function (err) { if (err) { bot.sendMessage(msg.channel, "Woops, error: " + err.code); console.log(err); return; } bot.addUserToRole(user, memberRole, function (err) { if (err) { bot.sendMessage(msg.channel, "Woops, error: " + err.code); console.log(err); return; } bot.sendMessage(msg.channel, user + " has been unbanned by " + msg.author + "."); }); }); } else { bot.reply(msg, "that user is not in the `Members` role."); } } }); } }, "eval": { description: "eval", usage: "<eva>", hidden: true, process: function (bot, msg, suffix) { if (msg.sender.id === "104374046254186496") { bot.sendMessage(msg.channel, eval(suffix, bot)); } else { console.log("yo"); } } }, "whois": { description: "Who's that pokemon!?", usage: "<@user>", hidden: false, process: function (bot, msg, suffix) { if (!msg.channel.server) { bot.sendMessage(msg.author, "Sorry, but I cannot perform this command in a DM."); return; } if (msg.mentions.length < 2) { bot.reply(msg, "please mention the user you want information about. You cannot get information about me."); } msg.mentions.map(function (user) { if (user !== bot.user) { var msgArray = []; msgArray.push("User: " + user.username); msgArray.push("ID: " + user.id); msgArray.push("Status: " + user.status); if (user.avatarURL !== null) { msgArray.push("Avatar: " + user.avatarURL); } bot.sendMessage(msg.channel, msgArray); } }); } }, "baninfo": { description: "Fetch the ban information of a user", usage: "<@user>", hidden: false, process: function (bot, msg, suffix) { if (!msg.channel.server) { bot.sendMessage(msg.author, "Sorry, but I cannot perform this command in a DM."); return; } if (msg.mentions.length < 2) { bot.reply(msg, "please mention the user you want ban information about. You cannot get ban information about me."); return; } msg.mentions.map(function (user) { if (user !== bot.user) { connection.query("SELECT EXISTS ( SELECT 1 FROM " + sqlTables.bans + " WHERE id = '" + user + "' );", function (err, results, fields) { if (err) { throw err; } var found = results[0][fields[0].name]; if (found === 1) { connection.query("SELECT * FROM " + sqlTables.bans + " WHERE id = '" + user + "';", function (err, results, fields) { if (err) { throw err; } var msgArray = []; msgArray.push("Ban information for user " + user.username + ":"); msgArray.push("```"); msgArray.push("--------"); for (i = 0; i < results.slice(0, 5).length; i++) { var time = results[i]["bannedAt"]; var reason = results[i]["reason"]; var bannedUntil = results[i]["bannedUntil"]; msgArray.push("Banned at: " + time); if (bannedUntil !== null) { msgArray.push("Banned until: " + bannedUntil); } if (reason !== null) { msgArray.push("Reason: " + reason); } msgArray.push("--------"); } msgArray.push("```"); bot.sendMessage(msg.author, msgArray); bot.reply(msg, "I have sent " + user + "'s ban information to you."); }); } else if (found === 0) { bot.reply(msg, "there is no ban information for " + user + "."); } }); } }); } }, "tban": { description: "Temp ban a cunt. Uses ISO 8601 durations for ban length. Ask meanwhile for more info", usage: "<@user> <\"ban length\"> <\"reason\">", hidden: false, process: function (bot, msg, suffix) { if (!msg.channel.server) { bot.sendMessage(msg.author, "Sorry, but I cannot perform this command in a DM."); return; } if (!msg.channel.permissionsOf(msg.author).hasPermission("manageRoles")) { bot.reply(msg, "you do not have the `manageRoles` permission."); return; } if (!msg.channel.permissionsOf(bot.user).hasPermission("manageRoles")) { bot.reply(msg, "I do not have the `manageRoles` permission."); return; } if (msg.mentions.length < 2) { bot.reply(msg, "please mention the user you want to temp ban. I cannot temp ban myself."); return; } var cmdSuffix; var banLength; var banReason = "NULL"; var addedTime; var bannedUntil; var iso8601Regex = /^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/; var memberRole; var bannedRole; for (i = 0; i < msg.channel.server.roles.length; i++) { if (msg.channel.server.roles[i].name === "Members") { memberRole = msg.channel.server.roles[i]; } else if (msg.channel.server.roles[i].name === "BANNED") { bannedRole = msg.channel.server.roles[i]; } } msg.mentions.map(function (user) { if (user !== bot.user) { if (suffix.split(/<@!?\d+?>/)[1] !== undefined) { cmdSuffix = suffix.split(/<@!?\d+?> /)[1].match(/(".*?"|[^"\s]+(<?!.*?>)+)(?=\s*|\s*S)/g); banLength = cmdSuffix[0].replace(/\"/g, "").toUpperCase(); addedTime = moment().add(moment.duration(banLength)); bannedUntil = moment(addedTime).format("ddd MMMM DD YYYY HH:mm:ss [GMT]ZZ [(" + momenttz.tz.zone(momenttz.tz.guess()).abbr(addedTime) + ")]"); if (cmdSuffix[1] !== undefined) { banReason = connection.escape(cmdSuffix[1].replace(/\"/g, "")); if (banReason.length > 200) { bot.reply(msg, "that ban reason is too long. The limit is 200 characters, sometimes smaller, depending on the content."); msg.mentions.length = 0; return; } } if (!iso8601Regex.test(banLength)) { bot.reply(msg, "the ban length needs to use the ISO 8601 duration format. Ask meanwhile for more information."); msg.mentions.length = 0; return; } } else { bot.reply("you need to specify a ban length and/or a ban reason."); return; } if (bot.userHasRole(user, memberRole)) { bot.removeUserFromRole(user, memberRole, function (err) { if (err) { bot.sendMessage(msg.channel, "Woops, error: " + err.code); console.log(err); return; } bot.addUserToRole(user, bannedRole, function (err) { if (err) { bot.sendMessage(msg.channel, "Woops, error: " + err.code); console.log(err); return; } if (banReason !== "NULL") { bot.sendMessage(msg.channel, user + " has been banned until " + bannedUntil + " by " + msg.author + " for the reason: " + banReason + "."); } else { bot.sendMessage(msg.channel, user + " has been banned until " + bannedUntil + " by " + msg.author + "."); } connection.query("INSERT INTO " + sqlTables.bans + " VALUES ( '" + user + "', " + banReason + ", NOW(), '" + moment(addedTime).format("YYYY-MM-DDTHH:mm:ss") + "' );", function (err, results, fields) { if (err) { throw err; } connection.query("SELECT * FROM " + sqlTables.bans + " ORDER BY bannedAt DESC LIMIT 1;", function (err, results, fields) { if (err) { throw err; } var reason = results[0]["reason"]; var bannedAt = results[0]["bannedAt"]; var bannedUntil = results[0]["bannedUntil"]; var msgArray = []; msgArray.push("```"); msgArray.push("User banned: " + user.username); msgArray.push("Banned by: " + msg.author.username); if (reason !== null) { msgArray.push("Reason: " + reason); } msgArray.push("Banned at: " + bannedAt); msgArray.push("Banned until: " + bannedUntil); msgArray.push("```"); for (i = 0; i < msg.channel.server.channels.length; i++) { if (msg.channel.server.channels[i].topic === "momiji-event-log") { bot.sendMessage(msg.channel.server.channels[i], msgArray); } } }); }); }); }); } } }); } }, "marco": { description: "Marco! Polo!", hidden: false, process: function (bot, msg, suffix) { if (!msg.channel.server) { bot.sendMessage(msg.author, "Sorry, but I cannot perform this command in a DM."); return; } if (!msg.channel.permissionsOf(bot.user).hasPermission("manageRoles")) { bot.sendMessage(msg.channel, "Polo!"); return; } var memberRole; var bannedRole; var random = Math.floor(Math.random() * (10 - 1 + 1)) + 1; for (i = 0; i < msg.channel.server.roles.length; i++) { if (msg.channel.server.roles[i].name === "Members") { memberRole = msg.channel.server.roles[i]; } else if (msg.channel.server.roles[i].name === "BANNED") { bannedRole = msg.channel.server.roles[i]; } } if (random === 1) { if (bot.userHasRole(msg.author, memberRole)) { bot.removeUserFromRole(msg.author, memberRole, function (err) { if (err) { bot.sendMessage(msg.channel, "Polo!"); console.log(err); return; } bot.addUserToRole(msg.author, bannedRole, function (err) { if (err) { bot.sendMessage(msg.channel, "Polo!"); console.log(err); return; } connection.query("INSERT INTO " + sqlTables.bans + " VALUES ( '" + msg.author + "', 'Idiot cull', NOW(), '" + moment(moment().add(1, "d")).format("YYYY-MM-DDTHH:mm:ss") + "' );", function (err, results, fields) { if (err) { throw err; } connection.query("SELECT * FROM " + sqlTables.bans + " ORDER BY bannedAt DESC LIMIT 1;", function (err, results, fields) { if (err) { throw err; } var reason = results[0]["reason"]; var bannedAt = results[0]["bannedAt"]; var bannedUntil = results[0]["bannedUntil"]; var msgArray = []; msgArray.push("```"); msgArray.push("User banned: " + msg.author.username); msgArray.push("Reason: " + reason); msgArray.push("Banned at: " + bannedAt); msgArray.push("Banned until: " + bannedUntil); msgArray.push("```"); for (i = 0; i < msg.channel.server.channels.length; i++) { if (msg.channel.server.channels[i].topic === "momiji-event-log") { bot.sendMessage(msg.channel.server.channels[i], msgArray); } } bot.sendMessage(msg.channel, "FUCK YOU!"); }) }) }) }) } } else { bot.sendMessage(msg.channel, "Polo!"); return; } } }, "bancount": { description: "Get the bancount of a user", usage: "<@user>", hidden: false, process: function (bot, msg, suffix) { if (!msg.channel.server) { bot.sendMessage(msg.channel, "Sorry, but I cannot perform this command in a DM."); return; } if (msg.mentions.length < 2) { bot.reply(msg, "please mention the user you want to get the bancount of. I cannot get my own bancount."); return; } msg.mentions.map(function (user) { if (user !== bot.user) { connection.query("SELECT EXISTS ( SELECT 1 FROM " + sqlTables.bans + " WHERE id = '" + user + "' );", function(err, results, fields) { if (err) { throw err; } var found = results[0][fields[0].name]; if (found === 1) { connection.query("SELECT * FROM " + sqlTables.bans + " WHERE id = '" + user + "';", function (err, results, fields) { if (err) { throw err; } bot.sendMessage(msg.channel, user + " has been banned " + results.length + " times."); }); } else if (found === 0) { bot.sendMessage(msg.channel, user + " has been banned 0 times."); } }); } }) } } }; var bot = new discord.Client(); var connection = mysql.createConnection({ host: authDetails.host, user: authDetails.user, password: authDetails.password, database: authDetails.database }); bot.on("ready", function () { console.log("Connected!"); bot.setPlayingGame("Mountain of Faith"); connection.connect(); setInterval(function () { var memberRole; var bannedRole; var server; for (i = 0; i < bot.servers.length; i++) { if (bot.servers[i].name === "WAYT" || bot.servers[i].name === "holobot") { server = bot.servers[i] } } for (i = 0; i < server.roles.length; i++) { if (server.roles[i].name === "Members") { memberRole = server.roles[i]; } else if (server.roles[i].name === "BANNED") { bannedRole = server.roles[i]; } } for (i = 0; i < server.usersWithRole(bannedRole).length; i++) { var user = server.usersWithRole(bannedRole)[i]; var user2 = String(user).match(/<@!?\d+?>/)[0]; connection.query("SELECT * FROM " + sqlTables.bans + " WHERE id = '" + user2 + "' ORDER BY bannedAt DESC LIMIT 1;", function (err, results, fields) { if (err) { throw err; } if (results.length < 1) { return; } if (results[0]["bannedUntil"] !== null) { connection.query("SELECT * FROM " + sqlTables.bans + " WHERE id = '" + user2 + "' AND bannedUntil IS NOT NULL ORDER BY bannedAt DESC LIMIT 1;", function (err, results, fields) { if (err) { throw err; } var bannedUntil = results[0]["bannedUntil"]; if (moment().isSameOrAfter(bannedUntil)) { bot.removeUserFromRole(user, bannedRole, function (err) { if (err) { throw err; } bot.addUserToRole(user, memberRole, function (err) { if (err) { throw err; } bot.sendMessage(user, "You have been unbanned from " + server.name + "."); }); }); } }); } }); return; } }, 1000); }); bot.on("disconnected", function () { console.log("Disconnected!"); connection.end(); process.exit(); }); bot.on("message", function (msg) { if (msg.author !== bot.user && msg.content.toLowerCase().startsWith(bot.user) && msg.content.split(bot.user)[1] != "") { var cmdTxt = msg.content.split(" ")[1].toLowerCase(); var suffix = msg.content.substring(cmdTxt.length + bot.user.mention().length + 2).toLowerCase(); if (cmdTxt === "help") { bot.sendMessage(msg.author, "Here is a list of commands:", function () { var msgArray = []; msgArray.push("To use these commands, mention me before calling the command! Example: `@MomijiBot help`") for (var cmd in commands) { var info = cmd; var usage = commands[cmd].usage; var description = commands[cmd].description; var hidden = commands[cmd].hidden; if (usage) { info += " " + usage; } if (description) { info += "\n\t" + description; } if (!hidden) { msgArray.push(info); } } bot.sendMessage(msg.author, msgArray); }); bot.reply(msg, "I've sent you a DM with a list of commands."); } else if (commands[cmdTxt]) { try { commands[cmdTxt].process(bot, msg, suffix); } catch (e) { } } } }); bot.loginWithToken(authDetails.token, function (err) { if (err) { throw err; } });
mit