Title: psodfj's Replies | WordPress.org

---

# psodfj

  [  ](https://wordpress.org/support/users/psodfj/)

 *   [Profile](https://wordpress.org/support/users/psodfj/)
 *   [Topics Started](https://wordpress.org/support/users/psodfj/topics/)
 *   [Replies Created](https://wordpress.org/support/users/psodfj/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/psodfj/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/psodfj/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/psodfj/engagements/)
 *   [Favorites](https://wordpress.org/support/users/psodfj/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/users/psodfj/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/psodfj/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/psodfj/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gallery for Immich] How to allow http](https://wordpress.org/support/topic/how-to-allow-http/)
 *  [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/how-to-allow-http/#post-18874423)
 * A single prompt in Google Antigravity enabled it for me. Here is a summary:
 * Developer Guide: Enabling HTTP and SSL Support
 * This guide explains how to modify the **Gallery for Immich** WordPress plugin
   to allow HTTP connections (for local network setups) and add an SSL verification
   toggle (for self-signed certificates). 1. Loosen URL Validation
 * In the original plugin, the Immich server URL is restricted to HTTPS unless it
   is `localhost` or `127.0.0.1`. To allow any HTTP URL (like `http://192.168.1.50:
   2283`), follow these steps: Update `sanitize_settings()`
 * Find the `sanitize_settings` function in `gallery-for-immich.php` and modify 
   the URL check:
 *     ```wp-block-code
       - // Original: Ensure it's HTTPS in production (or localhost for dev)
       - if (strpos($url, 'https://') === 0 || strpos($url, 'http://localhost') === 0 || strpos($url, 'http://127.0.0.1') === 0) {
       + // Modified: Ensure it's HTTPS or HTTP (allows local network URLs)
       + if (strpos($url, 'https://') === 0 || strpos($url, 'http://') === 0) {
             $sanitized['server_url'] = rtrim($url, '/');
         } else {
             add_settings_error(
                 $this->option_name,
                 'invalid_url',
       -         __('Server URL must use HTTPS (or localhost for development).', 'gallery-for-immich')
       +         __('Server URL must use HTTPS (preferred) or HTTP.', 'gallery-for-immich')
             );
         }
       ```
   
 * 2. Add SSL Verification Setting
 * To help users with self-signed certificates on their local network, you can add
   an “SSL Verification” toggle. Update `settings_init()`
 * Register the new field in the `settings_init` function:
 *     ```wp-block-code
       add_settings_field('ssl_verify', __('SSL Verification', 'gallery-for-immich'), [$this, 'field_ssl_verify'], 'gallery_for_immich', 'gallery_for_immich_section');
       ```
   
 * Add the `field_ssl_verify()` Method
 * Add this method to render the checkbox in the settings page:
 *     ```wp-block-code
       public function field_ssl_verify() {
           $options = get_option($this->option_name);
           $checked = isset($options['ssl_verify']) ? (bool)$options['ssl_verify'] : true;
           ?>
           <label>
               <input type="checkbox" name="<?php echo esc_attr($this->option_name); ?>[ssl_verify]" value="1" <?php checked($checked); ?>>
               <?php echo esc_html__('Verify SSL certificates (uncheck for self-signed certificates on local networks)', 'gallery-for-immich'); ?>
           </label>
           <?php
       }
       ```
   
 * Update `sanitize_settings()` again
 * Ensure the new field is saved:
 *     ```wp-block-code
       // Add this line at the end of sanitize_settings() before the return
       $sanitized['ssl_verify'] = !empty($input['ssl_verify']);
       ```
   
 * 3. Respect the SSL Setting in API Requests
 * Finally, update all WordPress remote request calls (`wp_remote_get`, `wp_remote_post`,`
   wp_remote_request`) to use the new setting. Example for `api_request()`
 * Find where `wp_remote_get` is called and update the `sslverify` parameter:
 *     ```wp-block-code
         $response = wp_remote_get($url, [
             'headers' => [ ... ],
             'timeout' => 15,
       -     'sslverify' => true
       +     'sslverify' => isset($options['ssl_verify']) ? (bool)$options['ssl_verify'] : true
         ]);
       ```
   
 * > [!NOTE]
   > You must also apply this change to `handle_image_proxy()`, `get_video_url_with_shared_link()`,
   > and `cleanup_shared_link()`.
 * Summary Checklist
    1. [ ] Change `strpos` check to allow any `http://` prefix.
    2. [ ] Update the localized error message string.
    3. [ ] Register the `ssl_verify` setting field.
    4. [ ] Add the `field_ssl_verify` UI method.
    5. [ ] Ensure `sanitize_settings` saves the checkbox value (boolean).
    6. [ ] Pass the dynamic boolean to the `sslverify` key in all remote requests.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Widgets for Google Reviews] How to create more than 1 widget on the free tier?](https://wordpress.org/support/topic/how-to-create-more-than-1-widget-on-the-free-tier/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/how-to-create-more-than-1-widget-on-the-free-tier/#post-16713544)
 * Thanks for the reply. When you say “subscribe” do you mean that making a free
   account is enough to enable us to make more than 1 widget or do we need to purchase
   a paid plan?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Widgets for Google Reviews] Pull reviews of all languages](https://wordpress.org/support/topic/pull-reviews-of-all-languages/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/pull-reviews-of-all-languages/#post-16503682)
 * Hi, thanks but that’s not answering my question. I want to display the latest
   reviews from **_any language_** in the slider, not just for a single language.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Show WooCommerce notices on any page without redirecting to the specific product](https://wordpress.org/support/topic/show-woocommerce-notices-on-any-page-without-redirecting-to-the-specific-product/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/show-woocommerce-notices-on-any-page-without-redirecting-to-the-specific-product/#post-15771083)
 * Alternatively, I can force “add to cart” to lead to the cart itself and this 
   works fine for success messages, but error messages still redirect to the product
   page. Can I force all message to be shown in the cart then?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Descriptions of categories (Statistics, etc) not translatable on cookie policy p](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/page/2/#post-15495035)
 * Thank you Jarno! I will get in touch with you about it.
    I do suspect that on
   this front the problem could still be in Complianz since it is not detecting 
   the correct language name for Bulgarian and instead uses the code BG. See here:
   [https://imgur.com/a/dizGzaa](https://imgur.com/a/dizGzaa)
 * Could that be the reason why it is not pulling the translations from Cookiedatabase?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Descriptions of categories (Statistics, etc) not translatable on cookie policy p](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/#post-15493150)
 * [@jarnovos](https://wordpress.org/support/users/jarnovos/) [@aahulsebos](https://wordpress.org/support/users/aahulsebos/)
   After many hours of troubleshooting and tinkering with the DB, I discovered a
   simple truth. The language of the site (Settings->General) must correspond to
   the language in the fields of the cookie banner in Complianz. Then, even with
   Polylang, the translations will work on the cookie page and not only on the banner.
 * However, Polylang only sees 18-19 strings from the cookie banner. During my tests
   I managed to get a total of 76 “complianz” strings recognized in Polylang.
 * Which action will trigger the recognition of the other strings which don’t show
   up on the cookie banner? In particular, the categories in section 6 are not translated(
   since missing from Polylang): Functional, Marketing/Tracking
 * > [View post on imgur.com](https://imgur.com/a/HjiGMtB)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Descriptions of categories (Statistics, etc) not translatable on cookie policy p](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/#post-15489574)
 * [@rogierlankhorst](https://wordpress.org/support/users/rogierlankhorst/) and 
   [@jarnovos](https://wordpress.org/support/users/jarnovos/) thank you for that
   info. I understand this applies to category_functional, but does it also apply
   to functional_text by the same logic?
    Are there any php filters or snippets 
   I could use to mitigate this?
 * [@jarnovos](https://wordpress.org/support/users/jarnovos/) If the above is true,
   how did it then work in your tests?
 * I also can’t seem to make Loco transtions get loaded at all regardless of whether
   I transalte the given strings in Polylang or not. Couldn’t we use Loco + Polylang
   to fix these doubled strings in differnt contexts?
 * PS.
    I also confirm that TranslatePress has the same problem.
    -  This reply was modified 4 years, 5 months ago by [psodfj](https://wordpress.org/support/users/psodfj/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Descriptions of categories (Statistics, etc) not translatable on cookie policy p](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/#post-15488153)
 * I just tested another website and everything works perfectly with WPML. For instance,
   functional_text and category_functional translate the strings both in the banner
   and in the cookie policy page.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Descriptions of categories (Statistics, etc) not translatable on cookie policy p](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/#post-15488083)
 * [@jarnovos](https://wordpress.org/support/users/jarnovos/) This is quite bizzare
   indeed. Between your and mine screenshots the translations are exactly swapped.
   You have “Always active” in English and “Functional” in Russian, while I have“
   Always active” correctly in Bulgarian but everything else in English despite 
   me having translated them in Polylang:
 * cookie policy page: [https://gyazo.com/d75b1c572ad5e8e0082c15768e98959b](https://gyazo.com/d75b1c572ad5e8e0082c15768e98959b)
   
   Polylang: [https://gyazo.com/91ddc30328b613cdedcf2ad8f50d4b2b](https://gyazo.com/91ddc30328b613cdedcf2ad8f50d4b2b)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Descriptions of categories (Statistics, etc) not translatable on cookie policy p](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/#post-15487890)
 * [@jarnovos](https://wordpress.org/support/users/jarnovos/) You seem to be referring
   to the cookie banner itself. As I said, everything works fine for the banner (
   buttons, categories and category descriptions). The problem is that categories
   and catergory descriptions are NOT translated in the Cookie Policy (EU) page 
   itself.
    As per my previous reply, I translated the missing strings for category
   descriptions and “last updated on” on wordpress.org and am waiting for the approvals.
   Category names in the cookie policy page are still untranslated though.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Descriptions of categories (Statistics, etc) not translatable on cookie policy p](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/#post-15487688)
 * Thanks [@aahulsebos](https://wordpress.org/support/users/aahulsebos/) and [@jarnovos](https://wordpress.org/support/users/jarnovos/)
   
   Earlier today I translated the relevant strings in Bulgarian at [https://translate.wordpress.org/projects/wp-plugins/complianz-gdpr/stable/](https://translate.wordpress.org/projects/wp-plugins/complianz-gdpr/stable/)
   and now they ara “Waiting”. When would they be approved and pushed to active 
   websites?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Descriptions of categories (Statistics, etc) not translatable on cookie policy p](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/#post-15485441)
 * Sorry, I should have been clear that I am using Bulgarian, not Russian. Would
   that explain the problems?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Descriptions of categories (Statistics, etc) not translatable on cookie policy p](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/descriptions-of-categories-statistics-etc-not-translatable-on-cookie-policy-p/#post-15484830)
 * The timestamp notice is also not translated:
 * > This Cookie Policy was last updated on март 22, 2022 and applies to citizens
   > and legal permanent residents of the European Economic Area.
 * You can see that the date is translated, but not the message itself. It is missing
   from string translation in Polylang.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Translations not working (WPML, Loco, po, mo)](https://wordpress.org/support/topic/translations-not-working-wpml-loco-po-mo/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/translations-not-working-wpml-loco-po-mo/#post-15433752)
 * Hi [@jarnovos](https://wordpress.org/support/users/jarnovos/),
 * Thanks for the reply. I am referring mainly to the standard buttons, labels (
   Marketing, Functional, etc.) as well as the descriptions of these labels. I would
   expect these to be automatically translated but they are not. Importing .po &.
   mo files does absolutely nothing for them even though it contains their translations.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz GDPR/CCPA Cookie Consent Banner] Load Google Analytics before consent](https://wordpress.org/support/topic/load-google-analytics-before-consent/)
 *  Thread Starter [psodfj](https://wordpress.org/support/users/psodfj/)
 * (@psodfj)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/load-google-analytics-before-consent/#post-15023126)
 * [@jarnovos](https://wordpress.org/support/users/jarnovos/) Thanks for the reply!
   I confirm that question is set to “No”. I did the settings as I usually do them
   but the Statistics toggle still shows.
 * How can I export the settings so I can send them to you?

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/users/psodfj/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/psodfj/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/psodfj/replies/page/2/?output_format=md)