• I’m still struggling with this plugin. I have now installed v1.8.3 on WordPress v6.8.1 with Safari v18.6 and my locale is ‘de-CH’.

    For example I cannot turn on regularToFrenchQuotesWithoutSpaces, the button “French Quotes” in the Settings of a Paragraph is there and when I switch it on, I get the message “French Quotes” Correction is enabled. But it isn’t and the button stays off. I fiddled with includes/Config/LocalizedRules.php and added ‘de-CH’ to regularToFrenchQuotes and that worked (I can turn it on), but I don’t want the spaces. Same thing is with the Em Dash, I cannot enabled it (and the Two-Em Dash for that matter, too).

    I don’t get any JavaScript errors in the console…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter EasyNT

    (@easynt)

    Bonjour, bonjour, y a-t-il quelqu’un là-bas? J’aimerais vraiment avoir une réponse à cela, merci beaucoup.

    Plugin Author Loïc Antignac

    (@webaxones)

    Hello,
    Sorry for the delay.

    I’ll run tests tomorrow, Tuesday, in debug mode and will keep you posted.

    Have you tried uninstalling and then reinstalling the plugin?
    You would lose the settings stored in the database since they’d be deleted, but this may resolve the issue, which could be caused by updating the settings between two different versions of the database schema.

    Plugin Author Loïc Antignac

    (@webaxones)

    Hello,
    I just ran the test locally on a fresh WordPress 6.8.3 install:
    I installed Consistency and created a very simple MU-plugin that uses the only hook I provide to disable rule localization:

    <?php
    namespace ConsistencyOverride\Locales;

    defined( 'ABSPATH' ) || exit;
    /**
    * Plugin Name: Consistency Localization Override
    * Description: Allows every locale to access every rule during local tests.
    */

    /**
    * Always allow every locale to use all rules to ease local tests.
    *
    * @return bool False to disable localization filtering.
    */
    function allow_all_locales(): bool
    {
    return false;
    }
    add_filter( 'Consistency\only_show_locale_correction_rules', __NAMESPACE__ . '\\allow_all_locales' );

    In WordPress settings, I selected the Swiss German locale (de-CH), then went to the post editor and enabled everything I could (some settings aren’t available when they conflict with others).
    I started typing in English (since my German basically only extends to saying I’m hungry) using the characters you’re having trouble with, and the straight quotes were indeed automatically replaced by French quotation marks, and the en dashes and em dashes as well… It works.

    So I suspect an issue in the option stored in the database, and I think the simplest test is to cleanly uninstall Consistency, then reinstall it and test as I did. If the problem persists, and the WordPress and Consistency versions are the same, then I suggest testing with all other plugins deactivated, as well as any browser extensions—which can cause a lot of interference (I know this; I coded one back in the day).

    Tested on Brave and Safari.

    https://github.com/user-attachments/assets/b4dd64c3-db91-4c01-a8ac-6a659b09f32c

    Thread Starter EasyNT

    (@easynt)

    Salut Loïc,

    Thanks so much for your effort. I tried what you wrote with the newest WordPress and Plugin version, except I am not able to disable all my other plugins as it would break my site that I’ve been working on for months now. But I tested also with Firefox and Chromium, it always the same: Turning on French Quotes gives a message “French Quotes” Correction is enabled, but the button stays off and it does not convert to French Quotes… Same with the Em Dash button, but the En Dash button works, I can turn it off and on again. So it’s for sure not a browser problem, but I have no idea how to debug this as there are no JavaScript errors in the console. Maybe you have some clues what I could check?

    • This reply was modified 3 weeks, 6 days ago by EasyNT.
    Thread Starter EasyNT

    (@easynt)

    Actually it’s working now. After a closer look to the database I noticed that consistency_plugin_settings was still in wp_options after the plugin was deactivated. So it did not delete it’s options on deactivation. After I deleted consistency_plugin_settings manually and re-activated the plugin, everything seems to work like intended. Great, thanks!

    Plugin Author Loïc Antignac

    (@webaxones)

    Thanks.
    I’ll fix my code in a little over a week.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.