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

GenoPro Support Forum




Translation of the word "Partner" in GenoPro 2.0.0.2

Click to view RSS...
Author
Posted Thursday, January 18, 2007 - Post #15915
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, August 13, 2023
Posts: 102, Visits: 2,086
Hi,

I been working in the Spanish Translation of Dictionary.xml and it's done at 100% with a few changes that I made to Lang.vbs, and I'm keeping updated with each new version, but in the new version (GenoPro 2.0.0.2), I found that there's no way to translate the word "Partner" in some sections of the report (in the family index or in family main titles), I think there should be a tag in Dictionary.xml to change it or something like that.

<!-- The _FmtHusbandAndWife tag is used to format a string such "André & Hélène" or "André & Wife" -->
    <_FmtHusbandAndWife T="{0} &amp; {1}" /> <!-- 0=husband name, 1=wife name -->
    <_Husband T="Husband" />
    <_Wife T="Wife" />
    <_Partner T="Partner" />
    <_NoName T="&lt;Unknown&gt;" />

Regards

Hugo

Edited: Thursday, January 18, 2007 by gumi

Posted Wednesday, January 24, 2007 - Post #15994
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: Yesterday @ 9:42 PM
Posts: 3,325, Visits: 25,525
Hi Hugo,

I Have not previously responded to this post because as you suggest, the problem lies with GenoPro itself, not the report skin. The Tag Family.Name seems to be set internally to 'name & Partner' for an unmarried couple where one partner's name is unknown.

I believe the correct solution is close to what you propose with a change to Dictionary.xml and GenoPro then doing the lookup internally as part of the Family.Name property. I would however change the Dictionary as follows to allow for masculine & femine forms:

 <!-- The _FmtHusbandAndWife tag is used to format a string such "André & Hélène" or "André & Wife" -->
 <_FmtHusbandAndWife T="{0} &amp; {1}" />  <!-- 0=husband name, 1=wife name -->
 <_Husband T="Husband" />
 <_Wife T="Wife" /> 
 <_Partner_M T="Partner" /> 
 <_Partner_F T="Partner" /> 
 <_Partner_P T="Partner" /> 
 <_Partner_ T="Partner" /> 
 <_NoName T="&lt;Unknown&gt;" />

With this Dictionary change in place it is possible to 'botch' a couple of files in the skin to use these entries. i.e. change Lang.vbs as follows:

change line 252 from
   strSpouseType = Dic("Partner")
to
   strSpouseType = Dic.LookupEx("_Partner_",spouse.Gender.Id)
and line 898 from
     Report.WriteFormattedLn strFmtTemplateName, StrHtmlImgFamily(f), f.Href, f.Name, StrHtmlImgPhoto(f)
to
     Report.WriteFormattedLn strFmtTemplateName, StrHtmlImgFamily(f), f.Href, Replace(f.Name," Partner"," " & Dic.LookupEx("_Partner_",Util.IfElse(f.Parents(0).Name="",f.Parents(0).Gender.Id,f.Parents(1).Gender.Id))), StrHtmlImgPhoto(f)

and also family.htm as follows:

change line 9 from
strName = f.Name
to
strName = Replace(f.Name," Partner", " " & Dic.LookupEx("_Partner_",Util.IfElse(f.Parents(0).Name="",f.Parents(0).Gender.Id,f.Parents(1).Gender.Id)))

But hopefully Dan will provide an internal solution.

Update: revised code.


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


Edited: Wednesday, January 24, 2007 by Ron
Posted Wednesday, January 24, 2007 - Post #15998
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, August 13, 2023
Posts: 102, Visits: 2,086
Ron (1/24/2007)
Hi Hugo,

I Have not previously responded to this post because as you suggest, the problem lies with GenoPro itself, not the report skin. The Tag Family.Name seems to be set internally to 'name & Partner' for an unmarried couple where one partner's name is unknown.

Hi Ron,

Thank you very very much, It works great!

Sincerely

Hugo

Posted Thursday, March 1, 2007 - Post #16593
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, August 13, 2023
Posts: 102, Visits: 2,086
Ron (1/24/2007)

But hopefully Dan will provide an internal solution.

No internal fix in 2.0.0.3 Sad problem still there, perhaps in 2.0.0.4 (I hope Dan keep it in ToDo list) BigGrin:

Hugo

PS. The temporary code provided by Ron is working excellent!

Edited: Thursday, March 1, 2007 by haep

Posted Thursday, March 1, 2007 - Post #16594
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: Monday, March 25, 2024
Posts: 4,880, Visits: 22,749
I will take care of this in the multi-lingual version of GenoPro.  There are lots of things to revise to create a true multi-lingual product.


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse