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

GenoPro Support Forum




Wrong language for the Log Messages

Click to view RSS...
Author depending on the Language setup of Genopro and of the Report
Posted Friday, May 9, 2008 - Post #21622
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Important Contributors
FamilyTrees.GenoPro.com
Customers
Translator
GenoPro version: 2.0.1.6

Last Login: Tuesday, December 16, 2008
Posts: 390, Visits: 1,271
Another Lang inconsistancy problem:
1) with Genopro in EN and a Rep in FR:

2) and the other way round:

This is because the system picks up the error data from within the Dic selected for the Rep Lang.
To avoid this, i.e. to keep a consistant Lang for these Log Msgs, I suggest to move/transfer the 28 <Error.../>, the 5 <Warning.../> and the 6 <Parameters.../> elements from the Dic(s) to the Genopro Lang pack(s).
JC

Edited: Friday, May 9, 2008 by jcguasp

Posted Friday, May 9, 2008 - Post #21624
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 @ 8:57 AM
Posts: 3,337, Visits: 25,588
jcguasp (5/9/2008)
To avoid this, i.e. to keep a consistant Lang for these Log Msgs, I suggest to move/transfer the 28 <Error.../>, the 5 <Warning.../> and the 6 <Parameters.../> error tags from the Dic(s) to the Genopro Lang pack(s).
A

I think this may be prove to be a little restrictive. I would be difficult to introduce new report revisions or new reports between GenoPro versions.

I suggest that Dictionary.xml files are renamed Dict<langcode>.xml (e.g. DictEN.xml) and be moved to a sub-folder called say Config. Then all available dictionaries for a report can be held in the one folder. If GenoPro makes available a new Property ReportGenerator.BaseLanguage that returns the GenoPro language then the report script can choose the appropriate language. This will be easier if the Dictionary methods are extended to have a 'version' param. that can be set to 'base' or 'skin' ('skin' is default) . Then we can write:

Report.LogComment Dic("ParametersOverride", ReportGenerator.BaseLanguage), "#000080"
or maybe just a literal param
Report.LogComment Dic("ParametersOverride", 'base'), "#000080"
and then then Report Generator accesses the correct Dictionary.



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Friday, May 9, 2008 - Post #21625
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: Thursday, April 11, 2024
Posts: 4,881, Visits: 22,753
Ron (5/9/2008)
If GenoPro makes available a new Property ReportGenerator.BaseLanguage that returns the GenoPro language then the report script can choose the appropriate language.

The property ReportGenerator.SkinLanguage was designed for that purpose, allowing a script to make runtime decisions about the selected language.  Most of the time fetching the text from Dictionary.xml is enough, however sometimes the script may need to perform extra processing for a language.

The current architecture of the report generator must be upgraded to handle multiple languages.  The report generator of GenoPro 2007 uses an architecture written in 2004, which is far superior to its previous report architecture written in year 2000 (introduced with GenoPro 1.90).  Back in year 2004, I was considering scrapping the report generator because of the amount of work involved and the delay of "GenoPro 2.0" (for those who remember the name).  The goal was using a scripting language such as VBScript or JavaScript to make it easier for users to customize their report, since there is no need to document the syntax of those well known scripting languages.  I had no idea how and where the report generator would go.  Thanks to Ron, GenoPro now provides incredible reports, which has stimulated the need for further improvements, including the need for localization and providing storage for parameter configuration settings.

This problem described above is somewhat similar as Wrong language for Configuration Setting popup menu.  What GenoPro will have is an .xml file for each language...

Edited: Friday, May 9, 2008 by GenoProSupport

Posted Saturday, May 10, 2008 - Post #21628
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 @ 8:57 AM
Posts: 3,337, Visits: 25,588
GenoProSupport (5/9/2008)
Ron (5/9/2008)
If GenoPro makes available a new Property ReportGenerator.BaseLanguage that returns the GenoPro language then the report script can choose the appropriate language.

The property ReportGenerator.SkinLanguage was designed for that purpose, allowing a script to make runtime decisions about the selected language. 


Perhaps I did not make myself clear. I intended that ReportGenerator.BaseLanguage return the 'localization' language that the user has selected for GenoPro itself, and not the language for the Report, which is indeed obtained via ReportGenerator.SkinLanguage and which I have already employed within the skin templates.

Having reread the other post relating to this issue, it appears to me that text displayed whilst generating a report, such errors, warnings and comments must be stored separately to the text used in the report itself, as suggested by jcguasp. I now suggest that they be stored along with the config parameter descriptions, perhaps in a section GenerationMessages. Then GenoPro should localize these texts in a similar way to that proposed for configuration parameter descriptions and help tips. The report generator will require new method(s) to access these, or modify the existing Report.LogError/Warning/Comment. The message content can be either plain text or a Report Generator phrase with arguments, and so the method(s) need to cater for this.

Thanks to Ron, GenoPro now provides incredible reports
I cannot take all the credit for the reports. I have received tremendous help along the long path from the early beta days from a dedicated and loyal group of GenoPro users who have made significant contributions to the continuing development and maintenance of these reports by proposing improvements, testing the scripts and reporting problems. most noteable of late have been jcguasp, maru-san, EDilena & haep, but many more have helped in the past and my apologies for not mentioning you all. Without you, the reports would not be what they are today. Of course there are also those who have provided translations of the Narrative Report and localization of GenoPro.



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


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse