summaryrefslogtreecommitdiff
path: root/modules/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-11-01 10:47:20 +0000
committerDries Buytaert <dries@buytaert.net>2002-11-01 10:47:20 +0000
commitcc381c14613b4c4539d74f38ec58196f6dfcdaa0 (patch)
tree34c44d95ed24402bca4736765ba7a0d53e458ac5 /modules/blog.module
parent74c722502bf274cc59b3b6fd871db9d96defba4f (diff)
downloadbrdo-cc381c14613b4c4539d74f38ec58196f6dfcdaa0.tar.gz
brdo-cc381c14613b4c4539d74f38ec58196f6dfcdaa0.tar.bz2
- Fixed glitch in block module: the admin links were not composed
correctly. Patch by Stefan. - Added missing t() functions and improved the %x directives for better readability and to ease the process of translating your site. Patches by Stefan. - Made two small additions to the 'code-clean.sh' script; it will now remove patch related junk. NOTES: - I removed the &middot; related bits. Let's tackle these later on in a separate patch after we got some sort of consensus. - I removed the 'module_exist("drupal")' check in the user module; I *think* it is incomplete and therefore incorrect. - Stefan, try using quotes in your translations and check whether everything still works. Example: translate the "Create account" button to "Create \"haha\" account \'hihi\'" and see if you can still create new accounts. Maybe automate this using a quick hack in the locale module ...
Diffstat (limited to 'modules/blog.module')
-rw-r--r--modules/blog.module9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/blog.module b/modules/blog.module
index 9d698c44b..ef75b500d 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -8,8 +8,9 @@ function blog_system($field){
function blog_conf_options() {
- $output = form_textarea("Explanation or submission guidelines", "blog_help", variable_get("blog_help", ""), 55, 4, "This text is displayed at the top of the blog submission form. It's useful for helping or instructing your users.");
- $output .= form_select(t("Minimum number of words in a blog entry"), "minimum_blog_size", variable_get("minimum_blog_size", 0), array(0 => "0 words", 10 => "10 words", 25 => "25 words", 50 => "50 words", 75 => "75 words", 100 => "100 words", 125 => "125 words", 150 => "150 words", 175 => "175 words", 200 => "200 words"), t("The minimum number of words a personal blog entry should contain. This is useful to rule out submissions that do not meet the site's standards, such as short test posts."));
+ $output = form_textarea(t("Explanation or submission guidelines"), "blog_help", variable_get("blog_help", ""), 55, 4, t("This text is displayed at the top of the blog submission form. It's useful for helping or instructing your users."));
+ $words = t("words");
+ $output .= form_select(t("Minimum number of words in a blog entry"), "minimum_blog_size", variable_get("minimum_blog_size", 0), array(0 => "0 $words", 10 => "10 $words", 25 => "25 $words", 50 => "50 $words", 75 => "75 $words", 100 => "100 $words", 125 => "125 $words", 150 => "150 $words", 175 => "175 $words", 200 => "200 $words"), t("The minimum number of words a personal blog entry should contain. This is useful to rule out submissions that do not meet the site's standards, such as short test posts."));
return $output;
}
@@ -193,7 +194,7 @@ function blog_page_user($uid = 0, $date = 0, $all = 0) {
$output .= lm(t("show recent blogs"), array("mod" => "blog", "op" => "view", "id" => $account->uid), "", array("title" => t("Show recent blogs by this user.")));
}
- $theme->box(t("%u's blog", array("%u" => $account->name)), $output);
+ $theme->box(t("%username's blog", array("%username" => $account->name)), $output);
}
function blog_page_last() {
@@ -325,7 +326,7 @@ function blog_link($type, $node = 0, $main) {
$links[] = lm(t("edit this blog"), array("mod" => "node", "op" => "edit", "id" => $node->nid), "", array("title" => t("Edit this blog entry.")));
}
elseif ($op != "view" && !$id) {
- $links[] = lm(t("%u's blog", array("%u" => $node->name)), array("mod" => "blog", "op" => "view", "id" => $node->uid), "", array("title" => t("Read %u's latest blog entries.", array("%u" => $node->name))));
+ $links[] = lm(t("%username's blog", array("%username" => $node->name)), array("mod" => "blog", "op" => "view", "id" => $node->uid), "", array("title" => t("Read %username's latest blog entries.", array("%username" => $node->name))));
}
}