Admin Languages
Admin Languages | |||
---|---|---|---|
Summary | Simplifies the entry of languages by combining the Search, Edit, and Add New forms into one screen, and provides more meaningful prompts for languages and character sets. | ||
Validation | |||
Mod Updated | 22 Sep 2023 | ||
Download link | For
(Older downloads are in the Revision History) | ||
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 | 14.0.0.6b | ||
Min TNG V | 10.1 | ||
Max TNG V | v15.0 | ||
Files modified | admin_languages.php, English cust_text.php | ||
Related Mods | |||
Notes | * Removed showmodnames Include statement but not the whole location.
|
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,
- 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.
- 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 Options
none
No Conflicts
No other mods affect admin_languages.php.
Installation
This mod does not install any files, but it does still have a mod subfolder, which contains the mod's language strings. That is, this mod's language strings are not defined in its .cfg file nor copied to cust_text.php files. As a result
- This mod's language strings are loaded only into the TNG programs that need them, not into all TNG programs, and
- It is easier to create, edit, test, and save translation for this mod than for mods that use standard cust_text.php strings.
This non-standard technique should be invisible to you unless you want to define a translation or override any of this mod's string values.
Read more about this technique, the simplified translation process, and the procedure for defining site-specific overrides to its language strings.
[Show Installation Details]
Requirements
- A working TNG installation.
- An installed current version of the Mod Manager.
- You should backup files listed in the panel on the right.
Procedure
- Remove and delete previous version of this mod.
- Backup the files updated by this mod. They are listed in the panel at the upper right.
- Download the .zip file, Extract its .cfg file to the mods folder.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.
Problems?
- Try using the Mod Manager Remove capability
- Contact me through My Mod Support form.
Visualizations
BEFORE INSTALLATION Admin>>Languages Search Page, with the typical TNG Admin search page layout |
![]() |
---|---|
BEFORE INSTALLATION Admin Languages "Add New" page |
![]() |
AFTER INSTALLATION: The fundamental feature of this mod is that all functions (search, add new, and edit) are combined into one page | |
---|---|
AFTER: Admin >> Search results with Add New form |
This is the new Admin>>Search page showing two of the three components of the new page. The Add New form is always visible in this page.![]() |
AFTER: Search page with all three components |
The edit form for Danish-UTF8 pops up inside the search results table, immediately below the Danish-UTF8 search result row.
|
AFTER: Add New UTF-8 Language |
As soon as a UTF-8 Language Folder is selected:
Sometimes, The language name field displays HTML entities in place of accented characters. But
|
AFTER: Add New non-UTF8 language |
Behaves just like UTF8, except
|
Revision History
Mod Version | TNG Versions | Date | Note |
---|---|---|---|
14.0.0.6b | 14+ | 23 Sep 2023 |
|
13.0.0.6a | 13-13.0.1 | 17 Nov 2020 | In both admin_addlanguage.php and admin_updatelanguage.php, split one location into two conditional locations
to handle a syntax error correction in TNGv13.0.1. |
13.0.0.6 | 13 | 20 Sep 2020 |
|
12.0.0.4b | 12.0 - 12.3 | 28 Mar 2019 | No functional changes.
|
12.0.0.4 | 12.0+ | 4 May 2018 | No functional changes; made compatible with TNGv12. |
11.0.0.4 | 11.0 - 11.1.2+ | 1 Dec 2017 | - Updated the mod for TNGv11, which added a field to the Languages table. - Inside the .cfg file, added comments to remaining code fragment locations |
10.1.0.3 | 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.2 | 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.1 | 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 | Language |
---|---|---|---|---|---|
Robin Richmond's Genealogy Database | Robin Richmond | Mod developer | v14.0.0.6b | 13 | EN |
MOTYER & BENJAMIN Family Genealogy (Bermuda branches) | John Mark Motyer | Public site | See here | See here | EN |