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

    r1560 r1561  
    3636    //disable file upload formfields when file_upload is false 
    3737    $disableupload = ini_get('file_uploads') ? "":" disabled=\"disabled\" "; 
    38     echo "<h2>". LBL_ADMIN_OPML ."</h2>\n"; 
     38    echo "<h2>". __('OPML:') ."</h2>\n"; 
    3939    echo "<div id=\"admin_opml\">\n"; 
    4040 
    4141    echo "<fieldset id=\"opmlimport\">\n" 
    42     ."<legend>" . LBL_ADMIN_OPML_IMPORT_OPML . "</legend>"; 
     42    ."<legend>" . __('Import OPML:') . "</legend>"; 
    4343 
    4444    echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"" .$_SERVER['PHP_SELF'] ."\">\n"; 
    4545    echo "<p><input type=\"hidden\" name=\"". CST_ADMIN_DOMAIN ."\" value=\"".CST_ADMIN_DOMAIN_CHANNEL."\"/>\n"; 
    46     echo "<label for=\"opml\">" . LBL_ADMIN_OPML_IMPORT_FROM_URL ."</label>\n"; 
     46    echo "<label for=\"opml\">" . __('... from URL:') ."</label>\n"; 
    4747    echo "<input type=\"text\"  name=\"opml\" id=\"opml\" value=\"http://\" onfocus=\"this.select()\"/></p>\n"; 
    4848 
     
    5050    echo '<p><input type="hidden" name="' . CST_ADMIN_DOMAIN . '" value="' . CST_ADMIN_DOMAIN_CHANNEL . "\" />\n"; 
    5151    echo '<input type="hidden" name="MAX_FILE_SIZE" value="150000" />' . "\n"; 
    52     echo '<label for="opmlfile">' . LBL_ADMIN_OPML_IMPORT_FROM_FILE . "</label>\n"; 
     52    echo '<label for="opmlfile">' . __('... from File:') . "</label>\n"; 
    5353    echo '<input name="opmlfile" type="file" id="opmlfile" '.$disableupload.'/></p>' . "\n"; 
    5454 
     
    6161 
    6262    echo "\n" 
    63     ."<p>".LBL_ADMIN_OPML_IMPORT_AND."</p>" 
     63    ."<p>".__('Import new feeds and:')."</p>" 
    6464 
    6565    ."<p style=\"padding-left:1em;\"><input checked=\"checked\" type=\"radio\" id=\"opml_import_option_merge\" name=\"opml_import_option\" value=\"".CST_ADMIN_OPML_IMPORT_MERGE."\" />\n" 
    66     ."<label for=\"opml_import_option_merge\" >".LBL_ADMIN_OPML_IMPORT_MERGE."</label></p>\n" 
     66    ."<label for=\"opml_import_option_merge\" >".__('... merge them with the existing ones.')."</label></p>\n" 
    6767 
    6868 
    6969    ."<p style=\"padding-left:1em;\"><input type=\"radio\" id=\"opml_import_option_folder\" name=\"opml_import_option\" value=\"".CST_ADMIN_OPML_IMPORT_FOLDER."\" />\n" 
    70     ."<label for=\"opml_import_option_folder\" >".LBL_ADMIN_OPML_IMPORT_FOLDER."</label>" 
     70    ."<label for=\"opml_import_option_folder\" >".__('... add them to the folder:')."</label>" 
    7171    .rss_toolkit_folders_combo('opml_import_to_folder',null) 
    7272    ."</p>\n" 
    7373 
    7474    ."<p style=\"padding-left:1em;\"><input type=\"radio\" id=\"opml_import_option_wipe\" name=\"opml_import_option\" value=\"".CST_ADMIN_OPML_IMPORT_WIPE."\" />\n" 
    75     ."<label for=\"opml_import_option_wipe\" >".LBL_ADMIN_OPML_IMPORT_WIPE."</label></p>\n" 
     75    ."<label for=\"opml_import_option_wipe\" >".__('... replace all existing feeds and items.')."</label></p>\n" 
    7676 
    7777    .""; 
     
    7979 
    8080    echo "<p style=\"text-align:center\"><input type=\"hidden\" name=\"". CST_ADMIN_METAACTION ."\" value=\"ACT_ADMIN_IMPORT\" />\n"; 
    81     echo "<input type=\"submit\" name=\"action\" value=\"". LBL_ADMIN_OPML_IMPORT ."\" /></p>\n"; 
     81    echo "<input type=\"submit\" name=\"action\" value=\"". __('Import') ."\" /></p>\n"; 
    8282 
    8383 
     
    105105        $action = getPath() ."opml.php"; 
    106106    } 
    107     echo "<fieldset style=\"vertical-align:top\">\n<legend>".LBL_ADMIN_OPML_EXPORT_OPML."</legend>\n"; 
     107    echo "<fieldset style=\"vertical-align:top\">\n<legend>".__('Export OPML:')."</legend>\n"; 
    108108    echo "<form method=\"$method\" action=\"$action\">\n" 
    109     ."<p><label for=\"action\">". LBL_ADMIN_OPML_EXPORT_OPML. "</label>\n" 
    110     ."<input type=\"submit\" name=\"act\" id=\"action\" value=\"". LBL_ADMIN_EXPORT ."\" />" 
     109    ."<p><label for=\"action\">". __('Export OPML:'). "</label>\n" 
     110    ."<input type=\"submit\" name=\"act\" id=\"action\" value=\"". __('Export') ."\" />" 
    111111    ."</p>\n</form>\n" 
    112112    ."</fieldset>\n";