Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 10 of 10

Thread: Not translated meta name = "description"

  1. #1

    Default Not translated meta name = "description"


  2. #2
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    Hi!
    I see that some meta content are translated, e.g.: Forum Manuals Car - AutoRepMan.COM.
    Part translation is caused by reaching your limits, but it not an error. See more: http://www.vbenterprisetranslator.co...html#post10869.

  3. #3

    Default

    Text automatically translated from: Russian to: English
    Translated text
    Good day!

    The example below...
    1. test_microsoftbyazure.php - Ok!
    2. Text of the page translated into English
    3. "meta name="description" content=" - not transferred.



    Original text

  4. #4
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    Please send me a PM access details to Admin CP and FTP. I will check what is going on there

  5. #5

    Default

    Text automatically translated from: Russian to: English
    Translated text
    Data sent with a personal message
    Original text

  6. #6
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    Quick fix for this issue:
    • Open file includes/vbenterprisetranslator_functions.php
    • Find code:
      PHP Code:
      preg_match_all('|<meta[^>]+name=\"([^\"]*)\"[^>]+content=\"(.*?)\" />|i',$head$metaPREG_PATTERN_ORDER); 
    • Replace it to code:
      PHP Code:
      preg_match_all('|<meta[^>]+name=\"([^\"]*)\"[^>]+content=\"(.*?)\" />|ims',$head$metaPREG_PATTERN_ORDER); 

    This issue will be fixed in the next release.

  7. #7

    Default

    Text automatically translated from: Russian to: English
    Translated text
    Thank you very much!
    Original text

  8. #8
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    I'm glad I could help you.

  9. #9

    Default

    Text automatically translated from: Russian to: English
    Translated text
    Good day!

    After bug fixes meta name = "description" translates not fully:

    Original text

  10. #10
    Banned
    Join Date
    Aug 2012
    Posts
    481

    Default

    In case of longer meta texts vBET translate only part due to the performance.
    Too long meta is pointless because they have to be, by definition, short descriptions.
    vBET previously appends rest of not translated meta. We'll fix it and we will not appends rest of not translated meta.

    Quick fix for this issue:
    • Open file includes/vbenterprisetranslator_functions.php
    • Find code:
      PHP Code:
      $keywords $meta[2][$i]; 
    • Put after it this code:
      PHP Code:
      $keywords_not_cut $keywords
    • Find code:
      PHP Code:
      $description $meta[2][$i]; 
    • Put after it this code:
      PHP Code:
      $description_not_cut $description
    • Find codes:
      PHP Code:
      $output vbet_replaceFirst('<meta name="keywords" content="'.$keywords'<meta name="keywords" content="' 
    • Replace it to code:
      PHP Code:
      $output vbet_replaceFirst('<meta name="keywords" content="'.$keywords_not_cut'<meta name="keywords" content="' 
    • Find codes:
      PHP Code:
      $output vbet_replaceFirst('<meta name="description" content="'.$description'<meta name="description" content="' 
    • Replace it to code:
      PHP Code:
      $output vbet_replaceFirst('<meta name="description" content="'.$description_not_cut'<meta name="description" content="' 

    This issue will be fixed in the next release.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •