theyuv
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Running behind load balancerOk. Thanks for the very quick reply.
Is there a better way that you would recommend to have it set up?Forum: Plugins
In reply to: [WPGlobus] Inserting terms as multilingual stringsThanks,
I use
term_existsbefore callingwp_insert_term. But I’ll also look at the filter you referenced.I noticed also that I need to specify that the slug is the default language version of the multilang string…Otherwise, the slug defaults to a slug of the full multilang String.
Forum: Plugins
In reply to: [Autoptimize] TinyMCE fullscreen brokenThanks for the plugin!
Forum: Plugins
In reply to: [Advanced Editor Tools] Toolbar settings not showing up in EditorHello,
I am not using this plugin, but perhaps you can help me (and others with a similar issue).
I am using a plugin where the same deprecated message is printed to the console.
Therefore I would like to change a line that looks like:
ed.onNodeChange.add(function(ed, cm, n) { cm.setActive('dwqaCodeEmbed', n.nodeName == 'IMG'); });To something that uses non-deprecated code. Would this be equivalent?:
ed.on("NodeChange", function(e){ ed.add(function(ed, cm, n){ cm.setActive('dwqaCodeEmbed', n.nodeName == 'IMG'); } }Thank you
Forum: Plugins
In reply to: [Autoptimize] TinyMCE fullscreen brokenPlacing
editor.min.cssin the exclusion list fixed the issue.
Although there might be a solution without excluding the editor css…Forum: Plugins
In reply to: [Autoptimize] TinyMCE fullscreen brokenI’m working on a local machine.
Let me look a little more into the problem and let you know if I can figure out how to fix it or how to focus my question a bit more.Thanks.
Forum: Plugins
In reply to: [Autoptimize] TinyMCE fullscreen brokenHey, thanks, I am not seeing any errors (I’ve already excluded
tinymce,tinyMCEfrom the JS optimization; so it works well.Now I just have this issue with the css.
I’m using DWQA (https://wordpress.org/plugins/dw-question-answer/).
Thanks.
Forum: Plugins
In reply to: [WPGlobus] Store users’ locale in databaseFrom the documentation, the best way I can see to do what I want is:
1) Add all text that I would like in my email via:
add_option($option_name, WPGlobus_Utils::build_multilingual_string());2) Extract text when composing the email with
WPGlobus_Utils::text_filter(get_option(), $email_locale...)Again, if there is a way to achieve what I want with text that is stored in an
mofile (rather than storing it in the database), I would prefer that. Because that way all of my translated text will be in one place (as opposed to being both in the database and inmofiles). Is this possible? If so, how?Thank you.
Forum: Plugins
In reply to: [WPGlobus] Store users’ locale in databaseHow do I input “my_mail_text” into the DB?
Do I generate the multilingual text myself (eg: “{:en}hello{:}{:fr}bonjeur{:}”)? Or is there a WPGlobus function that does this?
Is there any way to use my mo and po files for this? So that I don’t have to enter each custom phrase into my DB?Thanks
Forum: Plugins
In reply to: [WPGlobus] Store users’ locale in databaseOk, thank you.
Regarding my second question: Now let’s say I have the language which the user prefers, how would I apply it when constructing my email.
Ordinarily I would wrap the text (eg:
__('Your post has received a reply', 'my-text-domain');), but this will just use the default language. How do I specify the user’s language for the text so that text in users’ emails is according to their preference?Thank you.
Forum: Plugins
In reply to: [WPGlobus] Store users’ locale in databaseHey, thanks.
I need a little more clarification:
I see the wpglobus_option_locale in the “wp_options” table. But the value seems like a long list of all possible locales.
I want to know where a user’s locale preference is stored (if at all) in the database.And the second part of my question:
The reason I need the user’s locale is because I want to send emails in the user’s preferred language. So, would it be possible to set the language to the user’s preferred language while constructing his email notification?Thanks.
Forum: Plugins
In reply to: [WPGlobus] RTL css triggerThanks a lot guys for your answers.
@tivnet Thank you. So WP is responsible for placing the entire locale (eg: he-IL) in the lang attribute of the html element?
This is a mistake, no? Shouldn’t there be a language code there?Thanks.
Forum: Plugins
In reply to: [WPGlobus] Custom Links different URL per languageDoesn’t work.
It works for you?
FYI: I’m on local development environment.Forum: Plugins
In reply to: [WPGlobus] Custom Links different URL per languageHello,
Any ideas why the method
WPGlobus_Utils::localize_urlisn’t working for me?I pass in some url like “/some-page”:
WPGlobus_Utils::localize_url('some-page');but the output remains the some (ie: “/some-page”).The locale (say, “fr”) is not prepended to the url.
Thanks
Forum: Plugins
In reply to: [WPGlobus] Subdirectory installationYes, I figured this was the case.
I’ll give it some more thought and see if it’s worth fiddling with.Thank you.