J3.x

Eine mehrsprachige Website einrichten / Mehrsprachigen Inhalt hinzufügen

From Joomla! Documentation

< J3.x:Setup a Multilingual Site
This page is a translated version of the page J3.x:Setup a Multilingual Site/Adding Multilingual Content and the translation is 55% complete.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Nederlands • ‎español • ‎français
Toturial
Wie man eine Mehrsprachige Joomla! Webseite einrichtet


Mit Joomla! ist es einfach möglich, eine mehrsprachige Website einzurichten, ohne Erweiterungen von Dritten zu installieren. In diesem Toturial wird der komplette Arbeitsablauf in einzelnen Schritten beschrieben, wie man eine mehrsprachige Joomla! Webseite einrichtet.



Schritt 4: Mehrsprachige Inhalte hinzufügen

Der nächste Schritt ist die Erstellung des eigentlichen Inhalts, der in verschiedenen Sprachen angezeigt werden soll. Um die zu verschiedenen Sprachen gehörenden Inhalte übersichtlich zu organisieren, müssen Sie bestimmte Kategorien mit (in diesem Fall) englischen und französischen Inhalten anlegen.

Man kann dieser Anweisung folgen, um Inhalte zu erstellen, aber seit Joomla! 3.7 gibt es noch eine andere Möglichkeit die Inhalte zu erstellen zu verknüpfen. Werfe einen Blick auf Mehrsprachige Verknüpfungen

Sprach-Kategorien anlegen

Wir fügen zwei übergeordnete Kategorien hinzu: eine die unsere englischen Inhalte enthält, die andere für die französischen Inhalte.

  • Gehe zu Inhalte  Kategorien
  • Klicke oben links auf Neu, um eine neue Kategorie zu erstellen. Diese neue Kategorie wird die übergeordnete Kategorie für alle französischen Artikel, also nennen wir sie Français.
  • Wähle in der Dropdown-Liste als Sprache die Option Français.
  • Da es sich um eine übergeordnete Kategorie handelt, sollte sie Keine übergeordneten Kategorien haben.
  • Klicke auf Speichern & Schließen.
  • Wiederhole diese Schritte, um eine zweite Kategorie für die englischen Artikel mit dem Namen English zu erstellen. Stelle die Sprache auf English.
  • Jetzt existieren zwei Kategorien auf der Website! Die Rubrik Kategorien sollte nun eine übergeordnete Kategorie mit dem Namen Français und eine mit dem Namen English enthalten. Möglicherweise muss der Inhalt der Website anhand von Unterkategorien dieser beiden Hauptkategorien organisiert werden. In diesem Beispiel erstellen wir keine Unterkategorie.

J3.x-Multilingual-Create-Categories-de.png

Inhalte zu den neuen Kategorien hinzufügen

Next, create a set of (dummy) articles. We’ll create a few English articles and their French counterparts. In this example, we’ll create three articles in the English category and three articles in the French category.

  • Navigate to Content  Articles.
  • Create a new article called English Article 1.
  • Add some dummy text.
  • Make sure to assign the article to the English category.
  • In the Language drop-down list, select English.
  • Repeat the actions described above step to create a set of articles called English Article 2, English Article 3.

You now have three English articles. Instead of creating three corresponding French articles from scratch, let’s copy the English articles. To do this:

  • Select all three articles in the Content  Articles screen and click the Batch button of the toolbar.
  • In the Batch process the selected articles popup screen, choose the following settings:
    • Set Language: Français.
    • Select Category for Move/Copy: French.
    • Click the Copy select box.
    • Then, click on Process.

J3.x-Multilingual-Batch-Articles-en.png

You’ve now got a set of six articles: three articles assigned to the English category and their copies, assigned to the French category. Open the first of the three articles that are assigned to the French category. J3.x-Multilingual-Batched-Articles-en.png

Change the following details:

  • Title: enter the French title. In this case we’re only testing things out, so we won’t bother translating. Let’s enter French Article 1.
  • Alias: delete the content of the Alias field. Joomla! will add a unique alias for this article after saving it.
  • In the article text, just change a few words to be able to check later if the "French" text is displayed.
  • Status: change the status to "Published.
  • Click Save & Close.

J3.x-Multilingual-French-Articles-en.png

Repeat the steps above for the other French articles, and change the details accordingly. The output should be French Article 2, French Article 3, all assigned to the French category and to Language Français. The dummy content is ready. We have our two small groups of articles; each of these articles has been assigned to the appropriate language.