Can AI-tools help WordPress developers write more translation-friendly code?

A WordPress plugin may pass all the usual mechanical internationalization checks and still be surprisingly difficult to translate.

The strings are included via the WordPress’ gettext wrapper. The text domain is correct. Everything looks fine – until translators get stuck when a sentence has been assembled from several fragments, the English article “the” has been translated separately from its noun, or the same English word is used in two places where another language needs two different translations.

These are problems I’ve encountered repeatedly during my years as a WordPress translation contributor and Polyglots mentor.

In my article about common i18n pitfalls and my WordCamp Europe presentation in Athens, I tried to explain why technically internationalized code isn’t necessarily easy to localize.

Now I’m experimenting with a different approach: can we help AI coding assistants to better recognize these problems and help developers avoid them?

I’ve created an open-source WordPress i18n Helper Skill.

It’s a set of instructions and examples intended for AI coding assistants. Rather than simply checking whether the correct WordPress functions are used, it encourages the assistant to consider linguistic issues: how their string might behave when it gets translated to other languages, with different grammar, word order, plural rules, and conventions.

The skill has two modes:

  • REVIEW: Examine existing code, identify potential translation problems, explain why they matter, and suggest improvements without changing anything.
  • IMPROVE: Help implement corrections while respecting existing functionality and asking the developer when a decision requires more context.

One important goal is educational. I don’t just want an AI assistant to replace one piece of code with another. I want it to explain why the original construction could cause trouble for translators.

I’d love your help testing it

This is an early version, and I don’t yet know how reliably different coding assistants will follow its guidance.

If you’re developing for WordPress, perhaps building a plugin or theme, I’d be interested to hear what happens when you ask your coding assistant to review its internationalization using this skill.

And if you’re a translator, I’d especially welcome examples of code that was technically internationalized but made natural translation difficult or impossible.

What did the assistant recognize? What did it miss? Did it suggest anything unnecessary or potentially harmful? Are there linguistic problems that deserve better explanations?

You can share questions and examples in GitHub Discussions, open an issue for specific problems and suggestions, or contact me on the WordPress Slack.

The project is licensed under GPL-2.0-or-later, and contributions are welcome.

My hope is that this can tool can help developers create better code, that translators will be able to translate better, and help us catch internationalization problems at an earlier stage, even before translators get stuck.

Explore the WordPress i18n Helper Skill on GitHub

Back in business with Pappocom’s excellent Sudoku app for Windows

Many years ago, I enjoyed playing Sudoku on my computer.

I was using Wayne B Gould’s brilliant Windows game sud.exe. That’s actually the person who “discovered” Sudoku and made it popular around the world. He accomplished that by generating sudoku games in bulk and distributing to any publications for free, as long as they mentioned his company’s name, Pappocom, next to the game itself.

Then he sold life-time licenses to users, like me, for a very reasonable price.

Whenever I moved to a new computer, I’d download a fresh copy of the game; hunt for my registration key (ending in “UTDUVN” – that much I still remember!) and continue playing a game, or two, every now and then.

Now, however, getting it to work has become trickier.

The last version of the installation package was compiled and distributed more than 10 years ago. And sometime around 2017 he stopped providing support, but also shared a license key you’re welcome to use for free.

However, that installation file you can find won’t work on current Windows 11 machines, since it relies on some frameworks that have been retired since long.

The game itself, on the other hand, works just fine! I just had to jump over some hurdles, which I’ll list here.

1. Find the download. Google for Pappocom sud.exe and/or search for pappocom.com on the Internet Archive “Wayback machine”.

2. If you find the offical installer, it will fail. But you can still unpack it, for instance with 7-zip, and manually extract it to a suitable folder.

3. When you extract the installation package this way, it probably gets flagged as “Read-only”. To be able to register the license details, you should remove that flag for the whole folder structure.

4. The file you need to execute to run the app is …sudoku\OFFLINE\0\Sud.exe

5. If you happened to extract the program folder under “Program Files” or something similar, you will need to once execute the program with “Administrator privilege”, to register the license key.

6. The developer shared a free-to-use license key when retiring the app from maintenance. You can find the details below, or look up his old site from around 2020 (plus/minus).

And here are the magic values to use as license:

Key: 000015-D5RDHT-HFJTRN-1CMVNX-D9NVWM-W0HAFU-QVJ29V-CRBZVW-PU7JME-TCZENU
Name: Sudoku Player

The key is partially generated from the “Name”, so it needs to be entered exactly like above.

If you want the app to correctly handle high scores, etc, then you may need to also create a branch in the registry: HKEY_CURRENT_USER\Software\Pappocom\Sudoku

As soon as that branch is created, the program may happily use it without further ado.

Largest pain points in localization of WordPress 2026 – and what we’re doing about it

Fighting for good translations of WordPress UI (core, plugins, themes, etc.) is more painful in 2026 than ever before.

The reason is AI.

But I need to be much more specific.

Machine translation is a type of AI-tooling that has been around for at least some 20 years to speed up human translation. These tools have improved immensely over the years, and today, with a good TM (Translation Memory), and a well-tuned MT (Machine Translator) you can often get almost perfect results.

The new trend now, though, is that a lot of developers instead of specialized MT tools, have started using commercial LLMs (like ChatGPT, Claude, and other) to bulk translate their plugins/themes into a lot of languages they personally don’t speak.

The main problem is that after spending a few minutes (and a large number of tokens), they expect the unpaid volunteer contributors of the Polyglots’ team to validate/fix/improve their translations, a task that takes substantially more effort, more than the Polyglots’ volunteers can handle. For most locale teams the backlog of pending strings grow with thousands of new strings every week. (Ref: https://translate.wordpress.org/stats/ )

Only a few locale teams manage to regularly clear their backlog. In most cases, the only way to achieve this is by spot-checking and then approve or reject the whole submission in bulk.

By the way “approving or rejecting in bulk” is one of the things we need to make much easier. Our current “bulk” commands only deal with one screenful of strings at a time.

Another problem is that the developers, obviously, want to make their shiny new machine translations available to the users and apply for the PTE role (Project Translator Editor – a bit like “translation committer”). The number of PTE requests has exploded. Today we get at least 10 times more PTE requests over a week than we used previously. In addition, they request PTE not for the one-two languages they speak, but for 10-20 locales.

Since the PTE role is supposed to be a quality assurance step, most locale teams want to make sure that the requester knows the target language well; and we get stuck.

So what are we doing?

The Polyglots team has started discussions around what can be done to improve the situation. Here are a few directions.

Help LLM users make better translations

Many locale teams have published style guides. We can adapt these for LLM ingestion:

  • Write the style guide itself in English
  • Use markdown syntax
  • Optimize the instructions for use with LLM
  • Make it easier to find these style guides

Creating a new machine translator role

This type machine translations isn’t going to disappear. Instead, we need to make room for it in our systems. We may create a new role, where a contributor is able to distribute translations, but they can’t approve/reject/edit already approved translations from other users.

Also, unverified machine translations should not be added to the translation memory, which allows easy reuse of previous translations from anywhere in the project.

To some extent, we already have similar functionality for a different role, CL-PTE (cross-locale project translation editors – a role used when a developer submits translations that have been checked by professional translators).

The role of WordPress Polyglots’ also changes

We’ve been building and coaching volunteer translators to make better translations.

Now we need to coach developers about using machine translations in a smart way and guide them more about internationalization (preparing their code in ways that allow for better translations).

Next steps

We’ve just started talking about these things. Last weekend we had a video meeting with Polyglots contributors from all between Japan and all over Europe.

That discussion continues.

I also intend to talk to plugin/theme developers, to get their view on these things.

 

PS

While I wrote this short text, we the team received another three PTE requests. I’m off to handle them.

Slides from presentation about i18n in Athens on June 10 2023

So here are my slides for the presentation “Enable truly global use of your code – avoid the typical i18n pitfalls” that I made on June 10, 2023 at WordCamp Europe. Please share it with your developers, along with the link to my main article on typical i18n errors in WordPress.

Watch or download the slides (in PDF format)

Tobi’s talk on WordPress i18n (Internationalization) at WordCamp Europe 2023 in Athens

I’ll be giving a presentation at WordCamp Europe 2023!
If you are at the venue, please come to Track 2 on Saturday morning (June 10th) at 11 o’clock local time. And ask all your developer friends to join you!

You can also watch online via direct streaming, navigate to https://europe.wordcamp.org/2023/live-streaming/ and find the right stream (or head directly to https://www.youtube.com/watch?v=LV-d7Cs-ovM ). You can even ask questions online, they’ll be read back on stage by the emcee. It’s at 8 AM UTC, corresponding to 10 AM in most of Europe.

The title of my talk is “Enable truly global use of your code – avoid the typical i18n pitfalls” and most of all, I’m addressing plugin and theme developers.

See also my main article on typical internationalization issues.

PS! Once due, I’ll also publish my slides here. Stay tuned :)

Open message to the app developers for DIA, Condis, and more – you’re excluding customers arbitrarily

Screenshot from Google Play in the phone
I’m not able to install or use the DIA Club app or the Condis app.

This is probably due to a simple misunderstanding from the app developers – They have indicated that their apps should be available for Spain. But this setting is used in a stricter way than they may expect.
As a result, I’m not allowed to install and use their apps.
If I search for their apps, via Google Play, I won’t find them. They simply “aren’t there”.

The reason for this becomes visible when I specifically visit the page of the app. It says, in red letters: “This object is not available in your country.” In other words, Google is here imposing the kind of restriction that usually would apply for regionally restricted content – TV programming, etc.

Screenshot from Google Help about changing your country
So should I just “change my country”?
Well, that has its limitations, too:
– You can never change your “Google Play country” more than once per year.
– Any saved “Google balance” becomes unavailable.
– You may lose access to any TV shows, books, etc. that are limited to your previous country.
Also: In order to change your country, you must have a local payment method.

In other words: If someone who lives partly in Spain, and partly somewhere else, you’re restricting them from using your app, probably due to a simple misunderstanding. Quite a few of your customers may not be able to set their country to Spain, but I bet you still want us as your customers?

Renfe discriminates foreigners

While at the hotel, I installed the Android app “Renfe Ticket” and bought my ticket. It worked all perfectly.

But when I later needed to show this ticket in order to get on the train, the app complained that I had no connection to the internet. (However, everything else on the internet was working perfectly well: I could open various webpages, communicate via WhatsApp and post images to Facebook…)

In order not to miss the train, I had to go and by a second ticket from the cashier and then rush back to board the train.

(I was instructed to file a complain and request a refund. I did that on the very same day. Now it’s been more than a week, so Renfe isn’t really hurry with correcting things, but that’s another story.)

I then experimented a bit. And here’s what I found out.
Obviously, the app is communicating via some kind of API with RENFE’s servers. And these servers simply discard requests from foreign IP-addresses! So when I’m using the mobile internet from my Swedish mobile number, their servers can’t be reached. (When you’re connected to the WiFi in the hotel all is perfectly fine, since you’re then using the internet connection of the hotel.)

Same problem happens when I try to check expected arrival time for the commuter train: the app Renfe Cercanias isn’t able to give me any information while I’m using my Swedish mobile internet connection.

So: When European Union strives to unite its member states into one large country (telecom-wise), RENFE is going in opposite direction, making sure that ONLY Spanish mobile numbers should be served in their apps.

Security is more that just https – signon.se just missed me as a customer

A few weeks ago “Thirst”, the newest book by Jo Nesbø, was released in Swedish. (It will be realeased in English tomorrow.) I wanted to buy it and found that one of the best prices was offered by www.signon.se.

By the way, if it wasn’t for a direct link from pricerunner.se, I’d never found the book on their site, since their internal search logic is really bad. They state that you can search on title, author, publisher, etc., but in reality you can only search for any single one of these arguments. And you must get a 100% match. Try typing “Jo Nesbø” without Norwegian or Danish keyboard layout!

So I added the book to my order and went to check-out. First I would had to register. And this is were things went awkward. Obviously, the site uses https, so the communication between my browser and their server is encrypted. But what do they do with my data?

Firstly: The password I created for this website was e-mailed back to me! To me, this an obvious signal that their whole thinking around security is flawed. It’s quite possible that they store my password in clear in their database, which is insecure practice. Almost all current frameworks know to instead store hash values that are created using individual salt strings and cryptography, and never ever send e-mails with the password in clear. The industry practice is to only send one-time nonce-values upon request that then are used to allow password to be reset if lost or forgotten.

Secondly: The account was immediately activated without any verification of my e-mail address. With a simple script you could start stuffing their database with fake accounts and even have them automatically send out confirmation emails as spam, possibly with insulting passwords written in clear!

Next, I went to the beautiful check-out page, which proudly shows off a DIBS logo. Would I trust DIBS with my credit card details? Yes, they’re OK. But would I trust signon.se with my details? No, not really. So I had a quick look at the code behind the page. The form was programmed to deliver my credit card details to their own server. That helped me make my final decision.

End of story: I decided to pay about one euro more, but to a different vendor.

A good tool to get better quality in WordPress translations

First of all, a big “Thank you” to those of you, who have contributed and continues to contribute in making WordPress available in various languages, including Swedish.

All translation of WordPress core, and most translations of plugins and themes are handled via the online platform GlotPress. Anyone is welcome to take part in this work. You just need to register a free account at www.wordpress.org, and then you may head over to https://translate.wordpress.org/ and start translating!

However, one important task for us, is to create and maintain a consistent user experience for a localized (i.e. translated) WordPress.

One important tool for this is the glossary, where we have collected useful comments on specific words and phrases and in many cases give the specific term we’ve chosen to use.
One example: The English word “shortcode” might be translated into Swedish in various ways, and we’ve simply chosen the word “kortkod” for this term.
You can check out the Swedish glossary here:
https://translate.wordpress.org/projects/wp/dev/sv/default/glossary

If you’ve been translating anything for WordPress core, then you may have seen translated terms and comments automatically show up in the translator view. In a future version of GlotPress we may expect these useful hints to show up during translations of any plugin or theme.

But in the meantime, I’d like to tell you about a very useful tool, which will “inject” translator hints in these other projects already today.
It’s “GlotDict” an add-on for Firefox and Google Chrome, developed by @Mte90, Daniele Scasciafratte from Italy. More information can be found at https://github.com/Mte90/GlotDict

If you want to help in translating WordPress into Swedish, then you’re more than welcome. And please join our special slack channel: #translations at https://wpsv.slack.com/ (You’ll need an invitation to Slack, which you can get from anyone, who’s already there.)

Whatever you do, never activate your Trados Studio 2017 before trial period has ended!

I just discovered a weird bug in Trados Studio 2017, and it may cost me 1-2 working days!

I started using Trados Studio 2017 (and got it in trial mode mid November 2016. On December 14, when some 2-3 days remained of the trial period I decided to activate my copy. Everything worked fine. Since my license was for the “Starter” edition, I had to choose 5 languages I want to work with, but that’s OK.

Today I needed to work, so I started the program. And it tells me: License expired!
Trados 2017 License expired
My online account at SDL, though, still shows that I got one license, which was activated on Dec 14. Therefore I’m not allowed to reactivate with the same code, on the same computer, since that license is “already in use” according to SDL.

I’ve filed a ticket to SDL, this may cost me 1-2 days, since I haven’t paid for premium support.

Weird!