Results 1 to 9 of 9

Thread: Multi Language Support

  1. #1
    Thread Starter
    Rookie bobinfrance's Avatar
    Join Date
    Jul 2010
    Location
    France
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Multi Language Support

    I'm looking to create a bi lingual site (English and French) and need to be able to enter ads in both languages at the same time and then display the appropriate version dependent on a language switch.

    So far this is where I am:
    I've installed qTranslate
    Created custom fields for french title and french content and a form with these, title, content and price.
    I've hacked at step-functions.php to get this


    $newtitle = "<!--:en-->".cp_filter($advals['post_title'])."<!--:--><!--:fr-->";
    $newtitle = $titleen.cp_filter($advals['cp_french_title'])."<!--:-->";
    $new_ad['post_title'] = $newtitle;

    $newcontent = "<!--:en-->".trim($advals['post_content'])."<!--:--><!--:fr-->";
    $newcontent = $newcontent.cp_filter($advals['cp_french_content'])."<!--:-->";
    $new_ad['post_content'] = $newcontent ;

    At this stage it's doing what I need - it's for a single user to enter ads and the lanuages are fixed.
    The only issue at the moment is whilst the single ad display is correct when there's a list it strips the tags in the content so it shows both versions of the content - I haven't looked into this yet.

    So anyone with any tips/advice on how to proceed?

    If not then hopefully this is a start for others.

    Cheers.

  2. #2
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Rookie bobinfrance's Avatar
    Join Date
    Jul 2010
    Location
    France
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Thread Starter
    Rookie bobinfrance's Avatar
    Join Date
    Jul 2010
    Location
    France
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    Thread Starter
    Rookie bobinfrance's Avatar
    Join Date
    Jul 2010
    Location
    France
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #8
    Thread Starter
    Rookie bobinfrance's Avatar
    Join Date
    Jul 2010
    Location
    France
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #9
    Thread Starter
    Rookie bobinfrance's Avatar
    Join Date
    Jul 2010
    Location
    France
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. multi language plugin
    By markjansen in forum Help Using ClassiPress
    Replies: 10
    Last Post: March 9th, 2016, 08:08 AM
  2. ClassiPress Support
    By pepsi in forum Report ClassiPress Bugs
    Replies: 0
    Last Post: June 27th, 2010, 05:02 PM