Make WordPress Core


Ignore:
Timestamp:
04/23/2004 06:46:53 AM (21 years ago)
Author:
rboren
Message:

Mark strings for translation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r1100 r1135  
    8585                <td>$category->category_description</td>
    8686                <td>$count</td>
    87                 <td><a href='categories.php?action=edit&amp;cat_ID=$category->cat_ID' class='edit'>Edit</a></td><td><a href='categories.php?action=Delete&amp;cat_ID=$category->cat_ID' onclick=\"return confirm('You are about to delete the category \'". addslashes($category->cat_name) ."\' and all its posts will go to the default category.\\n  \'OK\' to delete, \'Cancel\' to stop.')\" class='delete'>Delete</a></td>
     87                <td><a href='categories.php?action=edit&amp;cat_ID=$category->cat_ID' class='edit'>" . __('Edit') . "</a></td><td><a href='categories.php?action=Delete&amp;cat_ID=$category->cat_ID' onclick=\"return confirm('".  sprintf(__("You are about to delete the category \'%s\'.  All of its posts will go to the default category.\\n  \'OK\' to delete, \'Cancel\' to stop."), addslashes($category->cat_name)) . "')\" class='delete'>" .  __('Delete') . "</a></td>
    8888                </tr>";
    8989                cat_rows($category->cat_ID, $level + 1);
     
    126126       
    127127        if(!function_exists('imagegif') && $type[2] == 1) {
    128             $error = 'Filetype not supported. Thumbnail not created.';
     128            $error = __('Filetype not supported. Thumbnail not created.');
    129129        }elseif(!function_exists('imagejpeg') && $type[2] == 2) {
    130             $error = 'Filetype not supported. Thumbnail not created.';
     130            $error = __('Filetype not supported. Thumbnail not created.');
    131131        }elseif(!function_exists('imagepng') && $type[2] == 3) {
    132             $error = 'Filetype not supported. Thumbnail not created.';
     132            $error = __('Filetype not supported. Thumbnail not created.');
    133133        } else {
    134134       
     
    177177            if($type[2] == 1) {
    178178                if(!imagegif($thumbnail, $thumbpath)) {
    179                     $error = "Thumbnail path invalid";
     179                    $error = __("Thumbnail path invalid");
    180180                }
    181181            } elseif($type[2] == 2) {
    182182                if(!imagejpeg($thumbnail, $thumbpath)) {
    183                     $error = "Thumbnail path invalid";
     183                    $error = __("Thumbnail path invalid");
    184184                }
    185185            } elseif($type[2] == 3) {
    186186                if(!imagepng($thumbnail, $thumbpath)) {
    187                     $error = "Thumbnail path invalid";
     187                    $error = __("Thumbnail path invalid");
    188188                }
    189189            }
     
    257257    $keys = get_meta_keys();
    258258?>
    259 <h4>Add new custom data to this post:</h4>
     259<h4><?php _e('Add new custom data to this post:') ?></h4>
    260260<div id="postcustomkeys">
    261 <p>Select existing key or enter new key</p>
     261<p><?php _e('Select existing key or enter new key') ?></p>
    262262<?php
    263263if ($keys) {
     
    277277</div>
    278278<div id="postcustomvals">
    279 <p>Custom Value</p>
     279<p><?php _e('Custom Value') ?></p>
    280280
    281281<textarea id="metavalue" name="metavalue" rows="3" cols="25"></textarea>
     
    283283<br style="clear: both;" />
    284284<div id="postcustomsubmit">
    285 <input type="submit" id="save" name="save" value="Add Custom">
     285<input type="submit" id="save" name="save" value="<?php _e('Add Custom') ?>">
    286286</div>
    287287<?php
Note: See TracChangeset for help on using the changeset viewer.