Transposh - Breaking keelebarjääre

Transposh.org wordpress plugin presentatsioon ja toetada saidi

  • Kodu
  • Võta meiega ühendust
  • Lae
  • KKK
    • Annetama
  • Loengumaterjal
    • Vidina Showcase
  • Umbes

Versioon 1.0.9.5 – Koodi mädanemise vastu võitlemine

Märts 15, 2025 poolt Ofer 10 Kommentaarid

Pärast 16 tööaastad ja enam kui kaks aastat ilma uue väljaandeta, Meie pistikprogrammil oli laialt levinud väljakutse, mida tuntakse koodimänguna. See probleem tekib siis, kui funktsionaalsus aja jooksul laguneb - isegi ilma pistikprogrammi koodi muudatusteta - väliste teguritele. Uued WordPressi väljaanded, Uuendatud PHP versioonid, ja tõlketeenuste nihked võivad häirida hoolikalt kavandatud funktsioone.

Versioonis 1.0.9.5, Oleme nende väljakutsetega tegelenud, Keskendudes tõlkemootoritele. Eemaldasime vananenud koodi ja tutvustasime uusi rakendusi Yandexi ja Baidu tõlketeenuste toe taastamiseks, mis oli viimastel aastatel lakanud töötamast. Need värskendused tagavad, et tõlkefunktsioonid toimivad taas täielikult. Lisaks, Oleme laiendanud keeletoetust, et lisada nendele tõlketeenustele aja jooksul uued keeled.

See väljaanne kajastab meie pühendumust pistikprogrammi usaldusväärse ja tõhusa hoidmisele, kohanemine tehnoloogiate ja teenuste areneva maastikuga.

Oleme tutvustanud uut vidinat, mis kasutab tavalist lipu emotikoni, mis on aastate jooksul seatud emotikonidesse lisatud. See värskendus lihtsustab vidina koodi märkimisväärselt, võimaldab samas lippude hõlpsat kohandamist teie konkreetsete vajaduste rahuldamiseks.

Saate vaadata seda uut vidinat meie saidil tegutsedes, kus oleme lisanud nutika CSS -i triki, mis muudab praeguse keeleikooni kaks korda suuremaks kui teised, saavutatud vaid kahe järgmise koodiridaga!
.transposh_flags{font-size:22px}
.tr_active{font-size:44px; float:left}

Loodame, et teile meeldib see uus versioon!

Filed Under: Üldine Sõnumid, Release teadaanded, Tarkvara uuendused Märksõnaga: emotikonid, vabastama, vidin, WordPress plugin

Kommentaarid

  1. Matze Karajanov ütleb

    Märts 16, 2025 juures 3:52 olen

    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!

    Vasta
  2. Matze Karajanov ütleb

    Märts 16, 2025 juures 3:57 olen

    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.

    Vasta
  3. Bob ütleb

    Märts 18, 2025 juures 3:51 olen

    When I save post, It shows this error:
    Hoiatus: 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

    kui ($langrec[‘engines’][$mootori]) {

    kuni

    kui (isset($langrec[‘engines’][$mootori])) {

    Vasta
    • Ofer ütleb

      Märts 18, 2025 juures 11:11 olen

      Täname, et ilmoitit, fixed in https://github.com/oferwald/transposh/commit/70f1a6bafc72a0358b42ada8a576a9f02b5ed136

      Vasta
  4. Lulu cheng ütleb

    Märts 28, 2025 juures 4:17 olen

    Tere, 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? Aitäh

    Vasta
    • Ofer ütleb

      Märts 30, 2025 juures 2:05 pm

      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.

      Vasta
      • Lulu cheng ütleb

        Märts 30, 2025 juures 5:41 pm

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

        Vasta
  5. wu ütleb

    Aprill 5, 2025 juures 10:11 olen

    I installed the latest version, but the language bar is blank. Please take the time to update the error. Tänan teid.

    Vasta
  6. Stacy ütleb

    Aprill 8, 2025 juures 2:52 pm

    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

    Vasta
  7. fhzy ütleb

    Aprill 24, 2025 juures 4:52 olen

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

    Vasta

Leave a Reply to Bob Tühista vastus

Sinu e-postiaadressi ei avaldata. Kohustuslikud väljad on märgitud *

Tõlge

🇺🇸🇸🇦🇧🇩🏴󠁥󠁳󠁣󠁴󠁿🇨🇳🇹🇼🇭🇷🇨🇿🇩🇰🇳🇱🇪🇪🇵🇭🇫🇮🇫🇷🇩🇪🇬🇷🇮🇳🇮🇱🇮🇳🇭🇺🇮🇩🇮🇹🇯🇵🇮🇳🇰🇷🇱🇻🇱🇹🇲🇾🇮🇳🇮🇳🇳🇴🇵🇱🇵🇹🇵🇰🇷🇴🇷🇺🇷🇸🇸🇰🇸🇮🇪🇸🇸🇪🇮🇳🇮🇳🇹🇭🇹🇷🇺🇦🇵🇰🇻🇳
Vaikimisi seatud
 Redigeeri tõlget

Sponsorid

Soovime tänada meie sponsoreid!

Kogujad templid, mündid, pangatähtede, TCGs, videomängude ja rohkem nautida Transposh tõlgitud Colnect sisse 62 keeled. Vahetada, vahetada, Kapi oma isikuandmete kogumist kasutades meie kataloogi. Mida sa koguda?
Kollektorite ühendamine: mündid, Templid ja rohkem!

Viimased Kommentaarid

  1. fhzy peal Versioon 1.0.9.5 – Koodi mädanemise vastu võitlemineAprill 24, 2025
  2. Stacy peal Versioon 1.0.9.5 – Koodi mädanemise vastu võitlemineAprill 8, 2025
  3. wu peal Versioon 1.0.9.5 – Koodi mädanemise vastu võitlemineAprill 5, 2025
  4. Lulu cheng peal Versioon 1.0.9.5 – Koodi mädanemise vastu võitlemineMärts 30, 2025
  5. Ofer peal Versioon 1.0.9.5 – Koodi mädanemise vastu võitlemineMärts 30, 2025

Sildid

0.7 0.9 Ajax bing (msn) tõlkija sünnipäev semupress Veaparandus Juhtimiskeskuse css sprites siluda annetatud tõlkimine annetused emotikonid võlts intervjuud lipud lipu spraitide täisversioon gettexti google-xml-sivustokarttansa Google Translate peamine alaealine rohkem keeli parser professionaalse tõlke vabastama rss securityfix KÄESOLEVA shortcode shortcodes kiirus lisaseadmed algus themeroller Trac ui video vidin wordpress.org wordpress 2.8 wordpress 3.0 WordPress MU WordPress plugin wp-super-cache XCache

Arendusvoog

  • Vabastamine 1.0.9.6
    Aprill 5, 2025
  • Väiksemad koodide parandused liidese redigeerimiseks ja mingit amortisatsiooni eemaldamiseks ...
    Märts 22, 2025
  • Parandage määratlemata massiivi võti
    Märts 18, 2025
  • Lõpuks toetage jqueryui 1.14.1, Lühendage koodi kenasti
    Märts 17, 2025
  • Vabastamine 1.0.9.5
    Märts 15, 2025

Sotsiaal-

  • Facebook
  • puperdama

Design by LPK Studio

Kirjed (RSS) ja Kommentaarid (RSS)

Autoriõigus © 2025 · Transposh LPK stuudio peal Genesise raamistik · WordPress · Logi sisse