Верзија 0.8.0 – Напад на API-јата


Кога API-јата борба

Па пред крајниот рок поставени од страна на Google Translate API за да престане да работи, ние конечно беа во можност да ги собере тие нови порака. Ова следи долг период на проблеми кои беа презентирани од страна на постара верзија, главно поради фактот што Google одлучи да претставуваат ограничувања за користење пред крајниот рок што предизвика претходните верзии барања за поддршка на напливот на нови височини. Промената на Google, исто така, предизвика ограничување API во превод Бинг API, од корисници беа префрлување мотори, кој е преоптоварен на Transposh хард кодирани API клуч за Бинг.

Сепак, ние преживеале овој период за да ви овозможи со нашата најнова и најголема верзија. Оваа верзија поправки овие проблеми да се обезбедување на бајпас (Меѓу за Google и Temp клучеви за МСН) и исто така ви овозможува да ја користите вашата сопствена клучни директно (благодарение на Ренди од шпионски центар за помош за обезбедување на нас со неговите клучни за тестирање) кои ќе имаат предност над оние други методи. При тоа бевме во можност да драматично подобрување на инфраструктурата на приклучок, промена на начинот на AJAX повици беа изведени на начин кој е роден во WordPress (e.g. Ако вашиот admin страница работи, веројатно треба да работат, како и). При тоа дека бевме во можност да се намали го вклучите Javascript-кодот е потребно за на заднинската притоа овозможувајќи му на Преведете сите функција да работат многу побрзо (и поддршка на Apertium премногу!).

Во овој момент ние имавме солидна верзија, што се чинеше како добра работа да се ослободи, но не, моравме да има некои други карактеристики во, па ние конечно реши да се справи со прашањето за повеќе контроли поддршка (и насловот избор премногу, yippee!). Изгледа прилично јасен? но не, Ова предизвика голема преработи на нашата инфраструктура, како и графичка. Всушност, тоа подобрување доста драстично со промена на начинот на CSS е додаден, и начинот на Додатоци известен серверите на промени во јазикот (сега се избегне бескорисни пост повик до серверот). Додека пишува дека сме биле доволно среќни да се сопнуваат врз PHP5.3 да PHP5.2 некомпатибилност проблем со сет на други проблеми кои се одржа нашата порака назад уште една недела. Ние сакаме да им се заблагодарам на многу корисници кои ги постави со нашите бета изданија и ни помогна да се најдат проблемите кои биле скриени под слоеви на кодот и комплексноста.

Ние, исто така ја искористи оваа можност да ги промениме нашите услови малку, Ако се прикажување на реклами на Google од AdSense на вашиот преведени страници, ние ќе ги 1/1000 на тој простор за употреба со нашите сопствени AdSense кодот, Значи, ако Transposh е да ви помогнеме генерира приходи од $ 10K ќе ни купување кафе! Така благодарение! За да се разјаснат работите малку, ние не создаде дополнителни рекламен простор на својата страница, и ние не ќе ја внесе реклами или промена на изгледот, Ако немаат реклами, не правиме ништо друго. Ако мислите дека ова е бара премногу, едноставно може да ги избрише нашите приклучок, свирче мека мелодија, и бидете на вашиот пат. Ако сакате комерцијални лиценца, ние не ги продаде уште, но тие најверојатно ќе чини повеќе.

Други промени во оваа верзија се:

  • Додадена каталонски и хинди поддршка за Бинг – зборува за себе.
  • Паѓачкото елемент подобрена CSS – тоа всушност изгледа многу подобро сега.
  • Поддршка за Memcached – ако АПЦ и други opcode кешира беа премногу за вас, сега можете да го користите memcached и многу забава.
  • Подобро 404 Страна ракување (не се создадат нови линкови до непостоечки страници) – што значи дека Google Роботот ќе расправаме вашиот сајт помалку.
  • Поправи кеширање на Rackspace cloudsites – тие X-кешот инсталирани за opcode кеш, но не со меморија за корисникот, што предизвика бран во logfiles – сега фиксна.
  • Многу повеќе ситни поправки – Ние може да сметаме оние, но ние немаме доволно прсти.
  • Турски превод Semih Yesilyurt.

Се надеваме дека ќе уживате во оваа верзија, и како и секогаш, чекање за вашите коментари, идеи, предлози и пламен.

