Skip to content

Commit

Permalink
fix: use dokan-lite text domain instead of dokan is fixed #675 (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonh3 authored and sabbir1991 committed Nov 7, 2019
1 parent 20d42f3 commit 116bbd3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions classes/admin-withdraw.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function init() {
*/
public function withdraw_ajax() {
if ( ! current_user_can( 'manage_woocommerce' ) ) {
wp_send_json_error( __( 'You have no permission to do this action', 'dokan' ) );
wp_send_json_error( __( 'You have no permission to do this action', 'dokan-lite' ) );
}

if ( ! isset( $_POST['nonce'] ) ) {
Expand All @@ -47,7 +47,7 @@ public function withdraw_ajax() {
$nonce = sanitize_text_field( wp_unslash( $_POST['nonce'] ) );

if ( ! wp_verify_nonce( $nonce, 'dokan_admin' ) ) {
wp_send_json_error( __( 'Invalid nonce', 'dokan' ) );
wp_send_json_error( __( 'Invalid nonce', 'dokan-lite' ) );
}

header( 'Content-type: html/csv' );
Expand Down
2 changes: 1 addition & 1 deletion includes/api/class-product-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function register_routes() {
'force' => array(
'type' => 'boolean',
'default' => false,
'description' => __( 'Whether to bypass trash and force deletion.', 'dokan' ),
'description' => __( 'Whether to bypass trash and force deletion.', 'dokan-lite' ),
),
),
)
Expand Down
4 changes: 2 additions & 2 deletions includes/class-vendor.php
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ public function is_store_time_enabled() {
*/
public function get_store_open_notice( $default_notice = '' ) {
$notice = $this->get_info_part( 'dokan_store_open_notice' );
$default_notice = $default_notice ? $default_notice : __( 'Store is open', 'dokan' );
$default_notice = $default_notice ? $default_notice : __( 'Store is open', 'dokan-lite' );

return $notice ? $notice : $default_notice;
}
Expand All @@ -835,7 +835,7 @@ public function get_store_open_notice( $default_notice = '' ) {
*/
public function get_store_close_notice( $default_notice = '' ) {
$notice = $this->get_info_part( 'dokan_store_close_notice' );
$default_notice = $default_notice ? $default_notice : __( 'Store is closed', 'dokan' );
$default_notice = $default_notice ? $default_notice : __( 'Store is closed', 'dokan-lite' );

return $notice ? $notice : $default_notice;
}
Expand Down
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,7 @@ function dokan_prepare_date_query( $from, $to ) {
$raw_to_date = date_create( $to );

if ( ! $from_date || ! $to_date ) {
return wp_send_json( __( 'Date is not valid', 'dokan' ) );
return wp_send_json( __( 'Date is not valid', 'dokan-lite' ) );
}

$from_year = $from_date->format( 'Y' );
Expand Down
2 changes: 1 addition & 1 deletion languages/dokan-lite.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__( 'Close', 'dokan-lite' ),
__( 'Active', 'dokan-lite' ),
__( 'Select', 'dokan-lite' ),
__( 'Please enter google map API key', 'dokan' ),
__( 'Please enter google map API key', 'dokan-lite' ),
__( 'Close modal panel', 'dokan-lite' ),
__( 'Select an image', 'dokan-lite' ),
__( 'Please select an image,', 'dokan-lite' ),
Expand Down
4 changes: 2 additions & 2 deletions src/admin/components/Gmap.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div v-if="loadMap" class="gmap-wrap regular-text">
<input ref="searchAddress" class="search-address regular-text" type="text" :placeholder="__( 'Search Address', 'dokan') ">
<input ref="searchAddress" class="search-address regular-text" type="text" :placeholder="__( 'Search Address', 'dokan-lite') ">
<div id="gmap" ref="gmapArea"></div>
</div>
<p v-else>
{{ __( 'Please enter google map API key', 'dokan' ) }}
{{ __( 'Please enter google map API key', 'dokan-lite' ) }}
</p>
</template>

Expand Down
2 changes: 1 addition & 1 deletion templates/settings/store-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
</label>
<div class="dokan-w6" style="width: auto">
<div class="dokan-form-group">
<input type="text" class="dokan-form-control input-md" name="dokan_store_close_notice" placeholder="<?php esc_attr_e( 'Store is closed', 'dokan' ) ?>" value="<?php echo esc_attr( $dokan_store_close_notice ); ?>">
<input type="text" class="dokan-form-control input-md" name="dokan_store_close_notice" placeholder="<?php esc_attr_e( 'Store is closed', 'dokan-lite' ) ?>" value="<?php echo esc_attr( $dokan_store_close_notice ); ?>">
</div>
</div>
</div>
Expand Down

0 comments on commit 116bbd3

Please sign in to comment.