GEDFact_assistant - relationship names not localised

Bug #898444 reported by Muadh Hamidaddin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
webtrees
Fix Committed
Low
fisharebest

Bug Description

$parentlinks and $spouselinks in
\modules_v3\GEDFact_assistant\_CENS\census_3_search_add.php
 and
 \modules_v3\GEDFact_assistant\_MEDIA\media_1_ctrl.php
are not translated as evident in Family navigator.

Changed in webtrees:
assignee: nobody → fisharebest (fisharebest)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
fisharebest (fisharebest) wrote :

This is very bad.

Not only are relationship names hard-coded into English, the code has hard-coded internal variables in English, that are actually translated. e.g.

if ($currpid=="Wife" || $currpid=="Husband") {
 $parentlinks .= "'Father in Law',"; // label = 1st Gen Male Relationship
} else {
 $parentlinks .= "'Grand-Father',"; // label = 2st Gen Male Relationship
}

So, the variable $currpid isn't set to "Wife" or "Husband", but to the *translated* name of that relationship. Hence when you change language, the "father-in-law" relationship is actually displayed as "grandfather".

Revision history for this message
kiwi (kiwi3685-deactivatedaccount) wrote :

These were all written for PGV. It looks like they have never been upgraded. Is it practical to replace all these relationships with their WT_I18N equivalent's, or does the whole structure need re-writing? I could do the former, but not keen to tackle the latter :-(

Revision history for this message
Muadh Hamidaddin (muadhh) wrote :

I hope I am not making trouble here!

Revision history for this message
fisharebest (fisharebest) wrote :

<<Is it practical to replace all these relationships with their WT_I18N equivalent's, or does the whole structure need re-writing?>>

You would need to refactor the code so that it generates relationship names from our internal "fatmotbro" strings.

This could be as simple as updating the $currpid variable, although there could be more. I stopped looking at that point....

Revision history for this message
fisharebest (fisharebest) wrote :

<<I hope I am not making trouble here!>>

Not at all!

This module currently works only for UK and US censuses. We will need to fix this bug before we can extend it to work with censuses from other countries.

summary: - missing translation
+ GEDFact_assistant - relationship names not localised
Changed in webtrees:
status: Confirmed → Triaged
Changed in webtrees:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.