Inhaltsverzeichnis

Admidio Language Overrides Plugin — change how Admidio words things

Language Overrides

Search all texts of Admidio and replace them with your own wording, without editing XML files.

Plugin ID
language-overrides
Author
Reinhold Kainhofer
License
GPL 2
Category
Administration
Supported databases
(MySQL, MariaDB, PostgreSQL)
Supported languages
English, Deutsch (du), Deutsch (Sie)
Tags
translation language wording

Description

Let 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.

Downloads

No releases have been published yet.

Installation

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).

How it works

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:

Things to know

Files and backups

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”).

Settings

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.

Not in this version

Source code

The source code is on GitHub.