Skip to content

Commit

Permalink
- UTF-8 encoding bugfix
Browse files Browse the repository at this point in the history
- added Portugues translated by JohnathanMoura
  • Loading branch information
de-luxe committed Aug 10, 2016
1 parent 5799f20 commit b3856de
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ Faucet-Software for Burstcoin (BURST)

Features:
- Claim interval and amount adjustable
- Abuse protected via recaptcha + account and IP-tracking
- Abuse protected via recaptcha + account, IP and cookie-tracking
- Simple stats about donations and claims
- Multi-language support
- Easy to run with included standalone tomcat server.

Requirements:
- Java8
- recaptcha keys

Setup:
Expand Down
1 change: 1 addition & 0 deletions src/main/java/burstcoin/faucet/BurstcoinFaucet.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public ObjectMapper objectMapper()
public MessageSource messageSource()
{
ResourceBundleMessageSource resourceBundleMessageSource = new ResourceBundleMessageSource();
resourceBundleMessageSource.setDefaultEncoding("UTF-8");
resourceBundleMessageSource.addBasenames("templates/index");
return resourceBundleMessageSource;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/index_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ faucet.error.claim.denied.account=Eine erneute Auszahlung, an diesen Account, is
faucet.error.claim.denied.ip=Eine erneute Auszahlung, mit dieser IP, ist erst nach weiteren {0} minuten möglich.
# {0} time to wait in minutes, until cookie expired
faucet.error.claim.denied.cookie=Eine erneute Auszahlung, auf diesem Rechner, ist erst nach weiteren {0} minuten möglich.
faucet.error.claim.walletAccess=Das h\u00E4tte nicht passieren dürfen, aber auf das BURST Wallet kann momentan nicht zugegriffen werden. Es konnten keine BURSTs ausgezahlt werden.
faucet.error.claim.walletAccess=Das hätte nicht passieren dürfen, aber auf das BURST Wallet kann momentan nicht zugegriffen werden. Es konnten keine BURSTs ausgezahlt werden.
50 changes: 50 additions & 0 deletions src/main/resources/templates/index_pt.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Portugues (same like Portugues Brasil)
#
# translated by JohnathanMoura - BURST-ET9X-XSHH-F4MH-2CQPJ


faucet.title=Burstcoin Faucet - Receba Burstcoins de graça em segundos.

faucet.form.title=Burstcoin Faucet
faucet.form.account.label=Sua conta do Burstcoin
faucet.form.account.notice=Não colocoque sua PASSPHRASE aqui!
faucet.form.account.placeholder='ID da conta' ou 'ID da conta numerica'
faucet.form.button.claim=Receba Burst

# Obrigado pelo suporte e nao mude isso
faucet.link.url=https://github.com/de-luxe/burstcoin-faucet/releases
# {0} Faucet accountId, {1} Saldo da conta do Faucet
faucet.link.text={0} - {1} BURST

faucet.stats.donations.title=Doaçoes
# {0} Total donated BURST amount, {1} Total number of donating accounts
faucet.stats.donations.summary=Faucet recebido {0} BURST de {1} contas.
# {0} Donating accountId, {1} BURST amount donated
faucet.stats.donations.account={0} - {1} BURST
# {0} BURST amount donated from other accounts
faucet.stats.donations.other=outras contas - {0} BURST

faucet.stats.claims.title=Recebimentos
# {0} Total claimed BURST amount, {1} Total number of claiming accounts
faucet.stats.claims.summary=Faucet eviados {0} BURST para {1} contas.
# {0} Number of claims, {1} Claiming accountId, {2} BURST Total recebido
faucet.stats.claims.account={0}x {1} - {2} BURST

# {0} BURST amount send, {1} target accountId
faucet.msg.send.money={0} BURST enviado para {1}

# {0} Malformed BURST accountId
faucet.error.accountId.malformed=Por favor coloque sua 'ID da conta' ou 'ID da conta numerica'! ''{0}'' não é valido!
# {0} BURST numericAccountId not able to rs convert
faucet.error.accountId.rsConvert=Por favor coloque sua 'ID da conta' ou 'ID da conta numerica'! ''{0}'' não é valido!
# {0} BURST accountId with wrong alphabet
faucet.error.accountId.alphabet=Por favor coloque sua 'ID da conta' ou 'ID da conta numerica'! ''{0}'' não é valido!

faucet.error.claim.reCaptcha=Por favor confirme, que você não é um robo.
# {0} time to wait in minutes, until account expired
faucet.error.claim.denied.account=Burst Não enviado. Por favor espere {0} minutos, Antes de tentar receber de novo.
# {0} time to wait in minutes, until ip expired
faucet.error.claim.denied.ip=Burst Não enviado. Por favor espere {0} minutos, Antes de tentar receber de novo com a sua conta.
# {0} time to wait in minutes, until cookie expired
faucet.error.claim.denied.cookie=Burst Não enviado. Por favor espere {0} minutos, Antes de tentar receber de novo com a sua conta.
faucet.error.claim.walletAccess=Descupe, faucet não conseguiu acessar sua conta, para enviar BURST.

0 comments on commit b3856de

Please # to comment.