رفتن به مطلب

ترجمه دیدگاه


solmaz

پست های پیشنهاد شده

سلام

وقتی کاربر دیدگاه میفرسته این جمله براش میاد Your comment is awaiting moderationکه یعنی در انتظار بررسی.

من میخام این جمله رو فارسی کنم . هر چی میگردم تو هیچ فایلی همچین جمله ای نیست

توی comment.php هم نیست

چیکار کنم؟

لینک به ارسال

به بخش ویرایشگر افزونه برید و داخل فایل های خود افزونه دنبال این رشته بگردید و متن رو عوض کنید.

  • امتیاز 1
لینک به ارسال

سلام

توی fucntions.php این عبارت رو پیدا کنید :


<?php if ($comment->comment_approved == '0') : ?>

خط بعدش رو فارسی کنید :


<?php _e(' <small>نظر شما منتظر تاييد مديريت سايت است.</small>'); ?>

اگه این کدها نبودن فایلش رو کامل پیوست کنید .

  • امتیاز 2
لینک به ارسال

این فایل کامنت


<?php
require_once(TEMPLATEPATH . '/epanel/custom_functions.php');
require_once(TEMPLATEPATH . '/includes/functions/comments.php');
require_once(TEMPLATEPATH . '/includes/functions/sidebars.php');
load_theme_textdomain('Chameleon',get_template_directory().'/lang');
require_once(TEMPLATEPATH . '/epanel/options_chameleon.php');
require_once(TEMPLATEPATH . '/epanel/core_functions.php');
require_once(TEMPLATEPATH . '/epanel/post_thumbnails_chameleon.php');
add_action('wp_head','et_portfoliopt_additional_styles',100);
function et_portfoliopt_additional_styles(){ ?>
<style type="text/css">
#et_pt_portfolio_gallery { margin-left: -41px; margin-right: -51px; }
.et_pt_portfolio_item { margin-left: 35px; }
.et_portfolio_small { margin-left: -40px !important; }
.et_portfolio_small .et_pt_portfolio_item { margin-left: 32px !important; }
.et_portfolio_large { margin-left: -26px !important; }
.et_portfolio_large .et_pt_portfolio_item { margin-left: 11px !important; }
</style>
<?php }
function register_main_menus() {
register_nav_menus(
array(
'primary-menu' => __( 'Primary Menu' )
)
);
}
if (function_exists('register_nav_menus')) add_action( 'init', 'register_main_menus' );
// add Home link to the custom menu WP-Admin page
function et_add_home_link( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'et_add_home_link' );
add_action('wp_head','et_add_meta_javascript');
function et_add_meta_javascript(){
global $shortname;
echo '<!-- used in scripts -->';
echo '<meta name="et_featured_auto_speed" content="'.get_option($shortname.'_slider_autospeed').'" />';

$disable_toptier = get_option($shortname.'_disable_toptier') == 'on' ? 1 : 0;
echo '<meta name="et_disable_toptier" content="'.$disable_toptier.'" />';

$featured_slider_auto = get_option($shortname.'_slider_auto') == 'on' ? 1 : 0;
echo '<meta name="et_featured_slider_auto" content="'.$featured_slider_auto.'" />';

echo '<meta name="et_theme_folder" content="'.get_bloginfo('template_directory').'" />';
}
$wp_ver = substr($GLOBALS['wp_version'],0,3);
if ($wp_ver >= 2.8) include(TEMPLATEPATH . '/includes/widgets.php');
add_action('et_header_top','et_chameleon_control_panel');
function et_chameleon_control_panel(){
$admin_access = apply_filters( 'et_showcontrol_panel', current_user_can('switch_themes') );
if ( !$admin_access ) return;
if ( get_option('chameleon_show_control_panel') <> 'on' ) return;
global $et_bg_texture_urls, $et_google_fonts; ?>
<div id="et-control-panel">
<div id="control-panel-main">
<a id="et-control-close" href="#"></a>
<div id="et-control-inner">
<h3 class="control_title">Example Colors</h3>
<a href="#" class="et-control-colorpicker" id="et-control-background"></a>

<div class="clear"></div>

<?php
$sample_colors = array( '6a8e94', '8da49c', 'b0b083', '859a7c', 'c6bea6', 'b08383', 'a4869d', 'f5f5f5', '4e4e4e', '556f6a', '6f5555', '6f6755' );
for ( $i=1; $i<=12; $i++ ) { ?>
<a class="et-sample-setting" id="et-sample-color<?php echo $i; ?>" href="#" rel="<?php echo $sample_colors[$i-1]; ?>" title="#<?php echo $sample_colors[$i-1]; ?>"><span class="et-sample-overlay"></span></a>
<?php } ?>
<p>or define your own in ePanel</p>

<h3 class="control_title">Texture Overlays</h3>
<div class="clear"></div>

<?php
$sample_textures = $et_bg_texture_urls;
for ( $i=1; $i<=count($et_bg_texture_urls); $i++ ) { ?>
<a title="<?php echo $sample_textures[$i-1]; ?>" class="et-sample-setting et-texture" id="et-sample-texture<?php echo $i; ?>" href="#" rel="bg<?php echo $i+1; ?>"><span class="et-sample-overlay"></span></a>
<?php } ?>

<p>or define your own in ePanel</p>

<?php
$google_fonts = $et_google_fonts;
$font_setting = 'Kreon';
$body_font_setting = 'Droid+Sans';
if ( isset( $_COOKIE['et_chameleon_header_font'] ) ) $font_setting = $_COOKIE['et_chameleon_header_font'];
if ( isset( $_COOKIE['et_chameleon_body_font'] ) ) $body_font_setting = $_COOKIE['et_chameleon_body_font'];
?>

<h3 class="control_title">Fonts</h3>
<div class="clear"></div>

<label for="et_control_header_font">Header
<select name="et_control_header_font" id="et_control_header_font">
<?php foreach( $google_fonts as $google_font ) { ?>
<?php $encoded_value = urlencode($google_font); ?>
<option value="<?php echo $encoded_value; ?>" <?php selected( $font_setting, $encoded_value ); ?>><?php echo $google_font; ?></option>
<?php } ?>
</select>
</label>
<a href="#" class="et-control-colorpicker et-font-control" id="et-control-headerfont_bg"></a>
<div class="clear"></div>

<label for="et_control_body_font">Body
<select name="et_control_body_font" id="et_control_body_font">
<?php foreach( $google_fonts as $google_font ) { ?>
<?php $encoded_value = urlencode($google_font); ?>
<option value="<?php echo $encoded_value; ?>" <?php selected( $body_font_setting, $encoded_value ); ?>><?php echo $google_font; ?></option>
<?php } ?>
</select>
</label>
<a href="#" class="et-control-colorpicker et-font-control" id="et-control-bodyfont_bg"></a>
<div class="clear"></div>

</div> <!-- end #et-control-inner -->
</div> <!-- end #control-panel-main -->
</div> <!-- end #et-control-panel -->
<?php
}
add_action( 'template_redirect', 'et_load_chameleon_scripts' );
function et_load_chameleon_scripts(){
$et_slider_type = apply_filters( 'et_slider_type', get_option('chameleon_slider_type') );
$template_dir = get_bloginfo('template_directory');

wp_enqueue_script('jquery_cycle', $template_dir . '/js/jquery.cycle.all.min.js', array('jquery'), '1.0', false);

if ( $et_slider_type == 'nivo' )
wp_enqueue_script('jquery_nivo', $template_dir . '/js/jquery.nivo.slider.pack.js', array('jquery'), '1.0', true);

wp_enqueue_script($et_slider_type . '_script', $template_dir . '/js/et_'.$et_slider_type.'.js', array('jquery'), '1.0', true);

$admin_access = apply_filters( 'et_showcontrol_panel', current_user_can('switch_themes') );
if ( $admin_access && get_option('chameleon_show_control_panel') == 'on' ) {
wp_enqueue_script('et_colorpicker', $template_dir . '/epanel/js/colorpicker.js', array('jquery'), '1.0', true);
wp_enqueue_script('et_eye', $template_dir . '/epanel/js/eye.js', array('jquery'), '1.0', true);
wp_enqueue_script('et_layout', $template_dir . '/epanel/js/layout.js', array('jquery'), '1.0', true);
wp_enqueue_script('et_cookie', $template_dir . '/js/jquery.cookie.js', array('jquery'), '1.0', true);
wp_enqueue_script('et_control_panel', get_bloginfo('template_directory') . '/js/et_control_panel.js', array('jquery'), '1.0', true);
}
}
add_action( 'wp_head', 'et_set_bg_properties' );
function et_set_bg_properties(){
global $et_bg_texture_urls;

$bgcolor = '';
$bgcolor = ( isset( $_COOKIE['et_chameleon_bgcolor'] ) && get_option('chameleon_show_control_panel') == 'on' ) ? $_COOKIE['et_chameleon_bgcolor'] : get_option('chameleon_bgcolor');

$bgtexture_url = '';
$bgimage_url = '';
if ( get_option('chameleon_bgimage') == '' ) {
if ( isset( $_COOKIE['et_chameleon_texture_url'] ) && get_option('chameleon_show_control_panel') == 'on' ) $bgtexture_url = $_COOKIE['et_chameleon_texture_url'];
else {
$bgtexture_url = get_option('chameleon_bgtexture_url');
if ( $bgtexture_url == 'Default' ) $bgtexture_url = '';
else $bgtexture_url = get_bloginfo('template_directory') . '/images/body-bg' . ( array_search( $bgtexture_url, $et_bg_texture_urls )+2 ) . '.png';
}
} else {
$bgimage_url = get_option('chameleon_bgimage');
}

$style = '';
$style .= '<style type="text/css">';
if ( $bgcolor <> '' ) $style .= 'body { background-color: #' . $bgcolor . '; }';
if ( $bgtexture_url <> '' ) $style .= 'body { background-image: url(' . $bgtexture_url . '); }';
if ( $bgimage_url <> '' ) $style .= 'body { background-image: url(' . $bgimage_url . '); background-position: top center; background-repeat: no-repeat; }';
$style .= '</style>';

if ( $bgcolor <> '' || $bgtexture_url <> '' || $bgimage_url <> '' ) echo $style;
}
add_action( 'wp_head', 'et_set_font_properties' );
function et_set_font_properties(){
$font_style = '';
$font_color = '';
$font_family = '';
$font_color_string = '';

if ( isset( $_COOKIE['et_chameleon_header_font'] ) && get_option('chameleon_show_control_panel') == 'on' ) $et_header_font = $_COOKIE['et_chameleon_header_font'];
else {
$et_header_font = get_option('chameleon_header_font');
if ( $et_header_font == 'Kreon' ) $et_header_font = '';
}

if ( isset( $_COOKIE['et_chameleon_header_font_color'] ) && get_option('chameleon_show_control_panel') == 'on' )
$et_header_font_color = $_COOKIE['et_chameleon_header_font_color'];
else
$et_header_font_color = get_option('chameleon_header_font_color');

if ( $et_header_font <> '' || $et_header_font_color <> '' ) {
$et_header_font_id = strtolower( str_replace( '+', '_', $et_header_font ) );

if ( $et_header_font <> '' ) {
$font_style .= "<link id='" . $et_header_font_id . "' href='http://fonts.googleapis.com/css?family=" . $et_header_font . "' rel='stylesheet' type='text/css' />";
$font_family = "font-family: '" . str_replace( '+', ' ', $et_header_font ) . "', Arial, sans-serif !important; ";
}

if ( $et_header_font_color <> '' ) {
$font_color_string = "color: #" . $et_header_font_color . " !important; ";
}

$font_style .= "<style type='text/css'>h1,h2,h3,h4,h5,h6,ul#top-menu a { ". $font_family . " }</style>";
$font_style .= "<style type='text/css'>h1,h2,h3,h4,h5,h6,ul#top-menu > li.current_page_item > a, ul#top-menu a:hover, ul#top-menu > li.sfHover > a, h2.title a { ". $font_color_string . " }
#featured h2 a, #featured-modest h2 a, #featured h2, #featured-modest h2 { color: #fff !important; }
</style>";

echo $font_style;
}

$font_style = '';
$font_color = '';
$font_family = '';
$font_color_string = '';

if ( isset( $_COOKIE['et_chameleon_body_font'] ) && get_option('chameleon_show_control_panel') == 'on' ) $et_body_font = $_COOKIE['et_chameleon_body_font'];
else {
$et_body_font = get_option('chameleon_body_font');
if ( $et_body_font == 'Droid+Sans' ) $et_body_font = '';
}

if ( isset( $_COOKIE['et_chameleon_body_font_color'] ) && get_option('chameleon_show_control_panel') == 'on' )
$et_body_font_color = $_COOKIE['et_chameleon_body_font_color'];
else
$et_body_font_color = get_option('chameleon_body_font_color');

if ( $et_body_font <> '' || $et_body_font_color <> '' ) {
$et_body_font_id = strtolower( str_replace( '+', '_', $et_body_font ) );

if ( $et_body_font <> '' ) {
$font_style .= "<link id='" . $et_body_font_id . "' href='http://fonts.googleapis.com/css?family=" . $et_body_font . "' rel='stylesheet' type='text/css' />";
$font_family = "font-family: '" . str_replace( '+', ' ', $et_body_font ) . "', Arial, sans-serif !important; ";
}

if ( $et_body_font_color <> '' ) {
$font_color_string = "color: #" . $et_body_font_color . " !important; ";
}

$font_style .= "<style type='text/css'>body { ". $font_family . " }</style>";
$font_style .= "<style type='text/css'>body { ". $font_color_string . " }</style>";

echo $font_style;
}
} ?>

