Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Hi Oleg, I did not tested yet the version you sent me a few days ago but if you have an update, please send it me by mail.

    PS: to follow the answers, you can use the RSS feed of this topic (eg: http://wordpress.org/support/rss/topic/186586) 🙂

    David

    Hi, I sent you an other email address by email.
    Thanks,
    David

    Hi,

    So, what’s up with the new release? I sent you an email to have a test version but there’s still nothing in my mailbox 🙁

    Read you soon…
    David

    Hi, what’s new about the new version? When do you think it will be available? (I’m talking about the version which works with WP 2.6+).

    Read you soon,
    David

    Thread Starter pirusan

    (@pirusan)

    Hi,

    I’ve juste created an extension which allow to translate the slug of a post (not a page at this moment). It require WP_Multilingual.

    You can download it at this address: http://projects.maleo.net/wp-multilingual-extended/

    It adds a “Permalinks” box in the edit box of a post, with one input by WP_Multilingual declared language. During saving, it creates a post meta name “post_slug_{language}” (ex: “post_slug_fr”). It take the title of the post by default (or the titles of each language by default).

    In the front site, it take the “post_name” of each post to replace it by the “post_slug_{language}” of the current language.

    The only “oooops” for this plugin is that we need to modify the “get_post” function of the core of WP located in the file “/wp-includes/post.php”: we need to add the line: apply_filters('get_the_post', $_post); just after: $_post = sanitize_post($_post, $filter); I don’t find any existing hook for the purpose of this plugin.

    For this version of the plugin, there is no check of a possible duplicated slug, no possilibity to translate pages slugs. It’s first a proof of concept and, I hope so, a piece of code you could implement in your plugin.

    Cheers,
    David

    Thread Starter pirusan

    (@pirusan)

    OK, I just saw that (didn’t update since my hack). It work fine.

    The use of the _COOKIE is simple: I’m french but (as developper), I want to test a new (version of a) brother in beta which is only available in english.

    The HTTP_ACCEPT_LANGUAGE is set to “en”. When I visit my Multilingual Blog, it send me the page in english. I switch to french. With a cookie, next time I visit the blog, It’ll still be in french.

    OK, not everybody use a brother in a language different of his mother language but I want to take in account this case.

    Thank for the “override” option any way, I can use a “non-hacked” version of your plugin.

    But, I would be nice to have an option (or hook) to force the language manually. What do you think of something like: add_action('wp_multilingual_setlocale' 'my_custom_setlocale');? 😉

    Cheers,
    David

    Thread Starter pirusan

    (@pirusan)

    Hi,

    I Installed a new, fresh WP last week and the problem seems to be still there (both the preg_replace() wich keep only alpahnum characters and the “^” character)…

    Let’s see what’ll happen in WP 2.5.2

    Cheers,
    David

    Thread Starter pirusan

    (@pirusan)

    Hi,

    I still need the ability to translate the permalink, when do you think it will be possible?

    And I still need to filter comments by language, will it be possible?

    Thanks in advance,
    David

    Thread Starter pirusan

    (@pirusan)

    Hi Beto,

    Thanks for the tip, it’s fine now!

    David

    Thread Starter pirusan

    (@pirusan)

    Hi,

    I just wrote a new function called “get_permalink_by_path” as follow:

    function get_permalink_by_path( $path, $output = OBJECT ) {
    
        if ( !$page = get_page_by_path($path) ) return NULL;
        return get_permalink($page->ID);
    
    } // end of 'get_permalink_by_path()'

    It work fine for me. The thing you can add is that the $GLOBALS[‘language’] would be available before the “functions.php” file of a template is loaded.

    One other thing I noticed: my default language is english for a blog. When I switch to french for example and I click on the header to go to the home, the language switch back to english instead of keeping french? how to keep a choosen language even for this situation?

    Last point, I there a way to check the HTTP_ACCEPT_LANGUAGE to determine the language of the user (his browser in fact)? I would be a nice feature to had.

    Thanks in advance,
    David

    Thread Starter pirusan

    (@pirusan)

    Hi all, me again.

    The character “^” in the characters list is not taken in account in the URL detection in Gmail, the URL is clickable before the “^”, so the link is broken. Of course it’s OK if we copy/paste the link but not everybody has this reflex. One good thing would be the possibility to give our own chars list somewhere in the admin or in the wp-settings.php for example.

    Read you soon,
    David

    Thread Starter pirusan

    (@pirusan)

    Hi,

    Thanks for this version, it works fine for me (short_tags and “&”).
    Thanks for the “user image” but is possible to specify an alternate image for the rollover (not required by default).

    For the custom list, I have no idea how to do that but you know that better than me. Maybe a list with checkboxes in the admin panel?

    I also use the WP_Multilingual plugin, how to configure SocialList to use the language capabilities of the plugin? Could’you had something in the admin to be able to configure which list to use programatically?

    Thanks anyway, great plugin again.

    David

    Thread Starter pirusan

    (@pirusan)

    In fact, I’m generating some permalinks in the “functions.php” of my theme (derived from the classic one) and the $GLOBALS[‘language’] in not yet know. I finally use the following code: $loginPermalink = get_permalink(get_page_by_path('login')->ID);

    Not a bug or a missing feature 🙂

    David

    Thread Starter pirusan

    (@pirusan)

    Hi again,

    If I use the wordpress function get_permalink() for a post or a page, I have not the language in the generated URL. How to make it appear correctly in the URL ?

    For example: I have a page “Login” with the ID = 14. When I use get_permalink(14), I get “http://www.example.com/blog/login” assuming my blog is in the “/blog/” directory.

    Thanks in advance for the tip or the new feature.

    Greatings,
    David

    Same problem for me but not find what happened at this moment 🙁

    I have WinXP, PHP 5.2.5 and Apache 1.3.x

    David

Viewing 15 replies - 1 through 15 (of 18 total)