Internationalization Checking & Fixes

* Fixes missing i18n translation in main plugin file.
* Adds update POT file.
* Enforces i18n checks on commit with GrumPHP.
* Adds i18n check step to Travis CI builds.
isekai
Tim Nolte 5 years ago
parent 4ceff40226
commit 0a0cf58e21
No known key found for this signature in database
GPG Key ID: 33E7CA1AD448F3B3

@ -24,6 +24,9 @@ parameters:
git_commit_message:
allow_empty_message: false
enforce_capitalized_subject: true
grunt:
task: checktextdomain
triggered_by: [php]
phpcs:
standard: './phpcs.xml.dist'
report: 'summary'

@ -5,7 +5,7 @@ msgstr ""
"Project-Id-Version: OpenID Connect Generic 3.7.1\n"
"Report-Msgid-Bugs-To: "
"https://github.com/daggerhart/openid-connect-generic/issues\n"
"POT-Creation-Date: 2020-08-29 04:05:46+00:00\n"
"POT-Creation-Date: 2020-08-29 04:30:04+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
@ -475,6 +475,10 @@ msgstr ""
msgid "Log information about login attempts through OpenID Connect Generic."
msgstr ""
#: openid-connect-generic.php:200
msgid "Private site"
msgstr ""
#. Plugin Name of the plugin/theme
msgid "OpenID Connect Generic"
msgstr ""

@ -197,7 +197,7 @@ class OpenID_Connect_Generic {
*/
function enforce_privacy_feeds( $content ) {
if ( $this->settings->enforce_privacy && ! is_user_logged_in() ) {
$content = 'Private site';
$content = __( 'Private site', 'daggerhart-openid-connect-generic' );
}
return $content;
}

Loading…
Cancel
Save