Search all texts of Admidio and replace them with your own wording, without editing XML files.
language-overridesLet an administrator search modify all translated texts of Admidio and replace any of them with their own wording, for example “Mitgliederliste” instead of “Kontakte”, without editing XML files. The plugin is only needed to setup the modified texts. Once the texts are saved, the normal Admidio translation methods use the changed texts without the help of this plugin.
No releases have been published yet.
As administrator, go to Admidio's plugin manager (Admidio 6.0 or later and PHP 8.2 or later required), select “Add plugin” and upload the plugin ZIP file, then enable the plugin. The plugin has no database tables. Its page appears in the menu below Extensions for administrators only. Its texts are available in English and German (informal and formal).
Admidio reads adm_my_files/languages/<language>.xml before its own language file of that language (and before the language files of the plugins), so an entry in such a file replaces the text. The plugin is the interface to these files:
^Kont.*e$) and against the text ids; an invalid expression is reported. Core and plugin texts are searched. Texts that only the installer shows (INS_…) are left out unless the setting says otherwise.de (du) or de-DE (Sie), the same text.#VAR1#) that the original shows. “Restore the original” removes an override.en is not seen by users of de, because the German file has the text already. de and de-DE are separate languages.original with the text of the core at the time. Admidio ignores it.#VAR1#, #VAR2# … the original uses. A value that is not in the original is refused. A line break is typed as a new line and stored as \n.
A file is changed under a lock, by editing the document that is there, so comments in it survive, and is replaced with a rename. Before that the old file is copied to the backup folder of the installation (the preference system_backup_path, by default adm_my_files/backups/) into the subfolder language-overrides/, as <language>-YYYYMMDD-HHMMSS-mmm.xml. If the copy cannot be made, nothing is changed.
A form that was opened before somebody else changed the file is refused (“open the text again”).
Administration → Preferences → Contents → Language overrides
| Setting | Default | Meaning |
|---|---|---|
| Backups per language | 20 | How many copies of each override file are kept in the backup folder; 0 turns the copies off. |
| Search installer texts | off | The texts that only the installation and the update show (INS_…) are left out of the search unless this is switched on. |
The source code is on GitHub.