Changeset 38
- Timestamp:
- 01/21/07 19:08:11 (2 years ago)
- Files:
-
- category/category_manage.php (modified) (3 diffs)
- category/category_sidebar.php (modified) (1 diff)
- category/category_view.php (modified) (1 diff)
- category/lib.php (modified) (1 diff)
- friendicon/mod/friendicon/lib.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
category/category_manage.php
r37 r38 42 42 delete_records('tags','tagtype','weblogcat','ref',$page_owner); 43 43 insert_tags_from_string ($cats, 'weblogcat', $page_owner, "PUBLIC", $page_owner); 44 $messages[] = gettext("Your weblog categories were updated.");44 $messages[] = __gettext("Your weblog categories were updated."); 45 45 $_SESSION['messages'] = $messages; 46 46 header("Location: " . $CFG->wwwroot . "mod/category/category_manage.php?owner=$page_owner"); … … 53 53 $body = "<form action=\"\" method=\"post\">"; 54 54 55 $body .= "<p>" . gettext("Categories allow you to highlight particular tags that represent important weblog content and display them in your sidebar.") . "</p>";56 $body .= "<p>" . gettext("For example, if you wanted to draw attention to all blog posts tagged with 'science', you could add that tag below, and users would know that 'science' represents an important category of content. They could then click on 'science' in your sidebar and see all content relating to science.") . "</p>";57 $body .= "<p>" . gettext("To set up categories, type the tags you'd like to highlight separated by commas below:") . "</p>";55 $body .= "<p>" . __gettext("Categories allow you to highlight particular tags that represent important weblog content and display them in your sidebar.") . "</p>"; 56 $body .= "<p>" . __gettext("For example, if you wanted to draw attention to all blog posts tagged with 'science', you could add that tag below, and users would know that 'science' represents an important category of content. They could then click on 'science' in your sidebar and see all content relating to science.") . "</p>"; 57 $body .= "<p>" . __gettext("To set up categories, type the tags you'd like to highlight separated by commas below:") . "</p>"; 58 58 59 59 $body .= templates_draw(array( 60 60 'context' => 'databoxvertical', 61 'name' => gettext("Highlighted categories"),61 'name' => __gettext("Highlighted categories"), 62 62 'contents' => display_input_field(array("edit_weblog_categories",'',"keywords",'weblogcat',$PAGE->owner,$PAGE->owner)) 63 63 ) 64 64 ); 65 65 66 $postButton = gettext("Save");66 $postButton = __gettext("Save"); 67 67 68 68 $body .= <<< END … … 78 78 79 79 // Output to the screen 80 $title = "Manage blog categories";80 $title = __gettext("Manage blog categories"); 81 81 $body = templates_draw(array( 82 82 'context' => 'contentholder', category/category_sidebar.php
r37 r38 7 7 if ($categories = get_records_sql("select * from ".$CFG->prefix."tags where tagtype = 'weblogcat' and owner = $page_owner order by tag asc")) { 8 8 9 $title = gettext('Blog categories');9 $title = __gettext('Blog categories'); 10 10 $body = '<ul>'; 11 11 category/category_view.php
r37 r38 2 2 3 3 // Display posts in this category 4 print "Category view";4 print __gettext("Category view"); 5 5 ?> category/lib.php
r37 r38 21 21 $PAGE->menu_sub[] = array('name' => 'blog:category', 22 22 'html' => a_href("{$CFG->wwwroot}mod/category/category_manage.php?owner=$page_owner", 23 gettext("Manage blog categories")));23 __gettext("Manage blog categories"))); 24 24 } 25 25 friendicon/mod/friendicon/lib.php
r24 r38 46 46 47 47 function friendicon_userdetails_edit_details($userid) { 48 $title = gettext("Sidebar friend icon:");49 $blurb = gettext("Choose if you would like your friends' user icons displayed in your sidebar friends list.");48 $title = __gettext("Sidebar friend icon:"); 49 $blurb = __gettext("Choose if you would like your friends' user icons displayed in your sidebar friends list."); 50 50 51 51 $body = <<< END … … 54 54 END; 55 55 56 $true = gettext('Yes');57 $false = gettext('No');56 $true = __gettext('Yes'); 57 $false = __gettext('No'); 58 58 59 59 $checked_true = ''; … … 80 80 $body .= templates_draw( array( 81 81 'context' => 'databox', 82 'name' => gettext("Sidebar user icon: "),82 'name' => __gettext("Sidebar user icon: "), 83 83 'column1' => $chooser 84 84 ) … … 101 101 if ($friendicon_sidebar != $friendicon_sidebar_db) { 102 102 if(user_flag_set('friendicon_sidebar', $friendicon_sidebar, $id)) { 103 $messages[] .= gettext("Display of user icons") . " " .gettext("saved") .".";103 $messages[] .= __gettext("Display of user icons") . " " . __gettext("saved") ."."; 104 104 } else { 105 $messages[] .= gettext("Display of user icons") . " " .gettext("not saved") .".";105 $messages[] .= __gettext("Display of user icons") . " " . __gettext("not saved") ."."; 106 106 } 107 107 }
