diff --git a/data.php b/data.php index 2ca863a..bdf10c2 100644 --- a/data.php +++ b/data.php @@ -210,6 +210,10 @@ function wplng_data_attr_text_to_translate() { 'attr' => 'content', 'selector' => 'meta[property="article:section"]', ), + array( + 'attr' => 'content', + 'selector' => 'meta[name="description"]', + ), // Open Graph array( 'attr' => 'content', diff --git a/readme.txt b/readme.txt index fa20e75..56ad22e 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://wplingua.com/ Tags: translate, translation, multilingual, localization, language Requires at least: 6.0 Tested up to: 6.6 -Stable tag: 2.0.0 +Stable tag: 2.0.1 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -154,6 +154,12 @@ No, not at the moment but in the meantime, you can easily display the language s == Changelog == += 2.0.1 = + +* Better SEO: Translate meta[name="description"] +* Better UX: Admin & translations editor +* Polish flag added + = 2.0.0 = * Add new flags: diff --git a/src/css/admin/_option-page.scss b/src/css/admin/_option-page.scss index 0898818..328ea86 100644 --- a/src/css/admin/_option-page.scss +++ b/src/css/admin/_option-page.scss @@ -107,6 +107,9 @@ vertical-align: baseline; } +// Hide other plusgins ads and notices + +#nri-slug-wrapper, // Plugin: backup-backup .notice:not(.wplng-notice) { display: none !important; } diff --git a/src/css/admin/translation.scss b/src/css/admin/translation.scss index f7d93ee..d295b6b 100644 --- a/src/css/admin/translation.scss +++ b/src/css/admin/translation.scss @@ -7,15 +7,16 @@ #wplng-source-title { font-weight: 600; - margin-bottom: 15px; + margin: 0 0 15px 0; } .wplng-flag { max-width: 1.5em; max-height: 1.5em; height: auto; - margin-right: .4em; + margin: 0 .4em 0 0; vertical-align: text-top; + display: inline-block; } #wplng-source { @@ -89,18 +90,28 @@ a { color: #135e96; text-decoration: underline; + margin: 0; + padding: 0; + text-decoration: underline; + line-height: 1em; &:focus { box-shadow: none; } } + .wplng-generate-spin { + vertical-align: middle; + margin: 0; + padding: 0; + } .wplng-mark-as-reviewed { display: inline-block; border: none; padding: 0; + margin: 0; label { color: #2271b1; @@ -109,6 +120,10 @@ display: inline; vertical-align: baseline; font-weight: normal; + margin: 0; + padding: 0; + line-height: 1em; + cursor: pointer; } input[type="checkbox"] { @@ -119,19 +134,19 @@ clear: none; cursor: pointer; display: inline-block; - line-height: 0; + line-height: 1em; height: 16px; - margin: -2px 6px 0 0; + margin: 0 6px 0 0; margin-bottom: 0px; outline: 0; padding: 0 !important; text-align: center; - vertical-align: bottom; width: 16px; min-width: 16px; box-shadow: inset 0 1px 2px rgba(0,0,0,.1); transition: .05s border-color ease-in-out; -webkit-appearance: checkbox; + vertical-align: middle; } } diff --git a/src/images/circle/pl.png b/src/images/circle/pl.png new file mode 100644 index 0000000..e0ff3df Binary files /dev/null and b/src/images/circle/pl.png differ diff --git a/src/images/rectangular/pl.png b/src/images/rectangular/pl.png new file mode 100644 index 0000000..8d6921d Binary files /dev/null and b/src/images/rectangular/pl.png differ diff --git a/src/images/wave/pl.png b/src/images/wave/pl.png new file mode 100644 index 0000000..bb9185a Binary files /dev/null and b/src/images/wave/pl.png differ diff --git a/wplingua.php b/wplingua.php index 4887c31..dfad971 100644 --- a/wplingua.php +++ b/wplingua.php @@ -7,7 +7,7 @@ * Author URI: https://wplingua.com/ * Text Domain: wplingua * Domain Path: /languages/ - * Version: 2.0.0 + * Version: 2.0.1 * Requires PHP: 7.4 * License: GPL v2 or later * License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -24,7 +24,7 @@ define( 'WPLNG_API_URL', 'https://api.wplingua.com' ); define( 'WPLNG_API_VERSION', '2.0' ); define( 'WPLNG_API_SSLVERIFY', true ); -define( 'WPLNG_PLUGIN_VERSION', '2.0.0' ); +define( 'WPLNG_PLUGIN_VERSION', '2.0.1' ); define( 'WPLNG_PLUGIN_FILE', plugin_basename( __FILE__ ) ); define( 'WPLNG_PLUGIN_PATH', dirname( __FILE__ ) ); define( 'WPLNG_MAX_TRANSLATIONS', 256 );