Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-jacob committed Sep 30, 2024
2 parents 62f2add + 3f31b95 commit f668d37
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 8 deletions.
4 changes: 4 additions & 0 deletions data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions src/css/admin/_option-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
25 changes: 20 additions & 5 deletions src/css/admin/translation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand All @@ -109,6 +120,10 @@
display: inline;
vertical-align: baseline;
font-weight: normal;
margin: 0;
padding: 0;
line-height: 1em;
cursor: pointer;
}

input[type="checkbox"] {
Expand All @@ -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;
}
}

Expand Down
Binary file added src/images/circle/pl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/rectangular/pl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/wave/pl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions wplingua.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 );
Expand Down

0 comments on commit f668d37

Please sign in to comment.