diff --git a/padrino-admin/lib/padrino-admin/locale/admin/sv.yml b/padrino-admin/lib/padrino-admin/locale/admin/sv.yml new file mode 100644 index 000000000..013ef8b2f --- /dev/null +++ b/padrino-admin/lib/padrino-admin/locale/admin/sv.yml @@ -0,0 +1,16 @@ +sv: + padrino: + admin: + save: Spara + cancel: Avbryt + list: Lista + edit: Redigera + new: Ny + show: Visa + delete: Radera + confirm: Är du säker? + created_at: Skapad + all: Alla + profile: Profil + settings: Inställningar + logout: Logga ut diff --git a/padrino-admin/lib/padrino-admin/locale/orm/sv.yml b/padrino-admin/lib/padrino-admin/locale/orm/sv.yml new file mode 100644 index 000000000..15c06c8fe --- /dev/null +++ b/padrino-admin/lib/padrino-admin/locale/orm/sv.yml @@ -0,0 +1,26 @@ +sv: + activemodel: &activemodel + errors: + messages: + inclusion: "är inte inkluderad i listan" + exclusion: "är reserverad" + invalid: "är ogiltig" + confirmation: "matchar inte konfirmeringen" + accepted: "måste accepteras" + empty: "kan inte vara tomt" + blank: "kan inte vara blankt" + too_long: "är för långt (max %{count} tecken)" + too_short: "är för kort (minst %{count} tecken)" + wrong_length: "är fel längd (borde vara %{count} tecken)" + taken: "är redan upptaget" + not_a_number: "är inte ett tal" + greater_than: "måste vara större än %{count}" + greater_than_or_equal_to: "måste vara större än eller lika med %{count}" + equal_to: "måste vara lika med %{count}" + less_than: "måste vara mindre än %{count}" + less_than_or_equal_to: "måste vara mindre än eller lika med %{count}" + odd: "måste vara udda" + even: "måste vara jämnt" + record_invalid: "Validering misslyckades: %{errors}" + content_type: "filformatet stöds ej" + activerecord: *activemodel diff --git a/padrino-core/lib/padrino-core/locale/sv.yml b/padrino-core/lib/padrino-core/locale/sv.yml new file mode 100644 index 000000000..eb70067fa --- /dev/null +++ b/padrino-core/lib/padrino-core/locale/sv.yml @@ -0,0 +1,34 @@ +sv: + date: + formats: + # Use the strftime parameters for formats. + # When no format has been given, it uses default. + # You can provide other formats here if you like! + default: "%Y-%m-%d" + short: "%b %d" + long: "%B %d, %Y" + only_day: "%e" + + day_names: [söndag, måndag, tisdag, onsdag, torsdag, fredag, lördag] + abbr_day_names: [sön, mån, tis, ons, tors, fre, lör] + month_names: [~, januari, februari, mars, april, maj, juni, juli, augusti, september, oktober, november, december] + abbr_month_names: [~, jan, feb, mar, apr, may, jun, jul, aug, sep, okt, nov, dec] + order: + - år + - månad + - dag + + time: + formats: + default: "%a, %d %b %Y %H:%M:%S %z" + short: "%d %b %H:%M" + long: "%B %d, %Y %H:%M" + am: "fm" + pm: "em" + +# Used in array.to_sentence. + support: + array: + words_connector: ", " + two_words_connector: " och " + last_word_connector: ", och " diff --git a/padrino-helpers/lib/padrino-helpers/locale/sv.yml b/padrino-helpers/lib/padrino-helpers/locale/sv.yml new file mode 100644 index 000000000..481ec1650 --- /dev/null +++ b/padrino-helpers/lib/padrino-helpers/locale/sv.yml @@ -0,0 +1,103 @@ +sv: + number: + # Used in number_with_delimiter() + # These are also the defaults for 'currency', 'percentage', 'precision', and 'human' + format: + # Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5) + separator: "," + # Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three) + delimiter: " " + # Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00) + precision: 2 + + # Used in number_to_currency() + currency: + format: + # Where is the currency sign? %u is the currency unit, %n the number (default: $5.00) + format: "%n %u" + unit: "kr" + # These three are to override number.format and are optional + separator: "," + delimiter: " " + precision: 2 + + # Used in number_to_percentage() + percentage: + format: + # These three are to override number.format and are optional + # separator: + delimiter: "" + # precision: + + # Used in number_to_precision() + precision: + format: + # These three are to override number.format and are optional + # separator: + delimiter: "" + # precision: + + # Used in number_to_human_size() + human: + format: + # These three are to override number.format and are optional + # separator: + delimiter: "" + precision: 1 + storage_units: + # Storage units output formatting. + # %u is the storage unit, %n is the number (default: 2 MB) + format: "%n %u" + units: + byte: + one: "Byte" + other: "Bytes" + kb: "KB" + mb: "MB" + gb: "GB" + tb: "TB" + + # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words() + datetime: + distance_in_words: + half_a_minute: "en halv minut" + less_than_x_seconds: + one: "mindre än 1 sekund" + other: "mindre än %{count} sekunder" + x_seconds: + one: "1 sekund" + other: "%{count} sekunder" + less_than_x_minutes: + one: "mindre än en minut" + other: "mindre än %{count} minuter" + x_minutes: + one: "1 minut" + other: "%{count} minuter" + about_x_hours: + one: "cirka 1 timme" + other: "cirka %{count} timmar" + x_days: + one: "1 dag" + other: "%{count} dagar" + about_x_months: + one: "cirka 1 månad" + other: "cirka %{count} månader" + x_months: + one: "1 månad" + other: "%{count} månader" + about_x_years: + one: "cirka 1 år" + other: "cirka %{count} år" + over_x_years: + one: "över 1 år" + other: "över %{count} år" + almost_x_years: + one: "nästan 1 år" + other: "nästan %{count} år" + models: + errors: + template: + header: + one: "1 fel hindrade denna %{model} från att sparas" + other: "%{count} fel hindrade denna %{model} från att sparas" + body: "Följande fält innehåller fel:"