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

Comments added for Translators in multiple files #9762

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions includes/EDD_SL_Plugin_Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ public function show_update_notification( $file, $plugin ) {
} elseif ( ! empty( $changelog_link ) ) {
echo ' ';
printf(
// Translators: %1$s is the link to view the version details, %2$s is the new version number, %3$s closes the version details link, %4$s is the link to update the plugin, %5$s closes the update link.
__( '%1$sView version %2$s details%3$s or %4$supdate now%5$s.', 'easy-digital-downloads' ),
'<a target="_blank" class="thickbox open-plugin-details-modal" href="' . esc_url( $changelog_link ) . '">',
esc_html( $update_cache->response[ $this->name ]->new_version ),
Expand Down
1 change: 1 addition & 0 deletions includes/api/class-edd-api-v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public function get_products( $args = array() ) {
$products['products'][0] = $this->get_product_data( $product_info );

} else {
// Translators: %s is the product name.
$error['error'] = sprintf( __( 'Product %s not found!', 'easy-digital-downloads' ), $args['product'] );
return $error;
}
Expand Down
1 change: 1 addition & 0 deletions includes/class-edd-download.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ public function __get( $key = '' ) {
if ( method_exists( $this, "get_{$key}" ) ) {
return call_user_func( array( $this, "get_{$key}" ) );
} else {
// Translators: %s is the name of the property that could not be retrieved.
return new WP_Error( 'edd-download-invalid-property', sprintf( __( 'Can\'t get property %s', 'easy-digital-downloads' ), $key ) );
}
}
Expand Down
1 change: 1 addition & 0 deletions includes/reports/reports-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,7 @@ function display_products_filter() {
'variations' => true,
'selected' => empty( $products ) ? 0 : $products,
'show_option_none' => false,
// Translators: %s represents the plural label for the items in the context of Easy Digital Downloads.
'show_option_all' => sprintf( __( 'All %s', 'easy-digital-downloads' ), edd_get_label_plural() ),
) ); ?>

Expand Down
1 change: 1 addition & 0 deletions includes/widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ public function widget( $args, $instance ) {
public function form( $instance ) {
// Set up some default widget settings.
$defaults = array(
// Translators: %s is the singular label of the product/item.
'title' => sprintf( __( '%s Details', 'easy-digital-downloads' ), edd_get_label_singular() ),
'display_type' => 'current',
'download_id' => false,
Expand Down