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

Fixed String Translation #587

Merged
merged 4 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion config/settings/course.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function ( $fields ) use ( $layout_single_course_default ) {
'expand_all' => esc_html__( 'Expanse all sections', 'learnpress' ),
'collapse_all' => esc_html__( 'Collapse all sections', 'learnpress' ),
),
'desc' => 'Currently, apply for the Modern single course layout only.',
'desc' => esc_html__( 'Currently, apply for the Modern single course layout only.', 'learnpress' ),
),
array(
'title' => esc_html__( 'Section Per Page', 'learnpress' ),
Expand Down
2 changes: 1 addition & 1 deletion config/settings/gateway/offline-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'id' => '[sandbox]',
'default' => 'no',
'type' => 'checkbox',
'desc' => __( 'Auto complete the order for testing purpose.' ),
'desc' => __( 'Auto complete the order for testing purpose.', 'learnpress' ),
),
array(
'title' => __( 'Instruction', 'learnpress' ),
Expand Down
6 changes: 3 additions & 3 deletions inc/admin/views/addons.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class="text"><?php _e( 'Activate', 'learnpress' ); ?></span>
<div class="purchase-install">
<label>
<?php _e( 'Purchase Code', 'learnpress' ); ?>
<input type="text" class="enter-purchase-code" placeholder="Enter Purchase Code"
<input type="text" class="enter-purchase-code" placeholder="<?php esc_attr_e( 'Enter Purchase Code', 'learnpress' ); ?>"
value="<?php echo $purchase_code ?? ''; ?>">
</label>
<button class="btn-addon-action" data-action="install">
Expand All @@ -234,7 +234,7 @@ class="text"><?php _e( 'Submit', 'learnpress' ); ?></span>
<div class="purchase-update">
<label>
<?php _e( 'Purchase Code', 'learnpress' ); ?>
<input type="text" class="enter-purchase-code" placeholder="Enter Purchase Code"
<input type="text" class="enter-purchase-code" placeholder="<?php esc_attr_e( 'Enter Purchase Code', 'learnpress' ); ?>"
value="<?php echo $purchase_code ?? ''; ?>">
</label>
<button class="btn-addon-action" data-action="update-purchase">
Expand Down Expand Up @@ -287,7 +287,7 @@ class="text"><?php _e( 'Update', 'learnpress' ); ?></span>
<?php } ?>
<div class="lp-search-addons">
<label>
<input id="lp-search-addons__input" type="text" placeholder="Search name addon"/>
<input id="lp-search-addons__input" type="text" placeholder="<?php esc_attr_e( 'Search name addon', 'learnpress' ); ?>"/>
</label>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions inc/admin/views/meta-boxes/course/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ public function metabox( $post_id ) {

public function general( $post_id ) {
$course = CourseModel::find( $post_id, true );
$repurchase_option_desc = sprintf( '1. %s', __( 'Reset course progress: The course progress and results of student will be removed.' ) );
$repurchase_option_desc .= '<br/>' . sprintf( '2. %s', __( 'Keep course progress: The course progress and results of student will remain.' ) );
$repurchase_option_desc .= '<br/>' . sprintf( '3. %s', __( 'Open popup: The student can decide whether their course progress will be reset with the confirm popup.' ) );
$repurchase_option_desc = sprintf( '1. %s', __( 'Reset course progress: The course progress and results of student will be removed.', 'learnpress' ) );
$repurchase_option_desc .= '<br/>' . sprintf( '2. %s', __( 'Keep course progress: The course progress and results of student will remain.', 'learnpress' ) );
$repurchase_option_desc .= '<br/>' . sprintf( '3. %s', __( 'Open popup: The student can decide whether their course progress will be reset with the confirm popup.', 'learnpress' ) );
$max_students_desc = esc_html__( 'The maximum number of students that can join a course. Set 0 for unlimited.', 'learnpress' );
$max_students_desc .= '<br/>' . esc_html__( 'Not apply for case "No enroll requirement".', 'learnpress' );

Expand Down
Loading