Forum Replies Created

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

    (@masoud2018)

    It should be noted that we repeated the tests with both the “__” and “esc_html__” translation functions, but the problem is not related to the functions either.

    • This reply was modified 1 year ago by masoud4x4.
    Thread Starter masoud4x4

    (@masoud2018)

    Dear Redux Support Team,

    Thank you for your response and guidance. To ensure the issue isn’t theme-related and to avoid the _load_textdomain_just_in_time notice, we defined a new text domain, liberty-settings. We confirmed it loads correctly using test strings in both front-end and back-end, verified by Loco Translate and logs. However, these translations are not applied to Redux menus (e.g., “General Settings”) or field descriptions (e.g., “Logo”, “Width”).

    Interestingly, the same string (“Advanced Options”) translates correctly in an admin notice but not within Redux fields (see attached screenshot). We’ve ruled out caching issues, and logs confirm liberty-settings is loaded properly. Could you please advise on how to ensure Redux uses our custom text domain for menus and fields?

    // The text to appear in the admin menu.
    'menu_title' => __('Advanced Options', 'liberty-settings'),
    
    // The text to appear on the page title.
    'page_title' => __('Advanced Options', 'liberty-settings'),

    Attachment: [Screenshot showing “Advanced Options” translated in the admin notice but not in Redux fields]

    As mentioned earlier, we were able to verify that the new domain name was loaded correctly, but it appears that Redux processes translations differently than WordPress itself.

    Log:
    [19-Apr-2025 08:56:59 UTC] Text domain loaded successfully: liberty-settings
    [19-Apr-2025 08:56:59 UTC] Translated ‘Support’: پشتیبانی
    [19-Apr-2025 08:56:59 UTC] liberty-settings text domain is loaded.
    [19-Apr-2025 08:56:59 UTC] MO file exists: C:\Users\Lion\Local Sites\test\app\public/wp-content/themes/liberty/languages/liberty-settings-fa_IR.mo

    Best regards,
    Masoud Sadeghi

    • This reply was modified 1 year ago by masoud4x4. Reason: Code added
    Thread Starter masoud4x4

    (@masoud2018)

    Thank you so much for your response.

    My goal is to create a pop-up notification, similar to the attached image (Image 1). However, due to the bulkiness of plugins and the fact that my needs are relatively simple, I want to build a basic version with code so that all alerts, success messages, and error messages are displayed in it.

    During my research, I realized that the function <?php wc_print_notices(); ?> must be in the woocommerce.php file, otherwise, you cannot get output from the above commands and control it. In simpler terms, without the mentioned function, the messages are displayed in a default location on the product page. But when this function is present, WooCommerce returns one message in the pop-up and another where the function is placed within the code, resulting in two messages (Image 1 and 2) on one page. Please correct me if I’m wrong. Is the only way to prevent the default WooCommerce message from being displayed to use CSS and hide it?

    The only problem I’m facing is that although the alerts appear in the product page pop-up, error messages do not appear in this box on the checkout page (Image 3). Can you guide me on how to accomplish this?

    Thread Starter masoud4x4

    (@masoud2018)

    Thank you for your detailed and comprehensive response. It was extremely helpful and practical, and I appreciate you taking the time to explain it so well.

    Thread Starter masoud4x4

    (@masoud2018)

    Update / resolved

    The problem was solved through database tables.
    In the database tables, the records that have values ​​related to AIOS in the option_name column should be deleted.
    These values ​​may include:

    aio
    aios
    all-in-one-security
    Thread Starter masoud4x4

    (@masoud2018)

    Update

    I edited the htaccess file and removed all related code but to no avail.


    # BEGIN All In One WP Security
    #AIOWPS_BASIC_HTACCESS_RULES_START
    <Files .htaccess>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    ServerSignature Off
    LimitRequestBody 104857600
    <Files wp-config.php>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    #AIOWPS_BASIC_HTACCESS_RULES_END
    #AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_START
    <Files debug.log>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    #AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_END
    #AIOWPS_DISABLE_INDEX_VIEWS_START
    Options -Indexes
    #AIOWPS_DISABLE_INDEX_VIEWS_END
    #AIOWPS_DISABLE_TRACE_TRACK_START
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    #AIOWPS_DISABLE_TRACE_TRACK_END
    #AIOWPS_PREVENT_IMAGE_HOTLINKS_START
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$ [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://datamgroup3\.com [NC]
    RewriteRule \.(gif|jpe?g?|png)$ - [F,NC,L]
    </IfModule>
    #AIOWPS_PREVENT_IMAGE_HOTLINKS_END
    # END All In One WP Security

    # Begin AIOWPSEC Firewall
    <IfModule LiteSpeed>
    php_value auto_prepend_file '/home/datamgro/public_html/aios-bootstrap.php'
    </IfModule>
    <IfModule lsapi_module>
    php_value auto_prepend_file '/home/datamgro/public_html/aios-bootstrap.php'
    </IfModule>
    # End AIOWPSEC Firewall

    Thread Starter masoud4x4

    (@masoud2018)

    Hello friends
    Thanks for your attention and response
    @abdullahramzan
    @t-p

    I find the reason for this problem. The admin language must also be changed in English so WordPress is aligned to the original version of the left.
    best regards

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