Changeset 136885
- Timestamp:
- 07/20/2009 06:54:25 AM (17 years ago)
- Location:
- external-css/trunk
- Files:
-
- 4 added
- 1 edited
-
external_css.php (modified) (8 diffs)
-
po (added)
-
po/external-css-ja.mo (added)
-
po/external-css-ja.po (added)
-
po/external-css.pot (added)
Legend:
- Unmodified
- Added
- Removed
-
external-css/trunk/external_css.php
r136384 r136885 63 63 $tmpfile = tempnam($dir, 'tmp'); 64 64 if (!$tmpfile) { 65 external_css_error( 'Failed to create temporary file');65 external_css_error(__('Failed to create temporary file', 'external-css')); 66 66 return false; 67 67 } … … 69 69 $fh = fopen($tmpfile, 'wb'); 70 70 if (!$fh) { 71 external_css_error( 'Failed to open temporary file');71 external_css_error(__('Failed to open temporary file', 'external-css')); 72 72 return false; 73 73 } … … 76 76 77 77 if (!chmod($tmpfile, 0644)) { 78 external_css_error( 'Failed to chmod temporary file');78 external_css_error(__('Failed to chmod temporary file', 'external-css')); 79 79 return false; 80 80 } … … 82 82 /* Update css with POSIX atomic function */ 83 83 if (!rename($tmpfile, $path)) { 84 external_css_error( 'Failed to rename CSS');84 external_css_error(__('Failed to rename CSS', 'external-css')); 85 85 return false; 86 86 } … … 96 96 if (external_css_save($_POST['external_css'])) { 97 97 echo '<div class="updated"><p><strong>'; 98 _e('Options saved.', ' mt_trans_domain' );98 _e('Options saved.', 'external-css' ); 99 99 echo '</strong></p></div>'; 100 100 } … … 103 103 $dir = dirname($path); 104 104 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)); 106 106 return; 107 107 } … … 122 122 ?></textarea> 123 123 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> 125 125 126 126 </form> … … 140 140 */ 141 141 function external_css_init() { 142 load_plugin_textdomain('external-css', 143 'wp-content/plugins/external-css/po', 144 'external-css/po'); 142 145 add_action('admin_menu', 'external_css_admin_menu'); 143 146 add_action('wp_head', 'external_css_embed_link_tag', 100);
Note: See TracChangeset
for help on using the changeset viewer.