Deprecated: Creation of dynamic property wpdb::$categories is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/wp-db.php on line 668 Deprecated: Creation of dynamic property wpdb::$post2cat is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/wp-db.php on line 668 Deprecated: Creation of dynamic property wpdb::$link2cat is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/wp-db.php on line 668 Deprecated: Return type of WP_Theme::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-theme.php on line 554 Deprecated: Return type of WP_Theme::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-theme.php on line 595 Deprecated: Return type of WP_Theme::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-theme.php on line 535 Deprecated: Return type of WP_Theme::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-theme.php on line 544 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/comment-template.php on line 1739 Deprecated: Return type of WP_REST_Request::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/rest-api/class-wp-rest-request.php on line 952 Deprecated: Return type of WP_REST_Request::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/rest-api/class-wp-rest-request.php on line 972 Deprecated: Return type of WP_REST_Request::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/rest-api/class-wp-rest-request.php on line 984 Deprecated: Return type of WP_REST_Request::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/rest-api/class-wp-rest-request.php on line 995 Deprecated: Return type of WP_Block_List::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 151 Deprecated: Return type of WP_Block_List::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 175 Deprecated: Return type of WP_Block_List::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 164 Deprecated: Return type of WP_Block_List::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 186 Deprecated: Return type of WP_Block_List::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 138 Deprecated: Return type of WP_Block_List::offsetExists($index) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 75 Deprecated: Return type of WP_Block_List::offsetGet($index) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 89 Deprecated: Return type of WP_Block_List::offsetSet($index, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 110 Deprecated: Return type of WP_Block_List::offsetUnset($index) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 127 Deprecated: Return type of WP_Block_List::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-block-list.php on line 199 Deprecated: Optional parameter $type declared before required parameter $wrapper is implicitly treated as a required parameter in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/class-fs-logger.php on line 145 Deprecated: Return type of FS_Key_Value_Storage::offsetExists($k) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 309 Deprecated: Return type of FS_Key_Value_Storage::offsetGet($k) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 317 Deprecated: Return type of FS_Key_Value_Storage::offsetSet($k, $v) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 301 Deprecated: Return type of FS_Key_Value_Storage::offsetUnset($k) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 313 Deprecated: Return type of FS_Key_Value_Storage::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 328 Deprecated: Return type of FS_Key_Value_Storage::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 339 Deprecated: Return type of FS_Key_Value_Storage::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 350 Deprecated: Return type of FS_Key_Value_Storage::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 362 Deprecated: Return type of FS_Key_Value_Storage::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 375 Deprecated: Return type of FS_Key_Value_Storage::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/freemius/includes/managers/class-fs-key-value-storage.php on line 389 Deprecated: Return type of WPCF7_FormTag::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/contact-form-7/includes/form-tag.php on line 395 Deprecated: Return type of WPCF7_FormTag::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/contact-form-7/includes/form-tag.php on line 387 Deprecated: Return type of WPCF7_FormTag::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/contact-form-7/includes/form-tag.php on line 381 Deprecated: Return type of WPCF7_FormTag::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/contact-form-7/includes/form-tag.php on line 399 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/contact-form-7/includes/mail.php on line 162 Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 21 Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 22 Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 153 Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/translations.php on line 293 Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 21 Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 22 Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 153 Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/translations.php on line 293 Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 21 Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 22 Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 153 Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/translations.php on line 293 Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 21 Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 22 Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 153 Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/translations.php on line 293 Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 21 Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 22 Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 153 Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/translations.php on line 293 Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 21 Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 22 Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 153 Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/translations.php on line 293 Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 21 Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 22 Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 153 Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/translations.php on line 293 Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 21 Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 22 Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 153 Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/translations.php on line 293 Deprecated: Optional parameter $errors declared before required parameter $instance is implicitly treated as a required parameter in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/so-widgets-bundle/widgets/contact/contact.php on line 916 Deprecated: Creation of dynamic property Elementor\Plugin::$icons_manager is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/elementor/includes/plugin.php on line 605 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/script-loader.php on line 331 Deprecated: Creation of dynamic property POMO_FileReader::$is_overloaded is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 21 Deprecated: Creation of dynamic property POMO_FileReader::$_pos is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 22 Deprecated: Creation of dynamic property POMO_FileReader::$_f is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/streams.php on line 153 Deprecated: Creation of dynamic property MO::$_gettext_select_plural_form is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/pomo/translations.php on line 293 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp.php on line 173 Deprecated: Creation of dynamic property WP_Term::$object_id is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-term.php on line 198 Deprecated: Creation of dynamic property WP_Term::$object_id is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-term.php on line 198 Deprecated: Creation of dynamic property WP_Term::$object_id is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class-wp-term.php on line 198 Sprachdateien für WordPress – Will Maquire Warning: Only the first byte will be assigned to the string offset in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/class.wp-scripts.php on line 492

Sprachdateien für WordPress

Deprecated: Optional parameter $content declared before required parameter $tag is implicitly treated as a required parameter in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-content/plugins/addons-for-elementor/includes/widgets/pricing-table.php on line 33
WordPress benötigt für jede weitere Sprache eine zusätzliche Sprachdatei. Die Grundsprache ist im Prinzip das, was der Entwickler im Code verbaut hat. Im besten Falle in Englisch. Aus dem Code generiert man eine Datei als Vorlage, aus der dann die Sprachdateien abgeleitet werden.
Die Vorgehensweise für die Übersetzung bezieht sich hier auf ein Plugin. Sie steht aber exemplarisch für alle anderen WordPress-Übersetzungen. Die Unterschiede sind nur die Verzeichnisse und die Namenskonvention der Sprachdateien.
Hat man alles vorbereitet, kann es hier weitergehen.

Die Dateiformate

Die folgenden Dateiformate werden für den gesamten Vorgang der Übersetzung benötigt.
.pot steht für “Portable Object Template”. Dies ist die aus dem Code generierte Vorlage für alle folgenden Sprachdateien. Sie enthält die Grundtexte, die der Entwickler im Code hinterlegt hat. Sie ist die Grundlage der Übersetzungen.
.po steht für “Portable Object”. Dies sind editierbare Dateien mit einer Übersetzung, bzw. Sprache pro Datei.

.mo steht für “Maschine Object”. Dies sind kompilierte und dadurch nicht mehr editierbare Portable Object (.po) Dateien. Pro Sprache wird eine Datei benötigt.

Der Spracheditor

WordPress benutzt für die Lokalisierung und der Sprachausgabe das gettext-Format. Das ist alles was wir wissen müssen. Solange wir den Code richtig vorbereitet haben übernimmt an dieser Stelle der Spracheditor.
Der Spracheditor wird benötigt, um den Quelltext nach sprachabhängigen Texten zu durchsuchen, die gewünschten Srpachdateien zu erstellen und zu pflegen und eine Sprachdatei zu generieren, die WordPress interpretieren kann. Es gibt viele Editoren, aber einer der meist genutzten ist Poedit. Einfach und kostenfrei.

Die Dateivorlage

Poedit starten und eine neue Datei anlegen.
Datei | Neu...
Die Grundsprache der Vorlage definieren, also die Sprache, die im Code hinterlegt ist.
Englisch (Vereinigte Staaten) | OK
Den Projektname vergeben. Der Name setzt sich aus dem Slug, also dem Basis-Pluginnamen und der Version zusammen. Mehr erstmal nicht.
Katalog | Eigenschaften... | Projektname und -version | my-plugin 1.0.0
Die Datei in das Sprachverzeichnis des Plugins speichern.
Datei | Speichern... | /my-plugin/languages/en_US.po
Den Dateityp ändern und neu öffnen.
en_US.po -> en_US.pot
Das Verzeichnis auswählen, das den zu durchsuchenden Code enthält. In unserem Fall das direkt oberhalb liegende Plugin-Verzeichnis.
Katalog | Eigenschaften... | Quell-Pfade | + (Pfade) | Ordner hinzufügen... | .
Die relevante Funktionen eingeben, die sprachabhängige Texte enthalten .
Katalog | Eigenschaften... | Schlüsselwörter | + | __
Katalog | Eigenschaften... | Schlüsselwörter | + | _e
Jetzt ist alles eingestellt um die sprachabhängigen Texte aus dem Code zu lesen.
Katalog | Aktualisieren aus Quellcode
Die Vorlage ist generiert. Speichern bitte nicht vergessen.
Datei | Speichern

Die Sprachdateien

Poedit starten und eine neue Datei aus der Vorlage anlegen.
Datei | Neu aus POT-/PO-Datei... | /my-plugin/languages/en_US.pot
Die Sprache für die neue Übersetzung auswählen.
Deutsch (Deutschland) | OK
Einträge der Tabelle über setzen.
'Hello, World!' -> 'Hallo Welt!'
Die Datei in das Sprachverzeichnis speichern.
Der Dateiname setzt sich aus dem Slug, einem Bindestrich und der Länderkennung zusammen.
Datei | Speichern... | /my-plugin/languages/my-plugin-de_DE.po.
Bei jedem Speichern wird automatisch eine kompilierte .mo-Datei generiert und ins gleiche Verzeichnis gespeichert.
/my-plugin/languages/my-plugin-de_DE.mo
Die Grundsprache ist zwar bereits im Code vorhanden, kann aber auch mit einer .mo Datei angepasst werden.
Das war’s.
Deprecated: Creation of dynamic property WP_Post::$db_id is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 809 Deprecated: Creation of dynamic property WP_Post::$menu_item_parent is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 810 Deprecated: Creation of dynamic property WP_Post::$object_id is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 811 Deprecated: Creation of dynamic property WP_Post::$object is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 812 Deprecated: Creation of dynamic property WP_Post::$type is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 813 Deprecated: Creation of dynamic property WP_Post::$type_label is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 898 Deprecated: Creation of dynamic property WP_Post::$title is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 899 Deprecated: Creation of dynamic property WP_Post::$url is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 900 Deprecated: Creation of dynamic property WP_Post::$target is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 903 Deprecated: Creation of dynamic property WP_Post::$attr_title is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 912 Deprecated: Creation of dynamic property WP_Post::$description is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 922 Deprecated: Creation of dynamic property WP_Post::$classes is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 925 Deprecated: Creation of dynamic property WP_Post::$xfn is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 926 Deprecated: Creation of dynamic property WP_Post::$db_id is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 809 Deprecated: Creation of dynamic property WP_Post::$menu_item_parent is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 810 Deprecated: Creation of dynamic property WP_Post::$object_id is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 811 Deprecated: Creation of dynamic property WP_Post::$object is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 812 Deprecated: Creation of dynamic property WP_Post::$type is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 813 Deprecated: Creation of dynamic property WP_Post::$type_label is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 898 Deprecated: Creation of dynamic property WP_Post::$title is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 899 Deprecated: Creation of dynamic property WP_Post::$url is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 900 Deprecated: Creation of dynamic property WP_Post::$target is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 903 Deprecated: Creation of dynamic property WP_Post::$attr_title is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 912 Deprecated: Creation of dynamic property WP_Post::$description is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 922 Deprecated: Creation of dynamic property WP_Post::$classes is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 925 Deprecated: Creation of dynamic property WP_Post::$xfn is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu.php on line 926 Deprecated: Creation of dynamic property WP_Post::$current is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu-template.php on line 386 Deprecated: Creation of dynamic property WP_Post::$current is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu-template.php on line 386 Deprecated: Creation of dynamic property WP_Post::$current_item_ancestor is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu-template.php on line 532 Deprecated: Creation of dynamic property WP_Post::$current_item_parent is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu-template.php on line 533 Deprecated: Creation of dynamic property WP_Post::$current_item_ancestor is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu-template.php on line 532 Deprecated: Creation of dynamic property WP_Post::$current_item_parent is deprecated in /mnt/web605/e0/76/51697076/htdocs/projects/maquire/wordpress/wp-includes/nav-menu-template.php on line 533