Changeset 38

Show
Ignore:
Timestamp:
01/21/07 19:08:11 (2 years ago)
Author:
sven
Message:

some gettext() -> gettext()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • category/category_manage.php

    r37 r38  
    4242            delete_records('tags','tagtype','weblogcat','ref',$page_owner); 
    4343            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."); 
    4545            $_SESSION['messages'] = $messages; 
    4646            header("Location: " . $CFG->wwwroot . "mod/category/category_manage.php?owner=$page_owner"); 
     
    5353        $body = "<form action=\"\" method=\"post\">"; 
    5454     
    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>"; 
    5858         
    5959        $body .= templates_draw(array( 
    6060                                'context' => 'databoxvertical', 
    61                                 'name' => gettext("Highlighted categories"), 
     61                                'name' => __gettext("Highlighted categories"), 
    6262                                'contents' =>  display_input_field(array("edit_weblog_categories",'',"keywords",'weblogcat',$PAGE->owner,$PAGE->owner)) 
    6363                            ) 
    6464                            ); 
    6565                             
    66         $postButton = gettext("Save"); 
     66        $postButton = __gettext("Save"); 
    6767                             
    6868        $body .= <<< END 
     
    7878                                                        
    7979    // Output to the screen 
    80         $title = "Manage blog categories"
     80        $title = __gettext("Manage blog categories")
    8181        $body = templates_draw(array( 
    8282                        'context' => 'contentholder', 
  • category/category_sidebar.php

    r37 r38  
    77        if ($categories = get_records_sql("select * from ".$CFG->prefix."tags where tagtype = 'weblogcat' and owner = $page_owner order by tag asc")) { 
    88         
    9             $title = gettext('Blog categories'); 
     9            $title = __gettext('Blog categories'); 
    1010            $body  = '<ul>'; 
    1111             
  • category/category_view.php

    r37 r38  
    22 
    33    // Display posts in this category 
    4     print "Category view"
     4    print __gettext("Category view")
    55?> 
  • category/lib.php

    r37 r38  
    2121            $PAGE->menu_sub[] = array('name' => 'blog:category', 
    2222                                      'html' => a_href("{$CFG->wwwroot}mod/category/category_manage.php?owner=$page_owner", 
    23                                                    gettext("Manage blog categories"))); 
     23                                                   __gettext("Manage blog categories"))); 
    2424        } 
    2525 
  • friendicon/mod/friendicon/lib.php

    r24 r38  
    4646     
    4747    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."); 
    5050 
    5151        $body = <<< END 
     
    5454END; 
    5555 
    56         $true = gettext('Yes'); 
    57         $false = gettext('No'); 
     56        $true = __gettext('Yes'); 
     57        $false = __gettext('No'); 
    5858 
    5959        $checked_true = ''; 
     
    8080        $body .= templates_draw( array( 
    8181                    'context' => 'databox', 
    82                     'name' => gettext("Sidebar user icon: "), 
     82                    'name' => __gettext("Sidebar user icon: "), 
    8383                    'column1' => $chooser 
    8484        ) 
     
    101101                if ($friendicon_sidebar != $friendicon_sidebar_db) { 
    102102                    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") ."."; 
    104104                    } else { 
    105                         $messages[] .= gettext("Display of user icons") . " " . gettext("not saved") ."."; 
     105                        $messages[] .= __gettext("Display of user icons") . " " . __gettext("not saved") ."."; 
    106106                    } 
    107107                }