Cerchi la soluzione migliore per la traduzione di stringhe in WordPress?
Tradurre e localizzare completamente il tuo sito WordPress richiede molto più della semplice traduzione dei contenuti dall'editor di WordPress. Avrai anche contenuti dal tuo tema, plugin, widget, ecc. ed è qui che entra in gioco la traduzione delle stringhe di WordPress.
In questo post, vi mostreremo come tradurre qualsiasi stringa sul vostro sito WordPress utilizzando TranslatePress e il suo semplice editor visivo.
Ma che dire di altre stringhe che non possono essere tradotte automaticamente sul front-end? Quali sono e come si trovano?
Vi mostreremo anche quali sono queste stringhe e come tradurle utilizzando la nuova e migliorata interfaccia di traduzione delle stringhe di TranslatePress.
Indipendentemente dalla sua provenienza, TranslatePress rileverà automaticamente ogni stringa presente nel front-end del tuo sito fin da subito (e persino alcune nel back-end, come le impostazioni di Yoast SEO). In questo modo, potrai tradurre ogni stringa utilizzando un'unica interfaccia unificata, senza dover passare continuamente da un'interfaccia all'altra come ti costringono a fare altri plugin:
Puoi tradurre il tuo sito in pochissimi minuti, gratis!
Quali sono i diversi tipi di stringhe di WordPress?
Se vuoi tradurre completamente un sito WordPress, dovrai gestire contenuti da molte fonti diverse.
Il più ovvio è il contenuto dell'editor di WordPress. Ma dovrai tradurre anche altri contenuti come:
- Stringhe Gettext – si tratta di contenuti statici del tuo tema o plugin. Ad esempio, il link “Pagina successiva” nel tuo tema che controlla la paginazione o il pulsante “Aggiungi al carrello” in WooCommerce.
- Contenuto del tema generato dall'utente – per esempio, il testo personalizzato che hai aggiunto al piè di pagina utilizzando le impostazioni del tuo tema.
- Contenuto del plugin generato dall'utente – per esempio, una descrizione prodotto di WooCommerce o un design che hai creato con un page builder di WordPress.
- Widget
- Menù
Cosa ti serve per la traduzione delle stringhe di WordPress
Per tradurre le stringhe sul tuo sito, hai bisogno di Plugin di traduzione per WordPress.
Qui ci sono alcune differenze.
Alcuni plugin permettono di tradurre solo determinati tipi di stringhe.
Altri richiedono di saltare continuamente da un'interfaccia all'altra per tradurre le stringhe. Ad esempio, potresti tradurre il contenuto di un post un secondo e poi dover passare a un'interfaccia separata per tradurre le stringhe del tuo tema.
Inoltre, alcuni plugin popolari richiedono di contrassegnare manualmente alcune stringhe per la traduzione. Ad esempio, un plugin di traduzione potrebbe essere in grado di rilevare le stringhe gettext statiche dal tuo tema, ma potresti dover contrassegnare manualmente i contenuti del tema generati dagli utenti per la traduzione.
TranslatePress è gratis Plugin di traduzione per WordPress con un approccio unico alla traduzione delle stringhe.
Anziché utilizzare interfacce separate e/o richiedere di contrassegnare manualmente alcune stringhe da tradurre, TranslatePress…
- Ti consente di gestire tutte le tue traduzioni da un'unica semplice interfaccia visiva che assomiglia molto al Customizer di WordPress;
- Rileva automaticamente tutte le stringhe fin dal primo utilizzo, compresi i contenuti di temi o plugin generati dagli utenti.
Tutto quello che devi fare è cliccare sulla stringa che desideri tradurre e potrai modificarla:

