Use of NameDictionary failed
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        



Use of NameDictionary failed Expand / Collapse
Author
Message
Post #20964 Posted 3/6/2008 9:21:35 PM


Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 7/20/2008 8:17:33 AM
GenoPro Version: 2.0.1.5
Posts: 692, Visits: 5,212

Trying to generate a Japanese report from a gno file with English names using the NmeDictionary.xml files with some names entered such as
`N EN="Takahashi" DE="Takahashi" JA="高橋" /`
`N EN="Chizuko" DE="Chizuko" JA="千鶴子" /`
`N EN="Fujio" DE="Fujio" JA="富士雄" /`
`N EN="Niels" DE="Niels" JA="ニールス" /`


The error report looks as above.
Need advice.

Post #20965 Posted 3/6/2008 10:25:37 PM


IT Director GenoPro

IT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoPro  

Group: Customers
Last Login: Today @ 11:59:50 AM
GenoPro Version: 2.0.1.6
Posts: 434, Visits: 5,738
Can you post the file?

Make sure the file is saved in UTF-8 encoding.


If the facts don't fit the theory, change the facts.
-- Albert Einstein

Jean-Claude Morin
Information Technology Director, GenoPro.
http://www.genopro.com

Post #20966 Posted 3/6/2008 10:39:28 PM


Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 7/20/2008 8:17:33 AM
GenoPro Version: 2.0.1.5
Posts: 692, Visits: 5,212
The file is attached.

  Post Attachments 
NameDictionary.xml (10 views, 5.10 KB)
Post #20977 Posted 3/7/2008 10:09:38 PM


Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 7/20/2008 8:17:33 AM
GenoPro Version: 2.0.1.5
Posts: 692, Visits: 5,212
Worked on this issue for some time now and went back to square one with regard to original files, except for the dictionary.xml(ja) and NameDictionary.xml files.
The message is now "No entries" in the NameDictionary file. The only function there works with lang_B, but not with place and name look ups.
Post #20980 Posted 3/8/2008 4:17:37 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:34:28 PM
GenoPro Version: 2.0.1.5
Posts: 1,048, Visits: 4,776
If you are getting the 'No entries' message then I guess you are using version 2.0.1.5RC2, where I tried to tighten up the NameDictionary error handling. Unfortunately my test NameDictionary.xml was in the wrong format, missing the Names element, so line 473 of Init.htm is wrong
  Set oNode = oXmlNam.selectSingleNode("NameDictionary/N[1]")
should be
  Set oNode = oXmlNam.selectSingleNode("NameDictionary/Names/N[1]")

Apologies for any inconvenience.

If this fixes it then I'll put out a new version.

Update I have now tested this by using your NameDictionary with Jean-Claude's correction (and an occurrence of 'en' to 'EN') and setting Language to 'JA' in Config.xml and adding test data to HarryPotter, giving James Potter a middle name of Nomura and an occupation of barber in Japan. Ran report setting the 3 language config options to 'EN' (we are translating from English) and got:

Q.E.D.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #20981 Posted 3/8/2008 4:51:53 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:34:28 PM
GenoPro Version: 2.0.1.5
Posts: 1,048, Visits: 4,776
p.s.

My reports use the MS XML parser so you can validate whether or not your .xml will load properly in the report by opening it with IE, which uses the same parser. Doing this with tour original NameDictionary.xml shows up the error.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #20982 Posted 3/8/2008 5:14:39 AM


Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 7/20/2008 8:17:33 AM
GenoPro Version: 2.0.1.5
Posts: 692, Visits: 5,212
Thanks for solving this. It works. Important hint was to enter the "from Language" and not the target language.
Post #20983 Posted 3/8/2008 6:57:30 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:34:28 PM
GenoPro Version: 2.0.1.5
Posts: 1,048, Visits: 4,776
Yes. I can assume that the target language is the same as the skin (from Config.xml) but I can make no assumption as to the language that has been used to enter the data in GenoPro, hence the script needs to ask for it in order to provide the translation.

I will change the dialog text to make this clearer.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #20984 Posted 3/8/2008 7:46:40 AM


Famous Writer

Famous Writer