Forum Replies Created

Viewing 15 replies - 16 through 30 (of 54 total)
  • Thread Starter theyuv

    (@theyuv)

    Ok. Thanks for the very quick reply.
    Is there a better way that you would recommend to have it set up?

    Thread Starter theyuv

    (@theyuv)

    Thanks,

    I use term_exists before calling wp_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.

    Thread Starter theyuv

    (@theyuv)

    Thanks for the plugin!

    Hello,

    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

    Thread Starter theyuv

    (@theyuv)

    Placing editor.min.css in the exclusion list fixed the issue.
    Although there might be a solution without excluding the editor css…

    Thread Starter theyuv

    (@theyuv)

    I’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.

    Thread Starter theyuv

    (@theyuv)

    Hey, thanks, I am not seeing any errors (I’ve already excluded tinymce, tinyMCE from 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.

    Thread Starter theyuv

    (@theyuv)

    From 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 mo file (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 in mo files). Is this possible? If so, how?

    Thank you.

    Thread Starter theyuv

    (@theyuv)

    How 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

    Thread Starter theyuv

    (@theyuv)

    Ok, 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.

    Thread Starter theyuv

    (@theyuv)

    Hey, 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.

    • This reply was modified 9 years, 9 months ago by theyuv. Reason: typo
    • This reply was modified 9 years, 9 months ago by theyuv. Reason: emphasis added
    Forum: Plugins
    In reply to: [WPGlobus] RTL css trigger
    Thread Starter theyuv

    (@theyuv)

    Thanks 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.

    Doesn’t work.
    It works for you?
    FYI: I’m on local development environment.

    Hello,

    Any ideas why the method WPGlobus_Utils::localize_url isn’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

    • This reply was modified 9 years, 9 months ago by theyuv. Reason: formatting
    • This reply was modified 9 years, 9 months ago by theyuv. Reason: clarification
    Thread Starter theyuv

    (@theyuv)

    Yes, I figured this was the case.
    I’ll give it some more thought and see if it’s worth fiddling with.

    Thank you.

Viewing 15 replies - 16 through 30 (of 54 total)