Show
Ignore:
Timestamp:
09/09/06 14:52:23 (2 years ago)
Author:
mbonetti
Message:

Yay for gettext localization! This will probably break things big time.
Note that until intl/*.php isn't adapted the the new method, the trunk
won't be localized!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/admin/themes.php

    r1560 r1561  
    4848        echo "<form style=\"float:right\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n" 
    4949          . "<p><input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_THEMES."\" />\n" 
    50         ."<input type=\"submit\" name=\"admin_themes_check_for_updates\" value=\"".LBL_ADMIN_CHECK_FOR_UPDATES."\" /></p>\n" 
     50        ."<input type=\"submit\" name=\"admin_themes_check_for_updates\" value=\"".__('Check for Updates')."\" /></p>\n" 
    5151        . "</form>\n"; 
    5252        if (isset($_POST['admin_themes_check_for_updates'])) { 
    53             theme_getThemesUpdate(&$themes); 
     53            theme_getThemesUpdate($themes); 
    5454        } 
    5555     
    56     echo "<h2 class=\"trigger\">".LBL_ADMIN_THEMES."</h2>\n" 
     56    echo "<h2 class=\"trigger\">".__('Themes')."</h2>\n" 
    5757    ."<div id=\"admin_themes\" >\n"; 
    58     echo LBL_ADMIN_THEMES_GET_MORE; 
     58    echo __('<p style="font-size:small">Themes are made of a set of template files which specify how your Gregarius installation looks.<br />More themes can be downloaded from the <a style="text-decoration:underline"  href="http://themes.gregarius.net/">Themes Repository</a>.</p>'); 
    5959 
    6060 
     
    8888        echo "<div class=\"themeframe".($active?" active":""). ($updateAvailable?" hilite":"")."\"><span>"; 
    8989        if (!$active && $htmltheme) { 
    90             echo "<a href=\"$seturl\" class=\"bookmarklet\">".LBL_ADMIN_USE_THIS_THEME."</a>"; 
     90            echo "<a href=\"$seturl\" class=\"bookmarklet\">".__('Use this Theme')."</a>"; 
    9191        } elseif($active) { 
    92             echo "<p class=\"bookmarklet\">".LBL_ADMIN_ACTIVE_THEME."</p>"; 
     92            echo "<p class=\"bookmarklet\">".__('Active Theme')."</p>"; 
    9393        } 
    9494        echo "<h4>$h4</h4>\n"; 
     
    9898                    ."&amp;theme=".$entry 
    9999                    ."&amp;" .CST_ADMIN_VIEW ."=" .CST_ADMIN_DOMAIN_THEME_OPTIONS 
    100                     ."\">" . LBL_ADMIN_CONFIGURE . "</a>"; 
     100                    ."\">" . __('Configure') . "</a>"; 
    101101        echo "<h5>$h5</h5>\n" 
    102102            ."<p class=\"themescreenshot\">$screenshotURL</p>" 
     
    150150        if ($theme_output) { // Let us set up a form 
    151151            echo "<h2 
    152             class=\"trigger\">".LBL_ADMIN_THEME_OPTIONS." ".TITLE_SEP." ". $name. "</h2>\n" 
     152            class=\"trigger\">".__('Theme Options')." ".TITLE_SEP." ". $name. "</h2>\n" 
    153153            ."<div id=\"admin_theme_options\">\n"; 
    154154            echo "<form method=\"post\" "; 
     
    171171            { 
    172172                echo "<input type=\"submit\" name=\"admin_theme_options_submit_changes\" value=\"" 
    173                 .LBL_ADMIN_SUBMIT_CHANGES."\" />\n"; 
     173                .__('Submit Changes')."\" />\n"; 
    174174                echo "<input type=\"submit\" name=\"admin_theme_options_cancel_changes\" 
    175                 value=\"".LBL_ADMIN_CANCEL."\" />\n"; 
     175                value=\"".__('Cancel')."\" />\n"; 
    176176            } 
    177177            echo "</p></form>\n"; 
     
    273273     
    274274    if( isset( $_REQUEST['mediaparam'] ) && $media === sanitize($_REQUEST['mediaparam'], RSS_SANITIZER_CHARACTERS) ) { 
    275         if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == LBL_ADMIN_YES) { 
     275        if (array_key_exists(CST_ADMIN_CONFIRMED,$_POST) && $_POST[CST_ADMIN_CONFIRMED] == __('Yes')) { 
    276276            if (!array_key_exists('key',$_REQUEST)) { 
    277277                rss_error('Invalid config key specified.', RSS_ERROR_ERROR,true); 
     
    283283        } else if( rss_theme_options_is_submit() ) { 
    284284            switch ($action) { 
    285             case LBL_ADMIN_SUBMIT_CHANGES: 
     285            case __('Submit Changes'): 
    286286            case 'ACT_ADMIN_SUBMIT_CHANGES': 
    287287                if (!array_key_exists('key',$_REQUEST)) {