hartenthaler / hh_relation_is_descriptor Goto Github PK
View Code? Open in Web Editor NEWwebtrees module - provide additional relation descriptors
License: GNU General Public License v3.0
webtrees module - provide additional relation descriptors
License: GNU General Public License v3.0
To define a class that extends the existing class RelationIsDescriptor, I tried the following but this is not correct.
class RelationIsDescriptorAddon extends AbstractModule implements RelationIsDescriptor, ModuleCustomInterface
Error message:
Hartenthaler\Webtrees\Module\RelationIsDescriptorAddon\RelationIsDescriptorAddon cannot implement Fisharebest\Webtrees\Elements\RelationIsDescriptor - it is not an interface
class RelationIsDescriptorAddon extends RelationIsDescriptor implements AbstractModule, ModuleCustomInterface
or
class RelationIsDescriptorAddon extends RelationIsDescriptor implements ElementInterface, ModuleCustomInterface
or
class RelationIsDescriptorAddon extends RelationIsDescriptor implements ModuleCustomInterface
are not working, too.
How should the class definition look like?
there is no save button
You have to edit raw GEDCOM instead.
Translation of relation descriptors is context-sensitive (depending on the sex). But I don't know how to do this using the PHP I18N function.
I was able to modify hh_relation_is_descriptor to my v.2.1.2. I want to extend the dropdown list for name types. It is used to extend NameType.php. I am not sure if this is how I should contact you. Please let me know if there is a more appropriate way to ask for help. At least is does not crash or get a fatal error. I just cannot make the NAME:TYPE dropdown list to show my extended version
hh_ChinAmNameType.zip
.
I'm still working on the way to use and translate relation descriptors depending on the sex of the person.
First of all, thanks for the effort in creating this module!
I tested it with webtrees 2.0.19.
twin
, triplet
, minister
) in RelationIsDescriptorAddon.php, and their translations in ExtendedRelationIsDescriptor.php.At that point, these relationships are not translated.
The translations do work when I add these relations back to app/Elements/RelationIsDescriptor.php. Therefore, it seems that ExtendedRelationIsDescriptor.php is not working.
Also, the relation type minister
is not available in the associates drop-down menu because it's missing in app/GedcomCode/GedcomCodeRela.php:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.