Oppure, sarai anche in grado di cercare stringhe utilizzando una ricerca in tempo reale e modificali usando il Traduttore di Stringhe.
TranslatePress funziona immediatamente con:
- Contenuto del tema, incluse le stringhe gettext e generate dall'utente;
- Contenuto dai tuoi plugin, inclusi gettext e stringhe generate dall'utente;
- Voci di menu;
- Widget;
- Contenuto dall'editor del post (l'editor a blocchi o il classico editor TinyMCE);
- Stringhe di back-end, come i titoli/le descrizioni SEO, le descrizioni di condivisione sui social media (ad esempio i tag Open Graph) e altro ancora (funzionalità premium).
In sostanza, indipendentemente dalla provenienza delle stringhe, TranslatePress ti consentirà di tradurle tramite questa interfaccia grafica.
Oltre a semplificare la traduzione di 100% del tuo sito, TranslatePress offre anche:
- Ospita tutto sul server del tuo sito WordPress;
- Supporta la traduzione automatica tramite Google Traduttore (gratis) o DeepL (funzionalità premium);
- Ti permette di tradurre i tuoi contenuti in una nuova lingua (gratis) o nuove lingue illimitate (funzionalità premium).
TranslatePress Multilingue
Come tradurre tutti i tipi di stringhe di WordPress
Ora passiamo alla guida passo passo su come utilizzare TranslatePress per la traduzione delle stringhe in WordPress.
1. Installa TranslatePress e seleziona le lingue
Per iniziare, installa plugin gratuito TranslatePress disponibile su WordPress.org.
Poi, vai a Impostazioni → TranslatePress per scegliere la lingua o le lingue in cui desideri tradurre il tuo sito.

Di nuovo, la versione gratuita ti consente di tradurre il tuo sito in una nuova lingua, mentre la versione premium ti permette di utilizzare un numero illimitato di lingue.
TranslatePress supporta anche la traduzione automatica delle stringhe tramite Google Translate o Deepl. È possibile utilizzare questi servizi per generare traduzioni di base per ogni singola stringa del proprio sito e poi, se necessario, apportare modifiche manuali.
La traduzione automatica è opzionale (100%): puoi anche effettuare tutte le traduzioni manualmente. Se desideri utilizzare la traduzione automatica, puoi configurarla da Traduzione automatica scheda—dai un'occhiata al nostro guida completa su come tradurre automaticamente WordPress.
2. Apri l'Editor di traduzione visiva
Una volta scelta la lingua o le lingue, apri il contenuto che desideri tradurre nel front-end del tuo sito. Dopodiché, fai clic su Traduci pagina pulsante sulla barra degli strumenti di WordPress per aprire l'editor di traduzione visiva di TranslatePress:

Traduci le stringhe
Per tradurre una stringa, tutto ciò che devi fare è passare con il mouse sul testo e fare clic sull'icona della matita. Questo aprirà la traduzione di quella stringa nella barra laterale, dove potrai aggiungere la tua traduzione:

Puoi anche usare il menu a tendina nella barra laterale per cercare direttamente determinate stringhe. In alcuni casi, potresti trovare più veloce la ricerca rispetto al clic sull'anteprima dal vivo. Dopo aver cercato la stringa, potrai tradurla nella stessa barra laterale:

Il processo generale è lo stesso indipendentemente dal tipo di contenuto che stai traducendo, ma esaminiamo alcuni esempi per chiarire meglio il concetto...
Stringhe Gettext
Per aiutarti a individuare rapidamente quali stringhe provengono da gettext, TranslatePress contrassegnerà automaticamente tutte le stringhe gettext con l'icona di una matita verde (al contrario della normale icona blu).
Se non hai familiarità con questo termine, le stringhe gettext sono stringhe cablate nel tuo tema o plugin. Il filtro gettext ti consente di tradurre facilmente tali stringhe. Scopri di più su gettext.
Per esempio, prendiamo la parte di testo nel tuo tema che elenca le “Categorie”. Le singole categorie non sarebbero gettext, ma il testo che precede quelle categorie sì. Puoi vedere un esempio qui sotto, contrassegnato dall'icona della matita verde:

