Automattic / Automattic/hidden-posts

Improve translation handling

Open
#20 0 comments 0 reactions 1 assignee Claimed by @nielslange View on GitHub
maintenance
Dominant language
PHP
Stars
11
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Currently, strings are translated as follows:

```
esc_html( apply_filters( 'hidden_posts_checkbox_text', 'Hide Post' ) )
```

This implementation forces users to translate strings via filter. While this works for tech-savvy users, it does not work for the average user. Instead of handling the translations via filter, I'd create a *.po file, so that the plugin strings can easily be translated via the WordPress translation interface, similar to https://translate.wordpress.org/projects/wp-plugins/jetpack/.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.