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

GenoPro Support Forum




Author
Posted Wednesday, June 13, 2007 - Post #18051
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Customers
GenoPro version: 3.1.0.1

Last Login: Tuesday, May 21, 2024
Posts: 6, Visits: 36
Ron

Thank you for your tips, it's true, in the [|||] section does not translate the "d" as day number.

Also you're right, size matters :Wink: (of the formatting string, o course BigGrinSmile, but yes, outside this section we must enclose the d's between apostrophes

Gerardo

Posted Tuesday, June 12, 2007 - Post #18045
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, October 13, 2024
Posts: 4,887, Visits: 22,769
Ron (6/12/2007)
I think Dan needs to investigate this further.

I guess I am missing something. Does having 'd' works?  Can you please elaborate on the problem?  Thanks.

Posted Tuesday, June 12, 2007 - Post #18044
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: 13 hours ago
Posts: 3,397, Visits: 26,161
I agree El Matao, there is still a problem with date formatting, but it would appear to be a different issue to the missing 'd' problem.  It seems to be related to the total length of the format string. If I change the standard English string from <FmtYM>&#32;[in|about|before|after] MMMM yyyy</FmtYM> to <FmtYM>&#32;[in|about|before|after a longer phrase here] MMMM yyyy</FmtYM> I get a similar problem to you with just a numeric month appearing instead of month name and year. Wiuth other length strings the year can disappear or I get no date returned at all.

As a further illustration, change your example from <FmtYM>&#32;[en|'alrededor de'|'antes de'|'después de'] MMMM  'de' yyyy</FmtYM> to <FmtYM>&#32;[en|alrededorde|antesde|después de] MMMM 'de' yyyy</FmtYM> produces the required date. I know have also removed a couple of required spaces but it demonstrates the issue with the length of the format string.

I think Dan needs to investigate this further.

By the way, your apostrophes within the [ | | | ] section seem to be superfluous and can be removed.

Thanks for the tip on header.htm, I'll change the skin to include your suggestion.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Friday, June 8, 2007 - Post #18026
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Customers
GenoPro version: 3.1.0.1

Last Login: Tuesday, May 21, 2024
Posts: 6, Visits: 36
I'm sorry, but the fix is not working well.

I'm using the skin 2.0.0.6, with the fix for the date, and having the following in the Dictionary.xml

 <FmtDateNarrative>
  <!-- Templates to format narrative dates -->
  <FmtYMD>&#32;[el|'alrededor del'|'antes del'|'después del'] d 'de' MMMM 'de' yyyy</FmtYMD>   <!-- Nació el 31 de Enero de 2006 -->
  <FmtYM>&#32;[en|'alrededor de'|'antes de'|'después de'] MMMM  'de' yyyy</FmtYM>  <!-- Nació en Enero de 2006 -->
  <FmtY>&#32;[en|'alrededor de'|'antes de'|'después de'] yyyy</FmtY>   <!-- Nació en 2006 -->
  <FmtMD>&#32;[el|'alrededor del'|'antes del'|'después del'] d 'de' MMMM</FmtMD>  <!-- Nació el 31 de Enero -->
 </FmtDateNarrative>

if we have birth date as: --- We get : ---

7/11/1960     nació el 7 de Noviembre de 1960. (ok)

11/1960        nació en Nov. (? short month and no year)

1960            nació en 1960 (ok)

7/11            nació el .  (? no day, no month, but the incomplete phrase appears)

I get this formatting error in personal an familiar pages (at least I haven't seen it in other places)

Another problem is: If I put a text within single quotes in the format that not contains "d" the text doesn't appear anymore

  <FmtYMD>&#32;['el'|'alrededor del'|'antes del'|'después del'] d 'de' MMMM 'de' yyyy</FmtYMD>   <!-- Nació el 31 de Enero de 2006 -->

with 7/11/1960 --> nació 7 de Noviembre de 1960

Another tip.

in header.htm, perhaps it's worth to change

<img src="images/genopro.logo.gif" title="Create Your Family Tree in Minutes!" alt="Create Your Family Tree in Minutes!" width="36" height="36" border="0"/></a>

to

<img src="images/genopro.logo.gif" title="@[Report.Write Dic("AltGenoProLogo")]@" alt="@[Report.Write Dic("AltGenoProLogo")]@" width="36" height="36" border="0"/></a>

Sorry by my poor English :-)


 

