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

GenoPro Support Forum




Printing the translated texts

Click to view RSS...
Author Would be useful, if the translation of GenoPro (not the reports) can be checked not only on the screen.
Posted Tuesday, March 5, 2013 - Post #31402
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

GenoPro version: 2.5.4.0
Last Login: Wednesday, March 6, 2013
Posts: 1, Visits: 1
fbukolyi (07-Jan-2008)
I am working on the Hungarian translation - but the idea is language independent.

What I thought is a report, which has one parameter (the target language) and lists all items which can be translated with their English origin and the target language. Similar, if I make one Excel table by copy-pasting all dialogs, menus, etc. from the translation tables.
Posted Tuesday, January 15, 2008 - Post #20448
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 2:55 PM
Posts: 212, Visits: 1,976
Thanks again Ron... it works!

sorry... I didn't read your notes....Sick

Note: the xml files must be on the output order

Edited: Tuesday, January 15, 2008 by Jordi-Albert Batalla

Posted Tuesday, January 15, 2008 - Post #20446
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: 8 hours ago
Posts: 3,428, Visits: 26,566
Perhaps do did not read my post that preceded Feri's. You must run it as a GenoPro Report not as a free standing jScript!


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Tuesday, January 15, 2008 - Post #20441
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 2:55 PM
Posts: 212, Visits: 1,976
Thanks Feri.... but it doesn't work.

I do all the process and I receive the following error :

Script: c:\Program Files\GenoPro\Skins\Comparison\Main.js

Line:1

Char: 1

Error: Syntax Error

Code: 800A03EA

Source: Microsoft JScript compilation error

 

Note: done on two diferent computers

Edited: Tuesday, January 15, 2008 by Jordi-Albert Batalla

Posted Monday, January 14, 2008 - Post #20438
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Important Contributors
Customers
GenoPro version: 3.1.0.1

Last Login: Saturday, December 28, 2024
Posts: 193, Visits: 4,270
Marvelous! And working!

Concerning Excel: from Excel 2003 it should work (]http://www.lukemiller.org/journal/2005/03/changing-default-text-import-origin.html])

