Republican Dates

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Republican Dates are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox


Caution


Ambox notice.png The latest version of this mod uses the 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]

TNG 14.0
TNG 13.0
TNG 12.0


Republican dates
Summary Allows encoding, formatting, validation and display of french republican dates
Validation
Mod Updated 04 Jun 2023
Download link For
TNG 14.0

v14.0.0.2f


For
TNG 13.1.0

v13.1.2.2f


For
TNG 13.0

v13.0.0.2e


For
TNG 12.0

v12.2.0.2d
Download stats Montrer les statistiques
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod v12.2.0.2d for TNG v12+ - v13.0.0.2e for TNG v13+ - V13.1.2.2f for TNG v13.1.2 - V14.0.0.2f for TNG 14
Min TNG V 12.2+
Max TNG V n.c.
Files modified
admin_families.php
admin_people.php
datelib.php
globallib.php
admin_secondmenu.php
admin_secondary.php
js/datevalidation.js
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French/cust_text.php
languages/French-UTF8/cust_text.php
Related Mods
Notes

Purpose of the Mod

This Mod allows encoding, formatting, validation and display of french republican dates

Input Formats:
Prefix: r or R or nothing depending on option.
Day: at least one digit > 0
Month: in 3 letters minimum (4 for Ventose and Vendémiaire), lower or upper case.
Year: at least one digit > 0 or the Roman characters from I to XIV inclusive, in upper or lower case, preceeded by "An" or not. < br> Separators: space, slash(/) or dash (-).
After inputting the date, press [Tab] to validate and format the date.
Inputting "5 bru AN iv" [Tab ] will change your input in "05 BRUM An IX", meaning that the date is valid and formatted.
Date Modifiers: the date can be preceded by "bef", "aft", "<", ">", "ca", "near".

The mod does not takes in charge the double dates (like: "Between 05 Brum 09 and 15 brum 10".
They remain in their input format (ex: BET 5 BRUM 9 AND 15 BRUM IX).

Output Formats :
On the screen, the date is represented by :
Day: in two digits
Month: in 4 capital letters (BRUM) or in whole (Brumaire) according to option.
Year: in two digits or in upper case roman numerals according to option.
Prefix: to choose and to define (ex: [R]) or nothing according to option.
As an option, the Gregorian date (TNG format) is followed by the Republican date between parentheses. Ex ==> 07 May 1804 (18 PRAI XII)
or the Republican date is followed by the Gregorian date between parentheses. Ex ==> [R] 18 PRAI 12 (Mey 7 1804)

GEDCOM Import :
A secondary maintenance tool is provided in the Administration/Import-Export/Secondary Maintenance Tools section, button "Republican dates".
This tool provides Gregorian encoding and standard formatting of imported valid republican dates.
A date imported as "@DFRENCH R@ 5 brumaire An IX" will be re-stored as "05 BRUM 09".
This has no influence on the screen display. The gedcom import formats are taken into account (Ex: @#DFRENCH R@ for Hérédis)

Validity checks. Several validity checks are carried out:
The number of extra days in leap years
the maximum republican date (10 NIV 14)
the number of days per month.

Preservation in the tables: The Republican dates will be kept in the tables with their Gregorian equivalent in order to
enable it to be classified among the other dates and taken into account in the statistics.

Mod Developer

Written by : Michel Kirsch from Charleroi - Hainaut - Belgium

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary in the upper right corner of the page)
  • An installed current version of the Mod Manager.

Revision History

Mod Version Date Contents
14.1.2.2f 04 Jun 2023 Fix a bug when the year = 14.
14.0.0.2e 31 Jan 2023 TNG 14.0 ready. Adapt the menu in post-import utilities.
13.1.2.2e 05 Apr 2022 TNG 13.1.2 ready
13.0.0.2e 05 Apr 2022 Ready for new Mod to be released (Dates validations)
12.2.0.2d
v13.0.0.2d
03 Feb 2021 Changing code for Compatibility with other mods - Fix problem with French-UTF8 file
13.0.0.2c 23 Sep 2020 Version for TNG v13
12.2.0.2c 23 Aug 2020 Changing code for abbreviations ($admtext => $text) and avoiding conflict with the 'Create Site Map Mod' Mod - Wiki page link was broken
12.2.0.2 21 May 2020 Frimaire and Brumaires not correctly set ! - Adds tng adm abbreviations for death, burial, christ.
12.2.0.1 18 May 2020 First online version.

TNG Modules Impacted

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

The following TNG Modules are modified, and should be backed up prior to installing this mod:

admin_families.php
admin_people.php
datelib.php
globallib.php
admin_secondmenu.php
admin_secondary.php
js/datevalidation.js
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French/cust_text.php
languages/French-UTF8/cust_text.php

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and all its tables, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.]

Visualization

Republican_dates

Some views with mod installed.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below: If you have any problem to do it, send me a mail...

URL User Note Mod-Version TNG-Version User-language
Racines luxo-hennuyeres Michel Kirsch Developper of the Mod 13.0.0.2d 14.0.3 FR/EN/NL/DE/SP
La Saga BIGEY François BIGEY Public site 14.0.0.2f 14.0.2 FR
Généalogie des Malvache, Hermary... Cédric Malvache 12.2.0.2a 12.3.0 FR/EN/SP
GénéaKat Katryne Chauvigné-Bourlaud Public & Private v14.0.0.2f 14.0.3 FR EN