aprinciple
Forum Replies Created
-
My working solution, add input with name “lang” in your form
<input type="hidden" name="lang" value="<?= get_locale(); ?>">Then in the function.php file, we check if the request is AJAX, and if there is a lang parameter, then we override the locale.
if( wp_doing_ajax() && $_REQUEST['lang'] ) { $locale = $_REQUEST['lang']; add_filter('determine_locale', function() use ($locale) { return $locale; }); }The end. It’s working.
- This reply was modified 3 years, 1 month ago by aprinciple.
- This reply was modified 3 years, 1 month ago by aprinciple.
- This reply was modified 3 years, 1 month ago by aprinciple.
Do you have paid support?
Thanks for the plugin and the hard work, of course. But is there a solution to this problem at all? I’ll try to write to the github repository of this plugin, maybe someone there will respond and help.
Okay, but I’m not the first with such a problem and will not be the last in the future, instead of solving the issue, you will write that this is not included in the support of your plugin?
Writing forms that use the wp_ajax common case, how to translate the theme if the forms on the site cannot be translated?
I understand your point of view, but it’s better to help once, at least suggest how, because this case is not uncommon.- This reply was modified 3 years, 1 month ago by aprinciple.
Plugin does not work correctly when using wp_ajax.
- This reply was modified 3 years, 1 month ago by aprinciple.
Forum: Plugins
In reply to: [Loco Translate] Translate in ajax callAnd what does your “Writing code to load text domains is not a topic covered by my support for this plugin.” mean?
Initially, the author wrote to you about an error, the plugin displays the wrong translation when using wp_ajax.
I tried to find out which locale is defined in this form handler file. It returns ru_RU, so in any version of the site (language) it returns only the russian translation.
The next question is how to get the correct version of the locale in order to give the correct line feed for ajax processing- This reply was modified 3 years, 1 month ago by aprinciple.
Forum: Plugins
In reply to: [wp-mpdf] ACF fileds / meta boxesI wrote above that I tried them all. Did not help.
Forum: Plugins
In reply to: [wp-mpdf] ACF fileds / meta boxesNo, the problem is not in the font, I used the dompdf library, there the “DejaVu Serif” font correctly displays the Cyrillic alphabet, put the same one in your plugin, it didn’t help, then I replaced this font in mpdf with the one in the dompdf library, it also didn’t helped.
So the problem is not in the font.Forum: Plugins
In reply to: [wp-mpdf] ACF fileds / meta boxesI downloaded a font from Google Font with Cyrillic support, I tried to add this font, my actions



Did I do everything right or do I need something else? Since even the font styling hasn’t changed, it seems that this new font hasn’t been assigned.
- This reply was modified 3 years, 1 month ago by aprinciple.
Forum: Plugins
In reply to: [wp-mpdf] ACF fileds / meta boxesYes, I just tried all 11 encodings, didn’t help 🙁 Usually when there are such problems with encoding, it is utf-8 that helps
Maybe the problem is in the font, can you tell me where, in which particular file you need to change the fonts in order to test?- This reply was modified 3 years, 1 month ago by aprinciple.
Forum: Plugins
In reply to: [wp-mpdf] ACF fileds / meta boxesCyrillic support natively by mpdf, but there is a problem with cyrillic in your plugin
Forum: Plugins
In reply to: [wp-mpdf] Cyrillic encoding issuesРешил проблему?
Forum: Plugins
In reply to: [wp-mpdf] ACF fileds / meta boxesThanks for the quick response
I already figured it out, I was just embarrassed that I got question marks in response, that is, as I understand it, an encoding problemP.S. Cyrillic
Нет, не в открытых окнах)
Тестировал так же на другом сервере.
Атрибут в JSON писал, не помогает
В ДБ поменять – можно попробовать, спасибо.