Getting started
Add your languages
To add a language to WordPress with Vabelon, you use one screen: Settings, then Vabelon.
The default language
Your site language is already in the list, marked as the default. The default language keeps the addresses your site has now. Content that has no language is shown as the default language.
Add a language to WordPress
Fill in the empty row at the bottom of the table and save.
- Address prefix: the short code that starts the addresses of this language, such as
es. - WordPress locale: the locale WordPress uses for this language, such as
es_ES. - hreflang: the code search engines read, such as
esorpt-BR. - Name: the name of the language in your own language, such as Spanish.
- Name in that language: the name visitors see in the switcher, such as Español.
Two languages cannot use the same address prefix, and exactly one language must be the default.
Change the default language
Select another row in the Default column and save. Content that has no language moves with the default.
Remove a language
Tick Remove on its row and save. You cannot remove the default language, so make another language the default first.
Which codes to use
The WordPress locale is the code WordPress uses for its own translations, such as es_ES or pt_BR. The WordPress translation teams page lists the locale of every language. The hreflang code, however, is for search engines: a language code such as es, with a region only when you need one, such as pt-BR. The guide to hreflang tags explains the rules.
Example: add Spanish
| Field | Value |
|---|---|
| Address prefix | es |
| WordPress locale | es_ES |
| hreflang | es |
| Name | Spanish |
| Name in that language | Español |
After you save, Spanish pages can live under /es. Next, give a page a language.