• Resolved Uobet

    (@uobet)


    Hi Franky,

    EME is working smoothly with the multilanguage plugin qtranslate so far.

    I have just the following case where I haven’t found a solution so far:

    In Drop Down Fields the values can’t be translated with the usual
    <!–:de–>ExpressionGerman<!–:–><!–:it–>ExpressionItalian<!–:–>

    For the Moment I solved it by including both languages in a drop down field, for example, for male and female:
    weiblich / female||m?nnlich / male.

    –> Can you think of a better solution?
    –> If not, would something like
    If language = Englisch then “Mister” else Mister “Herr” for Confirming E-mails be possible?

    Best Regards

    S

    https://www.ads-software.com/plugins/events-made-easy/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Franky

    (@liedekef)

    The problem is more complex in this case:

    – when in the backend, you don’t know the language somebody prefers, so when sending a mail it will be done in your language (will still be a problem).
    – when creating the form, the value of the dropdown field (and any other field) is the same as the label. In this case you want to change the label, but not it’s value, otherwise if you edit a booking (where the person was in another language than yours), I wouldn’t be able to tell which value the person choose (because the values in your language would be different than the values in the language of the booker). So you would want an extra “label” part for multivalues.

    But it won’t solve the mail problem, since wordpress is not multi-lingual by itself, and if not logged-in users (or even a logged in user) change language by clicking on a flag, I don’t know about it when an admin is in the backend. I would need to keep the language the user prefers as extra booking info, which would then need to be used when showing values when editing and also when sending mails.

    Please feel free to make a feature request for this at https://www.e-dynamics.be/bbpress .

    Thread Starter Uobet

    (@uobet)

    Hi Franky,

    if I’ve understood you well, then my problem could be solved by adding a language selection field (for example a drow-down-field with the values “German || Italiano”)?

    Can you give me a short example how I would have to proceed for the confirming E-Mail in this case?

    Is something like
    If language-selection-field = “Deutsch” then
    German Text
    End if
    If language-selection-field = “Italiano” then
    Italian Text
    End if

    possible?

    Thank you very much!

    Best Regards

    S

    Plugin Author Franky

    (@liedekef)

    No, it means I need to develop extra stuff, therefore the “create a feature request at …” part.

    Plugin Author Franky

    (@liedekef)

    I added code that takes the current language of the user and/or booking into account, so mails will be translated to their language.
    However translation of the dropdown part is not yet done.

    Thread Starter Uobet

    (@uobet)

    Great, thank you very much!

    I suppose it’s coming with the coming version?

    Best Regards

    S

    P.S. I’ve made a donation a few minutes ago. Thank you very much for always doing such a great job!

    Plugin Author Franky

    (@liedekef)

    Thanks for the donation!
    Concerning the code: if you are interested in testing it, you can get the development version here: https://downloads.www.ads-software.com/plugin/events-made-easy.zip

    Thread Starter Uobet

    (@uobet)

    Hi Franky,

    sorry for my delay, I was quite busy these days.

    I made a test with the new version of eme. It works perfectly well.

    ==========================================================================
    A short explanation for other people, working with the multilingual plugin qtranslate:
    Under EME – settings – mail there may be defined various standard mails (confirming booking, booking cancled…)
    It hasn’t been possible to consider the language of a booking person so far.
    Now, this is possible.
    Mails can now be defined in the respective languages.
    Example for German and Italian:

    German version:
    <!–:de–>
    German Text, for example: Ihre Buchung wurde registriert…
    <!–:–>

    Italian version:
    <!–:it–>
    Italian Text, for example: Confermiamo l’iscrizione…
    <!–:–>
    ==========================================================================

    Thank you very much!

    Best Regards

    s

    Thread Starter Uobet

    (@uobet)

    Hi Franky,

    I have to add a question.

    If I define the following e-mail
    German version
    <!–:de–>
    bla, bla, bla
    #_EVENTPAGEURL
    bla, bla, bla
    <!–:–>

    Italian version
    <!–:it–>
    bla, bla, bla
    #_EVENTPAGEURL
    bla, bla, bla
    <!–:–>

    I would be the ideal case if in the Italian version the links directs to the Italian version of the event, but it always directs to the event in the default language (German in my case).

    Can you think of a solution to this?

    Best Regards

    S

    Plugin Author Franky

    (@liedekef)

    It’s going to be a long process to detect which placeholders need this attention, but this should fix it for event and location urls:

    https://plugins.trac.www.ads-software.com/changeset/898911
    and this:
    https://plugins.trac.www.ads-software.com/changeset/898913

    Thread Starter Uobet

    (@uobet)

    Hi Franky, I was just asking, but you immediately made it work. Great Thank you very much!! s

    Thread Starter Uobet

    (@uobet)

    Hi Franky, I was just asking, but you immediately made it work. Great Thank you very much!! s

    Thread Starter Uobet

    (@uobet)

    Hi Franky, I was just asking, but you immediately made it work. Great Thank you very much!! s

    Thread Starter Uobet

    (@uobet)

    Sorry for posting a few times the same msg due to problems with my cell phone

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Drop Down Fields and qtranslate’ is closed to new replies.