]> BookStack Code Mirror - bookstack/commitdiff
Updated language files to remove literal "1" values
authorDan Brown <redacted>
Mon, 20 Feb 2023 12:05:52 +0000 (12:05 +0000)
committerDan Brown <redacted>
Mon, 20 Feb 2023 12:05:52 +0000 (12:05 +0000)
This is to encourge the ":count" values to be used instead of 1s in the
translated variants so that non-pluralised languages are hardcoded with
"1"s in their content, even when not used in a singular context.

For #4040

lang/en/entities.php
lang/en/settings.php

index 8bf8057746f5ad8d42d799d1a71c14a036b9c378..9b02f31118a8c06d24043499112702fc5df18d98 100644 (file)
@@ -23,7 +23,7 @@ return [
     'meta_updated' => 'Updated :timeLength',
     'meta_updated_name' => 'Updated :timeLength by :user',
     'meta_owned_name' => 'Owned by :user',
-    'meta_reference_page_count' => 'Referenced on 1 page|Referenced on :count pages',
+    'meta_reference_page_count' => 'Referenced on :count page|Referenced on :count pages',
     'entity_select' => 'Entity Select',
     'entity_select_lack_permission' => 'You don\'t have the required permissions to select this item',
     'images' => 'Images',
index 5a94a824a77f2a49a0c07a5abbd10f9f04ee4f92..76e689b6d583b6ab2c02ab2c41ca4ff034b591e0 100644 (file)
@@ -138,8 +138,8 @@ return [
     'roles' => 'Roles',
     'role_user_roles' => 'User Roles',
     'roles_index_desc' => 'Roles are used to group users & provide system permission to their members. When a user is a member of multiple roles the privileges granted will stack and the user will inherit all abilities.',
-    'roles_x_users_assigned' => '1 user assigned|:count users assigned',
-    'roles_x_permissions_provided' => '1 permission|:count permissions',
+    'roles_x_users_assigned' => ':count user assigned|:count users assigned',
+    'roles_x_permissions_provided' => ':count permission|:count permissions',
     'roles_assigned_users' => 'Assigned Users',
     'roles_permissions_provided' => 'Provided Permissions',
     'role_create' => 'Create New Role',
@@ -249,7 +249,7 @@ return [
     // Webhooks
     'webhooks' => 'Webhooks',
     'webhooks_index_desc' => 'Webhooks are a way to send data to external URLs when certain actions and events occur within the system which allows event-based integration with external platforms such as messaging or notification systems.',
-    'webhooks_x_trigger_events' => '1 trigger event|:count trigger events',
+    'webhooks_x_trigger_events' => ':count trigger event|:count trigger events',
     'webhooks_create' => 'Create New Webhook',
     'webhooks_none_created' => 'No webhooks have yet been created.',
     'webhooks_edit' => 'Edit Webhook',