diff --git a/app/assets/stylesheets/components/_publisher-metadata.scss b/app/assets/stylesheets/components/_publisher-metadata.scss index b0d70dc16..94db82eee 100644 --- a/app/assets/stylesheets/components/_publisher-metadata.scss +++ b/app/assets/stylesheets/components/_publisher-metadata.scss @@ -11,4 +11,18 @@ .app-c-publisher-metadata__term { float: left; padding-right: $gutter-one-third / 2; + + .direction-rtl & { + float: none; + display: inline-block; + padding-right: 0; + padding-left: 5px; + } +} + +.app-c-publisher-metadata__definition { + .direction-rtl & { + float: none; + display: inline-block; + } } diff --git a/app/views/components/docs/publisher-metadata.yml b/app/views/components/docs/publisher-metadata.yml index d1d45bd7b..155818bb9 100644 --- a/app/views/components/docs/publisher-metadata.yml +++ b/app/views/components/docs/publisher-metadata.yml @@ -80,3 +80,12 @@ examples: data: other: Applies to: "England, Scotland, and Wales (see detailed guidance for Northern Ireland)" + right_to_left: + data: + published: 31 July 2017 + last_updated: 20 September 2017 + other: + from: + - Ministry of Defence + context: + right_to_left: true diff --git a/app/views/content_items/consultation.html.erb b/app/views/content_items/consultation.html.erb index 8dc09b85b..1413b1257 100644 --- a/app/views/content_items/consultation.html.erb +++ b/app/views/content_items/consultation.html.erb @@ -172,7 +172,7 @@ <%= render 'govuk_publishing_components/components/share_links', links: @content_item.share_links, track_as_sharing: true, - title: 'Share this page' + title: t('components.share_links.share_this_page') %> diff --git a/app/views/content_items/news_article.html.erb b/app/views/content_items/news_article.html.erb index e8c9ce569..df2b94d46 100644 --- a/app/views/content_items/news_article.html.erb +++ b/app/views/content_items/news_article.html.erb @@ -34,7 +34,7 @@ <%= render 'govuk_publishing_components/components/share_links', links: @content_item.share_links, track_as_sharing: true, - title: 'Share this page' + title: t('components.share_links.share_this_page') %> diff --git a/app/views/content_items/world_location_news_article.html.erb b/app/views/content_items/world_location_news_article.html.erb index d3b333687..ec1a9c0cf 100644 --- a/app/views/content_items/world_location_news_article.html.erb +++ b/app/views/content_items/world_location_news_article.html.erb @@ -35,7 +35,7 @@ <%= render 'govuk_publishing_components/components/share_links', links: @content_item.share_links, track_as_sharing: true, - title: 'Share this page' + title: t('components.share_links.share_this_page') %> diff --git a/config/locales/ar.yml b/config/locales/ar.yml index 44881e7ec..0723fed84 100644 --- a/config/locales/ar.yml +++ b/config/locales/ar.yml @@ -3,6 +3,21 @@ ar: direction: rtl language_names: ar: "العربية" + components: + share_links: + share_this_page: "شارك هذه الصفحة" + related_navigation: + collections: "مجموعات" + external_links: "روابط خارجية" + policies: "سياسيات" + related_content: "محتوى ذو صلة" + topical_events: "أحداث ذات صلة بالموضوع" + topics: "المواضيع" + world_locations: "العالم" + published_dates: + published: "تاريخ النشر %{date}" + publisher_metadata: + from: "من" content_item: schema_name: announcement: diff --git a/config/locales/en.yml b/config/locales/en.yml index e8b7e8fa6..1b0a345a7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -26,6 +26,8 @@ en: common: last_updated: "Last updated" components: + share_links: + share_this_page: "Share this page" publisher_metadata: from: "From" collections: "Collections" diff --git a/config/locales/ru.yml b/config/locales/ru.yml index cc67ab858..c8e340bf7 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -1,6 +1,15 @@ ru: language_names: ru: "Русский" + components: + related_navigation: + collections: "Коллекции" + external_links: "Внешние ссылки" + policies: "Политика" + related_content: "На эту тему" + topical_events: "Актуальные события" + topics: "Темы" + world_locations: "Страны, регионы, организации" content_item: schema_name: announcement: