Che cos'è la localizzazione di WordPress, in realtà? Il termine suona abbastanza misterioso. Non c'è da stupirsi se molti proprietari di siti Web WordPress faticano a capire cosa sia la localizzazione di WordPress e come farla in modo efficace.
- La localizzazione di WordPress riguarda la creazione di un sito multilingue e la sua traduzione per i mercati esteri?
- Si tratta di mostrare una versione in lingua locale del vostro sito in base alla provenienza del lettore?
- E, se sei uno sviluppatore, si tratta di preparare il tuo tema o plugin per la traduzione?
Risponderemo a tutte queste domande in questa guida alla localizzazione di WordPress.
Anzitutto:
Cos'è la localizzazione di WordPress?
In poche parole:
La localizzazione è il processo di adattamento di un prodotto (o di un contenuto) a una specifica area geografica, a una lingua o a un mercato locale.
Questo processo di adattamento comporta solitamente la traduzione dell'elemento in questione in una lingua locale.
La localizzazione è anche spesso definita come “l10n” poiché ci sono dieci lettere tra le lettere “l” e “n” in “localization”.
Localizzazione vs. Internazionalizzazione
(Leggi se sei uno sviluppatore) ?
Ora entriamo nel vivo del divertimento!
Nel linguaggio comune, localizzazione e internazionalizzazione vengono usati in modo intercambiabile. Ma, tecnicamente, è un errore. (Anche se non verrai perseguito penalmente se lo commetti.)
Internazionalizzazione (o “i18n” – di nuovo, 18 lettere tra la lettera “i” e la “n” in “internationalization”) è il processo di creazione del proprio prodotto in modo tale da consentire all'utente di localizzarlo.
In altre parole, per gli sviluppatori di WordPress, l'internazionalizzazione consiste nell'aderire a convenzioni specifiche in linea con le linee guida di traduzione di WordPress.
Nel complesso, internazionalizzazione viene prima, e può quindi essere seguito da localizzazione.
Esempi di localizzazione
La localizzazione di WordPress va ben oltre la semplice traduzione dei contenuti. Ecco alcuni esempi e idee per la localizzazione di WordPress:
Traduzione dei contenuti del sito web per i mercati di riferimento
Questa è la cosa più semplice e intuitiva da fare quando hai appena iniziato a localizzare il tuo sito web WordPress.
L'idea è semplice: prendi tutto il contenuto testuale presente sul tuo sito e lo traduci in una o più versioni localizzate.
A seconda degli strumenti a vostra disposizione, tali traduzioni possono essere redatte manualmente oppure in modo automatizzato utilizzando Google Translate o moderni strumenti di traduzione basati sull'intelligenza artificiale. (Ne parleremo più avanti in questa guida.)
Adattamento della grafica ai mercati di riferimento
Le immagini e le foto presenti sul sito estendono l'esperienza che i visitatori hanno con i vostri contenuti. Queste grafiche non sono meno importanti quando si tratta di localizzazione.
In parole semplici, vuoi che la tua grafica sia localizzata esattamente come tutti gli altri contenuti presenti sul sito.
Lasciami fare un esempio; ecco un'immagine in evidenza che potresti allegare a un post del blog:

Se poi traduci il sito in spagnolo, dovresti anche ottenere un'immagine localizzata adatta da affiancare alla versione spagnola; come questa:

Modifica dei contenuti per adattarli ai gusti e alle abitudini di consumo dei mercati target
Per esempio, i siti di notizie sportive in Europa non sono molto interessati a ciò che accade nella NFL. Allo stesso modo, il pubblico americano non si interessa molto a quello che chiamano calcio.
Con un'adeguata localizzazione del sito web, è possibile filtrare intere categorie di contenuti e regolare ciò che ciascuna area geografica visualizza.
Adattamento del design e del layout per visualizzare correttamente il testo tradotto
In genere, non devi fare nulla con il layout o il design del tuo sito quando passare da una versione linguistica a un'altra. Ma ci sono eccezioni:
È qui che entrano in gioco gli script RTL (da destra a sinistra).
Quando traduzione in arabo lingue, poter regolare la struttura del sito renderà la lettura molto più semplice per il pubblico straniero.
Conversione in valute e unità di misura locali
In Europa, ci piace visualizzare i valori monetari in questo modo: 20$. Negli Stati Uniti, lo standard è $20 – con il simbolo della valuta prima dell'importo.
Una buona localizzazione si assicura che questi rimangano corretti.
Utilizzando i formati locali appropriati per date, indirizzi e numeri di telefono
Come ti appare il seguente formato di data?
03/12/2020
Se sei negli Stati Uniti, questo è il 12 marzo. Ovunque altrove, questo sarebbe il 3 dicembre.
Come proprietario di un sito web, vuoi evitare malintesi come questo, soprattutto se il tuo contenuto è legato al fattore tempo e spesso riguarda eventi che accadono in date specifiche – per esempio, siti web nel settore finanziario mercato.
Affrontare le normative locali e i requisiti legali
Informative sulla privacy, norme GDPR, informative FTC, oltre a decine di altre leggi e normative locali.
Un sito web dovrebbe essere in sintonia con le normative di ciascun paese in cui ha una presenza ufficiale.
Fornire assistenza clienti nella lingua locale
Ultimo ma non meno importante, abbiamo probabilmente il vantaggio più grande per le aziende che operano a livello internazionale.
Offerta supporto clienti nella lingua madre del cliente è una grandissima vittoria, e nient'altro dimostrerà loro che ti importa davvero della loro esperienza.
Vantaggi della localizzazione
La domanda che potreste porvi è perché dovreste affrontare tutto questo fastidio per rendere il vostro sito localizzato.
Ci sono alcuni eccellenti vantaggi nella localizzazione di WordPress:
- Aumentare la quota di mercato e i ricavi. Non importa se vendi prodotti o condividi semplicemente contenuti su vari argomenti, l'esposizione a più mercati si tradurrà in maggiori entrate (se non dalle vendite, almeno dalla pubblicità). Infatti, i dati dicono che ogni $1 speso per la localizzazione genera $25 di nuovi ricavi.
- Mitigare la sensibilità culturale. Alcune espressioni o argomenti che vanno bene in un paese potrebbero essere del tutto non va bene in un'altra. Offrendo contenuti localizzati, eviti questi problemi.
- Ottieni la fiducia dei clienti. Nulla infonde più sicurezza del vedere che il sito web che stai visitando si è impegnato a tradurre i propri contenuti per facilitare le cose al lettore.
- Ottieni un vantaggio competitivo. Essere presenti in più luoghi rispetto alla concorrenza è sempre un bene.
- Rafforzare la presenza globale. Diventando globale, rendi il tuo marchio molte volte più riconoscibile.
Come localizzare WordPress
Messa da parte tutta la teoria, passiamo ora all'azione e compiamo i passi necessari per localizzare il vostro sito web WordPress:
Ti mostreremo come gestire la localizzazione in quattro aree specifiche:
- localizzazione di contenuti testuali ← clicca per saltare
- localizzazione di file multimediali e immagini
- localizzazione delle impostazioni SEO
- impostazione delle traduzioni automatiche
Per portare a termine il lavoro userò il nostro plugin TranslatePress: la maggior parte di queste operazioni si può eseguire utilizzando il versione gratuita del plugin.
Se desideri la versione riassuntiva di questo post del blog, ecco un breve video tutorial che illustra i punti principali del processo di localizzazione:
Ma per dare uno sguardo più approfondito alla localizzazione di WordPress, continua a leggere.
Quindi, per iniziare, ecco come installare e configurare il plugin:
Installazione e configurazione di TranslatePress
TranslatePress può essere installato come qualsiasi altro plugin gratuito di WordPress. Accedi alla dashboard di WordPress, quindi vai su Plugin → Aggiungi Nuovo e inserisci TranslatePress nella casella di ricerca. Successivamente, fai clic su Installa ora E poi acceso Attiva.

Vai a Impostazioni → TranslatePress e aggiungere nuove lingue al tuo sito.

Una volta salvate le tue lingue, vai su Cambio lingua scheda nella barra di navigazione in alto delle impostazioni di TranslatePress per configurare il modo in cui i visitatori switch between languages on your site. By default, TranslatePress adds a floating language switcher to the bottom-right corner of every page — so you don’t have to configure anything if that works for you.
If you’d like to customise its appearance or placement, the Language Switcher tab gives you three options, each with its own sub-tab:
- Galleggiante — adjust the position, colours, flag shape, and Desktop/Mobile layout of the corner switcher
- Codice breve — use
to embed the switcher anywhere on your site, including widget areas and Gutenberg blocks - Voce di menu — add language options to any navigation menu via Aspetto → Menu

Ricordati di cliccare su Salva modifiche fatto.
With these simple actions, you’ve just let WordPress know about the languages you want to use on your sito multilingue. In the next step, we’re going to localize different areas of your website.
Localizing Text Content
One of the great things about TranslatePress is that you can translate all your content in a very user-friendly way, using a visual translation interface. To begin, just go to the page that you want to translate – can be any page – and click on the Traduci pagina link that’s in the top bar:

A good idea is to start with your homepage and then progress through all the other pages that need translations. You can use the visual translation editor, to navigate your website and translate everything you see.
To translate any text that you see on the page, just click on the icona della matita next to it. A new panel will appear in the sidebar on the left. This is where you can enter your translation.

You can go through each block of text on the page until you eventually translate them all.
The important detail here is that this method works on all types of texts that your theme displays on the page. No matter if the text comes from a blog post, the theme’s own strings, a dynamic string, etc., TranslatePress can handle them all.
Non dimenticare di cliccare su Salva la traduzione (top left corner).
Nota: To speed things up, you can also choose that your translations be done automatically. We’ll cover this in one of the sections below.
Localizing Media Files and Images
Localizing your images works just the same as localizing text content. All you have to do is click on the icona della matita next to the image you want to localize, and then replace it either by selecting another image from the media library or uploading one from your computer.

It’s important to point out that this functionality extends to all media types. You can localize not only your images, but videos, audio files, and cursori anche.
To learn more about localizing website images, read this guide.
Localizing SEO Settings
In principle, multilingual SEO is no different from regular SEO. You simply want to make sure that it’s not only the primary language version of your site that can be discovered via Google, but all the localized versions as well.
Nota: To translate all the important SEO elements on a page, we’ll be using the Componente aggiuntivo pacchetto SEO for TranslatePress – available with all premium licenses.
To make sure your content ranks in multiple languages, you want to:
- edit the URL slug (web address) of each localized page,
- translate the page title and meta description,
- abilitare sitemap multilingue,
- set the correct
hreflangattributes for your localized pages.
All of this is really straight-forward in TranslatePress.
The latter two TranslatePress will do for you automatically. The first two – editing the URL slug, title and description of the page – is done via the same translation interface we used in the previous step.
To see all the SEO strings that can be translated, expand the menu under your primary language; this one:

The arrows point to the slug of the page, the title and meta description. Click on either of these strings to edit them via the TranslatePress interface.
To learn more about localizing SEO settings, read this guide.
Setting up Automatic Translations
Last but not least, if you prefer to not have to do all translations by hand, TranslatePress also supports automatic translation — and it’s easy to enable.
The simplest option is TranslatePress AI, the plugin’s own built-in translation engine. It requires no external account and no API key. You can get a free TranslatePress AI license by mi iscrivo qui, and paid plans include AI words to use with the engine as part of the plan. If you need more words, on a paid plan you can top up word credits from your TranslatePress account.
Per abilitare la traduzione automatica, vai su Impostazioni → TranslatePress and open the Traduzione automatica scheda. Abilita automatic translation and select your preferred engine.

If you’d prefer to use an external API, TranslatePress also supports:
- Google Traduttore — disponibile su tutti i piani, compresa la versione gratuita, utilizzando la propria chiave API di Google Cloud. Here’s how to generate one.
- DeepL — disponibile nei piani Business e Developer, utilizzando la propria chiave API DeepL. Here’s how to generate a DeepL API.

