Skip to main content

Bridging the Gap from Wordpress to Weblate

K.3.401 | Day 2 | 15:10 - 15:40 | Speakers: Niklas Korz

Bridging the Gap from Wordpress to Weblate
A picture of a devroom at FOSDEM 2024
Open in browser
Get involved in the conversation!Join the chat

Notes

Abstract

Localization of Wordpress content has many solutions, most of them in the form of Wordpress plugins that come with their own way of doing things and a lot of quirks. Weblate is a very mature solution that in our experience is a lot more reliable and easy to work with than any of these plugins. For our own CMS pages, we were wondering how to best explore this path and created a Deno- / TypeScript-based preprocessing tool that can extract messages from Wordpress Elementor pages for use in Weblate, as well as create localized variants of these pages using the Weblate translations as input. While we focus on the localization of Elementor pages in particular, we'll also touch on the subject of Gutenberg blocks due to their widespread use.

Note that this talk may be somewhat hard to apply to existing setups because of the preprocessing happening outside Wordpress, working under the assumption that you are fine regenerating static HTML whenever you want to "deploy" your Wordpress pages. On the positive side, it eliminates the need for any Wordpress caching tools!

Attachments


Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.