Typosema documentation
Typosema machine-translates a TYPO3 page, its properties and all of its content, into another language. You review the draft side by side, fix what needs fixing, and publish. Translations are stored as normal TYPO3 language versions, so your site serves them with its usual language menu, hreflang and caching.
Requirements
- TYPO3 v12 LTS or v13, installed with Composer.
- PHP 8.1 or later.
- Your TYPO3 server must be able to reach
https://nmt-api.umuganda.digital. - A beta login. Request one here after accepting the Beta Terms of Use. Each login is personal.
Languages: the translation service currently supports English ↔ Kinyarwanda. More languages will appear in the module as soon as the service supports them.
Install
Run these in your TYPO3 project folder, using the username and password we sent you:
composer config repositories.typosema composer https://beta.typosema.com/packages
composer config --global http-basic.beta.typosema.com <username> <password>
composer require digital-umuganda/typosema
vendor/bin/typo3 extension:setup
--global stores the password in your user's Composer settings, not in the project, so it never ends up in your repository. The last command activates the extension and creates its database tables.
If you previously installed it as digital-umuganda/typo3-nmt-translate, remove that package and require digital-umuganda/typosema instead. Settings and data carry over.
Set up your site
- Add the target language to your site configuration (Site Management → Sites, or
config/sites/<site>/config.yaml) with its ISO code, for examplerwfor Kinyarwanda. The module only offers languages your site defines. - Give editors access: they need edit rights on the pages and the target language in their backend group's Allowed languages. A blank list means all languages.
Translate a page
- Open the Translate module in the Web section of the backend.
- Select a page in the page tree.
- Pick the target language and click Translate this page. Typosema creates a hidden draft of the page and every content element on it.
- Review. The draft fields are listed next to the original and are editable. The page URL slug comes first. Fields the service could not translate are marked needs manual.
- Publish to make the translation visible. Unpublish hides it again.
What gets translated: page titles, navigation title, subtitle and SEO/social fields; content headers, subheaders and text, including rich text, bullet lists and tables, and elements nested in containers; and the captions, alt text and titles of images, video, audio and downloads.
Formatting is safe: in rich text, only the words are sent for translation. Tags, styles and internal links stay exactly as they were.
Translating a page that already has a translation does nothing and tells you so, which protects your reviewed edits. To start over from a fresh machine translation, tick Re-translate (overwrite). That resets the page to a draft.
Tip: add images, audio and downloads as file references, and videos as YouTube or Vimeo media, rather than embedding them in the text. TYPO3 removes embedded media from rich text when it saves.
Coverage check
Before you publish, the review screen lists everything on the translated page that will still be in the source language or broken: linked pages that have no translation yet, content that was not translated, and leftover placeholders.
You can also run a rendered scan. It loads the live page and the draft and shows any text that is still in the source language, sorted into likely names and numbers, content elements, and template or plugin text that a developer needs to handle.
The scan only works when the site and the backend share the same address (scheme, host and port). It does not check meta tags, text drawn by JavaScript, or sites behind HTTP basic auth. The coverage check is advice: it never blocks publishing.
Website design text
Some text is built into your site's template rather than stored on a page: the footer, a hero tagline, buttons, the copyright line. Typosema can translate it too.
- Run the rendered scan on a translated page. Template text is listed under Website design text.
- Tick the lines you want and click Translate selected. They are saved as drafts.
- Open the Website design text tab, edit the lines if needed, and approve them. Nothing goes live before it is approved. Approving a line unchanged keeps it as is.
Approved lines appear on every translated page of that language. Links in your template that point to an English page are pointed at its translation once that translation is published, and a link whose text is the page's title shows the translated title.
Who can do this is set by designTextAccess (see Settings).
Limits: text split by formatting, such as Digital <em>Umuganda</em>, cannot be swapped, and the scan marks it for your developer. Template text identical to a content header stays in English. Plugin output that TYPO3 never caches is not changed. After publishing through a workspace, clear the caches yourself.
Translate many pages
Pick a page and a depth (this page, its direct children, or the entire subtree) and a language. Typosema creates a job and opens a dashboard showing each page's status, with Publish all and Retry failed.
A job runs in one of two ways:
- Process now on the dashboard. Works without setup, but the dashboard must stay open until the job finishes.
- The TYPO3 Scheduler, unattended. Recommended for whole sites. Set it up once:
composer require typo3/cms-scheduler
vendor/bin/typo3 extension:setup
Then in Admin Tools → Scheduler, add a recurring task of type TypoSema: process pending subtree jobs (every minute is fine), and make sure the server runs the Scheduler from cron:
* * * * * /path/to/your/project/vendor/bin/typo3 scheduler:run
Settings
In Admin Tools → Settings → Extension Configuration → nmt_translate. The defaults work for most sites.
| Setting | Default | What it does |
|---|---|---|
slugMode | keep | keep reuses the original URL slug (/services). translate builds one from the translated title (/serivisi-zacu). You can also edit the slug per page when reviewing. |
glossaryTerms | empty | Names and terms to leave untranslated, one per line or comma-separated. They are kept as written in every translation, and the coverage scan treats them as fine. |
designTextAccess | siteEditors | Who may translate website design text. siteEditors: admins and editors who can edit the site's root page and have the language. permission: those editors also need the backend group option Translate website design text. |
htmlMode | nodes | Keep nodes: only text is translated and markup is untouched. |
apiTimeout | 30 | Seconds to wait for each translation request. |
batchSize | 50 | Text pieces per request to the translation service. |
apiBaseUrl | https://nmt-api.umuganda.digital | Translation service address. Leave as is. |
What it does not do yet
- Plugin settings (FlexForms) are copied untranslated. The module warns you when a page has them.
- Static file caches, reverse proxies and CDNs are not cleared for you. Clear them after publishing a translation or approving design text.
Machine translation can be wrong. Have someone who knows the language review a page before you publish it.
Updates and help
New releases appear in the beta repository automatically. Update with the commands below. When updating from 0.7.0, the setup command creates the new design text table, and the cache flush is required once.
composer update digital-umuganda/typosema
vendor/bin/typo3 extension:setup
vendor/bin/typo3 cache:flush
Questions, bugs and feedback: monitoring@digitalumuganda.com. Tell us your TYPO3 version and what you clicked. Your feedback is covered by section 9 of the Beta Terms.