From 3ca17d3fa1f9717df9b270b9dccee57e5dab8d6b Mon Sep 17 00:00:00 2001 From: jovuit Date: Thu, 7 Feb 2019 14:26:00 +0100 Subject: [PATCH 1/2] Nest multiple component parts by a dot instead of a / --- CONTRIBUTING.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 35a0ebddf..4612ce96d 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -489,13 +489,13 @@ Here are a few examples of valid context hierarchies: - ``*/*/*/Verb, Short`` - ``Modal/Playlist/Button`` -It's possible to nest multiple component parts to reach a higher level of detail: +It's possible to nest multiple component parts to reach a higher level of detail. The component parts are then separated by a dot: -- ``Sidebar/Queue/Tab/Title`` -- ``Content/*/Button/Title`` -- ``Content/*/Table/Header`` -- ``Footer/*/List item/Link`` -- ``Content/*/Form/Help text`` +- ``Sidebar/Queue/Tab.Title`` +- ``Content/*/Button.Title`` +- ``Content/*/Table.Header`` +- ``Footer/*/List item.Link`` +- ``Content/*/Form.Help text`` Collecting translatable strings ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ From 7d52de5cb4c40d3e9dbb2d040b2c21c5ce4c0b5a Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Thu, 7 Feb 2019 14:33:27 +0100 Subject: [PATCH 2/2] Update CONTRIBUTING.rst --- CONTRIBUTING.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 4612ce96d..25ff14c2a 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -483,7 +483,7 @@ The detail part, which is optional and refers to the contents of the string itse Here are a few examples of valid context hierarchies: -- ``Sidebar/Player/Button/Title`` +- ``Sidebar/Player/Button`` - ``Content/Home/Button/Call to action`` - ``Footer/*/Help text`` - ``*/*/*/Verb, Short``