Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

How to add an associate as proxy at a marriage by power of attorney? 1 week 6 days ago #1

  • TheDutchJewel
  • TheDutchJewel's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 72
I've a few marriages by power of attorney in my pedigree.

By adding or editing the marriage it is possible to add an associate, but there's no relationship as proxy/trustee/attorney.

So how to add this relationship?
webtrees v2.0.16 with modules (charts by MagicSunday | Rural Theme | Tree View Full Screen | ⚶ Vesta Custom Modules)
webtrees v1.7.18 with Fancy Treeview & PDF module for nice tree view and report

Please Log in or Create an account to join the conversation.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #2

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2275
In my genealogy I have some of these "with the glove" / by proxy marriages. I've not studied the text close enough to discover who the proxy was. Good idea...

According to GEDCOM specs the type of association is free text. If webtrees has the type not listed, it will be displayed untranslated.
Example:
1 MARR
2 DATE ...
2 PLAC ...
2 _ASSO @I123@
3 RELA proxy

Now I typed the example, I see another issue. The absent person was at another unrecorded location.

Personally I'd just add a note or quote the source in citation details.
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #3

  • TheDutchJewel
  • TheDutchJewel's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 72
Thank you, Bert!

I've added a request ( #3875 ) to add 'proxy' as relationship for associates, so it could be translated.

There's one more issue ( #3875 ): when adding a note to associates, this note will not be displayed.
webtrees v2.0.16 with modules (charts by MagicSunday | Rural Theme | Tree View Full Screen | ⚶ Vesta Custom Modules)
webtrees v1.7.18 with Fancy Treeview & PDF module for nice tree view and report

Please Log in or Create an account to join the conversation.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #4

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2275
Adding your own type of relation is simple. I've added a couple myself: successor, predecessor, named after.
The list of association types goes as far as the imagination stretches.

Greg hinted that customisation of GEDCOM tags will be easier in v2.1, so we'll see how that turns out.

The list of tags you can choose is in app/GedcomCode/GedcomCodeRela.php
I've added translation in .csv files in the data/language folder. No idea whether that still works in v2.x

when adding a note to associates, this note will not be displayed.


Notes do not belong on level 3. Put it on level 2 (the marriage event) and it should be displayed.
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

Last edit: by bertkoor.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #5

  • TheDutchJewel
  • TheDutchJewel's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 72

bertkoor wrote: Notes do not belong on level 3

If notes do not belong on level 3, it is strange that webtrees processes notes that way.
In that case, I think it is better to remove the notes field.

bertkoor wrote: Put it on level 2 (the marriage event) and it should be displayed.

Done: I've combined the note from level 3 to the one on level 2.

bertkoor wrote: I've added translation in .csv files in the data/language folder.

How does that work? What file name should be used in this case?
webtrees v2.0.16 with modules (charts by MagicSunday | Rural Theme | Tree View Full Screen | ⚶ Vesta Custom Modules)
webtrees v1.7.18 with Fancy Treeview & PDF module for nice tree view and report

Please Log in or Create an account to join the conversation.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #6

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2275
I have three files in the folder data/language: en-GB.csv, en-US.csv and nl.csv
Content of the Dutch one:
"successor";"Opvolger"
"predecessor";"Voorganger"
"named after";"Vernoemd naar"

That's one of the methods to do simple custom translations in v1.7. Another (undocumented) method is by creating a .php file (module?)
I'm not on v2.x yet, so I have no experience how to do that. A quick inspection of the source code gives me the impression the csv files should still work.
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

Last edit: by bertkoor.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #7

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2275
[double post removed]
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

Last edit: by bertkoor.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #8

  • TheDutchJewel
  • TheDutchJewel's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 72
Thanks again!

In the folder data/language I created a file nl.csv with this content:
"proxy";"Gevolmachtigde"

Then I edited app/GedcomCode/GedcomCodeRela.php this way:
1. adding 'proxy' (between priest and rabbi), to the private const TYPES section
2. adding this rows between the 'priest' and 'rabbi' rows in the case section:
case 'proxy':
                // no sex implied
                return I18N::translate('Proxy');

But without luck:
1. 'Gevolmachtigde' doesn't show up in the Relationship list
2. And if I use '3 RELA proxy' in the raw GEDCOM, then it's not translated.
webtrees v2.0.16 with modules (charts by MagicSunday | Rural Theme | Tree View Full Screen | ⚶ Vesta Custom Modules)
webtrees v1.7.18 with Fancy Treeview & PDF module for nice tree view and report

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #9

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2275
I see one small error.
return I18N::translate('Proxy'); 

That should be 'proxy' with lower case p, just like you have it in the CSV.

I have no explanation yet why it's not shown in the list. Could you show that part of your code?
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

Last edit: by bertkoor.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #10

  • TheDutchJewel
  • TheDutchJewel's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 72
About: return I18N::translate('Proxy');

bertkoor wrote: That should be 'proxy' with lower case p, just like you have it in the CSV.

It doesn't matter if I write 'proxy' with an upper or lower case letter: in both cases it is not translated.
And I think it's correct with upper case, which is in line with the rest of code:
            case 'priest':
                // no sex implied
                return I18N::translate('Priest');

            case 'proxy':
                // no sex implied
                return I18N::translate('Proxy');

            case 'rabbi':
                // always male
                return I18N::translate('Rabbi');
That ('Proxy') is the text which is shown in the relationship list, so it's not used for translation itself.
The words to be translated are in lower case in the private const TYPES section, like:
        'priest',
        'proxy',
        'rabbi',

bertkoor wrote: I have no explanation yet why it's not shown in the list. Could you show that part of your code?


One remark on my previous statement:

1. 'Gevolmachtigde' doesn't show up in the Relationship list

That's correct: 'Gevolmachtigde' doesn't show up.
But 'Proxy' does, it just doesn't translate...

Maybe language files should be in a different place than in v1.x?
webtrees v2.0.16 with modules (charts by MagicSunday | Rural Theme | Tree View Full Screen | ⚶ Vesta Custom Modules)
webtrees v1.7.18 with Fancy Treeview & PDF module for nice tree view and report

Please Log in or Create an account to join the conversation.

Last edit: by TheDutchJewel.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #11

Perhaps the translation problem has already been reported here: github.com/fisharebest/webtrees/issues/3848.

For a custom translation, the module example.disable under /modules_v4 must be adapted in v2.
Martin - ffp.bauschaffen.de

Please Log in or Create an account to join the conversation.

Last edit: by mp.

How to add an associate as proxy at a marriage by power of attorney? 1 week 5 days ago #12

  • TheDutchJewel
  • TheDutchJewel's Avatar Topic Author
  • Away
  • New Member
  • New Member
  • Posts: 72
Thank you, mp!

You are right: For a custom translation in v2, the module modules_v4/example.disable must be adapted.
And as Bert mentioned: To change the list of relationship tags, the file app/GedcomCode/GedcomCodeRela.php must be adapted.

The problem that remains is the issue ( #3848 ) you mentioned about the untranslated ASSO:RELA custom relationship.
webtrees v2.0.16 with modules (charts by MagicSunday | Rural Theme | Tree View Full Screen | ⚶ Vesta Custom Modules)
webtrees v1.7.18 with Fancy Treeview & PDF module for nice tree view and report

Please Log in or Create an account to join the conversation.

Last edit: by TheDutchJewel.
  • Page:
  • 1
Powered by Kunena Forum