ببخشید اون که دادم فایل فانکشن بود

این کامنت هست


<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die (__('Please do not load this page directly. Thanks!','Chameleon'));
if ( post_password_required() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','Chameleon') ?></p>
<?php
return;
}
?>
<!-- You can start editing here. -->

<div id="respond" class="clearfix">
<h3 id="comments">
سئوالات خود را برای ما ارسال فرمایید. پس از تائید و پاسخگویی توسط متخصصین مربوطه، قادر به مشاهده پاسخ سوالات خواهید بود.
<?php comment_form_title( __('','Chameleon'), __('Leave a Comment to %s','Chameleon' )); ?>
</h3>
<div class="cancel-comment-reply"> <small>
<?php cancel_comment_reply_link(); ?>
</small> </div> <!-- end cancel-comment-reply div -->
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php _e('You must be','Chameleon')?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','Chameleon') ?></a> <?php _e('to post a comment.','Chameleon') ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php _e('وارد شده با نام','Chameleon') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account"><?php _e('بیرون رفتن »','Chameleon') ?></a></p>
<?php else : ?>
<p>
<input type="text" name="author" id="author" value="<?php if ($comment_author <> '') echo $comment_author; else _e('نام','Chameleon'); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="author" class="hidden"><?php _e('Name','Chameleon'); ?></label>
</p>
<p>
<input type="text" name="email" id="email" value="<?php if ( $comment_author_email <> '' ) echo $comment_author_email; else _e('ایمیل','Chameleon'); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="ایمیل" class="hidden"><?php _e('ایمیل','Chameleon'); ?></label>
</p>
<p>
<input type="text" name="url" id="url" value="<?php if ($comment_author_url <> '') echo $comment_author_url; else _e('وبلاگ','Chameleon') ?>" size="22" tabindex="3" />
<label for="url" class="hidden"><?php _e('وبلاگ','Chameleon'); ?></label>
</p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->

