|
|
|
Forum Master
      
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.
|
|
|
|
|
IT 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
|
|
|
|
|
Forum Master
      
Group: Customers
Last Login: 7/20/2008 8:17:33 AM
GenoPro Version: 2.0.1.5
Posts: 692,
Visits: 5,212
|
|
|
|
|
|
Forum Master
      
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.
|
|
|
|
|
Grand Master
      
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"
|
|
|
|
|
Grand Master
      
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"
|
|
|
|
|
Forum Master
      
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.
|
|
|
|
|
Grand Master
      
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"
|
|
|
|
|
|
| | |