Plugin Directory

Changeset 136885


Ignore:
Timestamp:
07/20/2009 06:54:25 AM (17 years ago)
Author:
sakuratan
Message:

I18N

Location:
external-css/trunk
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • external-css/trunk/external_css.php

    r136384 r136885  
    6363    $tmpfile = tempnam($dir, 'tmp');
    6464    if (!$tmpfile) {
    65     external_css_error('Failed to create temporary file');
     65    external_css_error(__('Failed to create temporary file', 'external-css'));
    6666    return false;
    6767    }
     
    6969    $fh = fopen($tmpfile, 'wb');
    7070    if (!$fh) {
    71     external_css_error('Failed to open temporary file');
     71    external_css_error(__('Failed to open temporary file', 'external-css'));
    7272    return false;
    7373    }
     
    7676
    7777    if (!chmod($tmpfile, 0644)) {
    78     external_css_error('Failed to chmod temporary file');
     78    external_css_error(__('Failed to chmod temporary file', 'external-css'));
    7979    return false;
    8080    }
     
    8282    /* Update css with POSIX atomic function */
    8383    if (!rename($tmpfile, $path)) {
    84     external_css_error('Failed to rename CSS');
     84    external_css_error(__('Failed to rename CSS', 'external-css'));
    8585    return false;
    8686    }
     
    9696    if (external_css_save($_POST['external_css'])) {
    9797        echo '<div class="updated"><p><strong>';
    98         _e('Options saved.', 'mt_trans_domain' );
     98        _e('Options saved.', 'external-css' );
    9999        echo '</strong></p></div>';
    100100    }
     
    103103    $dir = dirname($path);
    104104    if (!is_dir($dir) || !is_writable($dir)) {
    105         external_css_error("External CSS cannot continue the process because missing permissions for {$dir}. Add the read and write permissions of the directory to the user of the web server to fix the problem.");
     105        external_css_error(sprintf(__('External CSS cannot continue the process because missing permissions for %s. Add the read and write permissions of the directory to the user of the web server to fix the problem.', 'external-css'), $dir));
    106106        return;
    107107    }
     
    122122?></textarea>
    123123
    124 <p class="submit"><input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /></p>
     124<p class="submit"><input type="submit" class="button-primary" value="<?php _e('Save Changes', 'external-css') ?>" /></p>
    125125
    126126</form>
     
    140140 */
    141141function external_css_init() {
     142    load_plugin_textdomain('external-css',
     143               'wp-content/plugins/external-css/po',
     144               'external-css/po');
    142145    add_action('admin_menu', 'external_css_admin_menu');
    143146    add_action('wp_head', 'external_css_embed_link_tag', 100);
Note: See TracChangeset for help on using the changeset viewer.