Difference between revisions of "Multi Language Date Edit"

From TNG_Wiki
Jump to: navigation, search
Line 111: Line 111:
[[Category:Mods for TNG v12]]
[[Category:Mods for TNG v11]]
[[Category:Mods for TNG v11]]

Revision as of 20:15, 12 July 2018

Multi-language date edit
Summary Allows entering month names and abbreviations in several languages: Afrikaans, Danish, Dutch, German, Italian, Portuguese, Norwegian, Spanish and Swedish.
Validation {{{mod_validation}}}
Mod Updated {{{mod_last_update}}}
Download link multi-laguage-date-v11.0.0.0.cfg.zip for
TNG 11.0

Download stats {{{download_stats}}}
Author(s) Carlos A Heuser
Homepage Multi_Language_Date_Edit (This page)
Mod Support Carlos Heuser
Contact Developer Carlos Heuser
Latest Mod for TNG v11.0.0
Min TNG V 11.0.0
Max TNG V 11.0.0
Files modified
Related Mods

Purpose of this Mod

This Mod might be of interest for those that enter data directly in TNG and that would like to enter dates in a language that is not English.

TNG already allows one to enter dates in several formats. For example, dates like "25.12.2015" (European format), "12/25/2015" (US format) or "25 December 2015" are translated to 25 Dec 2015, the internal format used by TNG and by the GEDCOM format.

However, in my workflow I often copy and paste data into TNG that I collect from other digitally available sources (Web or text files). As my research concentrates on Portuguese, German and Swedish sources, often the dates are not written in English and I have to translate and reformat them.

This mod allows one to enter dates in several other languages apart from English. For example, using the mod, the date above could be entered as "25 de dezembro de 2015" or "25 Dez 2015" in Portuguese, or "25. December 2015" in German.

The Mod does not affect the way dates are displayed in TNG.

Supported Languages

At the present, the translation works for Afrikaans, Danish, Dutch, German, Italian, Portuguese, Norwegian, Spanish and Swedish. The Mod does not depend on what languages are installed in TNG.

To include other languages, please contact the author. Simply entering month names in the cfg file may not work, as the names must be entered in a specific order.

Character Encoding

I have tested the Mod with sites encoded in UTF-8. It would be nice to know if it also works with ISO-8859-1.

Known Issues

I have not translated the modifiers that may applied to dates (ABT, FROM, TO,...).

Using the Mod

  • Enter a date written in one of the supported languages in a date field.
  • Press Tab or click on some other field and the date should be translated to the TNG standard format in English.

Mod installation and database setup

The Mod is installed as usual with the Mod Manager:

  • Download the zip file containing the Mod files and unzip it in the TNG mods folder.
  • Install the Mod with the Manager.

Note: After the Mod is installed you must clear caches in your browser.


Mod developer is Carlos Heuser.

File changed

  • js/datevalidation.js

Revision History

Version Date Contents
v11.0.0.0 31 Mar 2016 * Mod realease

Sites using this mod

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

URL User Note Mod-Version/TNG-Version User-language
http://heuser.pro.br/ Carlos Heuser Developers site v11.0.0.0 English, German, Brazilian Portuguese
Luithlenfamilie Ingo Wagner Not a Public site DE, EN, NO, FR
http://nordiskeaner.info/ Mogens C. Fenger Not a Public Site v11.0.0.0 Danish, English