PS – Тестирано на WordPress 3.3 beta4, работи одлично.

, , , , , ,

  1. #1 од страна на DDART на Ноември 29, 2011 - 7:18 на

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

    - Фатална грешка: Call to undefined method transposh_plugin_widget:: transposh_widget () in on line 407

    Како да го надминете овој? The whole site is not working after the update because of this error :(

    • #2 од страна на ofer на Ноември 29, 2011 - 7:42 на

      Здраво Има,

      Да, 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 од страна на DDART на Ноември 29, 2011 - 10:10 на

        Ви благодариме! 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 од страна на ofer на Ноември 29, 2011 - 12:15 часот

          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 од страна на DDART на Ноември 29, 2011 - 12:39 часот

            Ви благодариме!
            Everything has worked perfectly :)

          • #6 од страна на Мет на Ноември 29, 2011 - 12:45 часот

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

          • #7 од страна на ofer на Ноември 29, 2011 - 8:45 часот

            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 од страна на asf на Ноември 29, 2011 - 1:06 часот

            Thanks, but how to load CSS?
            I use transposh_widget(низа(), низа(‘title’ => ‘Translation’, ‘widget_file’ => ‘flags/tpw_flags.php’));
            Flags are now, сепак, does not load tpw_flags.css.

          • #9 од страна на ofer на Ноември 29, 2011 - 11:43 часот

            Да, 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 од страна на Јован на Ноември 29, 2011 - 9:55 на

    Здраво.
    Thanks for the work you do for us.
    Can you clarify where to find the API KEY to insert the plugin?
    Ви благодариме.

    • #11 од страна на ofer на Ноември 29, 2011 - 12:08 часот

      Прв, 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 ;)

      Среќно

  3. #12 од страна на yann на Ноември 29, 2011 - 4:51 часот

    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 од страна на ofer на Ноември 29, 2011 - 8:46 часот

      There is a patch available for Google XML Sitemaps plugin, и – Верзија 4 beta of that Plugin needs no patch. You can find the patch on our trac site

  4. #14 од страна на Фабрис Meuwissen на Ноември 29, 2011 - 11:10 часот

    so better to wait for the new 0.81 Верзија за ? if we don’t want to patch manually ?

    • #15 од страна на ofer на Ноември 29, 2011 - 11:25 часот

      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. Исто така – 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 од страна на Ецио на Ноември 30, 2011 - 1:41 на

    Здраво, first of all thanks for your wonderful plugin. Втора, 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. Можете ли да ми помогнете?

    Thanks

    • #17 од страна на ofer на Ноември 30, 2011 - 7:01 часот

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

    • #18 од страна на Томас на Ноември 30, 2011 - 9:44 часот

      Ецио, can you check if the popup window is now displaying at the end of your page without style?

  6. #19 од страна на Мет на Ноември 30, 2011 - 7:53 на

    Здраво. 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 од страна на ofer на Ноември 30, 2011 - 7:00 часот

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

  7. #21 од страна на Кристина на Ноември 30, 2011 - 9:59 на

    Здраво, ho appena installato la nuova Versione 0.8.0, ma ora non funziona più nullache fare? благодарам!

    • #22 од страна на ofer на Ноември 30, 2011 - 7:02 часот

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

      • #23 од страна на Кристина на Декември 5, 2011 - 12:54 часот

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

  8. #24 од страна на deborah gamble на Ноември 30, 2011 - 4:07 часот

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

    • #25 од страна на ofer на Ноември 30, 2011 - 7:05 часот

      Здраво постои, seems like a CSS issue, contact us directly to work on a fix

  9. #26 од страна на Глен Newland на Ноември 30, 2011 - 5:44 часот

    Здраво момци,

    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? Мислам, thanks to transposh my site is now readable in 3 јазици, 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 од страна на ofer на Ноември 30, 2011 - 7:08 часот

      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 од страна на Глен Newland на Декември 2, 2011 - 9:56 на

        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 од страна на ofer на Декември 2, 2011 - 10:06 на

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

  10. #30 од страна на Чарли на Декември 1, 2011 - 12:38 на

    Hi Transposh peeps,
    Great update. Is there a way of making the flags any bigger? They look a bit lost on the white background.
    Благодарение како и секогаш.

  11. #32 од страна на лимузини на Декември 1, 2011 - 6:01 на

    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 од страна на ofer на Декември 1, 2011 - 12:25 часот

      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 од страна на Различни на Декември 2, 2011 - 10:53 на

    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 од страна на ofer на Декември 2, 2011 - 11:29 на

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

      • #36 од страна на Различни на Декември 2, 2011 - 1:18 часот

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

        • #37 од страна на ofer на Декември 2, 2011 - 3:21 часот

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

  13. #38 од страна на лимузини на Декември 3, 2011 - 6:39 часот

    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 од страна на ofer на Декември 4, 2011 - 8:19 на

      Здраво,

      Се согласувам, 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.

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

      Среќно

  14. #40 од страна на Jijo Сонцето на Декември 4, 2011 - 6:25 на

    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?

    Ви благодариме!

  15. #42 од страна на Том на Декември 4, 2011 - 10:28 на

    Прв, 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? (на пример, [tp translate="fr"]Здраво[/TP] and it will display Bonjour. Или, is there some other way to accomplish this?

    Thx
    Том

  16. #43 од страна на Fernanda на Декември 6, 2011 - 3:02 на

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

    • #44 од страна на ofer на Декември 7, 2011 - 1:10 на

      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 од страна на Том на Декември 6, 2011 - 5:23 на

    И, I didnt hear anything back. Сепак, 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.

    Исто така, 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.

    Том

  18. #46 од страна на wukungfu на Декември 6, 2011 - 4:12 часот

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

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

    請問我該如何解決?

    • #47 од страна на ofer на Декември 7, 2011 - 1:08 на

      Здраво Има,

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

      Среќно

  19. #48 од страна на Стејси & Џејмс на Декември 6, 2011 - 5:55 часот

    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 од страна на wukungfu на Декември 7, 2011 - 9:49 на

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

    想請問我啟用時會出現:
    “Не можевме да се најде поддржани во-меморија кеширање мотор, инсталирање може да се подобри ефикасноста на. Проверете Transposh Прашања и одговори”
    我是要忽略它還是要處理它才可以順利運作?

    ==========

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

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

    • #50 од страна на ofer на Декември 7, 2011 - 12:02 часот

      Здраво,
      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.

      Среќно

  21. #51 од страна на wukungfu на Декември 7, 2011 - 1:09 часот

    你好

    關於錯誤:
    錯誤 330 (нето::ERR_CONTENT_DECODING_FAILED)

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

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

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

    • #52 од страна на ofer на Декември 7, 2011 - 1:28 часот

      Здраво Има,

      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 од страна на wukungfu на Декември 7, 2011 - 1:26 часот

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

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

    謝謝你不斷的幫忙^^

    • #54 од страна на ofer на Декември 7, 2011 - 1:30 часот

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

  23. #55 од страна на wukungfu на Декември 7, 2011 - 2:02 часот

    感謝你終於可以顯示了。

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

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

    感謝你大力的幫忙^^

    • #56 од страна на ofer на Декември 7, 2011 - 2:24 часот

      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 од страна на wukungfu на Декември 7, 2011 - 2:27 часот

    不好意思!

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

    這是為什麼?

    對不起問題這麼多~

  25. #58 од страна на Џорџ на Декември 7, 2011 - 3:38 часот

    Happy ….riuscito a farlo funzionare

    Meraviglioso plug-in ….

    Grande lavoro Ofer

    Ви благодариме.

  26. #59 од страна на wukungfu на Декември 8, 2011 - 2:11 часот

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

    對於jQuery我有稍微調整過。

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

    謝謝你

  27. #60 од страна на Ангел на Декември 11, 2011 - 1:24 на

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

    Can you see it here?

    • #61 од страна на Ангел на Декември 11, 2011 - 1:28 на

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

    • #62 од страна на ofer на Декември 12, 2011 - 1:33 на

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

  28. #63 од страна на Ангел на Декември 12, 2011 - 8:22 часот

    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 од страна на Јован на Декември 13, 2011 - 10:26 на

    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 posts, this alone is enough to crash the CPU.
    Сите предлози?

    • #65 од страна на WWWDN на Декември 29, 2011 - 11:59 на

      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?

(не ќе бидат објавени)


*