Quando traduci le stringhe gettext, potrai tradurre sia la versione originale (nella lingua nativa del tuo sito) e la versione tradotta.
Se il tuo tema o plugin include già delle traduzioni per una determinata stringa gettext, TranslatePress inserirà automaticamente quella traduzione, ma avrai comunque la possibilità di modificarla.
TranslatePress applicherà automaticamente queste traduzioni a ogni singola occorrenza di "gettext". In altre parole, non sarà necessario tradurre manualmente le stringhe "gettext" in ogni pagina.
Altre stringhe del tema
La maggior parte dei temi include contenuti aggiuntivi oltre a gettext. Ad esempio, il tema Hestia offre opzioni nell'editor di WordPress per personalizzare il design della homepage a pagina unica.
TranslatePress funziona con queste stringhe proprio come con qualsiasi altra. La GIF animata che vi abbiamo mostrato poco fa è in realtà un ottimo esempio di come si traducono queste stringhe dei temi generate dagli utenti.
Ecco una guida completa su come tradurre un tema WordPress.
Altre stringhe di plugin
TranslatePress può aiutarti a tradurre qualsiasi stringa proveniente da un plugin, indipendentemente dal fatto che sia in formato gettext o meno. Ciò include moduli, prodotti WooCommerce, contenuti del page builder, ecc.
Ecco un esempio di come appare la traduzione di un prodotto WooCommerce...
Alcune parti della traduzione, come il pulsante “Aggiungi al carrello”, sono gettext:

Altri, come il titolo e la descrizione del prodotto generati dall'utente, hanno la normale icona blu:

Ecco alcuni tutorial per tradurre tipi specifici di contenuto dei plugin:
TranslatePress funziona anche con i plugin per la creazione di pagine di WordPress:
Infine, puoi anche traduci il contenuto del campo personalizzato da plugin come Advanced Custom Fields, Toolset, Pods, ecc.
Voci di menu
Le voci di menu funzionano esattamente come qualsiasi altro tipo di stringa:

? Come tradurre i menu di WordPress
Widget
Puoi utilizzare lo stesso approccio per i widget di WordPress. Alcune stringhe dei widget proverranno da gettext (icona verde), mentre altre saranno generate dall'utente. In entrambi i casi, potrai tradur-le dall'interfaccia visiva:

Puoi anche mostrare widget diversi in base alla lingua scelta dall'utente.
? Come tradurre i widget di WordPress
Contenuto dell'editor dei post
Non ne abbiamo parlato finora, ma puoi ovviamente utilizzare la stessa interfaccia anche per tradurre qualsiasi contenuto tu abbia aggiunto nell'editor di WordPress (either the block editor or the Classic TinyMCE editor).
Here are some guides to help:
Immagini
Finally, TranslatePress isn’t limited to translating strings! You can also use it to “translate” media content to better localize your site.
All you need to do is hover over the image and click the pencil icon. Then, you can select a different image file to use for each language and also translate the alt text:

You can use this same approach to translate all types of images and media content, including sliders.
We’ve shown you several ways to translate strings using the Visual Editor. Now, let’s cover using the new String Translation Interface to work on hidden and dynamic strings.
Come utilizzare l'interfaccia di traduzione delle stringhe
First, you need to navigate to the correct menu. From any page on your site, click Traduci Sito in your Admin bar, or from Impostazioni → TranslatePress. Since you won’t be using the visual editor for this, you’ll need to switch the tab in the lower left corner from Visual Editor to String Translation.
You’ll now see that there are three tabs at the top to help you find the exact string type you’re looking for: Lumache, Gettext, e Email. There’s also a filter function for each to help narrow your search.
Let’s walk through each tab to learn how to translate the various string types.
Slugs Tab
The Slugs tab is where you’ll find all of the slugs present on your site, be it page slugs, post slugs, taxonomy, or anything else.

Even though you can translate slugs from the visual editor too, here is where you’ll find all of them in one place so you can save some time. You can even use filters to easily identify the slugs you’re looking for, or filter out the ones that have already been translated.
Gettext Tab
Under the Gettetx tab, you’ll find strings that come from plugins or themes that may not be visible on the front end of your site. These strings are usually dynamically displayed as a result of submitting a form, or another type of notification message.
For example, if a customer purchases a membership on an eLearning site, they’ll likely see a confirmation message that their payment was approved. However, the text that’s generated by the plugin may not have been translated because it was not visible on the front end.
As you open the Gettext tab, TranslatePress will automatically begin searching your site for content. Depending on the complexity of your site, several hundreds of pages of strings may be found. To make things easier, you can select filters at the top which will narrow your search. You can also enter a keyword in the Search Gettext Strings box to find something even more specific.