Posted Wednesday, May 23, 2007 - Post #17861
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: 13 hours ago
Posts: 3,397, Visits: 26,161
Yep, seems fine to me too. Great!


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, May 23, 2007 - Post #17849
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 3.0.1.1

Last Login: Friday, April 9, 2021
Posts: 21, Visits: 422
OK!! Is Fixed!!

Thank you!
Posted Wednesday, May 23, 2007 - Post #17847
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, October 13, 2024
Posts: 4,887, Visits: 22,769
I created a build at http://www.genopro.com/download/InstallGenoPro.2.0.0.5.DateFix.exe.  I have tested to my best and consider it works, however I would like someone to confirm with me.
Posted Tuesday, May 22, 2007 - Post #17822
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, October 13, 2024
Posts: 4,887, Visits: 22,769
Thank you for your patience and for submitting examples.  I have finally found the problem and working on a fix...

Edited: Tuesday, May 22, 2007 by GenoProSupport
Posted Monday, May 21, 2007 - Post #17816
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: 13 hours ago
Posts: 3,397, Visits: 26,161
Some more evidence for this suspected bug.

Attached is a very simple skin (Config.xml, Dictionary.xml, TestIt.vbs) and a test .gno (TestIt.gno) that demonstrate the problem.

The relevant Dictionary entries are

 <FmtDateNarrative>
  <!-- Templates to format narrative dates -->
  <FmtYMD>&#32;[on|around|before|after] MMMM D, yyyy</FmtYMD>   <!-- He was born on January 31st, 2006 -->
  <FmtYM>&#32;[!dddd"dd"!|around|before|after] MMMM yyyy</FmtYM> <!-- He was born in January 2006 -->
  <FmtY>&#32;[in|around|before|after] yyyy</FmtY>  <!-- He was born in 2006 -->
  <FmtMD>&#32;[on|around|before|after] MMMM D</FmtMD>  <!-- He was born on January 31st -->
 </FmtDateNarrative>

 <!-- Short and long date formats are only taken if day month and year are known, otherwise the default date format is used -->
 <!-- date.ToString("d") -->
 <FmtDateShort>[|~|&lt;|&gt;]yyyy-MM-dd</FmtDateShort>    <!-- 2006-01-31 -->
 <!-- date.ToString("D") -->
 <FmtDateLong>[|around |before |after ]dddd, MMMM D, yyyy</FmtDateLong>   <!-- Monday, January 31st, 2006 -->

 <FmtDateRange>
  <FmtYMD>[|around |before |after ]MMMM D, yyyy</FmtYMD>
  <FmtYM>[|around |before |after ]MMMM yyyy</FmtYM>
  <FmtY>[|around |before |after ]yyyy</FmtY>
  <FmtMD>[|around |before |after ]MMMM D</FmtMD>
  <FmtSince>&#32;from {0}</FmtSince> <!-- eg: "Daniel has been working on GenoPro from 1998" -->
  <FmtUntil>&#32;until {1}</FmtUntil> <!-- eg: "Daniel was a student until 1999" -->
  <FmtFromTo>&#32;from {0} to {1}</FmtFromTo> <!-- eg: "Daniel worked at Microsoft from 1994 to 1998" -->
 </FmtDateRange>

with this script

<%[
For Each i in Individuals
Report.LogWarning i & " born" & i.Birth.Date.ToStringNarrative & "/" & i.Birth.Date.ToString("") & ": died " & i.Death.Date.ToStringNarrative & "/" & i.Death.Date.ToString("") & ". Life Span" & i.Birth.Date.FormatDateSpan(i.Death.Date)
Next
Report.AbortReport
]%>

with the supplied .gno produces

"Month & Year Test" born !""! August 1951/Aug 1951: died !""! April 2002/Apr 2002. Life Span from August 1951 to April 2002

"Approx month & year Test" born aroun August 1951/~~Aug 1951: died aroun April 2002/~~Apr 2002. Life Span from arounAugust 1951 to arounApril 2002

All the 'd's have gone. The double ~ in "~~Aug 1951" and "~~Apr 2002" is also incorrect.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Monday, May 21, 2007 by Ron
Posted Monday, May 21, 2007 - Post #17814
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Important Contributors
Customers
GenoPro version: 2.5.4.0

Last Login: Tuesday, November 14, 2017
Posts: 193, Visits: 4,268
d=day? And if there is no day specified, no d remains :w00t


Feri


Edited: Monday, May 21, 2007 by fbukolyi


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!