A workaround for me (Excel 2002 :coolSmile: open the file(s) with a unicode capable word processor (I prefer pspad. Copy all, pasted to Excel. Seems working, at least in a Hungarian Excel 2002 with the Hungarian translation.

Usage (to Jordi-Albert):

1. extract the report (full structure) to your report folder as usual (normally C:\Program Files\GenoPro\Skins, assuming, that your are using Windows).
2. select or create a new folder for your comparison
3. download and copy the English xml from here
4. copy your ES.xml or CA.xml to the same directory
5. run the report: do not forget to specify the destination folder the same as you have selected or created under point 2.
6. post-process the files from the destination folder (Dialogs.csv, Enumerations.csv, etc.)

Remark: sometimes if you simple open the csv Excel will automatically make the conversion (not necessarily with the result you wish). In this case your can rename the .csv files to .txt and import as text file with several available settings, like column format, delimiter, codepage, etc.)




Feri


Edited: Monday, January 14, 2008 by fbukolyi
Posted Monday, January 14, 2008 - Post #20437
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: 8 hours ago
Posts: 3,428, Visits: 26,566
Jordi-Albert Batalla (1/14/2008)
can we use this tool to check all the translations?

Firstly, has it really been three years, it seems like yesterday!

But yes it can be used to check any of the GenoPro Language files (but not other files)

there is the possibility to import from this files?
Theoretically it is possible to reverse the process, i.e. export from the spreadsheet back to .csv, then have a script to convert the .csv back to .xml. However it would not be possible to reproduce the GenoPro's rules and processing that ensures that the structure and content of the .xml file is valid. I.e. I could not guarantee the results!

 

have no open office. How can I have the ES and CA (catalan) text?
OpenOffice is a free, but large, download from http://www.openoffice.org or alternatively it can be ordered on CD for a few dollars. If you have a version of Excel later than 2000, it may also open the .csv files. Failing that, you can open the .csv files with say Notepad, but it is not that easy to read the text as it is not in columns.

How I must use this tool?
Unzip the skin template into a folder below your GenoPro skins folder. (you and view and change the location of your skins folder in the Options tab of GenoPro's Generate Report dialog). Then place all the Language files you would like to compare in another folder of your choice. In your case the files will be EN.xml, ES.xml and CA.xml. Finally choose the GenoPro's Generate Report option from the Tools menu, set the destination folder to be that containing these language files and then click Generate button.  All the .csv files will then be written to the destination folder. You can then open each .csv file with OpenOffice sCalc to view the translations, English, Spanish & Catalan side by side in columns. You can compare any number of Language files at the same time.



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


Edited: Monday, January 14, 2008 by Ron
Posted Monday, January 14, 2008 - Post #20431
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Translator
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 2:55 PM
Posts: 212, Visits: 1,976
Fantastic Ron. Congratulations!!

can we use this tool to check all the translations?

there is the possibility to import from this files?

 

(edited)

I have no open office. How can I have the ES and CA (catalan) text?

How I must use this tool?

Edited: Monday, January 14, 2008 by Jordi-Albert Batalla

Posted Monday, January 14, 2008 - Post #20428
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: 8 hours ago
Posts: 3,428, Visits: 26,566
Well it was relatively straightforward ( a couple of hundred lines of code :ermmSmile with a few stumbling blocks along the way! The resulting skin is attached. It will compare two or more Langauge files listing the strings side by side. The skin will produce a .csv file for each section of the Language.xml files, i.e. Dialogs.csv, Enumerations.csv, Tags.csv, MenuItems.csv & Messages.csv. The .csv files are 'tab' separated and encoded as Unicode (UTF-8).

The OpenOffice spreadsheet, sCalc will open them provided you set 'Character set' to Unicode (UTF-8) and specify tab as the delimiter, but MS Excel 2000 doesn't like utf-8! I don't know about later versions of Excel.

However you can save the OpenOffice one in MS Excel format. The destination folder for the report must also hold the language files to be used as input with names of the form XX.xml, e.g. EN.xml, RU.xml etc. The EN.xml file must be present, (see Daniel's post below for download). You can include as many other language files as you like.

Also attached are sample spreadsheets built from the output .csv files, using Spanish, French and Russian language files as input.  Languages.ods is OpenOffice, Languages.xls is the OOo one saved as Excel.

Update: 2008/01/15 Minor change to add version numbers to header line in files. Also a few more comments in the scripts.


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


Samples.zip (342 views, 438.08 KB)
LanguageComparison_1.1.zip (306 views, 54.59 KB)


Edited: Tuesday, January 15, 2008 by Ron
Posted Thursday, January 10, 2008 - Post #20354
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, June 2, 2025
Posts: 4,886, Visits: 22,796
The English language file is available at http://www.genopro.com/translation/EN/Language.xml
Posted Tuesday, January 8, 2008 - Post #20345
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: 8 hours ago
Posts: 3,428, Visits: 26,566
I'm not that familiar with translation of GenoPro but on a cursory examination I think it should be relatively straightforward to write a GenoPro report skin, or a freestanding VBScript/Jscript), that reads one or more XX.xml GenoPro Language files using MSXML DOM interfaces and produces say  a .csv file for each section (Menus, Dialogs, Tags, Messages, Enumerations) with a column for each language present. The .csv files could then each be loaded into an Excel (or OOo) sheet. However at present there doesn't appear to be a base English Language.xml file to provide a reference point, I presume this is because it is built in to GenoPro itself.

Question to Dan - is it possible provide an EN.xml Language file? Then it should then be possible to read the tags and values from the English file and then read the equivalent tag from each of the other language files and output details to  a .csv file.

Theoretically one could use MS Excel or OOo automation to create a spreadsheet directly, but .csv is easier to start with.


'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
No results found!

Reading This Topic

Expand / Collapse
Active: 3 - 1 guest, 1 member, 0 anonymous.
Refresh