Whichever engine you choose, automatic translations are a starting point — you can review and refine anything that sounds off directly in the visual editor.
To learn more about translating your WordPress site automatically, read this guide.
Localizzazione di WordPress per temi e plugin
This part of our WordPress localization guide is meant for developers working on their own WordPress products, themes, and plugins.
If you’re a user then localizing all the plugins and themes that you have installed on your site is done via the methods described above.
Keep reading if you’re a developer:
When working on a WordPress theme or plugin, your task is not as much to prepare original language versions of the product, but rather make it possible for other people to translate your creation on their own.
More or less, this is what internazionalizzazione tratta di.
Luckily, although it might sound intimidating, the actual tasks that you need to perform in order to internationalize your theme or plugin are quite straightforward:
Set the Text Domain Header
This first step is about letting WordPress know that your product is ready for translations.
For themes, this is done by including the following function call in the functions.php file of the theme:
load_theme_textdomain('YOUR_THEME', THEME_PATH.'/languages');
Use “gettext” Functions
There are two PHP functions available in WordPress that make internationalizing your theme / plugin really easy.
They are:
_e()__()
These are what we call “gettext” functions.
You should use them each time you want to display any string of text on the screen.
So, instead of doing this:
<?php echo 'Welcome to Great Theme!'; ?>
You would do this:
<?php _e('Welcome to Great Theme!', 'YOUR_THEME'); ?>
This function looks up the translation file (more on this in a sec), matches the string you’ve provided as the parameter, and then prints its translated version (for the language that’s currently set).
- The difference between the
_e()e__()functions is that the first one prints/echoes its result and the second one returns it. - The other parameter,
'YOUR_THEME', is your theme’s template path.
⚠️ I want to emphasize this again; you should use these “gettext” functions every time you want to display any string of text to the user.
The “gettext” functions are not only about translating website content, but their output can also be intercepted by plugins like TranslatePress in other circumstances. For example, WooCommerce users will be happy to know that changing the standard texts like “Add to cart” o “Sale” is easy to do exactly because WooCommerce uses “gettext” functions when displaying them.
To see how this works, activate TranslatePress (free version), and click on Traduci pagina when viewing any of your product pages. As you hover your mouse cursor over the “Add to cart” button, you’ll see a green pencil icon. This icon indicates that the text can be translated and that it comes from a “gettext” function. (Alternatively, blue pencil icons indicate texts created by the user – as part of a post, page or a product description.)

When you click on the pencil icon, you’ll be able to add not only a new language version of the text, but also change the primary language version – in case you want to go with “Buy now” invece di “Add to cart”.

A simple change like this wouldn’t be possible without “gettext” functions.
Create a Translation File
The last step to making your theme or plugin ready for translations is to create what’s called a POT file. A POT file is basically a table. It links original strings of text with translated versions of them.
POT files can be created and edited using a tool like Poedit, for example. It’s open-source and has versions for all major operating systems.
The idea behind a POT file is that all the strings that your theme or plugin outputs to the user through the “gettext” functions should be listed in the file.
Name your POT file after your theme, save it with the .pot extension and put it in the languages sub-directory in your theme’s / plugin’s main directory.
With that done, your theme is ready for translations!
Should You Worry About Dynamic Text Strings?
Dynamic strings are everything that your theme stores in other places than WordPress’ main content tables (wp_posts o wp_postmeta) or the POT files.
Depending on how sophisticated your theme is, and the degree of customization it offers, you may be forced to store some of the theme’s text data either in the wp_options table or even in the theme’s own tables.
Again, this is about text strings that you want to make customizable to the user. A typical scenario where strings like this are used is on custom homepages. Many themes offer original blocks of content and custom designs on their homepages. The raw content that’s on those pages is often difficult to store in the database in a standard way.
The problem with dynamic strings is that they are often problematic from the perspective of WordPress localization.
Depending on which localization plugin the user has, they may or may not be able to translate those strings.
TranslatePress, for example, comes with required tools already built in. It allows users to work with their current theme’s dynamic strings like with any other texts they see on the page.
Overall, whenever you can avoid using dynamic strings in your theme or plugin, try doing so.
Learn more about localizing dynamic strings in WordPress.
Localizzazione di WordPress: Conclusione
Navigating your way through WordPress localization may sound like an intimidating task at first, but it’s actually not that hard once you get to work. That is, if you have quality tools at your disposal.
As you’ve seen, TranslatePress can help quite a bit in getting your website localized quickly and your international audiences happy.
Nearly everything that’s been described above can be done with the 100% free version of the plugin.
If you also want to increase your chances of ranking your multilingual content in Google, consider upgrading to one of the TranslatePress pro plans. The SEO add-on that’s part of the offer will handle all your multilingual SEO needs. You’ll also get access to a lot of powerful add-ons, like unlimited translation languages, rilevamento automatico della lingua dell'utente, translator accounts and more.
TranslatePress Multilingue
And, of course, if you have any questions about WordPress localization, don’t hesitate to ask in the comments.
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.
Karol, this is a fantastic piece that really drives home the importance of adapting a business’s online presence to their target market, taking into account cultural sensitivities and language. The way you broke it down makes it not only easy to follow but also can definitely help those just starting out in localizing WordPress while keeping SEO in mind. Thank you for sharing!