magicsunday / webtrees-pedigree-chart

SVG based pedigree chart module for webtrees genealogy application.
GNU General Public License v3.0
49 stars 16 forks source link

Click on individuals support #11

Closed 06Games closed 3 years ago

06Games commented 3 years ago

This pull request allows you to navigate in the tree by clicking on individuals or to open its page if the individual is at the root of the tree

magicsunday commented 3 years ago

Thanks for your contribution.

For now I only picked the 820c1d3bcdd7d023b2f223bb0cd9e1c705c8ab65 commit as I'm unsure in which direction the development will lead and if clicking on the root person should lead to its individual page. Updating the chart while clicking on a person does not update the chart title, maybe this should collapse the subtree instead.

06Games commented 3 years ago

Regarding the orientation of development, I see two possibilities:

As for the title, I had to remove the name of the selected person from it in order to overcome the problem of updating. Although I don't find it disturbing, I understand that it can be inconvenient to lose this information from the title

06Games commented 3 years ago

Also, I would like to do another pull request to add a French translation but I did not fully understand how files with an mo extension open. I can open them with Notepad++ but the beginning of the file does not correspond to text. Should I use specific software or just edit the text without worrying about unrecognized characters?

magicsunday commented 3 years ago

I use PoEdit to edit the language files. https://poedit.net/ You only edit the .po files. The .mo files are the created binary files.

magicsunday commented 3 years ago

I added you commits but did some small changes to it.