<p>
<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"><?php _e('دیدگاه','Chameleon'); ?></textarea>
<label for="comment" class="hidden"><?php _e('دیدگاه','Chameleon'); ?></label>
</p>
<p id="submit-container">
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('ارسال','Chameleon')?>" />
<?php comment_id_fields(); ?>
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
</div> <!-- end respond div -->
<div id="comment-wrap">
<?php if ( have_comments() ) : ?>

<h3 id="comments"><?php comments_number(__('No Comments','Chameleon'), __('One Comment','Chameleon'), '% '.__('دیدگاه','Chameleon') );?></h3>
<div class="navigation">
<?php previous_comments_link( __( '<span class="meta-nav">←</span> دیدگاه های قدیمی تر', 'Chameleon' ) ); ?>
<div class="nav-next"><?php next_comments_link( __( 'دیدگاه های جدیدتر <span class="meta-nav">→</span>', 'Chameleon' ) ); ?></div>
</div>

<?php if ( ! empty($comments_by_type['comment']) ) : ?>
<ol class="commentlist clearfix">
<?php wp_list_comments(array('type'=>'comment','callback'=>'mytheme_comment','avatar_size'=>50, 'reply_text'=>'Reply')); ?>
<?php paginate_comments_links(); ?>
</ol>
<?php endif; ?>
<div class="navigation">
<?php previous_comments_link( __( '<span class="meta-nav">←</span> دیدگاه های قدیمی تر', 'Chameleon' ) ); ?>
<div class="nav-next"><?php next_comments_link( __( 'دیدگاه های جدیدتر <span class="meta-nav">→</span>', 'Chameleon' ) ); ?></div>
</div>

