I get the following message "Fatal error: Call to undefined function: gregoriantojd() in /home/e-smith/files/ibays/genealogie/html/includes/functions_date.php on line 565" when I am using the french langage but everything is ok when using the english interface.
Any idea to correct that?
Thanks
Cyril VIGNET
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is caused by a PHP configuration error. Your PHP installation doesn't have all of the date conversion routines installed.
The problem occurs when your GEDCOM file includes dates that occurred during the French revolution. You will recall that at that time, Robespierre and his compatriots tried to create a new calendar system that fell flat on its face.
PGV is trying to display French dates from the Revolutionary period in the Revolutionary calendar as well as in the calendar you know so well.
For example, my GEDCOM contains a date 1797.10.06, which displays as
Ven 13 Octobre 1797 22 Vendemiaire An 6
when I fire up French.
Here's another example for 1805.04.26:
Ven 26 Avril 1805 6 Floreal An 13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try editing the language configuration file for French.
Currently, the French date format is set to "D j F Y", which results in the display shown, also possibly producing the fatal error when the date conversion libraries are incomplete.
If you set the date format to "D M Y", the resultant display will no longer use the French Revolutionary format, and all dates will look similar to "13 Octobre 1797".
The "D M Y" format uses standard date libraries, so you shouldn't get the fatal error message.
I'll do this on my site: I don't have any ancestors who have events that occurred during the French revolution: none of them lived in France, so the French revolution and its weird dates just confuse things for my users who wish to see things in French.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have made a change to date processing in french language so that french revolutionary date is not always added for a date between 22 SEP 1792 and 31 DEC 1805
New date format option : R
D j F Y
=> Ven 14 Dcembre 1798
D j F Y R
=> Ven 14 Dcembre 1798 - 24 Frimaire An 7
URL for date format changing is :
editlang_edit_settings.php?ln=french
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The English Help text in Future Branch CVS now has documentation on the "R" date formatting option.
"R" is applicable to all languages (not restricted to French). This option must be used with one of the other special date formatting codes. When it's used with a date format that contains only "D", "M", and "Y" (plus other optional insertion characters such as "."), it's treated as text to be inserted in the output.
Regardless of the current language setting, "R" always produces its output in French, and the order of Day, Month, and Year cannot be changed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get the following message "Fatal error: Call to undefined function: gregoriantojd() in /home/e-smith/files/ibays/genealogie/html/includes/functions_date.php on line 565" when I am using the french langage but everything is ok when using the english interface.
Any idea to correct that?
Thanks
Cyril VIGNET
Hi Cyril,
what is you PGV version ?
On which page do you see this error message ?
This is caused by a PHP configuration error. Your PHP installation doesn't have all of the date conversion routines installed.
The problem occurs when your GEDCOM file includes dates that occurred during the French revolution. You will recall that at that time, Robespierre and his compatriots tried to create a new calendar system that fell flat on its face.
PGV is trying to display French dates from the Revolutionary period in the Revolutionary calendar as well as in the calendar you know so well.
For example, my GEDCOM contains a date 1797.10.06, which displays as
Ven 13 Octobre 1797 22 Vendemiaire An 6
when I fire up French.
Here's another example for 1805.04.26:
Ven 26 Avril 1805 6 Floreal An 13
I've updated the functions_date.php file so that if you don't have the necessary functions configured in PHP then PGV won't attempt to do the date conversion. You can download this updated file here:
http://cvs.sourceforge.net/viewcvs.py/phpgedview/phpGedView/includes/functions_date.php?rev=1.8&view=auto
--John
Try editing the language configuration file for French.
Currently, the French date format is set to "D j F Y", which results in the display shown, also possibly producing the fatal error when the date conversion libraries are incomplete.
If you set the date format to "D M Y", the resultant display will no longer use the French Revolutionary format, and all dates will look similar to "13 Octobre 1797".
The "D M Y" format uses standard date libraries, so you shouldn't get the fatal error message.
I'll do this on my site: I don't have any ancestors who have events that occurred during the French revolution: none of them lived in France, so the French revolution and its weird dates just confuse things for my users who wish to see things in French.
Thanks everybody for your comments.
John, your update works perfectly. Many Thanks
Cyril
I have made a change to date processing in french language so that french revolutionary date is not always added for a date between 22 SEP 1792 and 31 DEC 1805
New date format option : R
D j F Y
=> Ven 14 Dcembre 1798
D j F Y R
=> Ven 14 Dcembre 1798 - 24 Frimaire An 7
URL for date format changing is :
editlang_edit_settings.php?ln=french
Great!
Does this apply to the date format in all languages, or does the French language have to be in effect for the "R" to be recognized?
I'll update the English help text as soon as you clarify this.
The English Help text in Future Branch CVS now has documentation on the "R" date formatting option.
"R" is applicable to all languages (not restricted to French). This option must be used with one of the other special date formatting codes. When it's used with a date format that contains only "D", "M", and "Y" (plus other optional insertion characters such as "."), it's treated as text to be inserted in the output.
Regardless of the current language setting, "R" always produces its output in French, and the order of Day, Month, and Year cannot be changed.