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

added admin interface for implementation-specific settings, added full...

added admin interface for implementation-specific settings, added full language support for all user visible text strings, bumped version to 2.0.0
parent 5734b742
I used this info to work out localisation: https://www.codetab.org/tutorial/wordpress-plugin-development/internationalization/localization/
To see the use of the msgfmt command (installed separately on Linux machines), see https://developer.wordpress.org/plugins/internationalization/localization/#po-portable-object-files
Having created a POT file via getting a bash session in the container (`docker-compose exec -u www-data php bash`)
`cd wp-content/plugins/blog-feed-finder`
`wp i18n make-pot --debug --ignore-domain --exclude="*.js" --include="*.php,includes/*.php" . languages/oeru-blog-feed-finder.pot`
THen you can merge the changes in the POT to existing PO files (using the French translation in this example):
`msgmerge -vU languages/oeru-blog-feed-finder-fr_FR.po languages/oeru-blog-feed-finder.pot`
And then to generate the MO file...
`msgfmt -o filename.mo filename.po`
or in this case
`msgfmt -o languages/oeru-blog-feed-finder-fr_FR.mo languages/oeru-blog-feed-finder-fr_FR.po`
## NOTE
To have the resulting PO and MO files taken up by the WP instance (at least in WPMS mode),
it appears that they need to be copied into `wp-content/languages/plugins/`!!
# Copyright (C) 2020 Dave Lane
# This file is distributed under the same license as the Blog Feed Finder plugin.
msgid ""
msgstr ""
"Project-Id-Version: Blog Feed Finder 1.0.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/blog-feed-finder\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2020-10-05T13:57:03+13:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.4.0\n"
"X-Domain: blog-feed-finder\n"
#. Plugin Name of the plugin
msgid "Blog Feed Finder"
msgstr ""
#. Plugin URI of the plugin
msgid "https://github.com/oeru/bff"
msgstr ""
#. Description of the plugin
msgid "Provides a widget that helps a user figure out the valid URL for"
msgstr ""
#. Author of the plugin
msgid "Dave Lane"
msgstr ""
#. Author URI of the plugin
msgid "https://oeru.org, http://WikiEducator.org/User:Davelane"
msgstr ""
# Copyright (C) 2022 Dave Lane
# This file is distributed under the AGPLv3 or later.
msgid ""
msgstr ""
"Project-Id-Version: Blog Feed Finder 2.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/blog-feed-finder\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-04-12T17:12:29+12:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.5.0\n"
#. Plugin Name of the plugin
#: includes/bff-app.php:507
msgid "Blog Feed Finder"
msgstr ""
#. Plugin URI of the plugin
msgid "https://github.com/oeru/bff"
msgstr ""
#. Description of the plugin
msgid "Provides a widget that helps a user figure out the valid URL for"
msgstr ""
#. Author of the plugin
msgid "Dave Lane"
msgstr ""
#. Author URI of the plugin
msgid "https://oeru.org, http://WikiEducator.org/User:Davelane"
msgstr ""
#: includes/bff-app.php:102
msgid "Someone is using this form without permission!"
msgstr ""
#. translators: %s = the name of this plugin, BFF or Blog Feed Finder by default
#: includes/bff-app.php:175
msgid "Updated %s admin settings."
msgstr ""
#: includes/bff-app.php:188
msgid "These are the default site settings on this WordPress multisite"
msgstr ""
#: includes/bff-app.php:212
msgid "Select an OERu partner"
msgstr ""
#: includes/bff-app.php:220
#: includes/bff-app.php:222
msgid "Select a partner or enter details below"
msgstr ""
#: includes/bff-app.php:229
msgid "The"
msgstr ""
#: includes/bff-app.php:241
msgid "If the organisation or institution is a partner, find their details here to pre-populate the following fields. <br/>Otherwise, leave this unset!"
msgstr ""
#: includes/bff-app.php:254
msgid "Organisation Name"
msgstr ""
#: includes/bff-app.php:257
msgid "The name of your organisation as you want to see it. If your organisation starts off with \"The\", leave that off here."
msgstr ""
#: includes/bff-app.php:265
msgid "Organisation Prefix"
msgstr ""
#: includes/bff-app.php:267
msgid "If your organisation name is preceded by \"The\" when it is written, check this."
msgstr ""
#: includes/bff-app.php:271
msgid "Support forum"
msgstr ""
#: includes/bff-app.php:274
#: includes/bff-app.php:281
msgid "The web address (URL) of the support forum for users of this site. Should start with \"https://\"."
msgstr ""
#: includes/bff-app.php:278
msgid "Support blog"
msgstr ""
#: includes/bff-app.php:286
msgid "Save Changes"
msgstr ""
#: includes/bff-app.php:318
msgid "Busted - someone's trying something funny in submit!"
msgstr ""
#: includes/bff-app.php:336
msgid "Busted - someone's trying something funny in set!"
msgstr ""
#: includes/bff-app.php:415
msgid "Find your blog's feed address!"
msgstr ""
#: includes/bff-app.php:417
msgid "Submit"
msgstr ""
#: includes/bff-app.php:508
msgid "The Blog Feed Finder helps you work out the exact web address (URL) for your blog's feed."
msgstr ""
#: includes/bff-app.php:509
msgid "Start by going to <strong>your own</strong> blog - use another browser tab or window. "
msgstr ""
#: includes/bff-app.php:510
msgid "Copy the blog's web address - the text in your browser's 'address bar' which starts with '<strong>http://</strong>' or '<strong>https://</strong>' - "
msgstr ""
#: includes/bff-app.php:511
msgid "and paste it into the text box below."
msgstr ""
#: includes/bff-app.php:516
msgid "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)."
msgstr ""
#: includes/bff-course.php:20
msgid "You are not currently logged in. As such, you will not be able to link any blog feed addresses you find to your profile."
msgstr ""
#. translators: the %s is the web address required to log into this site
#: includes/bff-course.php:25
msgid ""
"You can <a data-toggle=\"modal\" title=\"Click to log in or register for Courses\" href=\"%s#login\" onclick=\"login();\"><span\n"
" class=\"glyphicon glyphicon-user\"></span>log in</a> to link your feed(s) to any courses for which you're registered."
msgstr ""
#. translators: the %s is the web address required to log into this site
#: includes/bff-course.php:29
msgid ""
"You can <a title=\"Click to log in or register for Courses\" href=\"%s\"><span\n"
" class=\"glyphicon glyphicon-user\"></span>log in or register</a> to link your feed(s) to any courses for which you're registered."
msgstr ""
#: includes/bff-course.php:52
msgid "You can link any blog feeds addresses you find to any courses for which you are registered."
msgstr ""
#. translators: the %s below is replaced by the web address (URL) of the selected blog site.
#: includes/bff-finder.php:84
msgid "Perhaps there is no feed at the site you specified, %s,"
msgstr ""
#: includes/bff-finder.php:86
msgid "No feed found"
msgstr ""
#: includes/bff-finder.php:87
msgid "We weren't able to find a feed on this site."
msgstr ""
#. translators: %1$s is a web address pointing to a feed, and %2$s is a feed 'type'
#: includes/bff-finder.php:107
msgid "The address %1%s points to a valid \"%2$s\" feed!"
msgstr ""
#. translators: %1$s is a web address pointing to a feed, and %2$s is a feed 'type'
#: includes/bff-finder.php:108
msgid "Yay! we found a valid feed!"
msgstr ""
#. translators: %1$s is a feed type, the %2$s is the feed's title, and %3$s is the feed web address (URL)
#: includes/bff-finder.php:154
msgid " \"%1$s\" feed \"%2$s\" found at %3$s..."
msgstr ""
#. translators: %s is the title of the feed that has been found.
#: includes/bff-finder.php:157
msgid " Feed \"%s\" found."
msgstr ""
#. translators: %s is the title of a 'comment' feed.
#: includes/bff-finder.php:164
msgid " Comment feed \"%s\" found - <em>probably not what you want</em>."
msgstr ""
#. translators: %s is the title of a 'comment' feed.
#: includes/bff-finder.php:165
msgid ". This is probably not what we want, as it's specific to comments to your posts..."
msgstr ""
#: includes/bff-finder.php:169
msgid "Feed found."
msgstr ""
#. translators: %1$s is a feed type, and %2$s the feed's web address
#: includes/bff-finder.php:171
msgid "Untitled \"%1$s\" feed found at address %2$s!"
msgstr ""
#. translators: %s is a feed type
#: includes/bff-finder.php:193
msgid "Found a supported feed!"
msgstr ""
#. translators: %s is a feed type
#: includes/bff-finder.php:193
msgid "Found a feed in %s format, which we support, yay!"
msgstr ""
#: includes/bff-finder.php:199
msgid "Found what <em>might</em> be a feed, but it's not one we support."
msgstr ""
#: includes/bff-finder.php:199
msgid "Found valid XML content, but not in a format we currently support..."
msgstr ""
#: includes/bff-finder.php:206
msgid "Found what is <em>probably</em> a feed!"
msgstr ""
#: includes/bff-finder.php:206
msgid "Found JSON content, so this is likely to be a feed."
msgstr ""
#. translators: %s is a feed type
#: includes/bff-finder.php:236
msgid "Yay! We found a feed of type %s in one of the usual places feeds are found!"
msgstr ""
#. translators: %1$s is a feed web address, and %2$s is the feed type
#: includes/bff-finder.php:238
msgid "\"%1$s\" found. It is a valid address and a valid feed of type %2$s!"
msgstr ""
#: includes/bff-finder.php:302
msgid "We completed your address by adding http:// to the front."
msgstr ""
#: includes/bff-finder.php:302
msgid "We've added an http:// 'scheme' to your address - a valid scheme is a necessary part of a web address"
msgstr ""
#. translators: the first %s is the web address of the course's support site, and the second is the 'invalid' web address upplied by the user.
#: includes/bff-finder.php:321
msgid "Unfortunately, that isn't a valid web address. Please try again. Not sure what we mean by \"blog\"? Check out our OERU <a href=\"%s\">Learner Support Site</a>."
msgstr ""
#. translators: the first %s is the web address of the course's support site, and the second is the 'invalid' web address upplied by the user.
#: includes/bff-finder.php:322
msgid "\"%s\" isn't a valid web address - it requires at least a \"top level domain\", i.e. a \".\", followed by a few letters, for example \".com\". Best thing to do is to go to you blog and copy-and-paste the web address from your browser's address bar."
msgstr ""
#: includes/bff-finder.php:327
msgid "This isn\\t a valid web address."
msgstr ""
#: includes/bff-finder.php:328
msgid "A valid web address needs text like <strong>domain.tld</strong> - tld = \"Top Level Domain\", like country-specific endings or .com, .org, .net, and others. It can also have an optional path, like \"/blog/\" in \"mysite.org.nz/blog/\""
msgstr ""
#. translators: %s is a blog's web address
#: includes/bff-finder.php:344
msgid "Ok, we've verified the web address you entered points to a real site."
msgstr ""
#. translators: %s is a blog's web address
#: includes/bff-finder.php:345
msgid "\"%s\" found. It is a valid address!"
msgstr ""
#. translators: %1$s is a blog web address, and %2$s is another web address to which the first 'redirects'
#: includes/bff-finder.php:352
msgid "\"%1$s\" found. It redirects to %2$s via a \"permanent redirect\" (301)"
msgstr ""
#. translators: %1$s is a blog web address, and %2$s is another web address to which the first 'redirects'
#: includes/bff-finder.php:353
msgid "The web address you supplied redirects to another one - nothing wrong with that."
msgstr ""
#: includes/bff-finder.php:356
#: includes/bff-finder.php:370
msgid "Uh oh, your web address redirects to... a non-existent place."
msgstr ""
#: includes/bff-finder.php:357
msgid "Got redirect code (301), but no redirect destination! Either your link is incorrect, or whoever manages the website has made a configuration error somewhere."
msgstr ""
#. translators: %1$s is the web address the BFF found, and %2$s is the web address to which the first redirects.
#: includes/bff-finder.php:366
#: includes/bff-finder.php:381
msgid "\"%1$s\" found. It redirects to %2$s via a \"temporary redirect\" (302)"
msgstr ""
#. translators: %1$s is the web address the BFF found, and %2$s is the web address to which the first redirects.
#: includes/bff-finder.php:367
#: includes/bff-finder.php:380
msgid "Your web address redirects to another one, no problems."
msgstr ""
#: includes/bff-finder.php:371
#: includes/bff-finder.php:384
msgid "Got redirect code (302), but no redirect destination! Either your link is incorrect, or whoever manages the website has made a configuration error somewhere."
msgstr ""
#: includes/bff-finder.php:383
msgid "Got redirect code (302), but no redirect destination!"
msgstr ""
#. translators: %s is the web address the user entered.
#: includes/bff-finder.php:391
msgid "Your web address wasn't found"
msgstr ""
#. translators: %s is the web address the user entered.
#: includes/bff-finder.php:392
msgid "\"%s\" was not found. The URL might be wrong, or the site currently unavailable for some reason."
msgstr ""
#: includes/bff-finder.php:394
msgid "Make sure your URL's domain and the path (after the /) are spelled correctly! To avoid typos, go to your blog site's front page (not an admin or \"edit\" page) and copy-and-paste the URL from your address bar into the feed address field above."
msgstr ""
#. translators: %s is the web address the user entered.
#: includes/bff-finder.php:400
msgid "The web address you've provided once existed, but it's now reported as \"gone\"..."
msgstr ""
#. translators: %s is the web address the user entered.
#: includes/bff-finder.php:401
msgid "\"%s\" was valid, but its host is now listing it as \"Gone\"."
msgstr ""
#. translators: the %1$s is the web address the user entered, and %2$s is the unexpected reponse.
#: includes/bff-finder.php:406
msgid "Looking for \"%1$s\" got an unexpected result: %2$s"
msgstr ""
#: includes/bff-finder.php:408
msgid "Sorry, no website was found, but we have no idea why. Maybe a problem with our network? Try again in a little while..."
msgstr ""
#. translators: %s is the web address the user entered.
#: includes/bff-finder.php:415
msgid "The web address entered, \"%s\", isn't responding. Either the address is misspelled, the site is down, incredibly slow, or it doesn't exist..."
msgstr ""
#: includes/bff-finder.php:417
msgid "Your web address isn't responding. Perhaps there's a typo? Otherwise, perhaps the site is down or there's a network problem between its server and our server."
msgstr ""
#: includes/bff-finder.php:422
msgid "No web address entered!"
msgstr ""
#: includes/bff-finder.php:423
msgid "Perhaps you need to click your pointer in the text field, or you need to tap the field first (if you're on a touch device)."
msgstr ""
#. translators: %s is the support blog web address.
#: includes/bff-finder.php:440
msgid "Oops, this isn't a valid blog, but it's one people commonly enter by accident - to learn more, see our support site's \"<a href=\"%s\">blog</a>\" section..."
msgstr ""
#: includes/bff-strings.php:4
msgid "We have identified the following supported feeds."
msgstr ""
#: includes/bff-strings.php:5
msgid "Please select the one you think the best choice:"
msgstr ""
#: includes/bff-strings.php:6
msgid "entitled"
msgstr ""
#: includes/bff-strings.php:7
msgid "Format"
msgstr ""
#: includes/bff-strings.php:8
msgid "Select Feed"
msgstr ""
#: includes/bff-strings.php:9
msgid "feed"
msgstr ""
#: includes/bff-strings.php:10
msgid "selected"
msgstr ""
#: includes/bff-strings.php:11
msgid "We found a feed"
msgstr ""
#: includes/bff-strings.php:12
msgid "blog feed already set to"
msgstr ""
#: includes/bff-strings.php:13
msgid "existing blog feed"
msgstr ""
#: includes/bff-strings.php:14
msgid "Replace"
msgstr ""
#: includes/bff-strings.php:15
msgid "Assign"
msgstr ""
#: includes/bff-strings.php:16
msgid "You can assign this blog feed to any of your courses, or use it to replace any existing assignments:"
msgstr ""
#: includes/bff-strings.php:17
msgid "All of your blog feeds are already set to this feed! There's nothing you need to do. Well done!"
msgstr ""
#: includes/bff-strings.php:18
msgid "Ready"
msgstr ""
#: includes/bff-strings.php:19
msgid "updated to"
msgstr ""
#: includes/bff-strings.php:20
msgid "updated blog feed to"
msgstr ""
#: includes/bff-strings.php:21
msgid "Success"
msgstr ""
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