Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard - Add translations #768

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 31 additions & 8 deletions tpl/dash/dashboard.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,35 @@
<?php if (!$__cloud->activated()) : ?>
<div class="litespeed-dashboard-unlock">
<div>
<h3 class="litespeed-dashboard-unlock-title"><strong class="litespeed-qc-text-gradient">Accelerate, Optimize, Protect</strong></h3>
<p class="litespeed-dashboard-unlock-desc">Speed up your WordPress site even further with <strong>QUIC.cloud Online Services and CDN</strong>.</p>
<p>Free monthly quota available.</p>
<p><a class="button button-primary" href="<?php echo Utility::build_url(Router::ACTION_CLOUD, Cloud::TYPE_ACTIVATE); ?>"><span class="dashicons dashicons-yes"></span>Enable QUIC.cloud services</a></p>
<h3 class="litespeed-dashboard-unlock-title">
<strong class="litespeed-qc-text-gradient">
<?php _e('Accelerate, Optimize, Protect', 'litespeed-cache'); ?>
</strong>
</h3>
<p class="litespeed-dashboard-unlock-desc">
<?php
sprintf(
__('Speed up your WordPress site even further with %sQUIC.cloud Online Services and CDN%s.', 'litespeed-cache'),
'<strong>',
'</strong>'
Copy link
Contributor

@szepeviktor szepeviktor Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may sound strange but HTML tags are part of language strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

);
?>
</p>
<p>
<?php _e('Free monthly quota available.', 'litespeed-cache'); ?>
</p>
<p>
<a class="button button-primary" href="<?php echo Utility::build_url(Router::ACTION_CLOUD, Cloud::TYPE_ACTIVATE); ?>">
<span class="dashicons dashicons-yes"></span>
<?php _e('Enable QUIC.cloud services', 'litespeed-cache'); ?>
</a>
</p>
<p class="litespeed-dashboard-unlock-footer">
QUIC.cloud provides CDN and online optimization services, and is not required. You may use many features of this plugin without QUIC.cloud.
<a href="https://www.quic.cloud/" target="_blank">Learn More about QUIC.cloud</a><br>
<?php _e('QUIC.cloud provides CDN and online optimization services, and is not required. You may use many features of this plugin without QUIC.cloud.', 'litespeed-cache'); ?>
<a href="https://www.quic.cloud/" target="_blank">
<?php _e('Learn More about QUIC.cloud', 'litespeed-cache'); ?>
</a>
<br>
</p>
</div>
</div>
Expand Down Expand Up @@ -278,8 +300,9 @@

<?php if (!empty($cloud_summary['partner'])) : ?>
<div style="position: absolute;z-index:2;left:0;bottom:0;">
<a class="litespeed-btn-success">Click here to enable QC service</a>

<a class="litespeed-btn-success">
<?php _e('Click here to enable QC service', 'litespeed-cache'); ?>
</a>
</div>
<?php endif; ?>

Expand Down
Loading