Transposh - Breaking nyelvi akadályok

A transposh.org wordpress plugin kirakat és támogató webhely

  • Kezdő lap
  • Írjon nekünk
  • Letöltés
  • GYIK
    • Adományoz
  • Ismertető
    • Widget Showcase
  • Rólunk

Változat 1.0.9.5 – Harcolni a kód rothadásával

Március 15, 2025 by Ofer 10 hozzászólás

Után 16 Évek működése és több mint két éve új kiadás nélkül, Pluginünk egy széles körben elterjedt kihívással találkozott, amelyet kód rothadásnak hívtak. Ez a kérdés akkor merül fel, amikor a funkcionalitás az idő múlásával romlik - még a plugin kódjának megváltoztatása nélkül is - külső tényezőknek igazolható. Új WordPress kiadások, Frissített PHP verziók, és a fordítási szolgáltatások eltolódásai megzavarhatják a gondosan megtervezett szolgáltatásokat.

Változatban 1.0.9.5, Megkaptuk ezeket a kihívásokat, Elsődleges hangsúlyt fektetve a fordítómotorokra. Eltávolítottuk az elavult kódot, és új megvalósításokat vezettünk be a Yandex és a Baidu Translation Services támogatásának helyreállítására, amely az utóbbi években abbahagyta a munkát. Ezek a frissítések biztosítják, hogy a fordítási funkciók ismét teljesen működőképesek legyenek. Emellett, Bővítettük a nyelvi támogatást, hogy új nyelveket tartalmazzunk ezekhez a fordítási szolgáltatásokhoz az idő múlásával.

Ez a kiadás tükrözi elkötelezettségünket a plugin megbízható és hatékony megőrzése iránt, A technológiák és szolgáltatások fejlődő tájához való alkalmazkodás.

Bemutattunk egy új widgetet, amely a Standard Flag hangulatjeleket használja, amelyeket beépítettek az évek során beállított hangulatjelekbe. Ez a frissítés jelentősen leegyszerűsíti a widget kódját, miközben lehetővé teszi a zászlók egyszerű testreszabását az Ön egyedi igényeinek kielégítéséhez.

Megnézheti ezt az új widget, akcióban a webhelyünkön, Ahol hozzáadottunk egy okos CSS -trükköt, amely az aktuális nyelvi ikont kétszer olyan nagy, mint a többiek, csak a következő két kódsorral érte el!
.transposh_flags{font-size:22px}
.tr_active{font-size:44px; float:left}

Reméljük, hogy élvezni fogja ezt az új verziót!

Kategória: Általános üzenetek, Release közleményei, Szoftver frissítések Tagged With: hangulatjel, kiadás, Widget, wordpress plugint

