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

GenoPro Support Forum




Creating Hyperlink in Hebrew in the ReportGenerator

Click to view RSS...
Author
Posted Wednesday, July 25, 2007 - Post #18630
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
Ron (7/25/2007)
Looks like I had hold of the wrong end of the stick here. For some reason, I thought you were translating Jacob to Ja'akov, not the other way round, as Jacob is an English name too.

But after a script change that should have fixed it, I still could not get it to work Crying. Then I noticed your NameDictionary contained Ja'acov, not Ja'akov as per your posts. So finally attached is an amended Lang.vbs that, fingers crossed, fixes it.

Thanks Ron!!
You solved the problem Smile you can stop crossing your fingers Smile

I'm sorry that I wasn't clear enough describing my problem...

Posted Wednesday, July 25, 2007 - Post #18628
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: 1 hour ago
Posts: 3,412, Visits: 26,309
Looks like I had hold of the wrong end of the stick here. For some reason, I thought you were translating Jacob to Ja'akov, not the other way round, as Jacob is an English name too.

But after a script change that should have fixed it, I still could not get it to work Crying. Then I noticed your NameDictionary contained Ja'acov, not Ja'akov as per your posts. So finally attached is an amended Lang.vbs that, fingers crossed, fixes it.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Tuesday, July 24, 2007 - Post #18617
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
It is still not working.

The name is translated OK into Hebrew in the phBirth paragraph, but it is not translated into Hebrew in the title and in the name list. This problem is unique to the name Ya'akov. Other names are translated OK.

Attached is my skin.

Add the name Ya'akov in your file and run the skin.

Hebrew.zip (29 views, 375.88 KB)

Edited: Tuesday, July 24, 2007 by Yehudad

Posted Monday, July 23, 2007 - Post #18601
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: 1 hour ago
Posts: 3,412, Visits: 26,309
You are right, thanks for testing it. The error occurs if you do not have the latest version of MS XML installed (6.0)Blush. This is not necessary for the skin, and I have corrected the skin in my earlier post. Alternatively the updated Init.htm is attached.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Monday, July 23, 2007 - Post #18600
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
Using your attached skin I'm getting the following error message:

[0.01] Error: Unable to load an ActiveX control for MS XML Parser. 429:ActiveX component can't create object
Error at line 108 (init.htm) : Invalid procedure call or argument: 'CreateObject'
Microsoft VBScript runtime error 800A0005

Posted Sunday, July 22, 2007 - Post #18597
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: 1 hour ago
Posts: 3,412, Visits: 26,309
I am unable to reporduce this error, can you say where in the report it occurs, or perhaps a sample .gno and NameDictionary.xml file? The StrHtmlHyperlink uses Util,.Formatstring to create the hyperlink and the (translated) name is encoded for HTML output using the &t argument qualifier, translating any ' characters to the numeric entity '. This displays correctly in my testing.

I did find a couple of places where the translated name is not used, i.e. in a 'References' section and in the 'family with' phrase. I have attached a revised skin that corrects this omission.

Update 23 Jul 07: Skin updated


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


Edited: Monday, July 23, 2007 by Ron
Posted Sunday, July 22, 2007 - Post #18591
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
Ron, I did manage to find a little problem.

When the person's name has an ' in it like Ya'akov (Jacob in Hebrew), the name is translated OK in the regular text, but not in the HTML link (I guess it is because of the HTML sentance structure which contains other ' symbol in them)

Posted Friday, July 20, 2007 - Post #18588
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
Ron (7/20/2007)
I am not sure of the default path for the NameDictionary.xml. I have always used a full path. Also LangNames must be set to a language code, matching that in NameDictionary e.g. EN if you are translating names from English in your .gno file to your skin language of HE (Hebrew).
Each part of Individuals names will be translated from the language code in the LangNames parameter to the language code specified in the Language attribute of the the Skin element in the Config.xml file.
The NameDictionary elements can have many different language attributes for each name, hence the need to tell the script which one to use.

Now its working!!!

Posted Friday, July 20, 2007 - Post #18587
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: 1 hour ago
Posts: 3,412, Visits: 26,309
I am not sure of the default path for the NameDictionary.xml. I have always used a full path. Also LangNames must be set to a language code, matching that in NameDictionary e.g. EN if you are translating names from English in your .gno file to your skin language of HE (Hebrew).
Each part of Individuals names will be translated from the language code in the LangNames parameter to the language code specified in the Language attribute of the the Skin element in the Config.xml file.
The NameDictionary elements can have many different language attributes for each name, hence the need to tell the script which one to use.



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


Edited: Friday, July 20, 2007 by Ron
Posted Friday, July 20, 2007 - Post #18586
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
Ron (7/20/2007)
Yes, the translation of names is 'automatic' in that no script changes are required. The names and their translation need to be added into a NameDictionary.xml file and then it is necessary to set two Configuration Parameters, LangNames & LangNameDictionary. These can be set via any one of the three methods available, i.e. edit Config.xml in custom skin, create Document Custom Tags with required value or change via the 'Generate Report' dialog window.

Well, this is the option I chose. I set the LangNames parameter to "Y" and the LangNameDictionary to "NameDictionary.xml" but the names are still in English and are not translated to the Hebrew name which is in the NameDictionary.xml.

What am I doing wrong?



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse