Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update welsh translations in organisations #3596

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
18 changes: 9 additions & 9 deletions config/locales/cy/organisations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cy:
contact_details: Manylion cyswllt
contact_form: 'Ffurflen Gysylltu: %{title}'
contact_organisation: Cysylltu â ni
email: E-bost
email: Ebost
telephone: Ffôn
corporate_information: Gwybodaeth gorfforaethol
count_prefix:
Expand All @@ -29,8 +29,8 @@ cy:
policy_and_engagement:
see_all:
path: "/search/policy-papers-and-consultations?organisations[]=%{organisation}&parent=%{organisation}"
text: Gweld yr holl bapurau polisi ac ymgynghoriadau
title: Papurau polisi ac ymgynghoriadau
text: Gweld yr holl bapurau polisi ac ymgyngoriadau
title: Papurau polisi ac ymgyngoriadau
research_and_statistics:
see_all:
path: "/search/research-and-statistics?organisations[]=%{organisation}&parent=%{organisation}"
Expand All @@ -44,11 +44,11 @@ cy:
transparency:
see_all:
path: "/search/transparency-and-freedom-of-information-releases?organisations[]=%{organisation}&parent=%{organisation}"
text: Gweld yr holl wybodaeth a ryddhawyd o dan FOI a thryloywder
title: Gwybodaeth a ryddhawyd o dan FOI a thryloywder
text: Gweld yr holl wybodaeth a ryddhawyd o dan DRhG a thryloywder
title: Gwybodaeth a ryddhawyd o dan DRhG a thryloywder
errors_or_omissions_html: <p class="govuk-body">Gwallau neu hepgoriadau? <a class="govuk-link" href="/contact/govuk">Rhowch wybod i ni yma</a>. I weld rhestrau swyddogol o gyrff cyhoeddus anadrannol <a class="govuk-link" href="/government/collections/public-bodies">gweler cyrff cyhoeddus</a>.</p>
foi:
contact_form: Ffurflen gysylltu FOI
contact_form: Ffurflen gysylltu DRhG
foi_exemption_html: 'Nid yw''r sefydliad hwn yn dod o dan y Ddeddf Rhyddid Gwybodaeth. I weld pa sefydliadau sydd wedi''u cynnwys, gweler <a href="%{foi_url}" class="govuk-link brand__color">y ddeddfwriaeth</a>.

'
Expand Down Expand Up @@ -84,13 +84,13 @@ cy:
ministers: Ein gweinidogion
special_representatives: Cynrychiolwyr arbennig
traffic_commissioners: Comisiynwyr traffig
read_more: Darllenwch fwy am beth rydyn ni'n wneud
read_more: Darllen rhagor am ein gwaith
search_for_department: Chwilio am adran, asiantaeth neu gorff cyhoeddus
see_all_latest_documents: Gweld yr holl ddogfennau diweddaraf
services_and_information: Pob %{acronym} gwasanaeth a gwybodaeth
subscription:
email: I gael e-byst
email_english_only: I gael e-byst (Saesneg yn unig)
email: I gael negeseuon ebost
email_english_only: I gael negeseuon ebost (Saesneg yn unig)
feed: Tanysgrifio i'r ffrwd
type:
adhoc_advisory_group: Grŵp cynghori ad-hoc
Expand Down
2 changes: 1 addition & 1 deletion spec/features/organisation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
expect(page).to have_css("a[href='/government/organisations/attorney-generals-office/about']", text: "Read more about what we do")

visit "/government/organisations/office-of-the-secretary-of-state-for-wales.cy"
expect(page).to have_css("a[href='/government/organisations/office-of-the-secretary-of-state-for-wales/about.cy']", text: "Darllenwch fwy am beth rydyn ni'n wneud")
expect(page).to have_css("a[href='/government/organisations/office-of-the-secretary-of-state-for-wales/about.cy']", text: "Darllen rhagor am ein gwaith")
end

it "shows translated text on welsh pages" do
Expand Down
2 changes: 1 addition & 1 deletion spec/presenters/organisations/show_presenter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def build_show_presenter_for_org(title, type, base_path: "/base/path", brand: "b
I18n.with_locale(:cy) do
expect(presenter.subscription_links).to eq({
email_signup_link: "/email-signup?link=#{base_path}",
email_signup_link_text: "I gael e-byst (Saesneg yn unig)",
email_signup_link_text: "I gael negeseuon ebost (Saesneg yn unig)",
email_signup_link_text_locale: false,
brand: "brand",
})
Expand Down