Skip to content

Commit

Permalink
feat: remove only_internal version from permissions descriptions
Browse files Browse the repository at this point in the history
With previous rewording there is no difference between wording for
internal permissions only and wording for internal permissions preceded
by external permissions block

So related code has been simplified by removing translation variant
  • Loading branch information
Ldoppea committed Aug 26, 2021
1 parent f3cb079 commit 98b621b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
8 changes: 1 addition & 7 deletions src/ducks/apps/components/PermissionsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,7 @@ export const PermissionsList = ({ t, app }) => {
size="24"
color="#35CE68"
/>
<p>
{externalPermissions.length
? t('permissions.description.internal', { name: developerName })
: t('permissions.description.only_internal', {
name: developerName
})}
</p>
<p>{t('permissions.description.internal', { name: developerName })}</p>
</div>
)}
<ul className="sto-perm-list">{internalPermissions}</ul>
Expand Down
1 change: 0 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@
"reason": "**Reason: **",
"developer_default": "The developer of this application",
"description": {
"only_internal": "This app will not transmit any data to its developer %{name}, it will use it only locally in your Cozy without transmission to anyone:",
"internal": "This app will not transmit any data to its developer %{name}, it will use it only locally in your Cozy without transmission to anyone:",
"external": "%{name} could use and extract these data from your Cozy only for the following purposes:",
"nothing": "%{appName} doesn't require any data access to work correctly on your Cozy."
Expand Down
1 change: 0 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@
"reason": "**Motif : **",
"developer_default": "Le•a développeur•se de cette application",
"description": {
"only_internal": "Cette application ne transmettra aucune de ces données à son éditeur %{name}, elle les utilisera localement dans votre Cozy sans jamais les transmettre à qui que ce soit :",
"internal": "Cette application ne transmettra aucune de ces données à son éditeur %{name}, elle les utilisera localement dans votre Cozy sans jamais les transmettre à qui que ce soit :",
"external": "%{name} pourra utiliser et extraire de votre Cozy ces données uniquement pour les motifs suivants :",
"nothing": "%{appName} ne requiert aucun accès à vos données pour fonctionner correctement sur votre Cozy."
Expand Down

0 comments on commit 98b621b

Please sign in to comment.