hozzászólás

  1. Matze Karajanov szerint

    Március 16, 2025 nál nél 3:52 am

    How to translate your meta title and description with transposh!

    After some “vibe coding” as they say (people who don’t know how to code but still code with AI) I figured out in a creative way how to translate the meta title and description when using transposh.

    As an SEO marketing guy that was something that really bothered me. Translated sites, with English results in google.

    So how did I do it.

    First I added this php snippet (created by Grok 3)
    That translated the meta title for me.

    I called it Meta Title and Description in WP Snippet:

    add_filter('rank_math/frontend/title', function($title) {
    global $my_transposh_plugin;

    // Controleer of Transposh actief is
    if (!isset($my_transposh_plugin) || !is_object($my_transposh_plugin)) {
    return $title;
    }

    // Haal de huidige taal op
    $lang = transposh_get_current_language();

    // Vertaal alleen als de taal niet de standaardtaal is
    if ($lang && !$my_transposh_plugin->options->is_default_language($lang)) {
    // Gebruik fetch_translation om de title te vertalen
    list(, $translated_title) = $my_transposh_plugin->database->fetch_translation($title, $lang);
    if ($translated_title) {
    $title = $translated_title;
    }
    }

    return $title;
    });

    add_filter('rank_math/frontend/description', function($description) {
    global $my_transposh_plugin;

    // Controleer of Transposh actief is
    if (!isset($my_transposh_plugin) || !is_object($my_transposh_plugin)) {
    return $description;
    }

    // Haal de huidige taal op
    $lang = transposh_get_current_language();

    // Vertaal alleen als de taal niet de standaardtaal is
    if ($lang && !$my_transposh_plugin->options->is_default_language($lang)) {
    // Gebruik fetch_translation om de description te vertalen
    list(, $translated_description) = $my_transposh_plugin->database->fetch_translation($description, $lang);
    if ($translated_description) {
    $description = $translated_description;
    }
    }

    return $description;
    });

    – After this snippet > The Title was translated, but not the description. After further vibing and reaching a dead-end with Grok i figured that basically the transposh plugin was fetching the translation from the database multiple times.

    So i told Grok, hey if we add the meta title and description in the footer (hidden) as text.
    And Transposh translates it, if we than pull the description from the database that transposh manages for us wouldn’t it be translated?

    And Grok3 confirmed and gave me this snippet (after giving me a compliment for thinking outside the box)

    // Voeg de meta title en description toe aan de footer, alleen als de description is ingevuld
    add_action('wp_footer', function() {
    global $post;
    if (is_singular() && $post) {
    $meta_title = get_post_meta($post->ID, 'rank_math_title', true);
    $meta_description = get_post_meta($post->ID, 'rank_math_description', true);

    // Controleer of de meta description is ingevuld
    if (!empty($meta_description)) {
    // Standaard meta title als deze leeg is
    if (empty($meta_title)) {
    $meta_title = get_the_title($post->ID);
    }
    ?>

    document.addEventListener('DOMContentLoaded', function() {
    var metaElement = document.getElementById('transposh-meta');
    if (metaElement) {
    var translatedText = metaElement.innerText || metaElement.textContent;
    // Splits de tekst weer op in title en description (na vertaling)
    var parts = translatedText.split(' | ');
    var translatedDesc = parts[1] || translatedText; // Gebruik description na de |, anders hele tekst

    var metaTag = document.querySelector('meta[name="description"]');
    if (metaTag) {
    metaTag.setAttribute('content', translatedDesc);
    } else {
    var newMeta = document.createElement('meta');
    newMeta.name = 'description';
    newMeta.content = translatedDesc;
    document.head.appendChild(newMeta);
    }
    }
    });

    <?php
    }
    }
    });

    Just note, that I was using Rankmath as my SEO plugin, This maybe will work with Yoast? Or Other plugins, but I am sure if you feed this entire comment to an AI tool of your choice it could fix the correct fields for Yoast and others.

    Happy Translating guys and thank you for picking up the support of this plugin after so many years 🙂
    One of my top 3 secret weapons for sure!

    Válasz
  2. Matze Karajanov szerint

    Március 16, 2025 nál nél 3:57 am

    Sorry I forgot to mention something.

    // Voeg de meta title en description toe aan de footer, alleen als de description is ingevuld

    If you’d translate this to english it says Add the meta title and description to the footer only if the description is filled in.

    The reason why only if it’s filled in is the same reason why I figured this footer trick would work.

    If I had a unique meta description for my pages, that was not on the website. It was not translated.

    But when I didn’t add a translation at all, and kept it empty, it will pull the top words of the page. So when I only added the first snippet above, it was only translating the title, because the title is also written on the page. but the meta description was unique and nowhere seen on the website.

    That’s basically how I figured out if we add an invisible meta description in the footer > we can translate meta titles and descriptions with that first snippet above.

    So you need both snippets for it to work.
    Or only the first if you never fill in your descriptions anyways. don’t bother.

    Válasz
  3. Bob szerint

    Március 18, 2025 nál nél 3:51 am

    When I save post, It shows this error:
    Figyelmeztetés: Undefined array key “b” in \wp-content\plugins\transposh-translation-filter-for-wordpress\core\constants.php on line 1702

    I solved it by changing this code on line 1702

    ha ($langrec[‘engines’][$motor]) {

    nak nek

    ha (isset($langrec[‘engines’][$motor])) {

    Válasz
    • Ofer szerint

      Március 18, 2025 nál nél 11:11 am

      Köszönjük, hogy jelentette a, fixed in https://github.com/oferwald/transposh/commit/70f1a6bafc72a0358b42ada8a576a9f02b5ed136

      Válasz
  4. Lulu Cheng szerint

    Március 28, 2025 nál nél 4:17 am

    Helló, I use Ranmath for my website, Butthe title and description will not be translated,But the version a few years ago was OK,Can this plugin be optimized? Kösz

    Válasz
    • Ofer szerint

      Március 30, 2025 nál nél 2:05 miniszterelnök

      Had I known what Ranmath is, than maybe. I can only assume they changed something. And I can’t test things I know nothing of.

      Válasz
      • Lulu Cheng szerint

        Március 30, 2025 nál nél 5:41 miniszterelnök

        Sorry, I entered a wrong information, it is Rank math.

        Válasz
  5. wu szerint

    április 5, 2025 nál nél 10:11 am

    I installed the latest version, but the language bar is blank. Please take the time to update the error. Köszönöm.

    Válasz
  6. Stacy szerint

    április 8, 2025 nál nél 2:52 miniszterelnök

    Hello and sorry to come with a report but
    in admin in meta-box (define the language of the text) doesn’t work as he should. It show number rather than country.
    revert back to 1.0.9.4 working

    Válasz
  7. fhzzy szerint

    április 24, 2025 nál nél 4:52 am

    why our plugin translates “Explosion Proof” as “爆炸性证明” or “爆炸式证明” instead of “防爆”.

    Válasz

Leave a Reply to Bob Mégsem válaszát

E-mail címed nem kerül nyilvánosságra. Kötelező kitölteni *

Fordítás

🇺🇸🇸🇦🇧🇩🏴󠁥󠁳󠁣󠁴󠁿🇨🇳🇹🇼🇭🇷🇨🇿🇩🇰🇳🇱🇪🇪🇵🇭🇫🇮🇫🇷🇩🇪🇬🇷🇮🇳🇮🇱🇮🇳🇭🇺🇮🇩🇮🇹🇯🇵🇮🇳🇰🇷🇱🇻🇱🇹🇲🇾🇮🇳🇮🇳🇳🇴🇵🇱🇵🇹🇵🇰🇷🇴🇷🇺🇷🇸🇸🇰🇸🇮🇪🇸🇸🇪🇮🇳🇮🇳🇹🇭🇹🇷🇺🇦🇵🇰🇻🇳
Beállítás alapértelmezett nyelvként
 Fordítás szerkesztése

Támogatók

Szeretnénk köszönetet mondani a szponzoroknak!

Bélyeggyűjtők, érmék, bankjegyek, TCGs, videojátékok és élvezem Transposh transzlálódó Colnect a 62 nyelvek. Csere, csere, rüh a személyes gyűjtemény segítségével a katalógusból. Mit gyűjtesz?
A kollektorok csatlakoztatása: érmék, bélyegek és!

Legutóbbi bejegyzések

  1. fhzzy tovább Változat 1.0.9.5 – Harcolni a kód rothadásávaláprilis 24, 2025
  2. Stacy tovább Változat 1.0.9.5 – Harcolni a kód rothadásávaláprilis 8, 2025
  3. wu tovább Változat 1.0.9.5 – Harcolni a kód rothadásávaláprilis 5, 2025
  4. Lulu Cheng tovább Változat 1.0.9.5 – Harcolni a kód rothadásávalMárcius 30, 2025
  5. Ofer tovább Változat 1.0.9.5 – Harcolni a kód rothadásávalMárcius 30, 2025

Címkék

0.7 0.9 Ajax bing (msn) fordító születésnap buddypress hibajavító irányító központ css sprite hibakeresés adományozott fordítás adományok hangulatjel hamis interjúk zászlók zászló sprite teljes verzió gettext google-xml-webhelytérképek Google Translate fontos jelentéktelen több nyelv értelmező szakfordítás kiadás rss securityfix EZT érvényesítőkód shortcodes sebesség erősítés indul themeroller Trac ui videó Widget wordpress.org wordpress 2.8 wordpress 3.0 WordPress MU wordpress plugint WP-super-cache XCache

Fejlesztési hírfolyam

  • Felszabadító 1.0.9.6
    április 5, 2025
  • Kisebb kódjavítások az interfész szerkesztéséhez és az értékcsökkenés eltávolításához ...
    Március 22, 2025
  • Javítsa meg a meghatározatlan tömb gombot
    Március 18, 2025
  • Végül támogatja a jQueryui -t 1.14.1, Rövidítse le a kódot szépen
    Március 17, 2025
  • Felszabadító 1.0.9.5
    Március 15, 2025

Közösség

  • Facebook
  • Twitter

Tervezte LPK Stúdió

Bejegyzések (RSS) és hozzászólás (RSS)

szerzői jog © 2025 · Transposh LPK Studio tovább Genesis Framework · WordPress · Belépés