Import content and its translations from CSV

Using migrate-7.x-2.6-RC1.

The main purpose of this cookbook is to show how to import one content type in as many languages as you want using CSV import.

It assumes that you have one csv file per language, that each is in the csv format, and that the content for all its translations are at the same line. It also assumes you're using the Content Translation method of translation, and not entity translation.

Force using "" to avoid problem with language like russian chinese, japanese, arabic, etc...

The translation file appears to have a missing or malformed header

It seems like my installation doesn't allow my .po file to be imported.

Everytime I try to import a .po file I'm getting the following error:

The translation file [some_language.po] appears to have a missing or malformed header.

What kind of header is it referring to? My .po file simply consists of strings, nothing more:

Translating OpenAidMap

Translating the OpenAidMap profile can take two routes, either at installation or after installation of the profile;

Translating OpenAidMap after installation

  1. Download the translation files of the profile in the given language from the http://localize.drupal.org server.
  2. Place the translation file in the translations directory of the profile i.e profiles/openaidmap/translations
  3. Go to the Languages page (/admin/config/regional/language) under the Regional and languages configuration page.
  4. On the Languages page, click the "Add language" button, choose your preferred language from the drop-down list of the supported languages and add the language by clicking the "Add language" button.
  5. Translation files of the profile and modules will be imported into the database.
  6. After the translation files of your preferred language have been imported, you can set the particular language as the default by checking the "Default" radio button next to the language and then click the "Save configuration" button.

Installing OpenAidMap in your preferred language

i18n setup for the Domain Access module

This is a summary of the process of how to setup a multilingual site with domain access. Please feel free to edit any parts which are incorrect or that may confuse users. Content is based on how we made our sites work and on this tutorial by Jose Reyero:
http://reyero.net/drupal/internationalization_domain_access_multilingual...

If you have installed Domain Access and all seems to work fine, but then you want some domains (or subdomains) to be in different languages, for example:
- maindomain.com (english)
- sub.domain.com (french)
- domain2.net (spanish)
- sub.domain2.net (spanish)
- domain3.com (english)
- domain4.org (german), etc.

The following is assuming you correctly setup your affiliate domains and/or subdomains in your settings.php file.

Change the default language
1. Enable the correct modules (Domain Access, Domain Variable, Domain Locale, Internationalization & Variable). See links to these modules at the end of this page.

2. Enable the languages you will be using here: admin/config/regional/language

3. Enable URL detection method here (must be Path prefix): admin/config/regional/language/configure

Multilingual forum

The Multilingual forum module, part of the Internationalization (i18n) package, helps with the multilingual configuration of the site forums.

Dependencies

The Multilingual forum module has a dependency on the core Forum module and the Taxonomy translation and Multlilingual content modules from the Internationalization package.

Usage

Configure forum vocabulary

  1. Enable the Multilingual forum module included with Internationalization
  2. Go to Administration > Structure > Taxonomy
  3. Click edit vocabulary for the Forums vocabulary
  4. Choose the translation mode (Localize or Translate)
  5. Click Save and translate button
  6. Click translate link for a language
  7. Translate the Name and Description for the forum
  8. Click Save translation button
  9. Repeat steps 6 to 8 for each language

Configure forum terms

  1. Go to Administration > Structure > Forums
  2. Click edit link for a forum or container
  3. Click Translate tab
  4. Click translate link for a language
  5. Translate the Name and Description for the term

Pages

Subscribe with RSS Subscribe to RSS - i18n