Skip to content

Commit 438c267

Browse files
committed
feat: add cookie category language entries
Introduce language strings for cookie categories used by the consent UI. Adds a comment header and keys for Necessary, Analytics, and Marketing cookies, including title, label and descriptive text (Necessary marked always active; Analytics and Marketing optional) to enable more granular consent messaging.
1 parent e9b576a commit 438c267

4 files changed

Lines changed: 24 additions & 6 deletions

File tree

src/admin/settings_lang.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
$lang['facebook_app_id'] = 'Facebook App ID';
6666
$lang['facebook_app_id_tip'] = 'Enter your Facebook application ID.';
6767
$lang['facebook_pixel_id'] = 'Facebook Pixel ID';
68-
$lang['facebook_pixel_id_tip'] = 'Your Facebook Pixel ID. Used to track visits and conversions. You can find it in Events Manager under your pixel\'s settings. If this pixel is already configured in Google Tag Manager, leave this field empty to avoid duplicate tracking.';
68+
$lang['facebook_pixel_id_tip'] = 'Your Facebook Pixel ID. Used to track visits and conversions. You can find it in Events Manager under your pixels settings. If this pixel is already configured in Google Tag Manager, leave this field empty to avoid duplicate tracking.';
6969
$lang['google_analytics_id'] = 'Google Analytics ID';
7070
$lang['google_analytics_id_tip'] = 'Enter your Google Analytics Tracking ID.';
7171
$lang['google_site_verification'] = 'Google Site Verification';
@@ -125,7 +125,7 @@
125125
$lang['site_description'] = 'Site Description';
126126
$lang['site_description_tip'] = 'Enter a short description for your site.';
127127
$lang['site_favicon'] = 'Site Favicon';
128-
$lang['site_favicon_tip'] = 'Enter the URL to the image or icon you want to use as your site\'s favicon.';
128+
$lang['site_favicon_tip'] = 'Enter the URL to the image or icon you want to use as your sites favicon.';
129129
$lang['site_name'] = 'Site Name';
130130
$lang['site_name_tip'] = 'Enter the name of your site.';
131131
$lang['site_offline_tip'] = 'Select if access to the site frontend is available.';
@@ -134,7 +134,7 @@
134134
$lang['site_short_name'] = 'Shorter Site Name';
135135
$lang['site_short_name_tip'] = 'Shorter version of the name, used in spaces where screen real estate is limited, like under icons.';
136136
$lang['site_theme_color'] = 'Theme Color';
137-
$lang['site_theme_color_tip'] = 'Sets the color of the browser\'s address bar when the user is viewing the site. Some mobile browsers, like Chrome on Android, use this to provide a more integrated experience.';
137+
$lang['site_theme_color_tip'] = 'Sets the color of the browsers address bar when the user is viewing the site. Some mobile browsers, like Chrome on Android, use this to provide a more integrated experience.';
138138
$lang['smtp_crypto'] = 'SMTP Encryption';
139139
$lang['smtp_crypto_tip'] = 'Choose the SMTP encryption.';
140140
$lang['smtp_host'] = 'SMTP Host';
@@ -178,7 +178,7 @@
178178
$lang['use_imgur'] = 'Upload to Imgur.com';
179179
$lang['use_imgur_tip'] = 'Upload your images to Imgur instead (<a href="https://api.imgur.com/oauth2/addclient" target="_blank" rel="noopener noreferrer nofollow">Requires App</a>).';
180180
$lang['use_manifest'] = 'Enable Progressive Web App';
181-
$lang['use_manifest_tip'] = 'A "manifest.json" file is a JSON file that provides metadata about a site or web application, primarily to enhance how the site behaves on mobile devices and how it can be added to the user\'s home screen as a Progressive Web App (PWA).';
181+
$lang['use_manifest_tip'] = 'A "manifest.json" file is a JSON file that provides metadata about a site or web application, primarily to enhance how the site behaves on mobile devices and how it can be added to the users home screen as a Progressive Web App (PWA).';
182182
$lang['use_recaptcha'] = 'Use reCAPTCHA';
183183
$lang['use_recaptcha_tip'] = 'Whether to use Google reCAPTCHA. Requires valid site and secret keys, and CAPTCHA to be enabled.';
184184

src/app_lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
$lang['enter_two_factor_auth'] = 'Enter the authentication code sent at your email address.';
159159
$lang['error'] = 'Error';
160160
$lang['error_404'] = 'Whoops! Sorry but...';
161-
$lang['error_404_body'] = 'We cannot find the page you\'re looking for.';
161+
$lang['error_404_body'] = 'We cannot find the page youre looking for.';
162162
$lang['error_404_uri'] = 'Error 404 (Not Found) !! %s';
163163
$lang['error_component_disabled'] = 'This component is disabled. Enable it on the dashboard in order to use it.';
164164
$lang['error_csrf'] = 'This action did not pass our security controls.';

src/ci3/upload_lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$lang['upload_no_file_selected'] = 'You did not select a file to upload.';
1111
$lang['upload_invalid_filetype'] = 'The filetype you are attempting to upload is not allowed.';
1212
$lang['upload_invalid_filesize'] = 'The file you are attempting to upload is larger than the permitted size.';
13-
$lang['upload_invalid_dimensions'] = 'The image you are attempting to upload doesn\'t fit into the allowed dimensions.';
13+
$lang['upload_invalid_dimensions'] = 'The image you are attempting to upload doesnt fit into the allowed dimensions.';
1414
$lang['upload_destination_error'] = 'A problem was encountered while attempting to move the uploaded file to the final destination.';
1515
$lang['upload_no_file_types'] = 'You have not specified any allowed file types.';
1616
$lang['upload_bad_filename'] = 'The file name you submitted already exists on the server.';

src/cookies_lang.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,21 @@
1111
$lang['cookies_consent_message'] = 'We use necessary cookies to keep this website working. With your permission, we also use analytics and marketing cookies to understand how visitors use the site and improve our content.';
1212
$lang['cookies_consent_accept_all'] = 'Accept all';
1313
$lang['cookies_consent_accept_required'] = 'Required only';
14+
15+
/**
16+
* ---------------------------------------------------------------
17+
* Cookie Categories
18+
* ---------------------------------------------------------------
19+
*/
20+
21+
$lang['cookies_category_necessary_title'] = 'Necessary cookies';
22+
$lang['cookies_category_necessary_label'] = 'Always active';
23+
$lang['cookies_category_necessary_description'] = 'These cookies are required for the website to work properly. They support core features such as cookie consent, language preferences, authentication, security, sessions, and trusted-device verification. They are always active because they are necessary for the website to function.';
24+
25+
$lang['cookies_category_analytics_title'] = 'Analytics cookies';
26+
$lang['cookies_category_analytics_label'] = 'Optional';
27+
$lang['cookies_category_analytics_description'] = 'These cookies help us understand how visitors use the website, such as which pages are visited and how users interact with the site. This information helps us improve performance, usability, and content. Analytics cookies are only used when enabled by the site administrator and accepted by the visitor.';
28+
29+
$lang['cookies_category_marketing_title'] = 'Marketing cookies';
30+
$lang['cookies_category_marketing_label'] = 'Optional';
31+
$lang['cookies_category_marketing_description'] = 'These cookies may be used to measure campaigns, personalize advertising, or integrate marketing services such as advertising pixels. They may be set by third-party services configured by the site administrator and are only used when accepted by the visitor.';

0 commit comments

Comments
 (0)