hartenthaler / hh_extended_family

webtrees - showing the extended family of an individual (like cousins and uncles, aunts, ...)
GNU General Public License v3.0
22 stars 9 forks source link

Statistics > Other: Call to undefined method ExtendedFamilyTranslations::danishTranslations #140

Closed TheDutchJewel closed 2 years ago

TheDutchJewel commented 2 years ago

No matter which language I use, always get this error only in the Statistics > Other tab:

Call to undefined method Hartenthaler\Webtrees\Module\ExtendedFamily\ExtendedFamilyTranslations::danishTranslations() …\modules_v4\hh_extended_family\ExtendedFamilyTabModule.php:577

afbeelding

Tested with webtrees v2.0.19 and all modules disabled except 'hh_extended_family' (Extended Family v2.1.0.1).

hartenthaler commented 2 years ago

Strange! The "StatisticsChartModule" calls ... "commonCountriesList" calls ... "PlaceRepository" for Danish Language. Maybe ok so far. But why is this calling the translation function in the "ExtendedFamilyModule"? There is no function "danishTranslations" in my module. The lines around the mentioned line #577 in \modules_v4\hh_extended_family\ExtendedFamilyTabModule.php:577 are used to call the germanTranslations. Are you sure that you are using the original file "ExtendedFamilyTabModule.php"?

TheDutchJewel commented 2 years ago

No, apparently it was not the original version of" ExtendedFamilyTranslations.php".

It seems I used an updated version from the master branch. In it, certain translation sections (including Danish) are missing, while according to the "ExtendedFamilyTabModule.php" file, they were expected to be present.

After adding the missing parts in "ExtendedFamilyTranslations.php" (or using the original file) the problem was solved.