Commit b48aa262 authored by Dave Lane's avatar Dave Lane
Browse files

fixed a few issues with text strings in the help page, results display, and...

fixed a few issues with text strings in the help page, results display, and other minor tweaks to sprintf statements
parent 86b8b7b2
...@@ -109,6 +109,7 @@ article.bff-form .container .credit { ...@@ -109,6 +109,7 @@ article.bff-form .container .credit {
width: 24px; width: 24px;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
margin-right: 0.5em;
} }
.bff-good { background-image: url(img/emoji-pleased.24x24.png); } .bff-good { background-image: url(img/emoji-pleased.24x24.png); }
.bff-neutral { background-image: url(img/emoji-neutral.24x24.png); } .bff-neutral { background-image: url(img/emoji-neutral.24x24.png); }
......
...@@ -510,7 +510,7 @@ class BFFForm extends BFFCourse { ...@@ -510,7 +510,7 @@ class BFFForm extends BFFCourse {
.__("Copy the blog's web address - the text in your browser's 'address bar' which starts with '<strong>http://</strong>' or '<strong>https://</strong>' - ", 'oeru-bff') .__("Copy the blog's web address - the text in your browser's 'address bar' which starts with '<strong>http://</strong>' or '<strong>https://</strong>' - ", 'oeru-bff')
.__("and paste it into the text box below.", 'oeru-bff')."</p>"; .__("and paste it into the text box below.", 'oeru-bff')."</p>";
// translators: %1$s below is the web address for the 'support site' and %2$s is for the 'support forum'. // translators: %1$s below is the web address for the 'support site' and %2$s is for the 'support forum'.
$post['post_content'] .= "<p>".sprintf(__("Need help? Consult the OERu <a href=\"%1$s\">support site</a>, or post your question on our <a href=\"%2$s\">support forum</a>.", 'oeru-bff'), $settings['support_blog'], $settings['support_forum'])."</p>" $post['post_content'] .= "<p>".sprintf(__('Need help? Consult the OERu <a href="%1$s">support site</a>, or post your question on our <a href="%2$s">support forum</a>.', 'oeru-bff'), $settings['support_blog'], $settings['support_forum'])."</p>"
."[".BFF_SHORTCODE."]" ."[".BFF_SHORTCODE."]"
."<div class='credits'>" ."<div class='credits'>"
."<p class='credit'>".__("Credits: Emoji icons from the <a href='https://commons.wikimedia.org/wiki/Category:Noto_Color_Emoji_Oreo'>Noto Color Emoji Oreo</a> set (under Apache 2.0 license).", 'oeru-bff')."</p>" ."<p class='credit'>".__("Credits: Emoji icons from the <a href='https://commons.wikimedia.org/wiki/Category:Noto_Color_Emoji_Oreo'>Noto Color Emoji Oreo</a> set (under Apache 2.0 license).", 'oeru-bff')."</p>"
......
...@@ -235,7 +235,7 @@ jQuery(document).ready(function() { ...@@ -235,7 +235,7 @@ jQuery(document).ready(function() {
msg += '<p class="bff-response ' + entry.type + '">' + msg += '<p class="bff-response ' + entry.type + '">' +
types[entry.type] + ' ' + entry.message; types[entry.type] + ' ' + entry.message;
if (entry.detail != '') { if (entry.detail != '') {
LOG('entry detail = '+entry.detail); LOG('entry detail');
// escape single quotes // escape single quotes
escaped = entry.detail.replace(/'/g, '&#39;'); escaped = entry.detail.replace(/'/g, '&#39;');
LOG('escaped = '+escaped); LOG('escaped = '+escaped);
......
...@@ -9,7 +9,7 @@ msgstr "" ...@@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-04-12T17:12:29+12:00\n" "POT-Creation-Date: 2022-04-12T17:19:40+12:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.5.0\n" "X-Generator: WP-CLI 2.5.0\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment