Versi 0.8.0 – Serangan API


Apabila API melawan

Lebih awal daripada tarikh akhir yang ditimbulkan oleh Google Translate API untuk berhenti kerja, kami akhirnya mampu untuk menyusun siaran baru ini. Ini salah satu diikuti tempoh masa yang panjang masalah yang telah dibentangkan oleh versi yang lebih lama, terutamanya kerana fakta bahawa Google memutuskan untuk menimbulkan had penggunaan sebelum tarikh akhir yang menyebabkan versi terdahulu menyokong permintaan untuk melonjak ke tahap yang baru. Perubahan Google juga mencetuskan had API dalam penterjemahan API Bing, sejak pengguna telah menukar enjin, yang terbeban API Transposh keras yang dikodkan utama bagi Bing.

Namun, kita terselamat tempoh ini untuk menyediakan anda dengan versi yang terbaru dan terhebat. Versi ini membetulkan masalah-masalah ini akan menyediakan pirau (Proksi untuk Google dan kunci temp untuk MSN) dan ia juga membolehkan anda menggunakan kunci anda sendiri secara langsung (terima kasih kepada Randy daripada Pusat spyware membantu untuk menyediakan kami dengan kunci untuk menguji) yang akan diberi keutamaan terhadap orang-orang kaedah lain. Sambil melakukan ini, kami dapat dramatik meningkatkan infrastruktur plugin, mengubah cara panggilan AJAX telah dilakukan untuk kaedah yang berasal dari WordPress (e.g. jika halaman admin anda kerja-kerja, ia mungkin perlu kerja serta). Ketika melakukan bahawa kita mampu untuk mengurangkan kod javascript yang diperlukan untuk backend pada masa yang sama membenarkan menterjemahkan semua ciri untuk bekerja dengan lebih cepat (dan menyokong Apertium terlalu!).

Pada titik ini, kita mempunyai versi yang kukuh, yang seolah-olah seperti perkara yang baik untuk melepaskan, tetapi tiada, kita harus mempunyai beberapa ciri-ciri lain di, jadi kami akhirnya mengambil keputusan untuk menangani isu widget menyokong berbilang (dan pemilihan tajuk yang terlalu, hura!). Nampaknya agak lurus ke hadapan? tetapi tiada, ini disebabkan menulis semula utama infrastruktur widget kami juga. Sebenarnya meningkatkan agak drastik dengan mengubah cara css ditambah, dan cara widget diberitahu pelayan perubahan dalam bahasa (sekarang kita mengelakkan panggilan POST tidak berguna kepada pelayan). Semasa menulis bahawa kami bernasib baik untuk tersandung apabila isu PHP5.3 untuk PHP5.2 ketidakserasian dengan satu set masalah-masalah lain yang diadakan siaran kita kembali satu minggu lagi. Kami ingin mengucapkan terima kasih kepada ramai pengguna yang telah dipasang dengan siaran beta kami dan membantu kami mencari masalah yang tersembunyi di bawah lapisan kod dan kerumitan.

Kami juga mengambil kesempatan ini untuk menukar terma kami sedikit, jika anda menampilkan iklan Google AdSense di muka surat anda diterjemahkan, kami akan mengambil 1/1000 ruang itu untuk digunakan dengan kod adsense kita sendiri, jadi jika Transposh membantu anda menjana pendapatan $ 10K, anda akan membeli kami kopi! Jadi, terima kasih! Untuk menerangkan sesuatu perkara agak, kita tidak mewujudkan ruang iklan tambahan pada laman anda, dan kita tidak akan memasukkan apa-apa iklan atau menukar layout anda, jika anda tidak mempunyai iklan, kita tidak melakukan apa-apa. Jika anda berfikir bahawa ini adalah meminta terlalu banyak, anda hanya boleh memadam plugin kami, wisel lagu lembut, dan dalam perjalanan anda. Jika anda mahu lesen komersil, kita tidak menjual mereka lagi, tetapi mereka mungkin akan lebih mahal.

Perubahan-perubahan lain untuk versi ini termasuk:

  • Tambah Catalan dan Hindi sokongan untuk Bing – bercakap untuk dirinya sendiri.
  • Dropdown widget bertambah baik css – ia sebenarnya kelihatan jauh lebih baik sekarang.
  • Sokongan untuk memcached – jika APC dan cache opcode yang lain terlalu banyak untuk anda, sekarang anda boleh menggunakan memcached dan mempunyai banyak keseronokan.
  • Lebih baik 404 pengendalian halaman (tidak mewujudkan hubungan baru ke halaman yang tidak wujud) – bermaksud crawler google akan kerumitan laman web anda kurang.
  • Betulkan caching pada cloudsites rackspace – mereka telah x-cache yang dipasang untuk cache opcode, tetapi dengan tiada memori pengguna, yang menyebabkan lonjakan di sebuah fail log – telah ditetapkan.
  • Banyak pembaikan yang lebih kecil – Kita mungkin menghitung orang-orang, tetapi kita tidak mempunyai cukup jari.
  • Terjemahan Turki oleh Semih Yesilyurt.

Kami berharap anda akan menikmati versi ini, dan seperti biasa, menunggu komen anda, idea-idea, cadangan dan lidah-lidah api.

PS – Diuji pada WordPress 3.3 beta4, karya-karya agung.

, , , , , ,

  1. #1 oleh DDART pada November 29, 2011 - 7:18 di

    Short code call transposh widget does not work and causes fatal error

    - Fatal: Call to undefined method transposh_plugin_widget:: transposh_widget () in on line 407

    Bagaimana saya boleh membaiki? The whole site is not working after the update because of this error :(

    • #2 oleh ofer pada November 29, 2011 - 7:42 di

      Halo,

      Ya, a bugplease replace the 407 line with:
      $GLOBALS['my_transposh_plugin']->widget->widget($args, $instance);
      and try again,

      It might also be worthwhile to know that you can send a param now defining the look of the plugin inside the $instance variable

      • #3 oleh DDART pada November 29, 2011 - 10:10 di

        Terima kasih! Yes this is debug code! But now displays listbox and I want to display flags. How to do it wrong so that flags are displayed.

        • #4 oleh ofer pada November 29, 2011 - 12:15 am

          SInce I guess you are calling it like:
          transposh_widget();
          You should now call it something like:
          transposh_widget(array(), array('title' => 'Translation', 'widget_file' => 'flags/tpw_flags.php'));

          • #5 oleh DDART pada November 29, 2011 - 12:39 am

            Terima kasih!
            Everything has worked perfectly :)

          • #6 oleh Matt pada November 29, 2011 - 12:45 am

            Hi I’m having the same problem. Where do I locate 407 line so I can replace it with the above debug code please? Terima kasih

          • #7 oleh ofer pada November 29, 2011 - 8:45 am

            its in the transposh_widget.php in the wp directory of the plugin, if you can’t manage, use the contact us form on this site and we’ll send you a fixed version

          • #8 oleh asf pada November 29, 2011 - 1:06 am

            Terima kasih, but how to load CSS?
            I use transposh_widget(susunan(), susunan(‘title’ => ‘Translation’, ‘widget_file’ => ‘flags/tpw_flags.php’));
            Flags are now, Namun, does not load tpw_flags.css.

          • #9 oleh ofer pada November 29, 2011 - 11:43 am

            Ya, this is a tricky part,

            there are two ways to handle this, one is that I will think of some way to correct it (clueless) and the other is to add the widget to a sidebar you are not displaying which will force the addition of the css.
            This code was indeed quite tricky because now css is added (and aggregates) for all active widgets, and there is no way to know for sure which sidebars will display on which page, so active widgets are considered.
            an alternative way will be to force the addition of the correct css in the actual correct place in the execution of the page, which means adding an action on wp_print_scripts and for which executing the widget class add_transposh_widget_cssI think this will be too much work, so going with the hackerish way is not such a bad idea.

            good night

  2. #10 oleh John pada November 29, 2011 - 9:55 di

    Hai.
    Thanks for the work you do for us.
    Can you clarify where to find the API KEY to insert the plugin?
    Terima kasih.

    • #11 oleh ofer pada November 29, 2011 - 12:08 am

      Pertama, I will clarify that you currently do not need any keys and everything will work.
      I can tell you that the best way to find the keys is to use a search engine to find them, just look forX translate API Keywhere X is the name of your favorite one,
      I am not posting direct links because:
      1. They constantly change their urls, and don’t bother to update anybody, so I don’t want to mislead future readers
      2. I am not getting paid for referring to them, nor do I think it is needed that you do that
      3. I am being a bit lazy ;)

      Semoga sukses

  3. #12 oleh yann pada November 29, 2011 - 4:51 am

    Really much more quick, congratulations.
    Nevertheless, I have a problem to create a sitemap who will consider all the languages. Do you have a solution for this problem?

    • #13 oleh ofer pada November 29, 2011 - 8:46 am

      There is a patch available for Google XML Sitemaps plugin, dan juga – Versi 4 beta of that Plugin needs no patch. You can find the patch on our trac site

  4. #14 oleh Fabrice Meuwissen pada November 29, 2011 - 11:10 am

    so better to wait for the new 0.81 versi ? if we don’t want to patch manually ?

    • #15 oleh ofer pada November 29, 2011 - 11:25 am

      I promise there will be new bugs in 0.8.1 ;) but seriously, you can write me and I’ll send you a patched version, or patch it yourself. Juga – most users are not using this feature, which can also be replaced by placing a widget copy in a sidebar and instead of inserting the widget code directly, inserting the sidebar

  5. #16 oleh Ezio pada November 30, 2011 - 1:41 di

    Halo, first of all thanks for your wonderful plugin. Kedua, after the last update I’m unable to edit my translation. When I clich the edit button the page change in translate mode but I don’t have any popup window to modify. Bolehkah anda membantu saya?

    Terima kasih

    • #17 oleh ofer pada November 30, 2011 - 7:01 am

      Please use the contact form and we’ll work with you on fixing this, probably a new conflict with other plugins

    • #18 oleh Thomas pada November 30, 2011 - 9:44 am

      Ezio, can you check if the popup window is now displaying at the end of your page without style?

  6. #19 oleh Matt pada November 30, 2011 - 7:53 di

    Hi there. I’ve corrected the bug but I can’t change the dropdown back to flags. Do I add the above code to the bottom of the widget.php or a different file?

    • #20 oleh ofer pada November 30, 2011 - 7:00 am

      You need to change the code that called the widget, it was explained above

  7. #21 oleh Cristina pada November 30, 2011 - 9:59 di

    Halo, ho appena installato la nuova Versione 0.8.0, ma ora non funziona più nullache fare? terima kasih!

    • #22 oleh ofer pada November 30, 2011 - 7:02 am

      Please contact us directly and we’ll try to fix it

      • #23 oleh Cristina pada Disember 5, 2011 - 12:54 am

        Grazie per la disponibilità a tutto il team: ho risolto il problema canbiando JQuery e lo script che lo collegava :)

  8. #24 oleh deborah gamble pada November 30, 2011 - 4:07 am

    Transposh doesn’t display properly in version 0.8.0 Is there a fix?

    • #25 oleh ofer pada November 30, 2011 - 7:05 am

      Hello there, seems like a CSS issue, contact us directly to work on a fix

  9. #26 oleh Glenn Newland pada November 30, 2011 - 5:44 am

    Hi guys,

    I am greatful for all the work you have put into the new release, considering how hard the google API crisis might have been to deal with at first. WELL DONE!

    What I am curious about is how can I ensure my site is being listed in international search engines, in multiple language? Maksud saya, thanks to transposh my site is now readable in 3 Bahasa, but is that the same as if it werehostedin thoe languages or do I need to do something (like cache each page or create a multisite?)

    Thanks for the new release, and API fix.

    The Red Bicycle

    • #27 oleh ofer pada November 30, 2011 - 7:08 am

      Hello Glenn

      You have a problem on your site which will not allow search engines to see your sites, my guess is a database issue, but it needs testing, contact us directly for working on fixing this

      • #28 oleh Glenn Newland pada Disember 2, 2011 - 9:56 di

        OK Ofer, I have contacted you directly. Subsequently, I have also removed Disallow: /index.php/* from my robots.txt file. Maybe this was the cause?

        • #29 oleh ofer pada Disember 2, 2011 - 10:06 di

          Dalam, the cause is missing database tables, I have written to you directly about the issue with how to solve it.

  10. #30 oleh Charlie pada Disember 1, 2011 - 12:38 di

    Hi Transposh peeps,
    Great update. Is there a way of making the flags any bigger? They look a bit lost on the white background.
    Terima kasih seperti biasa.

  11. #32 oleh limos pada Disember 1, 2011 - 6:01 di

    The new plugin broke my site after installing it today. I wish I had not upgraded because my entire site is down now if I enable the plugin :(

    • #33 oleh ofer pada Disember 1, 2011 - 12:25 am

      Please try re-installing the plugin from wordpress.org, a fix for a breakage for users of the widget function was deployed, you can also contact us directly and we’ll help

  12. #34 oleh Berbeza pada Disember 2, 2011 - 10:53 di

    Cant edit text with ver. 0.8, whats wrong?

    At this site http://www.wcafeasia.com have installed the plugin but can not edit any text at all?

    Have another site with an erlier version that works good, I have usel same settings with this one (0.8), but cant edit.

    I have insert à api key from Google (for browser)

    Anyone who knows?

    • #35 oleh ofer pada Disember 2, 2011 - 11:29 di

      Your theme is loading a jQuery1.3.2 (which is ancient), fix it and will be so very happy

      • #36 oleh Berbeza pada Disember 2, 2011 - 1:18 am

        Thanks for reply! Do you have any idea how to do that?

        • #37 oleh ofer pada Disember 2, 2011 - 3:21 am

          Either:
          Change theme
          Edit current theme files to remove the include (probably in header)
          Delete the file itself or replace it

  13. #38 oleh limos pada Disember 3, 2011 - 6:39 am

    Re-installed .80 version per instructions, and the site is still 100% broken if I enable the plugin.

    Word of cautiondo not install this version, it may break your site like it did mine.

    I deleted the plugin folder, unzipped a fresh copy of 0.80 and still the entire site goes belly up. Nothing displaysit will become a white browser screen.

    • #39 oleh ofer pada Disember 4, 2011 - 8:19 di

      Halo,

      Saya bersetuju, never install any upgrades, everything might break, but to your point, look at the FAQ, this is probably the memory limit issue, but not that we see a reason why it should be connected to the upgrade.

      Sekarang, if you want to get this issue resolved, try contacting us directly, we normally try to help. Sometimes we don’t

      Semoga sukses

  14. #40 oleh Jijo Sunny pada Disember 4, 2011 - 6:25 di

    Thumbs up guys!
    The plugin is playing perfect than never before!
    Few things to clarify:
    1. Could you please explain how to add translated pages to sitemap? (I didn’t get it when you said about it in the previous comments).
    2. Is this okay with WP Super Cache?

    Terima kasih!

  15. #42 oleh Tom pada Disember 4, 2011 - 10:28 di

    Pertama, let me say, you have a great plugin. I am in the USA, working on a directory site in Morocco. The default language on the site is French. On this site, businesses may add a listing to the directory (standard post type) using a different language. For instance if a business were to add a listing in English, the plugin will translate the post (listing) into all the active languages, except the default language (because it believes it is French?). In other words, the English version and the French translation are both actually the same English version. The site owners want all of the posts to display in the default language; and be available in each of the active languages. Is there a shortcode to wrap the entire listing in, so it will display in the default language? (misalnya [tp translate="en"]Halo[/tp] and it will display Bonjour. Or, is there some other way to accomplish this?

    Thx
    Tom

  16. #43 oleh Fernanda pada Disember 6, 2011 - 3:02 di

    Has someone having the same problem?
    It does not translate anymore

    • #44 oleh ofer pada Disember 7, 2011 - 1:10 di

      If you still have problems, don’t hesitate to use the contact form on this site, and we’ll do our best to help

  17. #45 oleh Tom pada Disember 6, 2011 - 5:23 di

    Baik, I didnt hear anything back. Namun, I did figure out how to accomplish what I wanted to be able to do. Simply wrap the content in a div tag with a class of mylang.

    Juga, FWIW, for anyone looking through the comments for any information on whether or not this plugin will translate custom post types. Even though the plugin does not recognize a theme’s custom post types, you can convert the plugin to work with custom post types, fairly quickly. You need to edit two files. You need to edit the on_ajax_tp_translate_all() function in transposh_admin.php and the on_admin_menu() function, in transposh_postpublish.php.

    Tom

  18. #46 oleh wukungfu pada Disember 6, 2011 - 4:12 am

    你好:
    我第一次使用這個感覺是個很棒的插件。

    但是我目前遇到了問題
    在安裝後所有的頁面出現了:
    錯誤 330 (bersih::ERR_CONTENT_DECODING_FAILED)

    請問我該如何解決?

    • #47 oleh ofer pada Disember 7, 2011 - 1:08 di

      Halo,

      My guesses will be problems with memory, or double gzipping issue

      Semoga sukses

  19. #48 oleh Stacy & James pada Disember 6, 2011 - 5:55 am

    millions thanks Ofer for sharing your project.

    Apart from straight translation it does accept multi-languages domains if more than 1 default language is used in a domain.

    Thanks also for private help for small troubleshooting we had.

    all the best

  20. #49 oleh wukungfu pada Disember 7, 2011 - 9:49 di

    你好我還在找方法解決問題。

    想請問我啟用時會出現:
    “Kita tidak mampu untuk mencari yang disokong di-caching enjin memori, memasang salah satu boleh meningkatkan prestasi. Semak Transposh Soalan Lazim”
    我是要忽略它還是要處理它才可以順利運作?

    ==========

    另外我目前使用固定網址的設定是數值式範例:http://www.wukungfu.com/archives/123
    這樣的網址設定會有影響嗎?

    期待能趕快使用~謝謝你的幫忙

    • #50 oleh ofer pada Disember 7, 2011 - 12:02 am

      Hai,
      To your questions:
      1. You can safely ignore this warning, it only regards performance, the plugin will work without this
      2. The permalink structure will be kept.

      Semoga sukses

  21. #51 oleh wukungfu pada Disember 7, 2011 - 1:09 am

    你好

    關於錯誤:
    錯誤 330 (bersih::ERR_CONTENT_DECODING_FAILED)

    後來我把GZIP關閉就解決了^^。
    =====

    目前順利開啟了插件
    可是我在側邊欄看不到跟你一樣的翻譯工具
    如何讓插件融入我的側邊欄?

    謝謝你感覺我快成功了!^^

    • #52 oleh ofer pada Disember 7, 2011 - 1:28 am

      Halo,

      To put the plugin in the sidebar, go to your appearance menu and drag the transposh widget to the sidebar, choose the widget style you want and the title and that’s it

  22. #53 oleh wukungfu pada Disember 7, 2011 - 1:26 am

    我看到後台設置要填寫:
    MSN API key
    Google API key

    請問我該去哪邊申請MSN API 與 GOOGLE API?

    謝謝你不斷的幫忙^^

    • #54 oleh ofer pada Disember 7, 2011 - 1:30 am

      You can add them if you wish, follow instructions on their appropriate sites, but for now this is not needed

  23. #55 oleh wukungfu pada Disember 7, 2011 - 2:02 am

    感謝你終於可以顯示了。

    不過為什麼我選擇其他語言(例如:英文)頁面卻沒有被翻譯呢?

    我的網站:http://www.wukungfu.com

    感謝你大力的幫忙^^

    • #56 oleh ofer pada Disember 7, 2011 - 2:24 am

      That’s because your theme is loading a very old jQuery (1.3.2), so edit it and see that it will work

  24. #57 oleh wukungfu pada Disember 7, 2011 - 2:27 am

    不好意思!

    我剛把插件拖側邊攔了
    我用自己的電腦可以看的到
    可是換其他的電腦使用時卻看不到。

    這是為什麼?

    對不起問題這麼多~

  25. #58 oleh George pada Disember 7, 2011 - 3:38 am

    Happy ….riuscito a farlo funzionare

    Meraviglioso plug-in ….

    Grande lavoro Ofer

    Terima kasih.

  26. #59 oleh wukungfu pada Disember 8, 2011 - 2:11 am

    不好意思可以請你再幫我看看我的網頁是什麼問題嗎?

    對於jQuery我有稍微調整過。

    目前已經啟用插件不過頁面、文章還是沒有被完整的翻譯
    請問我該如何解決?

    謝謝你

  27. #60 oleh Malaikat pada Disember 11, 2011 - 1:24 di

    The spaces before and after bolded text disappear in the translations.

    Can you see it here?

    • #61 oleh Malaikat pada Disember 11, 2011 - 1:28 di

      well, i think is using the strong tag instead the bold

    • #62 oleh ofer pada Disember 12, 2011 - 1:33 di

      I actually think it should work fine, no reason it should not, please provide a url where it is not

  28. #63 oleh Malaikat pada Disember 12, 2011 - 8:22 am

    OK!
    You can see in http://intl.relatividad.org/pt/relatividade/albert-einstein-biografia-e-obras/
    and in all translated pages that the firststrongsentence is with the error, but in
    http://intl.relatividad.org/relativity/albert-einstein-biography-and-works/
    (the original)
    is correct

  29. #64 oleh John pada Disember 13, 2011 - 10:26 di

    I’d like to continue to use your great plugin, but this sends the server on overload.
    I installed memcached and W3 Total Cache (only database cache enabled), but the results are disappointing.
    If active Transposh on a blog having 7.000 jawatan, this alone is enough to crash the CPU.
    Setiap cadangan?

    • #65 oleh WWWDN pada Disember 29, 2011 - 11:59 di

      what are your server specs my budget server handles 3 huge websites with 20K+ posts each with transposh installed. Perhaps try a reverse proxy like Nginx?

(tidak akan diterbitkan)


*