Skip to content

Commit

Permalink
Merge pull request #1103 from hmzasif/cy-locale
Browse files Browse the repository at this point in the history
Add cy locale
  • Loading branch information
pama authored Dec 10, 2023
2 parents fc6fc37 + a7875d8 commit b469c49
Show file tree
Hide file tree
Showing 3 changed files with 266 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## unreleased

- Add following locales:
- Welsh (cy)
## 7.0.9 (2023-11-16)

- Fix empty `am` and `pm` keys to make dates/times in the 12-hour time format distinguishable in every locale #1105
Expand Down
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Locale data whose structure is compatible with Rails 2.3 are available on the se

**Available locales:**

af, ar, az, be, bg, bn, bs, ca, cs, csb, da, de, de-AT, de-CH, de-DE, dsb, dz, el, el-CY, en, en-AU, en-CA, en-CY, en-GB, en-IE, en-IN, en-NZ, en-TT, en-US, en-ZA, eo, es, es-419, es-AR, es-CL, es-CO, es-CR, es-EC, es-ES, es-MX, es-NI, es-PA, es-PE, es-US, es-VE, et, eu, fa, fi, fr, fr-CA, fr-CH, fr-FR, fur, fy, gd, gl, gsw-CH, he, hi, hi-IN, hr, hsb, hu, id, is, it, it-CH, ja, ka, kk, km, kn, ko, lb, lo, lt, lv, mg, mk, ml, mn, mr-IN, ms, nb, ne, nl, nn, oc, or, pa, pap-AW, pap-CW, pl, pt, pt-BR, rm, ro, ru, sc, scr, sk, sl, sq, sr, st, sv, sv-FI, sv-SE, sw, ta, te, th, tl, tr, tt, ug, uk, ur, uz, vi, wo, zh-CN, zh-HK, zh-TW, zh-YUE
af, ar, az, be, bg, bn, bs, ca, cs, cy, csb, da, de, de-AT, de-CH, de-DE, dsb, dz, el, el-CY, en, en-AU, en-CA, en-CY, en-GB, en-IE, en-IN, en-NZ, en-TT, en-US, en-ZA, eo, es, es-419, es-AR, es-CL, es-CO, es-CR, es-EC, es-ES, es-MX, es-NI, es-PA, es-PE, es-US, es-VE, et, eu, fa, fi, fr, fr-CA, fr-CH, fr-FR, fur, fy, gd, gl, gsw-CH, he, hi, hi-IN, hr, hsb, hu, id, is, it, it-CH, ja, ka, kk, km, kn, ko, lb, lo, lt, lv, mg, mk, ml, mn, mr-IN, ms, nb, ne, nl, nn, oc, or, pa, pap-AW, pap-CW, pl, pt, pt-BR, rm, ro, ru, sc, scr, sk, sl, sq, sr, st, sv, sv-FI, sv-SE, sw, ta, te, th, tl, tr, tt, ug, uk, ur, uz, vi, wo, zh-CN, zh-HK, zh-TW, zh-YUE

**Complete locales:**

Expand All @@ -98,14 +98,6 @@ en, en-US, es, es-419, es-AR, es-CL, es-CO, es-CR, es-EC, es-ES, es-MX, es-NI, e

af, csb, dsb, dz, fur, gsw-CH, lb, rm, scr, sq, sv-FI, te, tt, ug, uz

**Removed locales:**

cy

The cy locale was removed in commit 84f6c6b9b7a3e50df2b1fb1ccf7add329f7eab4f since unfortunately we could not find a Welsh speaker to support it.
We would welcome contributions to add it back to the project.
The locale is mostly complete for the missing translations please refer to [#1006](https://github.com/svenfuchs/rails-i18n/issues/1006)

**Removed pluralizations:**

ak, am, bh, bm, bo, br, by, cy, dz, ff, ga, gd, guw, gv, ig, ii, iu, jv, kab, kde, kea, ksh, kw, lag, ln, mo, mt, my, naq, nso, root, sah, se, ses, sg, sh, shi, sma, smi, smj, smn, sms, ti, to, tzm, wa, yo, zh
Expand Down
263 changes: 263 additions & 0 deletions rails/locale/cy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,263 @@
---
cy:
activerecord:
errors:
messages:
record_invalid: 'Wedi methu dilysu: %{errors}'
restrict_dependent_destroy:
has_many: Methu dileu cofnod oherwydd bod %{record} yn bodoli
has_one: Methu dileu cofnod oherwydd bod %{record} yn bodoli
model_invalid: 'Methodd y dilysu: %{errors}'
other_than: rhaid bod yn wahanol na %{count}
present: rhaid bod yn wag
required: rhaid bodoli
in: rhaid bod mewn %{count}
template:
header:
one: "Mae gwall %{count} wedi gwahardd y %{ model} hwn rhag cael ei gadw"
other: "Mae gwall %{count} wedi gwahardd y %{ model} hwn rhag cael ei gadw"
date:
abbr_day_names:
- Sul
- Llun
- Maw
- Mer
- Iau
- Gwe
- Sad
abbr_month_names:
-
- Ion
- Chw
- Maw
- Ebr
- Mai
- Meh
- Gor
- Awst
- Med
- Hyd
- Tach
- Rha
day_names:
- Dydd Sul
- Dydd Llun
- Dydd Mawrth
- Dydd Mercher
- Dydd Iau
- Dydd Gwener
- Dydd Sadwrn
formats:
default: "%d-%m-%Y"
long: "%d %B %Y"
short: "%d %b"
month_names:
-
- Ionawr
- Chwefror
- Mawrth
- Ebrill
- Mai
- Mehefin
- Gorffennaf
- Awst
- Medi
- Hydref
- Tachwedd
- Rhagfyr
order:
- :year
- :month
- :day
datetime:
distance_in_words:
about_x_hours:
zero: tua %{count} awr
one: tuag awr
two: tua %{count} awr
few: tua %{count} awr
many: tua %{count} awr
other: tua %{count} awr
about_x_months:
zero: tua %{count} mis
one: tua mis
two: tua %{count} mis
few: tua %{count} mis
many: tua %{count} mis
other: tua %{count} mis
about_x_years:
zero: tua %{count} blynedd
one: tua blwyddyn
two: tua %{count} blynedd
few: tua %{count} blynedd
many: tua %{count} blynedd
other: tua %{count} blynedd
almost_x_years:
zero: bron yn %{count} blynedd
one: bron yn flwyddyn
two: bron yn %{count} blynedd
few: bron yn %{count} blynedd
many: bron yn %{count} blynedd
other: bron yn %{count} blynedd
half_a_minute: hanner munud
less_than_x_seconds:
zero: llai na %{count} eiliad
one: llai nag eiliad
two: llai na %{count} eiliad
few: llai na %{count} eiliad
many: llai na %{count} eiliad
other: llai na %{count} eiliad
less_than_x_minutes:
zero: llai na %{count} munud
one: llai na munud
two: llai na %{count} munud
few: llai na %{count} munud
many: llai na %{count} munud
other: llai na %{count} munud
over_x_years:
zero: dros %{count} blynedd
one: dros flwyddyn
two: dros %{count} blynedd
few: dros %{count} blynedd
many: dros %{count} blynedd
other: dros %{count} blynedd
x_seconds:
zero: "%{count} o eiliadau"
one: 1 eiliad
two: "%{count} o eiliadau"
few: "%{count} o eiliadau"
many: "%{count} o eiliadau"
other: "%{count} o eiliadau"
x_minutes:
zero: "%{count} o funudau"
one: 1 munud
two: "%{count} o funudau"
few: "%{count} o funudau"
many: "%{count} o funudau"
other: "%{count} o funudau"
x_days:
zero: "%{count} diwrnod"
one: 1 diwrnod
two: "%{count} diwrnod"
few: "%{count} diwrnod"
many: "%{count} diwrnod"
other: "%{count} diwrnod"
x_months:
zero: "%{count} mis"
one: 1 mis
two: "%{count} mis"
few: "%{count} mis"
many: "%{count} mis"
other: "%{count} mis"
x_years:
one: 1 flwyddyn
other: "%{count} blwyddyn"
prompts:
second: Eiliad
minute: Munud
hour: Awr
day: Diwrnod
month: Mis
year: Blwyddyn
errors:
format: "%{attribute} %{message}"
messages:
accepted: angen ei dderbyn
blank: methu bod yn wag
confirmation: heb fod yn gyfateb
empty: methu bod yn wag
equal_to: angen bod yn %{count}
even: rhaid bod yn eilrif
exclusion: wedi cadw
greater_than: angen bod yn fwy na %{count}
greater_than_or_equal_to: angen bod yr un maint neu fwy na %{count}
inclusion: heb fod yn y rhestr
invalid: heb fod yn nheilwng
less_than: angen bod yn llai na %{count}
less_than_or_equal_to: angen bod yr un maint neu lai na %{count}
not_a_number: heb fod yn rhif
not_an_integer: heb fod yn rhif llawn
odd: rhaid bod yn odrif
taken: wedi'i gymryd yn barod
too_long: yn rhy hir (cewch %{count} llythyren ar y fwyaf)
too_short: yn rhy fyr (rhaid am o leiaf %{count} llythyren)
wrong_length: gyda maint anghywir o lythrennau (dylai fod yn %{count} llythyren)
template:
body: 'Cafwyd broblemau gyda''r meysydd canlynol:'
header:
one: Atalwyd y %{model} hwn rhag ei gadw gan 1 nam
two: Atalwyd y %{model} hwn rhag ei gadw gan %{count} nam
many: Atalwyd y %{model} hwn rhag ei gadw gan %{count} nam
other: Atalwyd y %{model} hwn rhag ei gadw gan %{count} nam
helpers:
select:
prompt: Dewiswch
submit:
create: Creu %{model}
submit: Cadw %{model}
update: Diweddaru %{model}
number:
currency:
format:
delimiter: ","
format: "%u%n"
precision: 2
separator: "."
significant: false
strip_insignificant_zeros: false
unit: "£"
format:
delimiter: ","
precision: 3
separator: "."
significant: false
strip_insignificant_zeros: false
human:
decimal_units:
format: "%n %u"
units:
billion: Biliwn
million: Miliwn
quadrillion: Cwadriliwn
thousand: Mil
trillion: Triliwn
unit: ''
format:
delimiter: ''
precision: 3
significant: true
strip_insignificant_zeros: true
storage_units:
format: "%n %u"
units:
byte:
zero: Bytes
one: Byte
two: Bytes
few: Bytes
many: Bytes
other: Bytes
gb: GB
kb: KB
mb: MB
tb: TB
eb: EB
pb: PB
percentage:
format:
delimiter: ''
precision:
format:
delimiter: ''
support:
array:
last_word_connector: ", a "
two_words_connector: " a "
words_connector: ", "
time:
am: yb
formats:
default: "%a, %d %b %Y %H:%M:%S %z"
long: "%d %B %Y %H:%M"
short: "%d %b %H:%M"
pm: yh

0 comments on commit b469c49

Please sign in to comment.