<?php if ( ! empty($comments_by_type['pings']) ) : ?>
<div id="trackbacks">
<h3 id="comments"><?php _e('Trackbacks/Pingbacks','Chameleon') ?></h3>
<ol class="pinglist">
<?php wp_list_comments('type=pings&callback=list_pings'); ?>
</ol>
</div>
<?php endif; ?>
<?php else : // this is displayed if there are no comments so far ?>
<div id="comment-section" class="nocomments">
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->

<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<div id="respond">

</div> <!-- end respond div -->
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>

<?php else: ?>
<?php endif; // if you delete this the sky will fall on your head ?>

</div>

لینک به ارسال

در فایل های بالا عبارت مورد نظر نبود.

شما از قالب Chameleon استفاده می کنید.

دوست عزیز به آدرس زیر برید و در خط 15 یا 16 فایل comments.php عبارت Your comment is awaiting moderation رو به عبارت مورد نظرتون تغییر بدید:


wp-content/themes/Chameleon/includes/functions

چرا از فایل زبان استفاده نمی کنید؟

ویرایش شده توسط Ghaem
لینک به ارسال

میشه لطفا این فایل زبان رو بیشتر توضیح بدین؟

فایلی هست که رشته‌ها و متون درونش فراخوانی میشن و امکان این رو میده که اون متن به هر زبان دیگه‌ای تغییر کنه توی سایت بدون دست‌کاری کدها

ببینید قالبتون فایل زبان داره ؟

  • امتیاز 4
لینک به ارسال

پوسته شما تجاری هست

و پشتیبانی برای محصولات تجاری در انجمن نداریم

  • امتیاز 2
لینک به ارسال

مشکل شما در مورد عبارت Your comment is awaiting moderation حل شد؟

فایل زبان قالب در این آدرس هست:


wp-content/themes/Chameleon/lang

لینک به ارسال

تاپیک رو قفل نکردیم حداقل خود دوستان رعایت میکردن

تاپیک بسته شد

  • امتیاز 1
لینک به ارسال
مهمان
این موضوع برای عدم ارسال قفل گردیده است.
×
×
  • اضافه کردن...