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/plugins.php

    r1560 r1561  
    8484 
    8585    // Rendering 
    86     echo "<h2 class=\"trigger\">".LBL_ADMIN_PLUGINS."</h2>\n" 
     86    echo "<h2 class=\"trigger\">".__('Plugins')."</h2>\n" 
    8787    ."<div id=\"admin_plugins\">\n"; 
    8888 
    8989 
    90     echo LBL_ADMIN_PLUGINS_GET_MORE; 
     90    echo __('<p style="font-size:small">Plugins are third-party scripts that offer extended functionalities. More plugins can be downloaded at the <a style="text-decoration:underline"  href="http://plugins.gregarius.net/">Plugin Repository</a>.</p>'); 
    9191 
    9292    echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n"; 
    9393    echo "<p><input type=\"hidden\" name=\"".CST_ADMIN_DOMAIN."\" value=\"".CST_ADMIN_DOMAIN_PLUGINS."\" /></p>\n"; 
    9494    echo "\n<table id=\"plugintable\">\n<tr>\n" 
    95     ."<th>".LBL_ADMIN_PLUGINS_HEADING_ACTION."</th>\n" 
    96     ."<th>".LBL_ADMIN_PLUGINS_HEADING_NAME."</th>\n" 
    97     ."<th>".LBL_ADMIN_PLUGINS_HEADING_VERSION."</th>\n" 
    98     ."<th>".LBL_ADMIN_PLUGINS_HEADING_AUTHOR."</th>\n" 
    99     ."<th>".LBL_ADMIN_PLUGINS_HEADING_DESCRIPTION."</th>\n" 
    100     ."<th>".LBL_ADMIN_PLUGINS_HEADING_OPTIONS."</th>\n"; 
     95    ."<th>".__('Active')."</th>\n" 
     96    ."<th>".__('Name')."</th>\n" 
     97    ."<th>".__('Version')."</th>\n" 
     98    ."<th>".__('Author')."</th>\n" 
     99    ."<th>".__('Description')."</th>\n" 
     100    ."<th>".__('Options')."</th>\n"; 
    101101    if ($doUpdates) { 
    102         echo "<th>".LBL_ADMIN_PLUGINS_HEADING_UPDATES."</th>\n"; 
     102        echo "<th>".__('Update Available')."</th>\n"; 
    103103    } 
    104104 
     
    147147                    ."&amp;action=". CST_ADMIN_EDIT_ACTION. "&amp;plugin_name=".$escaped_plugin_name 
    148148                    ."&amp;" .CST_ADMIN_VIEW ."=" .CST_ADMIN_DOMAIN_PLUGIN_OPTIONS 
    149                     ."\">" . LBL_ADMIN_EDIT 
     149                    ."\">" . __('edit') 
    150150                    ."</a>"; 
    151151                } else { 
     
    168168    echo "</table>\n"; 
    169169    echo "<p><input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"ACT_ADMIN_SUBMIT_CHANGES\"/>\n"; 
    170     echo "<input type=\"submit\" name=\"admin_plugin_submit_changes\" value=\"".LBL_ADMIN_SUBMIT_CHANGES."\" />\n"; 
    171     echo "<input type=\"submit\" name=\"admin_plugin_check_for_updates\" value=\"".LBL_ADMIN_CHECK_FOR_UPDATES."\" /></p></form>\n"; 
     170    echo "<input type=\"submit\" name=\"admin_plugin_submit_changes\" value=\"".__('Submit Changes')."\" />\n"; 
     171    echo "<input type=\"submit\" name=\"admin_plugin_check_for_updates\" value=\"".__('Check for Updates')."\" /></p></form>\n"; 
    172172    echo "</div>"; 
    173173} 
     
    200200        if ($plugin_output) { // Let us set up a form 
    201201            echo "<h2 
    202             class=\"trigger\">".LBL_ADMIN_PLUGINS_OPTIONS." ".TITLE_SEP." ". $plugin_info['name']. "</h2>\n" 
     202            class=\"trigger\">".__('Plugin Options')." ".TITLE_SEP." ". $plugin_info['name']. "</h2>\n" 
    203203            ."<div id=\"admin_plugin_options\">\n"; 
    204204            echo "<form method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n"; 
     
    210210            ."\" value=\"ACT_ADMIN_SUBMIT_CHANGES\"/>\n"; 
    211211            echo "<input type=\"submit\" name=\"admin_plugin_options_submit_changes\" value=\"" 
    212             .LBL_ADMIN_SUBMIT_CHANGES."\" />\n"; 
     212            .__('Submit Changes')."\" />\n"; 
    213213            echo "<input type=\"submit\" name=\"admin_plugin_options_cancel_changes\" 
    214             value=\"".LBL_ADMIN_CANCEL."\" /></p></form>\n"; 
     214            value=\"".__('Cancel')."\" /></p></form>\n"; 
    215215            echo "</div>"; 
    216216        } else {