Description
Dvopis creates separate Serbian Latin translation files from the existing Serbian Cyrillic (sr_RS) translations of WordPress core, plugins and themes, and loads them instead of the Cyrillic ones.
- The site locale stays
sr_RS. No invented locale, no changes to WordPress, WooCommerce or theme files. - Original PO/MO files are never modified, renamed or moved, so WordPress updates and Loco Translate keep working as usual.
- Transliteration happens once, when you generate the files – not on every page view. Pages only load a different file.
- Generates PO, MO, the faster
.l10n.phpformat (WordPress 6.5+) and the JSON files used by JavaScript (for example the WooCommerce Cart and Checkout blocks). - Translation structure is respected: only translations are changed; original strings, contexts, plural forms, placeholders such as
%sor{name}, URLs and HTML tags stay intact. - Correct digraphs: Љ → Lj / LJ, Њ → Nj / NJ, Џ → Dž / DŽ.
- Switch Latin on or off for each plugin, theme and WordPress core separately.
- Detects when an original translation changed (by checksum) and offers to regenerate. Optional automatic mode regenerates active translations after translation updates and creates Latin translations for WordPress, active plugins and the active theme that do not have one yet (only while at least one Latin translation is active; translations you deactivated stay off).
- Latin slugs for new posts, pages, products and terms (Ђорђе → djordje), Latin file names for new uploads, an optional one-time conversion of existing Cyrillic slugs, and 301 redirects from old Cyrillic URLs.
- While the Latin WooCommerce translation is active, the Serbian dinar symbol is shown as “RSD” instead of the Cyrillic “рсд” that WooCommerce hard-codes.
- One-time conversion of Cyrillic text that plugins and themes saved in their settings (payment method titles, WooCommerce permalink bases…), with a preview and per-text selection.
Generated files are stored in wp-content/languages/serbian-latin/.
Installation
- Install and activate the plugin.
- Go to Tools → Serbian Latin Translation.
- Click “Transliterate all”. It covers WordPress, active plugins and the active theme; translations are processed one file per request, so it also works on shared hosting.
- Optionally enable automatic mode and the slug options in the settings on the same page.
FAQ
Does it change my original translations?
No. It only reads them. The Latin files are separate and can be deleted at any time by uninstalling the plugin.
Does it work with Loco Translate?
Yes. Keep editing the original Cyrillic translation in Loco Translate. The plugin marks the Latin version as outdated and you regenerate it with one click, or automatically when automatic mode is on.
I use the “Српски превод на латиници” plugin.
That plugin converts every string while the page is generated. Deactivate it when you use Dvopis; the admin page shows a notice while both are active.
My WooCommerce product URLs changed after activating Latin.
When the product or category base is not saved under Settings → Permalinks, WooCommerce takes it from the translation, so the Latin translation gives Latin bases. Old Cyrillic URLs are redirected with 301. Save your preferred bases under Settings → Permalinks to keep them fixed.
Some texts stay Cyrillic, e.g. “Директна банковна трансакција” or the product base “производ”.
Many plugins save the translated default text in their settings the first time they are saved, for example payment method titles and descriptions or WooCommerce permalink bases. From then on the text comes from the database, not from the translation, so a Latin translation cannot change it. Use “Find Cyrillic in plugin and theme settings” on Tools → Serbian Latin Translation, review the list and convert the selected texts. Only display texts (titles, descriptions, labels…) and URL parts are listed, and nothing is selected in advance; passwords, keys, tokens, e-mail addresses, URLs and identifiers are never listed or changed. Values under keys ending in “base” or “slug” become Latin URL parts, and old Cyrillic URLs are redirected with 301.
I deleted an original translation and the Latin one stopped showing.
WordPress only loads a translation when the original file exists, so Dvopis has nothing to replace. Reinstall the language pack (Dashboard → Updates) and regenerate. The admin page marks such translations as “Original file missing”.
Is multisite supported?
Not in this version.
What happens on deactivation and uninstall?
Deactivation stops loading the Latin files; they are kept for later. Uninstalling deletes the generated Latin files and the plugin settings. Original files are never touched.
Changelog
1.0.0
- First release.
