Skip to content

Commit 99e4630

Browse files
refactor: update strings
1 parent 1667e82 commit 99e4630

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

assets/apps/dashboard/src/Components/Content/AvailableModule.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ const ModuleToggle = ({
4343
const { title } = moduleData;
4444
const toastMessage = {
4545
//translators: %s - Plugin name
46-
installing: sprintf(__('Installing %s', 'neve'), 'Orbit Fox Plugin'),
46+
installing: sprintf(__('Installing', 'neve'), 'Orbit Fox Plugin'),
4747
//translators: %s - Plugin name
48-
activating: sprintf(__('Activating %s', 'neve'), 'Orbit Fox Plugin'),
48+
activating: sprintf(__('Activating', 'neve'), 'Orbit Fox Plugin'),
4949
};
5050

5151
const handleToggle = async (value) => {
@@ -90,7 +90,7 @@ const ModuleToggle = ({
9090
);
9191
} catch (error) {
9292
setToast(
93-
__('Something went wrong while activating the module.', 'neve')
93+
__('Something went wrong. Please reload the page and try again.', 'neve')
9494
);
9595
} finally {
9696
setLoading(false);
@@ -154,7 +154,7 @@ const AvailableModuleCard = ({
154154
className="flex mt-2 text-blue-600 gap-2 align-middle"
155155
href="admin.php?page=obfx_companion"
156156
>
157-
{__('Go to Settings to Edit', 'neve')}
157+
{__('Settings', 'neve')}
158158
<ArrowRight size={18} />
159159
</a>
160160
)}

inc/core/admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public function activate_plugin( $request ) {
402402
}
403403

404404
if ( ! isset( $api->download_link ) ) {
405-
wp_send_json_error( array( 'message' => __( 'Invalid plugin information.', 'neve' ) ) );
405+
wp_send_json_error( array( 'message' => __( 'Invalid action', 'neve' ) ) );
406406
}
407407

408408
$skin = new \WP_Ajax_Upgrader_Skin();
@@ -461,12 +461,12 @@ public function activate_module( $request ) {
461461
$modules = $settings::$instance->module_objects;
462462

463463
if ( ! isset( $modules[ $module_slug ] ) ) {
464-
wp_send_json_error( __( 'Invalid module slug.', 'neve' ) );
464+
wp_send_json_error( __( 'Invalid action', 'neve' ) );
465465
}
466466

467467
$response = $modules[ $module_slug ]->set_status( 'active', $module_value );
468468

469-
wp_send_json_success( __( 'Module status changed.', 'neve' ) );
469+
wp_send_json_success( $module_value ? __( 'Module Activated', 'neve' ) : __( 'Module Deactivated', 'neve' ) );
470470
}
471471

472472
/**

0 commit comments

Comments
 (0)