updated strings to match guidelines - removed underscores and removed block_rss_ prefix
This commit is contained in:
@@ -7,7 +7,7 @@ define('BLOCK_RSS_SECONDARY_CACHE_ENABLED', true);
|
||||
class block_rss_client extends block_base {
|
||||
|
||||
function init() {
|
||||
$this->title = get_string('block_rss_feeds_title', 'block_rss_client');
|
||||
$this->title = get_string('feedstitle', 'block_rss_client');
|
||||
$this->version = 2004112000;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class block_rss_client extends block_base {
|
||||
$this->title = $this->config->title;
|
||||
} else {
|
||||
// No customized block title, use localized remote news feed string
|
||||
$this->title = get_string('block_rss_remote_news_feed', 'block_rss_client');
|
||||
$this->title = get_string('remotenewsfeed', 'block_rss_client');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,11 +91,11 @@ class block_rss_client extends block_base {
|
||||
if (isset($this->config)) {
|
||||
// this instance is configured - show Add/Edit feeds link
|
||||
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'managefeeds'));
|
||||
$output .= '<div align="center"><a title="'. get_string('block_rss_feeds_add_edit', 'block_rss_client') .'" href="'. $script .'">'. get_string('block_rss_feeds_add_edit', 'block_rss_client') .'</a></div><br />';
|
||||
$output .= '<div align="center"><a title="'. get_string('feedsaddedit', 'block_rss_client') .'" href="'. $script .'">'. get_string('feedsaddedit', 'block_rss_client') .'</a></div><br />';
|
||||
} else {
|
||||
// this instance has not been configured yet - show configure link
|
||||
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'configblock'));
|
||||
$output .= '<div align="center"><a title="'. get_string('block_rss_feeds_configure_new_instance)', 'block_rss_client') .'" href="'. $script.'">'. get_string('block_rss_feeds_configure_new_instance)', 'block_rss_client') .'</a></div><br />';
|
||||
$output .= '<div align="center"><a title="'. get_string('feedsconfigurenewinstance)', 'block_rss_client') .'" href="'. $script.'">'. get_string('feedsconfigurenewinstance)', 'block_rss_client') .'</a></div><br />';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ class block_rss_client extends block_base {
|
||||
|
||||
if (!empty($rss->channel['link'])) {
|
||||
if (!empty($this->config) && isset($this->config->block_rss_client_show_channel_link) && $this->config->block_rss_client_show_channel_link) {
|
||||
$this->content->footer = '<a href="'. $rss->channel['link'] .'">'. get_string('block_rss_client_channel_link', 'block_rss_client') .'</a>';
|
||||
$this->content->footer = '<a href="'. $rss->channel['link'] .'">'. get_string('clientchannellink', 'block_rss_client') .'</a>';
|
||||
}
|
||||
if (!empty($feedtitle) ) {
|
||||
$feedtitle = '<a href="'. $rss->channel['link'] .'">'. $feedtitle .'</a>';
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
define('MAGPIE_OUTPUT_ENCODING', get_string('thischarset')); // see bug 3107
|
||||
}
|
||||
|
||||
$straddedit = get_string('block_rss_feeds_add_edit', 'block_rss_client');
|
||||
$straddedit = get_string('feedsaddedit', 'block_rss_client');
|
||||
if ( isadmin() ) {
|
||||
$stradmin = get_string('administration');
|
||||
$strconfiguration = get_string('configuration');
|
||||
@@ -40,8 +40,8 @@
|
||||
$navigation = $straddedit;
|
||||
}
|
||||
|
||||
print_header(get_string('block_rss_feeds_add_edit', 'block_rss_client'),
|
||||
get_string('block_rss_feeds_add_edit', 'block_rss_client'),
|
||||
print_header(get_string('feedsaddedit', 'block_rss_client'),
|
||||
get_string('feedsaddedit', 'block_rss_client'),
|
||||
$navigation );
|
||||
|
||||
//check to make sure that the user is allowed to post new feeds
|
||||
@@ -88,7 +88,7 @@
|
||||
error('There was an error trying to update rss feed with id:'. $rssid);
|
||||
}
|
||||
|
||||
redirect($referrer, get_string('block_rss_feed_updated', 'block_rss_client'));
|
||||
redirect($referrer, get_string('feedupdated', 'block_rss_client'));
|
||||
/* rss_display_feeds();
|
||||
rss_get_form($act, $dataobject->url, $rssid, $dataobject->preferredtitle);
|
||||
*/
|
||||
@@ -128,7 +128,7 @@
|
||||
if (!update_record('block_rss_client', $dataobject)) {
|
||||
error('There was an error trying to update rss feed with id:'. $rssid);
|
||||
}
|
||||
$message = get_string('block_rss_feed_added', 'block_rss_client');
|
||||
$message = get_string('feedadded', 'block_rss_client');
|
||||
}
|
||||
redirect($referrer, $message);
|
||||
/*
|
||||
@@ -158,7 +158,7 @@
|
||||
$sql = 'DELETE FROM '. $CFG->prefix .'block_rss_client WHERE id='. $rssid;
|
||||
$res= $db->Execute($sql);
|
||||
|
||||
redirect($referrer, get_string('block_rss_feed_deleted', 'block_rss_client') );
|
||||
redirect($referrer, get_string('feeddeleted', 'block_rss_client') );
|
||||
|
||||
/* rss_display_feeds();
|
||||
rss_get_form($act, $url, $rssid, $preferredtitle);
|
||||
@@ -168,7 +168,7 @@
|
||||
// print_object($res); //debug
|
||||
$rss_record = get_record('block_rss_client', 'id', $rssid);
|
||||
if (!$rss_record->id) {
|
||||
print '<strong>'. get_string('block_rss_could_not_find_feed', 'block_rss_client') .': '. $rssid .'</strong>';
|
||||
print '<strong>'. get_string('couldnotfindfeed', 'block_rss_client') .': '. $rssid .'</strong>';
|
||||
} else {
|
||||
// By capturing the output from fetch_rss this way
|
||||
// error messages do not display and clutter up the moodle interface
|
||||
@@ -203,7 +203,7 @@
|
||||
if (file_exists($CFG->dirroot .'/blog/lib.php')) {
|
||||
//Blog module is installed - provide "blog this" link
|
||||
print '<td align="right">'."\n";
|
||||
print '<img src="'. $CFG->pixpath .'/blog/blog.gif" alt="'. get_string('blog_blog_this', 'blog').'" title="'. get_string('blog_blog_this', 'blog') .'" border="0" align="middle" />'."\n";
|
||||
print '<img src="'. $CFG->pixpath .'/blog/blog.gif" alt="'. get_string('blogthis', 'blog').'" title="'. get_string('blogthis', 'blog') .'" border="0" align="middle" />'."\n";
|
||||
print '<a href="'. $CFG->wwwroot .'/blog/blogthis.php?blogid='. $blogid .'&act=use&item='. $y .'&rssid='. $rssid .'"><small><strong>'. get_string('blog_blog_this', 'blog') .'</strong></small></a>'."\n";
|
||||
} else {
|
||||
print '<td> ';
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<?php print_string('block_rss_client_num_entries', 'block_rss_client') ?>
|
||||
<?php print_string('clientnumentries', 'block_rss_client') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
@@ -28,7 +28,7 @@
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<?php print_string('block_rss_timeout', 'block_rss_client') ?>
|
||||
<?php print_string('timeout', 'block_rss_client') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
@@ -52,7 +52,7 @@
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<?php print_string('block_rss_submitters', 'block_rss_client') ?>
|
||||
<?php print_string('submitters', 'block_rss_client') ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -63,6 +63,6 @@
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td colspan="3" align="center"><a href=" <?php echo $CFG->wwwroot; ?>/blocks/rss_client/block_rss_client_action.php?courseid=<?php echo $courseid; ?>"><?php print_string('block_rss_feeds_add_edit', 'block_rss_client')?></a></center><br /><br />
|
||||
<td colspan="3" align="center"><a href=" <?php echo $CFG->wwwroot; ?>/blocks/rss_client/block_rss_client_action.php?courseid=<?php echo $courseid; ?>"><?php print_string('feedsaddedit', 'block_rss_client')?></a></center><br /><br />
|
||||
</td>
|
||||
</table>
|
||||
|
||||
@@ -19,7 +19,7 @@ if ($currentaction == 'configblock') {
|
||||
<table cellpadding="9" cellspacing="0" class="blockconfigtable">
|
||||
<tr valign="top">
|
||||
<td align="right" width="50%">
|
||||
<?php print_string('block_rss_display_description_label', 'block_rss_client') ?>
|
||||
<?php print_string('displaydescriptionlabel', 'block_rss_client') ?>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<?php
|
||||
@@ -38,7 +38,7 @@ if ($currentaction == 'configblock') {
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right" width="50%">
|
||||
<?php print_string('block_rss_shownumentries_label', 'block_rss_client') ?>
|
||||
<?php print_string('shownumentrieslabel', 'block_rss_client') ?>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input name="shownumentries" type="text" size="5" value="<?php
|
||||
@@ -56,7 +56,7 @@ if ($currentaction == 'configblock') {
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right" width="50%">
|
||||
<?php print_string('block_rss_choose_feed_label', 'block_rss_client') ?>
|
||||
<?php print_string('choosefeedlabel', 'block_rss_client') ?>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<?php
|
||||
@@ -99,9 +99,9 @@ if ($currentaction == 'configblock') {
|
||||
print $dropdownmenustring;
|
||||
|
||||
} else {
|
||||
print_string('block_rss_no_feeds', 'block_rss_client');
|
||||
print_string('nofeeds', 'block_rss_client');
|
||||
if ( isadmin() ) {
|
||||
print ' <a href="'. $CFG->wwwroot .'/blocks/rss_client/block_rss_client_action.php"> '. get_string('block_rss_edit_news_feeds', 'block_rss_client') .'</a><br />';
|
||||
print ' <a href="'. $CFG->wwwroot .'/blocks/rss_client/block_rss_client_action.php"> '. get_string('editnewsfeeds', 'block_rss_client') .'</a><br />';
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -119,7 +119,7 @@ if ($currentaction == 'configblock') {
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right" width="50%"><?php print_string('block_rss_client_show_channel_link_label', 'block_rss_client'); ?></td>
|
||||
<td align="right" width="50%"><?php print_string('clientshowchannellinklabel', 'block_rss_client'); ?></td>
|
||||
<td width="50%">
|
||||
<?php
|
||||
if (isset($this->config) && isset($this->config->block_rss_client_show_channel_link)) {
|
||||
@@ -135,7 +135,7 @@ if ($currentaction == 'configblock') {
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right" width="50%"><?php print_string('block_rss_client_show_image_label', 'block_rss_client'); ?></td>
|
||||
<td align="right" width="50%"><?php print_string('clientshowimagelabel', 'block_rss_client'); ?></td>
|
||||
<td width="50%">
|
||||
<?php
|
||||
if (isset($this->config) && isset($this->config->block_rss_client_show_channel_image)) {
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'configblock'));
|
||||
$row[] = new tabobject('configblock', $script,
|
||||
get_string('block_rss_configblock', 'block_rss_client'));
|
||||
get_string('configblock', 'block_rss_client'));
|
||||
|
||||
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'managefeeds'));
|
||||
$row[] = new tabobject('managefeeds', $script,
|
||||
get_string('block_rss_managefeeds', 'block_rss_client'));
|
||||
get_string('managefeeds', 'block_rss_client'));
|
||||
|
||||
$tabs[] = $row;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user