Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions client/languages/croatian.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
(function(){
var app = cartjs

var t = app.translation
t.addressFieldLabel = "Adresa"
t.addressFieldPlaceholder = "Unesite vašu poštansku adresu"
t.buyButtonTitle = 'Dodaj u košaricu'
t.cartButtonLabelOne = "proizvod"
t.cartButtonLabelMany = "proizvoda"
t.emailFieldLabel = "e-mail"
t.emailFieldPlaceholder = "Unesite vašu e-mail adresu"
t.emptyCart = "Vaša košarica je prazna."
t.nameFieldLabel = "Ime"
t.nameFieldPlaceholder = "Unesite vaše puno ime i prezime"
t.orderFailed = 'Narudžba nije uspjela, molimo vas kontaktirajte našu podršku za kupce'
t.orderSent = "Vaša narudžba je poslana"
t.phoneFieldLabel = "Telefon"
t.phoneFieldPlaceholder = "Unesite vaš broj telefona"
t.purchaseButtonTitle = 'Naruči'
t.emailNotificationTitle = ''
t.emailNotificationBody = ''

t.pluralize = function(count){return count === 1 ? 'One' : 'Many'}
})()
26 changes: 26 additions & 0 deletions server/languages/croatian.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = function(app){
// Owner email templates, users can override those templates to fit their needs.
app.template('croatian', 'owner-email-subject', function(add, order){
add('Narudžba sa ' + order.site + ' za ' + app.priceWithCurrency(order.price, order.currency))
})

app.template('croatian', 'owner-email-text', function(add, order){
add('Kupac')
add('')
if(order.name) add(" Ime " + order.name)
if(order.phone) add(" Telefon " + order.phone)
if(order.email) add(" Email " + order.email)
if(order.address) add(" Adresa " + order.address)
add('')

add('Naručuje')
add('')
for(var i = 0; i < order.items.length; i++){
var item = order.items[i]
add(' ' + item.name + '\t' + item.quantity + '\t'
+ app.priceWithCurrency(item.price, order.currency))
}
add('')
add('Ukupno ' + app.priceWithCurrency(order.price, order.currency))
})
}