Skip to content

Commit 38b933a

Browse files
author
Jacob Middag
committed
Minor textual updates
1 parent 43a0ccc commit 38b933a

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

readme.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ The API key can also be configured in wp-config.php. You can add a TINY_API_KEY
6969

7070
== Changelog ==
7171

72-
= 1.0.0 =
73-
* Initial version.
74-
7572
= 1.1.0 =
7673
* The API key can now be set with the TINY_API_KEY constant in wp-config.php. This will work for normal and multisite WordPress installations.
7774
* You can now enable or disable compression of the original uploaded image. If you upgrade the plugin from version 1.0 you may need to go to media settings to include it for compression.
78-
* Improved display of original sizes and compressed sizes showing the total size of all compressed images.
75+
* Improved display of original sizes and compressed sizes showing the total size of all compressed images in media library list view.
76+
77+
= 1.0.0 =
78+
* Initial version.

src/class-tiny-settings.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ public function render_api_key() {
126126
}
127127
echo '<p>';
128128
$link = '<a href="https://tinypng.com/developers">' . self::translate_escape('TinyPNG Developer section') . '</a>';
129-
printf(self::translate_escape('Visit %s to get an API key') . '.', $link);
129+
if (empty($key)) {
130+
printf(self::translate_escape('Visit %s to get an API key') . '.', $link);
131+
} else {
132+
printf(self::translate_escape('Visit %s to view your usage or upgrade your account') . '.', $link);
133+
}
130134
echo '</p>';
131135
}
132136

136 Bytes
Binary file not shown.

src/languages/tiny-compress-images-nl_NL.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ msgstr "Multisite PNG- en JPEG-compressie"
77
msgid "Visit %s to get an API key"
88
msgstr "Bezoek de %s om een API-sleutel te krijgen"
99

10+
msgid "Visit %s to view your usage or upgrade your account"
11+
msgstr "Bezoek de %s om je verbruik te bekijken of je account aan te passen"
12+
1013
msgid "TinyPNG Developer section"
1114
msgstr "TinyPNG Developer pagina"
1215

0 commit comments

Comments
 (0)