Aller au contenu

Mettre ce mod en français


Quedlazik

Sujets conseillés

Voila mon problème, j'utilise actuellement un mod sur mon site qui permet aux utilisateurs de dire ou non s'ils souhaitent etre informé des réponses possibles à l'article dont ils viennent de mettre un commentaire dessus. Mais la phrase qui permet de le dire est en anglais et j'aimerai bien la mettre en français, mais dès que je la change, je vois un message d'erreur qui apparait sur mon site. Est-ce que quelqu'un saurait traduire la phrase ou trouver une solution pour la mettre en français? ( cette phrase est en rouge dans le code suivant )

Merci =)

// add the options
add_option('sg_subscribe_settings', array('use_custom_style' => '', 'email' => get_bloginfo('admin_email'), 'name' => get_bloginfo('name'), 'header' => '[theme_path]/header.php', 'sidebar' => '', 'footer' => '[theme_path]/footer.php', 'before_manager' => '<div id="content" class="widecolumn subscription-manager">', 'after_manager' => '</div>', 'default_subscribed' => '', 'not_subscribed_text' => __('[color="#FF0000"]Notify me of followup comments via e-mail[/color]', 'subscribe-to-comments'), 'subscribed_text' => __('You are subscribed to this entry. <a href="[manager_link]">Manage your subscriptions</a>.', 'subscribe-to-comments'), 'author_text' => __('You are the author of this entry. <a href="[manager_link]">Manage subscriptions</a>.', 'subscribe-to-comments')));

$settings = get_option('sg_subscribe_settings');

if ( !$settings['salt'] ) {
$settings['salt'] = md5(md5(uniqid(rand() . rand() . rand() . rand() . rand(), true))); // random MD5 hash
$update = true;
}

if ( !$settings['clear_both'] ) {
$settings['clear_both'] = 'clear_both';
$update = true;
}

if ( $update )
update_option('sg_subscribe_settings', $settings);

$column_name = 'comment_subscribe';
foreach ($wpdb->get_col("DESC $wpdb->comments", 0) as $column )
if ($column == $column_name)
return true;

// didn't find it... create it
$wpdb->query("ALTER TABLE $wpdb->comments ADD COLUMN comment_subscribe enum('Y','N') NOT NULL default 'N'");
}


function current_viewer_subscription_status(){
global $wpdb, $post, $user_email;

$comment_author_email = ( isset($_COOKIE['comment_author_email_'. COOKIEHASH]) ) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : '';
get_currentuserinfo();

if ( is_email($user_email) ) {
$email = strtolower($user_email);
$loggedin = true;
} elseif ( is_email($comment_author_email) ) {
$email = strtolower($comment_author_email);
} else {
return false;
}

$post_author = get_userdata($post->post_author);
if ( strtolower($post_author->user_email) == $email && $loggedin )
return 'admin';

if ( is_array($this->subscriptions_from_email($email)) )
if ( in_array($post->ID, $this->email_subscriptions) ) return $email;
return false;
}


function manage_link($email='', $html=true, $echo=true) {
$link = get_bloginfo('wpurl') . '/wp-subscription-manager.php';
if ( $email != 'admin' ) {
$link = add_query_arg('email', urlencode(urlencode($email)), $link);
$link = add_query_arg('key', $this->generate_key($email), $link);
}
$link = add_query_arg('ref', urlencode('http://' . $_SERVER['HTTP_HOST'] . wp_specialchars($_SERVER['REQUEST_URI'])), $link);
$link = str_replace('+', '%2B', $link);
if ( $html )
$link = htmlentities($link);
if ( !$echo )
return $link;
echo $link;
}


function add_admin_menu() {
add_management_page(__('Comment Subscription Manager', 'subscribe-to-comments'), __('Subscriptions', 'subscribe-to-comments'), 8, __FILE__, 'sg_subscribe_admin');

if ( class_exists('SmallOptions') )
add_action('small_options_page', array('sg_subscribe_settings', 'options_page_contents'));
else
add_options_page(__('Subscribe to Comments', 'subscribe-to-comments'), __('Subscribe to Comments', 'subscribe-to-comments'), 5, basename(__FILE__), array('sg_subscribe_settings', 'options_page'));
}


} // class sg_subscribe










function sg_subscribe_start() {
global $sg_subscribe;

if ( !$sg_subscribe ) {
load_plugin_textdomain('subscribe-to-comments');
$sg_subscribe = new sg_subscribe();
}
}

function sg_subscribe_admin() {
include (ABSPATH . 'wp-subscription-manager.php');
}


// This will be overridden if the user manually places the function
// in the comments form before the comment_form do_action() call
add_action('comment_form', 'show_subscription_checkbox');

// priority is very low (50) because we want to let anti-spam plugins have their way first.
add_action('comment_post', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); return $sg_subscribe->send_notifications($a);'), 50);
add_action('comment_post', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); return $sg_subscribe->add_subscriber($a);'));

add_action('wp_set_comment_status', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); return $sg_subscribe->send_notifications($a);'));
add_action('admin_menu', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); $sg_subscribe->add_admin_menu();'));
add_action('admin_head', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); $sg_subscribe->sg_wp_head();'));



// detect "subscribe without commenting" attempts
add_action('init', create_function('$a','global $sg_subscribe; if ( $_POST[\'solo-comment-subscribe\'] == \'solo-comment-subscribe\' && is_numeric($_POST[\'postid\']) ) {
sg_subscribe_start();
$sg_subscribe->solo_subscribe($_POST[\'email\'], $_POST[\'postid\']);
}')
);

define('STC_PLUGIN_BASENAME', plugin_basename(__FILE__));

?>

Modifié par Dudu
Lien vers le commentaire
Partager sur d’autres sites

bonjour,

un antislash c'est ceci : \

quand tu as une chaine entre apostrophes : 'ceci par exemple' et que tu as besoin de mettre une apostrophe dedans : 'comme l'apostrophe de cette phrase', ca ne fonctionne pas directement. Il faut que tu ecrives 'comme l\'apostrophe de cette phrase' pour que ça fonctionne.

si tu remplace

'not_subscribed_text' => __('Notify me of followup comments via e-mail'

par

'not_subscribed_text' => __('Tenez moi informé des commentaires postés par mail'

ça devrait fonctionner non ?

Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...