diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-08-08 22:48:19 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-08-08 22:59:07 +0100 |
| commit | 3f9fe4dda0367a1808c06abe6d271a14c93182d1 (patch) | |
| tree | 9e2c8d331ccc1a3bb5229f987da62f2c8af7bce2 /app/Fact.php | |
| parent | c531f071488bc57ed33d9fb17f4e1257010b6e40 (diff) | |
| download | webtrees-3f9fe4dda0367a1808c06abe6d271a14c93182d1.tar.gz webtrees-3f9fe4dda0367a1808c06abe6d271a14c93182d1.tar.bz2 webtrees-3f9fe4dda0367a1808c06abe6d271a14c93182d1.zip | |
Fact types containing % break translation
Diffstat (limited to 'app/Fact.php')
| -rw-r--r-- | app/Fact.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/Fact.php b/app/Fact.php index 61b3ad002e..df44f1f5f0 100644 --- a/app/Fact.php +++ b/app/Fact.php @@ -466,11 +466,13 @@ class Fact $type = $this->attribute('TYPE'); if ($type !== '') { - // Allow user-translations of custom types. - $translated = I18N::translate($type); + if (!str_contains($type, '%')) { + // Allow user-translations of custom types. + $translated = I18N::translate($type); - if ($translated !== $type) { - return $translated; + if ($translated !== $type) { + return $translated; + } } return e($type); |
