You want to install your instance (or you already have), but you don't want the default language to be English ?
Then this page is for you.
Instance installation in another language
The easiest way to make your instance available in a language is to make this language your site's default from start. To do that, you have to provide translation files (
.po files) before installing the website.
- Go through steps 1. to 4. in the installation instructions.
- Create a translation directory for the installation profile:
- Download Drupal core's translation file for your desired language from Drupal, and place it within the folder you just created in step 3.
- Copy the translation files from the Yakforms module to your folder :
cp profiles/yakforms_profile/modules/yakforms/translations/* profiles/yakforms_profile/translations/
- Proceed to the rest of your installation (steps 5. and on).
Installing another language
If your instance is already installed and you want to make another language available, follow the instructions below.
Yakforms makes use of the Drupal Regional Settings, which you can find at yourinstance.example/admin/config/regional (accessible once you're logged in as an admin).
There you'll be able to install a new language, which will automatically download the translation files for all modules available on Drupal.org. This process might take a few minutes.
Once that's done, you'll be able to shift the default language of your website (the one that appears to all your users) to the one you just installed : just check the default radio button in front of the language you installed !
Note that Yakforms depends here on the quality of translations available at localize.drupal.org. If a translation seems wrong to you, that's where you'll have to go.
Installing Yakforms modules translation files
Several Drupal modules were developped for Yakforms, but are not available (yet) on the official Drupal translation repository. That means that the pieces of the user interface defined by these modules are not translated by default once you've installed your language.
To fix that, you'll have to manually import the translation files. That's quite easy, don't worry.
First, download the right
.po files at this address and this one. You'll only need the files that contain your language code : for example, if you need the German translation, you'll only need to download the files ending with
To import these into your website, browse to yourinstance.example/admin/config/regional/translate/import and upload the
.po files you just downloaded.
And you should be all set !
If you see some text in English on your site which shouldn't be there, chances are your translation files are out of date. In order to profit from the latest translations, you'll have to download the
.po files :
- browse to the repo and click on the module you want to update.
- Find the
translations/folder, and download the
.pofiles corresponding to your language code.
- Browse to your website and log in as admin.
- Browse to Config > Translate Interface > Import, or directly to this URL :
- Import the files you downloaded. The corresponding
Note : Drupal has an automatic translation process we benefit from for other modules, but custom modules do not make use of this process. This might change in the future.
If you spot a typo or an untranslated text somewhere on your interface, you can fix it directly on your website by browsing to Config > Translate Interface > Translate. Look up the text you want to fix and click on "Edit".
Don't forget to share your changes on Weblate as well so others can benefit from your changes too !