Once you find the string you’re looking for, you can translate or edit the translation in the left-side panel — just as you would any other manual translation.
Emails Tab
The Emails tab shows you any strings that appear in emails generated by your site’s plugins. As I mentioned earlier, a WooCommerce customer notification is one example. WPForms is another plugin that generates emails.
Before you start searching, click the Rescan and theme for strings button. This will start a scan for any potential email strings found on your site. There are essentially two types of email notifications that are typically sent from your website:
- Emails sent to a user of your site. This could be a customer who purchase a product, a visitor who signs up for your newsletter, or someone who fills out a form. Confirmations and double-optin notices fall into this category.
- Emails that are sent to you, an admin on your site, or any manager of your WooCommerce store. These can be notifications such as gaining a new subscriber, a purchase was made, or an order was canceled.
For some plugins, such as WooCommerce, TranslatePress automatically translates email notifications. The language used is dependent upon the language the user enabled while browsing your website.
However, some messages and notifications may not have been translated automatically, and that’s where you’ll need to use the String Translator interface to search for them. This could be a confirmation message on a form, or a notification that a form submission failed.
For example, one common string found in WPForms is “Sent from %s.

To translate the string, click edit. The String Translation panel on the left will display the original text and the fields for translating into any languages you have enabled on your site. Enter the translated text in the appropriate language fields, and Click the Salva traduzione pulsante in alto.
You can continue to search for any email strings that you need to translate and edit them using the String Translation interface.
Under the Emails tab, you’ll only find plugin localized strings. For example, if you’ve customized the default messages for WooCommerce, you’ll need to look under the Regular tab to find them.
Regular Tab
If you don’t see a Regular tab displayed next to the others, don’t panic. This tab is hidden by default to prevent the interface from overloading. It can easily by enabled in the TranslatePress settings. Navigate to Settings→TranslatePress and look under the Avanzato scheda.

Under Debug, enable Show regular strings tab in String Translation. Now you can navigate back to the String Translation editor, where you’ll now find the Regolare scheda.
In this tab, you’ll find just about every string on your website, including the ones already translated in the visual editor. Like the other tabs, you can search for specific strings and edit their translations in the left panel.

Inizia oggi con la traduzione delle stringhe di WordPress
If you want to fully translate your WordPress site, you need a way to easily translate strings from gettext, user-generated theme or plugin content, menus, widgets, etc.
Some plugins force you to use separate interfaces and/or manually register strings for translation, which adds complexity and effort.
With TranslatePress, you can eliminate both problems:
- TranslatePress will automatically detect all the strings on your site, no matter where they come from. No need to manually declare certain strings for translation.
- You can manage all of your strings from a single unified interface that includes the visual translation editor and the String Translation interface. No need to jump back and forth between different interfaces every time you want to translate something.
You can get started with the versione gratuita di TranslatePress su WordPress.org.
Quindi, considera upgrading to the Pro version to access powerful new features:
- SEO multilingue – translate SEO metadata strings from plugins such as Yoast SEO o Rank Math per SEO multilingue migliorata;
- Lingue illimitate – translate your site into unlimited new languages (the free version limits you to a single new language);
- Traduzione automatica DeepL – add support for DeepL (the free version supports automatic translation via Google Translate);
- Navigazione basata sulla lingua dell'utente – mostra menu di navigazione completamente diversi in base alla lingua di un utentethe free version lets you translate menu items, but you can’t create separate menus).
TranslatePress Multilingue
Do you still have questions on how WordPress string translation works with TranslatePress? Let us know in the comments below!
Se hai trovato utile questo post, ti invitiamo a visitare il nostro Canale YouTube, dove carichiamo costantemente brevi tutorial video facili da seguire. Puoi anche seguirci su Facebook e Twitter per essere tra i primi a sapere ogni volta che pubblichiamo.
Can we access to the database where it remember all the previous autotranslate? Then change the translation so that do not have to repeating the correction ?