• I just activated the plugin Subscribe to Comments v. 2.1.2, and I’m trying to modify the checkbox language: “Notify me of followup comments via e-mail”. Does anyone know how to do this?

    I already tried modifying the following code in the subscribe-to-comments.php file:

    function db_upgrade_check () {
    		global $wpdb;
    
    		// 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>', 'not_subscribed_text' => __(<strong>'Notify me of followup comments via e-mail</strong>', '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'), 'version' => $this->version));

    However, when I modified the line for “Notify me of followup comments via e-mail,” the language did not change when I logged back into wordpress. I also tried uninstalling the subscribe-to-comments.php and comments.php file in my themes, and then reinstalling both (I thought that the page might have been cached somehow on my server), but that still didn’t work. Is the language controlled by a different file? Is the function db_upbrade_check controlled by one of the wp-includes file?

    Thankfully, I was able to change the “Subscribe without commenting” language by modifying the following code in the subscribe-to-comments.php file: <?php _e(‘Subscribe without commenting’, ‘subscribe-to-comments’); ?>

    Thanks in advance for any help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter gshiga

    (@gshiga)

    Can anyone answer my question? A ton of people have downloaded this plugin, so there must be a lot of people that know how to modify the checkbox language.

    Thank you.

    Hi gshiga,

    The wording you want to show up can simply be set in the plugin’s option page, not in the .mo/.po file !
    (But, indeed, « Subscribe without commenting » should be set there, too.)

    Hi! There is obviously some problem with the localization of the subscribe-to-commenst plugin. I can’t make it work with a Swedish mo-file. I have found two posts on a localization bug:

    The first is by the author of this plugin posted 10 month ago:
    http://plugins.trac.wordpress.org/changeset/75413/subscribe-to-comments/branches/development/subscribe-to-comments.php

    The seccond is posted 7 month ago:
    http://plugins.trac.wordpress.org/ticket/955

    I have tried the plugin with the suggested changes in the posts above. But the translation still didn’t work. But I’m a total newbe and have know very little about the php-langauge. I just replaced the lines of code.

    If someone could take a look at this and explain what we have to do to get the localization for this great plugin to work, it would be very appreciated.

    I have tried to modify the function: load_plugin_textdomain(). In the subscribe-to-commets.php it look like this:

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

    I have tried to modify it like this, but it didn’t help.

    function sg_subscribe_start() {
        global $sg_subscribe;
    
        if (!$sg_subscribe) {
    
            $path = PLUGINDIR . "/subscribe-to-comments/extras";
    
            load_plugin_textdomain('subscribe-to-comments', $path);
            $sg_subscribe = new sg_subscribe();
        }
    }

    (Double post)

    My localization problem has nothing with the subscribe-to-comments plugin to do. I apologize for the confusion.

    Hi maklartoppen,

    It has been a while ago when you posted your comments here. I have the same issue with the comment plugin, can’t figure out how to install the dutch translation I found over here: http://plugins.trac.wordpress.org/wiki/SubscribeToComments

    Hope you can clear this thing out for me.
    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Subscribe to Comments 2.1.2: How to modify checkbox language?’ is closed to new replies.