Menu

How we got three WordPress plugins translated into Croatian in one evening
📰

How we got three WordPress plugins translated into Croatian in one evening

DEV Community: php·Hiperlink Digital·about 5 hours ago
#52K9QdRi
#devto#dev#hr#wordpress#croatian
Long article (598 words) — no AI summary yet.
Reading 0:00
15s threshold

We publish three free WordPress plugins: Hiperlink Security, Hiperlink HUB3 Barcode and Hiperlink Cjenik. The last two only make sense in Croatia. Yet until this week, a Croatian site that installed any of them saw English.

The plugins were not the problem. We already had Croatian strings in our repository. They simply never reached WordPress.org, because a plugin's language pack is built only from translations approved on translate.wordpress.org.

Here is what it took, in order.

1. Import what you already have

Our Croatian strings lived in .l10n.php files, the PHP translation format WordPress uses since 6.5. translate.wordpress.org imports .po files, so we converted them with a short PHP script and imported them as "Waiting":

Hiperlink Security: 532 strings imported, 20 still missing

HUB3 Barcode: 65 of 69

Cjenik: 172 of 176

The 20 missing Security strings were all plurals ( %d … ). Our .l10n.php files had no plural entries at all, so the Croatian site would have shown English for every count.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.