PluginProbe
Chartify – WordPress Chart Plugin / 3.5.4
Chartify – WordPress Chart Plugin v3.5.4
3.8.0 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 trunk 1.0.0 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 All 83 releases
← All changes | includes/class-chart-builder-integrations.php +61 -52 3.1.53.5.4 View file →
@@ -59,11 +59,21 @@
59 59 $this->plugin_name = $plugin_name;
60 60 $this->version = $version;
61 61 $this->settings_obj = new Chart_Builder_Settings_DB_Actions($this->plugin_name);
62 62
63 + // Add an action to load translations properly
64 + add_action('wp_loaded', array($this, 'ays_chart_load_translations'));
65 + }
66 +
67 + /**
68 + * Load plugin translations.
69 + */
70 + public function ays_chart_load_translations() {
71 +
63 72 $settings_url = sprintf(
64 - __( "For enabling this option, please go to %s page and fill all options.", $this->plugin_name ),
65 - "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=".$this->plugin_name."-settings&ays_tab=tab2' target='_blank'>". __( "this", $this->plugin_name ) ."</a>"
73 + // Translators: %s will be replaced with a link to the settings page.
74 + __( "For enabling this option, please go to %s page and fill all options.", 'chart-builder' ),
75 + "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=".'chart-builder'."-settings&ays_tab=tab2' target='_blank'>". __( "this", 'chart-builder' ) ."</a>"
66 76 );
67 77 $blockquote_content = '<blockquote class="error_message">'. $settings_url .'</blockquote>';
68 78 $this->blockquote_content = $blockquote_content;
69 79 }
@@ -72,10 +82,10 @@
72 82
73 83 public function ays_chart_page_integrations_content( $args ){
74 84
75 85 if( ! $this->settings_obj->get_permission_for_editing_plugin() ){
76 - $settings_url = __( "This functionality is disabled.", $this->plugin_name );
77 - $blockquote_content = '<blockquote class="error_message">'. $settings_url .'</blockquote>';
86 + $settings_url = esc_html__( "This functionality is disabled.", 'chart-builder' );
87 + $blockquote_content = '<blockquote class="error_message">'. esc_html( $settings_url ) .'</blockquote>';
78 88 $this->blockquote_content = $blockquote_content;
79 89 }
80 90
81 91 $integrations_contents = apply_filters( 'ays_cb_chart_page_integrations_contents', array(), $args );
@@ -86,11 +96,11 @@
86 96 $content = '<fieldset>';
87 97 if(isset($integrations_content['title'])){
88 98 $content .= '<legend>';
89 99 if(isset($integrations_content['icon'])){
90 - $content .= '<img class="ays_integration_logo" src="'. $integrations_content['icon'] .'" alt="">';
100 + $content .= '<img class="ays_integration_logo" src="' . esc_url( $integrations_content['icon'] ) . '" alt="">';
91 101 }
92 - $content .= '<h5>'. $integrations_content['title'] .'</h5></legend>';
102 + $content .= '<h5>' . esc_html( $integrations_content['title'] ) . '</h5></legend>';
93 103 }
94 104 $content .= $integrations_content['content'];
95 105
96 106 $content .= '</fieldset>';
@@ -96,11 +106,10 @@
96 106 $content .= '</fieldset>';
97 107
98 108 $integrations[] = $content;
99 109 }
110 + echo implode('<hr />', $integrations) ;
100 111
101 - echo implode('<hr />', $integrations);
102 -
103 112 }
104 113
105 114 // Integrations settings page action hook
106 115 public function ays_settings_page_integrations_content( $args ){
@@ -126,9 +135,9 @@
126 135
127 136 $integrations[] = $content;
128 137 }
129 138
130 - echo implode('<hr />', $integrations);
139 + echo implode('<hr />', $integrations) ;
131 140 }
132 141
133 142 ////////////////////////////////////////////////////////////////////////////////////////
134 143 //====================================================================================//
@@ -147,42 +156,42 @@
147 156 <div class="ays-pro-features-v2-big-buttons-box">
148 157 <a href="https://www.youtube.com/watch?v=Qox2ev6OgUM" target="_blank" class="ays-pro-features-v2-video-button">
149 158 <div class="ays-pro-features-v2-video-icon" style="background-image: url('<?php echo esc_attr(CHART_BUILDER_ADMIN_URL); ?>/images/icons/pro-features-icons/Video_24x24.svg');" data-img-src="<?php echo esc_attr(CHART_BUILDER_ADMIN_URL); ?>/images/icons/pro-features-icons/Video_24x24_Hover.svg"></div>
150 159 <div class="ays-pro-features-v2-video-text">
151 - <?php echo __("Watch Video" , "chart-builder"); ?>
160 + <?php echo esc_html__("Watch Video" , "chart-builder"); ?>
152 161 </div>
153 162 </a>
154 163 <a href="https://ays-pro.com/wordpress/chart-builder" target="_blank" class="ays-pro-features-v2-upgrade-button">
155 164 <div class="ays-pro-features-v2-upgrade-icon" style="background-image: url('<?php echo esc_attr(CHART_BUILDER_ADMIN_URL); ?>/images/icons/pro-features-icons/Locked_24x24.svg');" data-img-src="<?php echo esc_attr(CHART_BUILDER_ADMIN_URL); ?>/images/icons/pro-features-icons/Locked_24x24.svg"></div>
156 165 <div class="ays-pro-features-v2-upgrade-text">
157 - <?php echo __("Upgrade" , "chart-builder"); ?>
166 + <?php echo esc_html__("Upgrade" , "chart-builder"); ?>
158 167 </div>
159 168 </a>
160 169 </div>
161 - <div class="<?= $html_class_prefix ?>source-data-main-wrap">
162 - <div class="<?= $html_class_prefix ?>chart-source-data-main">
170 + <div class="<?php echo esc_attr($html_class_prefix) ?>source-data-main-wrap">
171 + <div class="<?php echo esc_attr($html_class_prefix) ?>chart-source-data-main">
163 172 <div id="ays-chart-google-sheet-form">
164 - <div class="<?= $html_class_prefix ?>google-sheet-select-wrap">
165 - <select name="<?= $html_name_prefix ?>google_sheet_id" id="" class="<?= $html_class_prefix ?>google-sheet-select" data-chart-id="1">
166 - <option value=""><?= __( 'Select spreadsheet', $this->plugin_name ) ?></option>
173 + <div class="<?php echo esc_attr($html_class_prefix)?>google-sheet-select-wrap">
174 + <select name="<?php echo esc_attr($html_class_prefix) ?>google_sheet_id" id="" class="<?php echo esc_attr($html_class_prefix) ?>google-sheet-select" data-chart-id="1">
175 + <option value=""><?php echo esc_html__( 'Select spreadsheet', 'chart-builder' ) ?></option>
167 176 </select>
168 177 </div>
169 178 <div class="ays-chart-buttons-group">
170 179 <div class="ays-chart-buttons-group-main">
171 180 <button class="<?php echo esc_attr($html_class_prefix) ?>show-on-chart-bttns" id="ays-chart-gsheet-fetch">
172 - <?php echo __( 'Show Results', "chart-builder" ); ?>
181 + <?php echo esc_html__( 'Show Results', "chart-builder" ); ?>
173 182 </button>
174 183 <button class="<?php echo esc_attr($html_class_prefix) ?>show-on-chart-bttns" id="ays-chart-gsheet-show-on-chart">
175 184 <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.722 6.59785C12.2407 3.47754 10.0017 1.90723 7.00009 1.90723C3.99697 1.90723 1.75947 3.47754 0.278215 6.59941C0.218802 6.72522 0.187988 6.86263 0.187988 7.00176C0.187988 7.14089 0.218802 7.27829 0.278215 7.4041C1.75947 10.5244 3.99853 12.0947 7.00009 12.0947C10.0032 12.0947 12.2407 10.5244 13.722 7.40254C13.8423 7.14941 13.8423 6.85566 13.722 6.59785ZM7.00009 10.9697C4.47978 10.9697 2.63447 9.6916 1.3329 7.00098C2.63447 4.31035 4.47978 3.03223 7.00009 3.03223C9.5204 3.03223 11.3657 4.31035 12.6673 7.00098C11.3673 9.6916 9.52197 10.9697 7.00009 10.9697ZM6.93759 4.25098C5.41884 4.25098 4.18759 5.48223 4.18759 7.00098C4.18759 8.51973 5.41884 9.75098 6.93759 9.75098C8.45634 9.75098 9.68759 8.51973 9.68759 7.00098C9.68759 5.48223 8.45634 4.25098 6.93759 4.25098ZM6.93759 8.75098C5.9704 8.75098 5.18759 7.96816 5.18759 7.00098C5.18759 6.03379 5.9704 5.25098 6.93759 5.25098C7.90478 5.25098 8.68759 6.03379 8.68759 7.00098C8.68759 7.96816 7.90478 8.75098 6.93759 8.75098Z" fill="#14524A" /></svg>
176 - <?php echo __( 'Preview', "chart-builder" ); ?>
185 + <?php echo esc_html__( 'Preview', "chart-builder" ); ?>
177 186 </button>
178 187 <button class="<?php echo esc_attr($html_class_prefix) ?>show-on-chart-bttns" id="ays-chart-gsheet-save">
179 - <?php echo __( 'Save data', "chart-builder" ); ?>
188 + <?php echo esc_html__( 'Save data', "chart-builder" ); ?>
180 189 </button>
181 190 </div>
182 191 <div class="ays-chart-buttons-group-columns">
183 192 <button class="<?php echo esc_attr($html_class_prefix) ?>show-on-chart-bttns" id="ays-chart-gsheet-columns">
184 - <?php echo __( 'Columns', "chart-builder" ); ?>
193 + <?php echo esc_html__( 'Columns', "chart-builder" ); ?>
185 194 </button>
186 195 </div>
187 196 </div>
188 197 </div>
@@ -191,9 +200,9 @@
191 200 </div>
192 201 <?php
193 202 $content = ob_get_clean();
194 203
195 - $title = __( 'Connect to Google Sheets', $this->plugin_name ) . ' <a class="ays_help" data-bs-toggle="tooltip" title="' . __("Activate Google Integration to import the information from the Google Sheets.",$this->plugin_name) . '">
204 + $title = __( 'Connect to Google Sheets', 'chart-builder') . ' <a class="ays_help" data-bs-toggle="tooltip" title="' . __("Activate Google Integration to import the information from the Google Sheets.",'chart-builder') . '">
196 205 <i class="ays_fa ays_fa_info_circle"></i>
197 206 </a>';
198 207
199 208 $sources['google_sheet'] = array(
@@ -207,9 +216,9 @@
207 216 // Google sheet integration / settings page
208 217 // Google sheet integration / settings page content
209 218 public function ays_settings_page_google_sheet_content($integrations, $args){
210 219 $icon = CHART_BUILDER_ADMIN_URL . '/images/integrations/google_logo.png';
211 - $title = __( 'Google', $this->plugin_name );
220 + $title = __( 'Google', 'chart-builder' );
212 221
213 222 $content = '<div class="form-group row ays-pro-features-v2-main-box">
214 223 <div class="ays-pro-features-v2-small-buttons-box" style="width:fit-content;">
215 224 <a href="https://www.youtube.com/watch?v=Qox2ev6OgUM" target="_blank" class="ays-pro-features-v2-video-button">
@@ -220,9 +229,9 @@
220 229 </a>
221 230 <a href="https://ays-pro.com/wordpress/chart-builder" target="_blank" class="ays-pro-features-v2-upgrade-button">
222 231 <div class="ays-pro-features-v2-upgrade-icon" style="background-image: url(&quot;' . esc_attr(CHART_BUILDER_ADMIN_URL) . '/images/icons/pro-features-icons/Locked_24x24.svg&quot;)" data-img-src="' . esc_attr(CHART_BUILDER_ADMIN_URL) . '/images/icons/pro-features-icons/Locked_24x24.svg"></div>
223 232 <div class="ays-pro-features-v2-upgrade-text">
224 - '. __("Upgrade", $this->plugin_name) .'
233 + '. __("Upgrade", 'chart-builder') .'
225 234 </div>
226 235 </a>
227 236 </div>
228 237 <div class="col-sm-12">
@@ -227,22 +236,22 @@
227 236 </div>
228 237 <div class="col-sm-12">
229 238 <div class="form-group row" aria-describedby="aaa">
230 239 <div class="col-sm-3">
231 - <button id="googleInstructionsPopOver" type="button" class="btn btn-info" data-original-title="Google Integration Setup Instructions" >'. __("Instructions", $this->plugin_name). '</button>
240 + <button id="googleInstructionsPopOver" type="button" class="btn btn-info" data-original-title="Google Integration Setup Instructions" >'. __("Instructions", 'chart-builder'). '</button>
232 241 <div class="d-none" id="googleInstructions">
233 - <p>1. '. __("Turn on Your Google Sheet API", $this->plugin_name) .'
242 + <p>1. '. __("Turn on Your Google Sheet API", 'chart-builder') .'
234 243 <a href="https://console.developers.google.com" target="_blank">https://console.developers.google.com</a>
235 244 </p>
236 - <p>2. <a href="https://console.developers.google.com/apis/credentials" target="_blank">'. __("Create ", $this->plugin_name) .'</a>'. __("new Google Oauth client ID credentials (if you do not still have)", $this->plugin_name).'</p>
237 - <p>3. '. __("Choose the application type as <b>Web application</b>", $this->plugin_name) .'</p>
238 - <p>4. '. __("Add the following link in the <b>Authorized redirect URIs</b> field", $this->plugin_name) .'</p>
245 + <p>2. <a href="https://console.developers.google.com/apis/credentials" target="_blank">'. __("Create ", 'chart-builder') .'</a>'. __("new Google Oauth client ID credentials (if you do not still have)", 'chart-builder').'</p>
246 + <p>3. '. __("Choose the application type as <b>Web application</b>", 'chart-builder') .'</p>
247 + <p>4. '. __("Add the following link in the <b>Authorized redirect URIs</b> field", 'chart-builder') .'</p>
239 248 <p>
240 249 <code>Redirect url</code>
241 250 </p>
242 - <p>5. '. __("Click on the <b>Create</b> button", $this->plugin_name) .'</p>
243 - <p>6. '. __("Copy the <b>Your Client ID</b> and <b>Your Client Secret</b> from the opened popup and paste them in the corresponding fields.", $this->plugin_name) .'</p>
244 - <p>7. '. __("Click on the <b>Connect</b> button to complete authorization", $this->plugin_name) .'</p>
251 + <p>5. '. __("Click on the <b>Create</b> button", 'chart-builder') .'</p>
252 + <p>6. '. __("Copy the <b>Your Client ID</b> and <b>Your Client Secret</b> from the opened popup and paste them in the corresponding fields.", 'chart-builder') .'</p>
253 + <p>7. '. __("Click on the <b>Connect</b> button to complete authorization", 'chart-builder') .'</p>
245 254 </div>
246 255 </div>
247 256 </div>
248 257 <div class="form-group row">
@@ -247,9 +256,9 @@
247 256 </div>
248 257 <div class="form-group row">
249 258 <div class="col-sm-3">
250 259 <label for="ays_google_client">
251 - '. __("Google Client ID", $this->plugin_name) .'
260 + '. __("Google Client ID", 'chart-builder') .'
252 261 </label>
253 262 </div>
254 263 <div class="col-sm-9">
255 264 <input type="text" class="ays-text-input" id="ays_google_client" name="ays_google_client" value="">
@@ -258,9 +267,9 @@
258 267 <br>
259 268 <div class="form-group row">
260 269 <div class="col-sm-3">
261 270 <label for="ays_google_secret">
262 - '. __("Google Client Secret", $this->plugin_name) .'
271 + '. __("Google Client Secret", 'chart-builder') .'
263 272 </label>
264 273 </div>
265 274 <div class="col-sm-9">
266 275 <input type="text" class="ays-text-input" id="ays_google_secret" name="ays_google_secret" value="">
@@ -271,9 +280,9 @@
271 280 <div class="form-group row">
272 281 <div class="col-sm-3"></div>
273 282 <div class="col-sm-9">
274 283 <button type="submit" name="ays_googleOAuth2" id="ays_googleOAuth2" class="btn btn-outline-info">
275 - '. __("Connect", $this->plugin_name) .'
284 + '. __("Connect",'chart-builder') .'
276 285 </button>
277 286 </div>
278 287 </div>
279 288 </div>
@@ -312,9 +321,9 @@
312 321 <div class="ays-pro-features-v2-small-buttons-box" style="width:fit-content;">
313 322 <a href="https://ays-pro.com/wordpress/chart-builder" target="_blank" class="ays-pro-features-v2-upgrade-button">
314 323 <div class="ays-pro-features-v2-upgrade-icon" style="background-image: url(&quot;' . esc_attr(CHART_BUILDER_ADMIN_URL) . '/images/icons/pro-features-icons/Locked_24x24.svg&quot;)" data-img-src="' . esc_attr(CHART_BUILDER_ADMIN_URL) . '/images/icons/pro-features-icons/Locked_24x24.svg"></div>
315 324 <div class="ays-pro-features-v2-upgrade-text">
316 - '. __("Upgrade", $this->plugin_name) .'
325 + '. __("Upgrade", 'chart-builder') .'
317 326 </div>
318 327 </a>
319 328 </div>
320 329 <div class="col-sm-12">
@@ -319,25 +328,25 @@
319 328 </div>
320 329 <div class="col-sm-12">
321 330 <div class="form-group row" aria-describedby="aaa">
322 331 <div class="col-sm-3">
323 - <button id="dbInstructionsPopOver" type="button" class="btn btn-info" data-original-title="Database Integration Setup Instructions" >' . __("Instructions", $this->plugin_name) . '</button>
332 + <button id="dbInstructionsPopOver" type="button" class="btn btn-info" data-original-title="Database Integration Setup Instructions" >' . __("Instructions", 'chart-builder') . '</button>
324 333 <div class="d-none" id="dbInstructions">
325 - <p><strong>' . __("IP Access:", $this->plugin_name) . '</strong></p>
326 - <p>'. __("In some cases, your database may block connections from unknown IP addresses. You might need to whitelist your IP in the database settings to allow access.", $this->plugin_name) .'</p>
327 - <p><strong>' . __("Database Host:", $this->plugin_name) . '</strong> ' . __("Enter the address of your database (e.g., 'localhost', or a host like 'db.example.com').", $this->plugin_name) . '</p>
328 - <p><strong>' . __("Database Name:", $this->plugin_name) . '</strong> ' . __("Enter the name of the database you want to connect to.", $this->plugin_name) . '</p>
329 - <p><strong>' . __("Database User:", $this->plugin_name) . '</strong> ' . __("Enter the username for accessing the database.", $this->plugin_name) . '</p>
330 - <p><strong>' . __("Database Password:", $this->plugin_name) . '</strong> ' . __("Enter the password for your database user. Make sure this is correct.", $this->plugin_name) . '</p>
331 - <p><strong>' . __("Database Port (Optional):", $this->plugin_name) . '</strong> ' . __("The default MySQL port is '3306'. You can leave this field empty. If your host doesn't specify a port, we'll use the default value.", $this->plugin_name) . '</p>
332 - <p><strong>' . __("Test Connection:", $this->plugin_name) . '</strong> ' . __("Click on the 'Test Connection' button to verify that the connection is successful.", $this->plugin_name) . '</p>
333 - <p><strong>' . __("If the test fails:", $this->plugin_name) . '</strong> ' . __("Please recheck your details or verify if your IP address is whitelisted.", $this->plugin_name) . '</p>
334 + <p><strong>' . __("IP Access:", 'chart-builder') . '</strong></p>
335 + <p>'. __("In some cases, your database may block connections from unknown IP addresses. You might need to whitelist your IP in the database settings to allow access.", 'chart-builder') .'</p>
336 + <p><strong>' . __("Database Host:", 'chart-builder') . '</strong> ' . __("Enter the address of your database (e.g., 'localhost', or a host like 'db.example.com').", 'chart-builder') . '</p>
337 + <p><strong>' . __("Database Name:", 'chart-builder') . '</strong> ' . __("Enter the name of the database you want to connect to.", 'chart-builder') . '</p>
338 + <p><strong>' . __("Database User:", 'chart-builder') . '</strong> ' . __("Enter the username for accessing the database.", 'chart-builder') . '</p>
339 + <p><strong>' . __("Database Password:", 'chart-builder') . '</strong> ' . __("Enter the password for your database user. Make sure this is correct.", 'chart-builder') . '</p>
340 + <p><strong>' . __("Database Port (Optional):", 'chart-builder') . '</strong> ' . __("The default MySQL port is '3306'. You can leave this field empty. If your host doesn't specify a port, we'll use the default value.", 'chart-builder') . '</p>
341 + <p><strong>' . __("Test Connection:", 'chart-builder') . '</strong> ' . __("Click on the 'Test Connection' button to verify that the connection is successful.", 'chart-builder') . '</p>
342 + <p><strong>' . __("If the test fails:", 'chart-builder') . '</strong> ' . __("Please recheck your details or verify if your IP address is whitelisted.", 'chart-builder') . '</p>
334 343 </div>
335 344 </div>
336 345 </div>
337 346 <div class="form-group row">
338 347 <div class="col-sm-3">
339 - <label for="ays_database_host">'. __("Database Host", $this->plugin_name) .'</label>
348 + <label for="ays_database_host">'. __("Database Host", 'chart-builder') .'</label>
340 349 </div>
341 350 <div class="col-sm-9">
342 351 <input type="text" class="ays-text-input" id="ays_database_host" name="ays_database_host" value="'. esc_attr($db_host) .'">
343 352 </div>
@@ -344,9 +353,9 @@
344 353 </div>
345 354 <br>
346 355 <div class="form-group row">
347 356 <div class="col-sm-3">
348 - <label for="ays_database_name">'. __("Database Name", $this->plugin_name) .'</label>
357 + <label for="ays_database_name">'. __("Database Name", 'chart-builder') .'</label>
349 358 </div>
350 359 <div class="col-sm-9">
351 360 <input type="text" class="ays-text-input" id="ays_database_name" name="ays_database_name" value="'. esc_attr($db_name) .'">
352 361 </div>
@@ -353,9 +362,9 @@
353 362 </div>
354 363 <br>
355 364 <div class="form-group row">
356 365 <div class="col-sm-3">
357 - <label for="ays_database_user">'. __("Database User", $this->plugin_name) .'</label>
366 + <label for="ays_database_user">'. __("Database User", 'chart-builder') .'</label>
358 367 </div>
359 368 <div class="col-sm-9">
360 369 <input type="text" class="ays-text-input" id="ays_database_user" name="ays_database_user" value="'. esc_attr($db_user) .'">
361 370 </div>
@@ -362,9 +371,9 @@
362 371 </div>
363 372 <br>
364 373 <div class="form-group row">
365 374 <div class="col-sm-3">
366 - <label for="ays_database_password">'. __("Database Password", $this->plugin_name) .'</label>
375 + <label for="ays_database_password">'. __("Database Password", 'chart-builder') .'</label>
367 376 </div>
368 377 <div class="col-sm-9">
369 378 <input type="password" class="ays-text-input" id="ays_database_password" name="ays_database_password" value="'. esc_attr($db_password) .'">
370 379 </div>
@@ -371,9 +380,9 @@
371 380 </div>
372 381 <br>
373 382 <div class="form-group row">
374 383 <div class="col-sm-3">
375 - <label for="ays_database_port">'. __("Database Port (optional)", $this->plugin_name) .'</label>
384 + <label for="ays_database_port">'. __("Database Port (optional)", 'chart-builder') .'</label>
376 385 </div>
377 386 <div class="col-sm-9">
378 387 <input type="text" class="ays-text-input" id="ays_database_port" name="ays_database_port" value="'. esc_attr($db_port) .'" placeholder="3306">
379 388 </div>
@@ -382,9 +391,9 @@
382 391 <div class="form-group row">
383 392 <div class="col-sm-3"></div>
384 393 <div class="col-sm-9">
385 394 <button id="ays_database_test_connection" class="btn btn-outline-info">
386 - '. __("Test Connection", $this->plugin_name) .'
395 + '. __("Test Connection", 'chart-builder') .'
387 396 </button>
388 397 <span class="ays_cb_loader display_none_not_important"><img src=' . CHART_BUILDER_ADMIN_URL . '/images/loaders/loading.gif></span>
389 398 <input type="hidden" id="ays_database_nonce" value="'. esc_attr($nonce) .'">
390 399 </div>
@@ -392,9 +401,9 @@
392 401 </div>
393 402 </div>';
394 403
395 404 $icon = CHART_BUILDER_ADMIN_URL . '/images/integrations/database_logo.png';
396 - $title = __( 'Database', $this->plugin_name );
405 + $title = __( 'Database', 'chart-builder' );
397 406 $integrations['database'] = array(
398 407 'content' => $content,
399 408 'icon' => $icon,
400 409 'title' => $title