GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Help with date in french

Click to view RSS...
Author
Posted Thursday, March 7, 2013 - Post #31438
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.3.9

Last Login: Tuesday, August 20, 2019
Posts: 104, Visits: 1,686
Hi,

In the french Narrative Report, at the end of every individual page, there is this note in small print:

"Dernière modification de cette page Friday, March 08, 2013"

What would I have to change, probably in my Dictionary.xml at:

<FmtHtmlLastModified
         T="&lt;div class='small floatright'&gt;&lt;span&gt;Dernière modification de cette page &lt;/span&gt;&lt;span id='lastModified'&gt;&lt;/span&gt;&lt;/div&gt;"
          V="2011.01.15FR+" />

and/or elsewhere to have the above note read:

"Dernière modification de cette page Vendredi, 8 Mars 2013" (or similar, such as "Dernière modification de cette page le 8 Mars 2013")

Thanks for help. Kind regards
Roland
Posted Saturday, March 9, 2013 - Post #31443
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 9 hours ago
Posts: 3,436, Visits: 26,607
It is not possible to change this date via the Dictionary settings.  

The date is taken by the browser in which the report is displayed from the HTTP Header field 'last modified' in a format determined by the web server.  The script then attempts to convert this date according to the operating system 'Locale' in which the browser is running using the javascript method 'toLocaleDateString'.  If toLocaleDateString is not found or returns a failure then date as presented in the HTTP header is shown.  The operating system locale is changed via the Windows Control Panel.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, March 10, 2013 - Post #31446
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.3.9

Last Login: Tuesday, August 20, 2019
Posts: 104, Visits: 1,686
Thank you for your reply. Looking at the different possible solutions, I seems easier for me to remove this comment line altogether and place the date in the title which appears in the header of every page of the report. Kind regards 
Posted Sunday, March 10, 2013 - Post #31449
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 9 hours ago
Posts: 3,436, Visits: 26,607
The HTTP header  'date last modified'  was used so that it would show when the actual page content had changed, rather than the date at which the whole report was last updated.  When publishing a report, GenoPro uses MD5 checksums stored in the GenoProCache.xml to decide if a particular page content has actually changed before updated the page on the server.

If you place a fixed date in the header, i.e. date report was last generated, then viewers will no longer see the date on which the actual information on a particular page was last changed.

I had assumed that the typical viewer's locale would generally be the same as the language of the report.  However I could look at changing the date conversion to reflect the target language of the report. 

I confess I initially choose the simple approach and used the locale of the browser.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, March 10, 2013 - Post #31450
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.3.9

Last Login: Tuesday, August 20, 2019
Posts: 104, Visits: 1,686
Ideally, changing the date conversion to reflect the target language of the report would be the solution. However, having the same fixed report date mentioned in every page header without showing updates at the actual page content level would be acceptable for me, as soon as I find out how to remove the
"Dernière modification de cette page Sunday, March 10, 2013"
comment. Erasing
<FmtHtmlLastModified
         T="&lt;div class='small floatright'&gt;&lt;span&gt;Dernière modification de cette page &lt;/span&gt;&lt;span id='lastModified'&gt;&lt;/span&gt;&lt;/div&gt;"
          V="2011.01.15FR+" />
in my Dictionary.xml changed the comment to
"Page last modified Sunday, March 10, 2013"
but it is still there! I have not found yet where and how to remove this comment. I already looked into scripts.js but it does not seem to be there neither.
Posted Monday, March 11, 2013 - Post #31453
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 9 hours ago
Posts: 3,436, Visits: 26,607
The routine is called on line 40 of script.js but if instead you change div class='small floatright' to div class='hide' in FmtHtmlLastModified in Dictionary.xml then the phrase will not be shown on the pages.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Monday, March 11, 2013 - Post #31454
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.3.9

Last Login: Tuesday, August 20, 2019
Posts: 104, Visits: 1,686
With div class='hide', the Report Generator produces pages which are now fine for me. Just for your information, in case it might help, I noticed before suppressing the comment "Page last modified Sunday, March 10, 2013" from all the pages of my reports that this function did not work exactly as I understood it from one of your previous messages. In particular, this comment on all the report pages would read "Page last modified (date on which the report was last generated)", not just only the pages which had been updated since the previous report generation.
Thank you again for your help and prompt reply. Kind regards
Roland


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!