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

Declare and Define Text Domain and Domain Path #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Declare and Define Text Domain and Domain Path #16

wants to merge 3 commits into from

Conversation

alexclassroom
Copy link

Declare and define Text Domain and Domain Path, add missing Text Domain which is the same as plugin's slug.

Declare and define Text Domain and Domain Path, add missing Text Domain which is the same as plugin's slug.
@alexclassroom
Copy link
Author

alexclassroom commented Jun 7, 2019

Hope you implement the modified code to the next version so that this plugin becomes fully localizable and displays localized UI correctly.

Copy link
Owner

@zzxiang zzxiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your pull request. Indeed localization should be seriously considered in future.

However, removing the if check for post type may cause other problems.

@@ -55,18 +58,16 @@ function init_emwi() {
add_filter( 'get_attached_file', function( $file, $attachment_id ) {
if ( empty( $file ) ) {
$post = get_post( $attachment_id );
if ( get_post_type( $post ) == 'attachment' ) {
Copy link
Owner

@zzxiang zzxiang Aug 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if check for post type is added with another pull request to fix a bug. Does the if check cause other problems? If so maybe we should consider other solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants