Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Chouby

    (@chouby)

    I worked on the possibility to have “neutral” pages in the past (see http://pastebin.com/bsEM0P2R) but it appeared to be quite buggy and it is probable that nobody is using it. Then I had to focus on other topics. Maybe I will rework on this in a (far) future.

    But wouldn’t it be better to have on “success” page per language?

    I’ve been working several days on making a ‘NoLanguage’ patch for polylang. Currently I have it completely working for the following settings:

    • permalinks (year/postname)
    • hide default language in URL
    • hide /language/
    • force adding language code

    The last setting is mandatory I think because this is the only way to differentiate what the current language for the user is…

    I still need some more time to make it work in more cases (no permalinks, etc…) and other bugs not really relevant to my case.

    When I’m done, I will provide Chouby with a patch and hope he will accept the changes.

    Thread Starter teolives

    (@teolives)

    Great!

    The last setting is mandatory I think because this is the only way to differentiate what the current language for the user is…

    Couldn’t you do it using the cookie set by Polylang?

    Yeah I could, but the problem is the cookie is not mandatory… You can turn it off in polylang, or the browser could ignore the cookies.
    I’m thinking of supporting a /nolanguage/whatever/slug/you/have which will then redirect the user to the page while determining a language (from cookie, browser or fallback).

    Will this work for your scenario ? Can you actually choose the exact url to forward to, or do you have to pick a certain page?

    Thread Starter teolives

    (@teolives)

    What I’m trying to address here is a shortcoming of other plugins (not polylang itself) that allow only one redirect to be set (I’m referring for instance to the otherwise great s2member but there are many others…) after a specific action rather than one per each language. What would partially solve my problem would be to have a “no-cookie” page (if it’s too hard to have a “no-language” one) so that the user can be then redirected to the right language (I think that this will be easily accomplished by a custom template).

    So, to answer your question, right now I’m choosing the exact url.

    Ok ,thanks for the input, I’ll take your input when I find more time to make adjustments.

    Chouby, I hope you don’t mind that I’m making adjustments? I will send them to you for approval / inclusion, I’m not intending to make this a polylang plugin, because I don’t think I have enough hooks and don’t want to duplicate half of your codebase to extend it.

    Plugin Author Chouby

    (@chouby)

    For sure duplicating the code would not be a good solution. I have to make it sometimes with WordPress and I don’t like that !

    But to be honest, I would prefer a plugin or a “separate module”. This is now the way I use to add new features to Polylang as I believe that it will be easier to maintain in the future. I don’t mind adding hooks 🙂 Some of them were added specifically for my first attempt to obtain what you are working on.

    However, if you come to a solution which modified Polylang, you can send it to me either. I will look how to integrate this, but it may take a longer time 😉

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Feature suggestion’ is closed to new replies.