Giter Club home page Giter Club logo

hh_relation_is_descriptor's People

Contributors

hartenthaler avatar thedutchjewel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zhoueysun

hh_relation_is_descriptor's Issues

trying to adapt your module to Elements/NameType.php

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
.

ExtendedRelationIsDescriptor.php does not seem to work

First of all, thanks for the effort in creating this module!

I tested it with webtrees 2.0.19.

  1. I added three relations (twin, triplet, minister) in RelationIsDescriptorAddon.php, and their translations in ExtendedRelationIsDescriptor.php.
  2. Then I removed these relations from app/Elements/RelationIsDescriptor.php (where I had previously added them) and I disabled my translation module.

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:
afbeelding

class definition is not correct

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?

context sensitive translation

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.