Admin Languages

From TNG_Wiki
Revision as of 18:29, 30 September 2019 by Mdenman (talk | contribs)

Jump to: navigation, search
Construction Under Construction
(The text of this article describes Version 18, but the visualizations are from Version 15.)
Robin Richmond 30 Sep 2019

In TNGv12 and beyond, this mod uses the new guidelines for TNG v12+ cust_text.php files
If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

Admin Languages
Summary Simplifies the entry of languages by combining the Search and Add New forms into one screen
Mod Updated 30 Sep 2019
Download link
TNG 12.0
Download stats
Author(s) Robin Richmond
Homepage Robin Richmond's Genealogy Database
Mod Support My Mod Support form or TNG Community Forums
Contact Developer My Mod Support form
Latest Mod
Min TNG V 10.1
Max TNG V 12.2
Files modified
admin_languages.php, English cust_text.php
Related Mods
This mod makes admin_addlanguage.php and admin_editlanguage.php obsolete

Purpose of the Mod

This mod improves workflow by combining the Search, Add New, and Edit forms into one screen. The mod also enhances the Add New Language form to come up with more meaningful values for the Display Language and Character Set fields.

That is, depending on which language folder is selected by the user,

  1. The input box for the language display value (e.g. German vs Dutch vs German-UTF8, etc.) may be converted into checkboxes that populate an input box into which the user can ultimately enter an arbitrary value.
  2. The input box for the character set is initialized to "UTF-8" for all UTF8 language folders, to "ISO-8559-2" for Czech and Polish, and to "ISO-8559-1" for all other language folders.

Mod Version 2 Uninstallation

Admin Languages v10.1.0.2 (i.e. v2) contains some ambiguous code fragments in two target locations, and thus does not uninstall correctly. It uninstalls without error, but it leaves an incorrect string in the PHP program admin_languages.php so that admin_languages.php neither works correctly, nor allows the Admin Languages mod to be re-installed.

After uninstalling Admin Languages v2, you can repair admin_languages.php either by

  1. Restoring it from the original admin_languages.php in your TNG download, or
  2. Installing Admin Languages Repair, from the zip file listed on the right.

Once you have Installed Admin Languages Repair, you should just delete it; Do NOT Uninstall Admin Languages Repair. And by all means, delete Admin Languages v2 once you have uninstalled it.

Mod Conflicts

No other mods affect admin_languages.php.


This mod uses the standard installation procedure, though it should be noted that this mod contains a mod subfolder that is shared with other mods that implement Inner_Mod_Menus. Because of the shared subfolder, as you unzip or copy the mod, you might get a warning noting that a file or folder already exists. You can just ignore that warning.
[Show Installation Details]


  • A working TNG installation.
  • An installed current version of the Mod Manager.
  • You should backup files listed in the panel on the right.


  1. Remove and delete previous version of this mod.
  2. Backup the files updated by this mod. They are listed in the panel at the upper right.
  3. Download the .zip file, Extract its .cfg file to the mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.


  1. Try using the Mod Manager Remove capability
  2. Contact me through My Mod Support form.
[Hide Details]


Admin languages-before1.png
Add New
Admin languages-before2.png
Combined Form
Admin languages-after1.png
Combined Form - Edit
Admin languages-after-edit.png
AFTER: Add New form after a language folder has been selected
Admin languages-after2.png
AFTER: There are fewer choices when the language name in English and in the selected language are the same (or when no translated language name is available).
Admin languages-after3.png
AFTER: There is only one choice when a non-UTF language is chosen and the translated language name is the same as the English (or is unavailable)
Admin languages-after4.png

Revision History

*** The newest version is at the top of this table ***

Mod Version TNG Versions Date Note 12.0 - 12.2+ 30 Sep 2019 No functional changes.
  • Internal and Administrative changes
    • Updated the top-of-file comments and moved notes to the cfg file.
    • Moved a text string to cust_text.php,
    • Placed my "Inner Mod Menu" drop-down at the right end of the standard TNG Inner Menu. 12.0+ 4 May 2018 No functional changes; made compatible with TNGv12. 11.0 - 11.1.2+ 1 Dec 2017 - Removed a comment line from the cust_text.php target locations search strings

- Updated the mod for TNGv11, which added a field to the Languages table.
- Inside the .cfg file, added comments to remaining some code fragment locations
- DisplayModNames is now optional 10.1.0 - 10.1.2 18 Sep 2015 Fixed the problem that causes version 2 to uninstall badly. Also defaults to ISO-8559-2 for Czech and Polish non-UTF language folders. 10.1.0 - 10.1.2 12 Sep 2015 Added the edit form to the Search & Add New page. Added logic to provide choices to populate the Display and Character Set fields. 10.1.0 - 10.1.1 30 Apr 2015 Initial release.

Sites using this mod

If you download and install this mod, please add your site to the table below.

URL User Note Mod-Version TNG-Version User-language
Robin Richmond's Genealogy Database Robin Richmond Mod developer 11.1.2 English
MOTYER Family Genealogy John Mark Motyer Public site see here see here EN, DE, RU