Skip to content

Commit

Permalink
chore: translations review
Browse files Browse the repository at this point in the history
  • Loading branch information
abaicus committed Feb 3, 2025
1 parent 8f8e2b0 commit 4185cea
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 23 deletions.
4 changes: 2 additions & 2 deletions assets/apps/dashboard/src/Components/Common/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ const Notification = ({ data }) => {
sprintf(
// translators: %1$s: theme name (Neve), %2$s: plugin name (Neve Pro).
__('%1$s and %2$s', 'neve'),
__('Neve', 'neve'),
__('Neve Pro', 'neve')
'Neve',
'Neve Pro'
)
)}
>
Expand Down
2 changes: 1 addition & 1 deletion assets/apps/dashboard/src/Components/Content/Changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const ChangelogEntry = ({ data }) => {
<div className="flex items-center justify-between mb-4">
<div className="flex items-center space-x-3">
<h3 className="text-base font-semibold text-gray-900">
{__('Version', 'neve')} {version}
v{version}
</h3>
<Pill type="primary" className={'ml-auto'}>
{date}
Expand Down
4 changes: 2 additions & 2 deletions assets/apps/dashboard/src/Components/Content/FreePro.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const FreeProCard = () => (
<div className="w-20 text-center text-sm font-medium">
{__('Free', 'neve')}
</div>
<div className="w-20 text-center text-sm font-medium">
{__('Pro', 'neve')}
<div className="w-20 text-center text-sm font-medium capitalize">
{__('PRO', 'neve').toLowerCase()}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion assets/apps/dashboard/src/Components/Content/ModuleGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ModuleToggle = ({ slug, moduleData }) => {
text={__('These features are available in Neve Pro.', 'neve')}
>
<Pill className="ml-2 !px-2 !py-1 text-xs bg-blue-100 text-blue-800 rounded">
{__('Pro', 'neve')}
{__('PRO', 'neve')}
</Pill>
</Tooltip>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default ({
<h3 className="text-base font-semibold">{label}</h3>
{locked && (
<Pill className="ml-2 !px-2 !py-1 text-xs bg-blue-100 text-blue-800 rounded">
{__('Pro', 'neve')}
{__('PRO', 'neve')}
</Pill>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion assets/apps/dashboard/src/Components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const HeaderTopBar = ({ currentTab, setTab }) => {
</span>
<Pill type="secondary">
{isLicenseValid
? __('Pro', 'neve')
? __('PRO', 'neve')
: __('Free', 'neve')}
</Pill>
<span className="text-gray-500 font-medium">
Expand Down
2 changes: 1 addition & 1 deletion header-footer-grid/Core/Builder/Footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function init() {
'label' => esc_html__( 'Change Copyright', 'neve' ),
'icon' => 'dashicons-nametag',
'url' => $this->has_valid_addons() ? null : $upgrade_url_copyright,
'badge' => esc_html__( 'Pro', 'neve' ),
'badge' => esc_html__( 'PRO', 'neve' ),
'upsellDescription' => sprintf(
/* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */
__( 'The Neve theme free version doesn\'t support copyright edits. Pro unlocks this and more—%1$sexplore%2$s it when you\'re ready!', 'neve' ),
Expand Down
18 changes: 9 additions & 9 deletions inc/admin/dashboard/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ private function get_customizer_shortcuts() {
],
[
'text' => __( 'Footer Options', 'neve' ),
'description' => __( 'Pro: Custom footer layouts', 'neve' ),
'description' => __( 'PRO', 'neve' ) . ': ' . __( 'Custom footer layouts', 'neve' ),
'link' => add_query_arg( [ 'autofocus[panel]' => 'hfg_footer' ], admin_url( 'customize.php' ) ),
],
[
Expand Down Expand Up @@ -576,7 +576,7 @@ private function get_free_pro_features() {
'description' => __( 'Add engaging elements, protect content, and create dynamic layouts with our advanced toolkit.', 'neve' ),
],
[
'title' => __( 'Otter Blocks PRO', 'neve' ),
'title' => 'Otter Blocks PRO',
'description' => __( 'Advanced Gutenberg blocks with animations & visibility controls.', 'neve' ),
],
],
Expand Down Expand Up @@ -725,35 +725,35 @@ function ( $module ) {
private function get_recommended_plugins() {
$plugins = [
'otter-blocks' => [
'title' => __( 'Otter Blocks', 'neve' ),
'title' => 'Otter Blocks',
'description' => __( 'Advanced blocks for modern WordPress editing', 'neve' ),
],
'templates-patterns-collection' => [
'title' => __( 'Starter Sites', 'neve' ),
'description' => __( 'Import ready-made websites with a single click', 'neve' ),
],
'wp-full-stripe-free' => [
'title' => __( 'WP Full Pay', 'neve' ),
'title' => 'WP Full Pay',
'description' => __( 'Simple ecommerce solution with Stripe integration', 'neve' ),
],
'optimole-wp' => [
'title' => __( 'Optimole', 'neve' ),
'title' => 'Optimole',
'description' => __( 'Smart image optimization and CDN', 'neve' ),
],
'wp-cloudflare-page-cache' => [
'title' => __( 'Super Page Cache', 'neve' ),
'title' => 'Super Page Cache',
'description' => __( 'Lightning-fast caching made simple', 'neve' ),
'hide' => defined( 'SPC_PRO_PATH' ),
],
'feedzy-rss-feeds' => [
'title' => __( 'Feedzy', 'neve' ),
'title' => 'Feedzy',
'description' => __( 'RSS feeds aggregator and content curator', 'neve' ),
],
];

if ( is_php_version_compatible( '8.1' ) ) {
$plugins['hyve-lite'] = [
'title' => __( 'Hyve', 'neve' ),
'title' => 'Hyve',
'description' => __( 'AI chatbot for your website', 'neve' ),
];
}
Expand Down Expand Up @@ -1064,7 +1064,7 @@ public function render_neve_header() {
</a>

<span class="nv-admin-title"><?php esc_html_e( 'Neve', 'neve' ); ?></span>
<span class="nv-admin-badge"><?php echo $is_using_pro ? esc_html__( 'Pro', 'neve' ) : esc_html__( 'Free', 'neve' ); ?></span>
<span class="nv-admin-badge"><?php echo $is_using_pro ? esc_html__( 'PRO', 'neve' ) : esc_html__( 'Free', 'neve' ); ?></span>

<span class="nv-admin-version"><?php echo esc_html( sprintf( 'v%s', NEVE_VERSION ) ); ?></span>
</div>
Expand Down
7 changes: 2 additions & 5 deletions inc/admin/hooks_upsells.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,10 @@ public function render_custom_layouts_upsell_modal() {

<div class="cl-quote">
<?php
echo esc_html__(
'I’ve been using Neve by Themeisle for a few years now, and it’s proven to be the best theme I’ve ever built websites on. It’s lightweight, modern, fast, customizable, and works great with Woocommerce stores too.',
'neve'
);
echo esc_html( 'I’ve been using Neve by Themeisle for a few years now, and it’s proven to be the best theme I’ve ever built websites on. It’s lightweight, modern, fast, customizable, and works great with Woocommerce stores too.' );
?>
<span class="cl-quote-author">
<?php echo esc_html__( 'Ville Ekman', 'neve' ); ?>
<?php echo esc_html( 'Ville Ekman' ); ?>
</span>
</div>
</div>
Expand Down

0 comments on commit 4185cea

Please sign in to comment.