Added translations to entire app
This commit is contained in:
@@ -16,6 +16,11 @@ module Terminator
|
||||
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
||||
config.autoload_lib(ignore: %w(assets tasks))
|
||||
|
||||
# Set available locales and default locale
|
||||
config.i18n.available_locales = [:en, :bs]
|
||||
config.i18n.default_locale = :bs
|
||||
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
||||
|
||||
# Configuration for the application, engines, and railties goes here.
|
||||
#
|
||||
# These settings can be overridden in specific environments using the files
|
||||
|
||||
126
config/locales/bs.yml
Normal file
126
config/locales/bs.yml
Normal file
@@ -0,0 +1,126 @@
|
||||
bs:
|
||||
# Add Bosnian translations here
|
||||
reservations:
|
||||
index:
|
||||
title: "Rezervacije"
|
||||
prev: "« Prethodna"
|
||||
today: "Danas"
|
||||
next: "Sljedeća »"
|
||||
new_reservation: "Nova rezervacija" # TODO: Translate to Bosnian
|
||||
calendar:
|
||||
hours: "sati"
|
||||
delete_confirm: "Jeste li sigurni da želite izbrisati ovu rezervaciju?"
|
||||
delete_success: "Rezervacija je izbrisana."
|
||||
delete_error: "Greška prilikom brisanja rezervacije."
|
||||
network_error: "Greška prilikom brisanja rezervacije zbog problema s mrežom ili skriptom."
|
||||
edit: "Uredi"
|
||||
delete: "Obriši"
|
||||
# Keys for form and edit/new pages
|
||||
edit:
|
||||
title: "Uređivanje rezervacije"
|
||||
show: "Prikaži ovu rezervaciju"
|
||||
back: "Nazad na rezervacije"
|
||||
new:
|
||||
title: "Nova rezervacija"
|
||||
back: "Nazad na rezervacije"
|
||||
form:
|
||||
customer: "Klijent"
|
||||
search_prompt: "Unesite za pretragu klijenata..."
|
||||
phone_number: "Broj telefona"
|
||||
first_name: "Ime"
|
||||
surname: "Prezime"
|
||||
birth_year: "Godina rođenja"
|
||||
team: "Tim"
|
||||
select_team: "Odaberite tim"
|
||||
start_time: "Vrijeme početka"
|
||||
end_time: "Vrijeme završetka"
|
||||
submit: "Pošalji"
|
||||
update: "Ažuriraj rezervaciju"
|
||||
create: "Kreiraj rezervaciju"
|
||||
errors:
|
||||
header: "%{count} greška/e spriječila/e je da se ova rezervacija sačuva:"
|
||||
create:
|
||||
reservation_created: "Rezervacija je uspješno kreirana."
|
||||
update:
|
||||
reservation_updated: "Rezervacija je uspješno ažurirana."
|
||||
destroy:
|
||||
reservation_destroyed: "Rezervacija je uspješno izbrisana."
|
||||
|
||||
teams:
|
||||
create:
|
||||
team_created: "Tim je uspješno kreiran."
|
||||
update:
|
||||
team_updated: "Tim je uspješno ažuriran."
|
||||
destroy:
|
||||
team_destroyed: "Tim je uspješno izbrisan."
|
||||
index:
|
||||
title: "Timovi"
|
||||
new_team: "Novi tim"
|
||||
show_team: "Prikaži ovaj tim"
|
||||
new:
|
||||
title: "Novi tim"
|
||||
back: "Nazad na timove"
|
||||
edit:
|
||||
title: "Uređivanje tima"
|
||||
show: "Prikaži ovaj tim"
|
||||
back: "Nazad na timove"
|
||||
show:
|
||||
edit: "Uredi ovaj tim"
|
||||
back: "Nazad na timove"
|
||||
destroy: "Izbriši ovaj tim"
|
||||
form:
|
||||
name: "Naziv"
|
||||
submit: "Pošalji"
|
||||
update: "Ažuriraj tim"
|
||||
create: "Kreiraj tim"
|
||||
errors:
|
||||
header: "%{count} greška/e spriječila/e je da se ovaj tim sačuva:"
|
||||
|
||||
companies:
|
||||
create:
|
||||
company_created: "Kompanija je uspješno kreirana."
|
||||
update:
|
||||
company_updated: "Kompanija je uspješno ažurirana."
|
||||
destroy:
|
||||
company_destroyed: "Kompanija je uspješno izbrisana."
|
||||
index:
|
||||
title: "Kompanije"
|
||||
new_company: "Nova kompanija"
|
||||
show_company: "Prikaži ovu kompaniju"
|
||||
new:
|
||||
title: "Nova kompanija"
|
||||
back: "Nazad na kompanije"
|
||||
edit:
|
||||
title: "Uređivanje kompanije"
|
||||
show: "Prikaži ovu kompaniju"
|
||||
back: "Nazad na kompanije"
|
||||
show:
|
||||
edit: "Uredi ovu kompaniju"
|
||||
back: "Nazad na kompanije"
|
||||
destroy: "Izbriši ovu kompaniju"
|
||||
form:
|
||||
name: "Naziv"
|
||||
id_number: "ID broj"
|
||||
vat_number: "PDV broj"
|
||||
address_line_one: "Adresa (prva linija)"
|
||||
address_line_two: "Adresa (druga linija)"
|
||||
postal_code: "Poštanski broj"
|
||||
city: "Grad"
|
||||
entity: "Entitet"
|
||||
country: "Država"
|
||||
submit: "Pošalji"
|
||||
update: "Ažuriraj kompaniju"
|
||||
create: "Kreiraj kompaniju"
|
||||
errors:
|
||||
header: "%{count} greška/e spriječila/e je da se ova kompanija sačuva:"
|
||||
company:
|
||||
name: "Naziv:"
|
||||
id_number: "ID broj:"
|
||||
vat_number: "PDV broj:"
|
||||
address_line_one: "Adresa (prva linija):"
|
||||
address_line_two: "Adresa (druga linija):"
|
||||
postal_code: "Poštanski broj:"
|
||||
city: "Grad:"
|
||||
entity: "Entitet:"
|
||||
country: "Država:"
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
# enabled: "ON"
|
||||
|
||||
en:
|
||||
# Add English translations here
|
||||
hello: "Hello world"
|
||||
customers:
|
||||
create:
|
||||
@@ -45,6 +46,43 @@ en:
|
||||
reservation_updated: "Reservation was successfully updated."
|
||||
destroy:
|
||||
reservation_destroyed: "Reservation was successfully destroyed."
|
||||
index:
|
||||
title: "Reservations"
|
||||
prev: "« Prev"
|
||||
today: "Today"
|
||||
next: "Next »"
|
||||
new_reservation: "New reservation"
|
||||
calendar:
|
||||
hours: "hours"
|
||||
delete_confirm: "Are you sure you want to delete this reservation?"
|
||||
delete_success: "Reservation deleted."
|
||||
delete_error: "Error deleting reservation."
|
||||
network_error: "Error deleting reservation due to a network or script issue."
|
||||
edit: "Edit"
|
||||
delete: "Delete"
|
||||
edit:
|
||||
title: "Editing reservation"
|
||||
show: "Show this reservation"
|
||||
back: "Back to reservations"
|
||||
new:
|
||||
title: "New reservation"
|
||||
back: "Back to reservations"
|
||||
form:
|
||||
customer: "Customer"
|
||||
search_prompt: "Type to search customers..."
|
||||
phone_number: "Phone number"
|
||||
first_name: "First name"
|
||||
surname: "Surname"
|
||||
birth_year: "Birth year"
|
||||
team: "Team"
|
||||
select_team: "Select a team"
|
||||
start_time: "Start time"
|
||||
end_time: "End time"
|
||||
submit: "Submit"
|
||||
update: "Update Reservation"
|
||||
create: "Create Reservation"
|
||||
errors:
|
||||
header: "%{count} prohibited this reservation from being saved:"
|
||||
teams:
|
||||
create:
|
||||
team_created: "Team was successfully created."
|
||||
@@ -52,3 +90,72 @@ en:
|
||||
team_updated: "Team was successfully updated."
|
||||
destroy:
|
||||
team_destroyed: "Team was successfully destroyed."
|
||||
index:
|
||||
title: "Teams"
|
||||
new_team: "New team"
|
||||
show_team: "Show this team"
|
||||
new:
|
||||
title: "New team"
|
||||
back: "Back to teams"
|
||||
edit:
|
||||
title: "Editing team"
|
||||
show: "Show this team"
|
||||
back: "Back to teams"
|
||||
show:
|
||||
edit: "Edit this team"
|
||||
back: "Back to teams"
|
||||
destroy: "Destroy this team"
|
||||
form:
|
||||
name: "Name"
|
||||
submit: "Submit"
|
||||
update: "Update Team"
|
||||
create: "Create Team"
|
||||
errors:
|
||||
header: "%{count} prohibited this team from being saved:"
|
||||
companies:
|
||||
create:
|
||||
company_created: "Company was successfully created."
|
||||
update:
|
||||
company_updated: "Company was successfully updated."
|
||||
destroy:
|
||||
company_destroyed: "Company was successfully destroyed."
|
||||
index:
|
||||
title: "Companies"
|
||||
new_company: "New company"
|
||||
show_company: "Show this company"
|
||||
new:
|
||||
title: "New company"
|
||||
back: "Back to companies"
|
||||
edit:
|
||||
title: "Editing company"
|
||||
show: "Show this company"
|
||||
back: "Back to companies"
|
||||
show:
|
||||
edit: "Edit this company"
|
||||
back: "Back to companies"
|
||||
destroy: "Destroy this company"
|
||||
form:
|
||||
name: "Name"
|
||||
id_number: "ID number"
|
||||
vat_number: "VAT number"
|
||||
address_line_one: "Address line one"
|
||||
address_line_two: "Address line two"
|
||||
postal_code: "Postal code"
|
||||
city: "City"
|
||||
entity: "Entity"
|
||||
country: "Country"
|
||||
submit: "Submit"
|
||||
update: "Update Company"
|
||||
create: "Create Company"
|
||||
errors:
|
||||
header: "%{count} prohibited this company from being saved:"
|
||||
company:
|
||||
name: "Name:"
|
||||
id_number: "ID number:"
|
||||
vat_number: "VAT number:"
|
||||
address_line_one: "Address line one:"
|
||||
address_line_two: "Address line two:"
|
||||
postal_code: "Postal code:"
|
||||
city: "City:"
|
||||
entity: "Entity:"
|
||||
country: "Country:"
|
||||
|
||||
Reference in New Issue
Block a user