diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2020-02-19 21:37:40 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2020-02-19 21:37:40 +0000 |
| commit | c652cdbd7d1da85bf10c8dea060d1ba953b20fd6 (patch) | |
| tree | 084211f79c96fc2a0cacec50f43a1f030a5b12f9 /app/Individual.php | |
| parent | d09f5bcc2db31109adb6c2ac684f310fbb20b735 (diff) | |
| download | webtrees-c652cdbd7d1da85bf10c8dea060d1ba953b20fd6.tar.gz webtrees-c652cdbd7d1da85bf10c8dea060d1ba953b20fd6.tar.bz2 webtrees-c652cdbd7d1da85bf10c8dea060d1ba953b20fd6.zip | |
Fix: #1209 - use q tags for nickname in quotes
Diffstat (limited to 'app/Individual.php')
| -rw-r--r-- | app/Individual.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Individual.php b/app/Individual.php index 44f7f650be..f04a458312 100644 --- a/app/Individual.php +++ b/app/Individual.php @@ -1165,7 +1165,7 @@ class Individual extends GedcomRecord $full = '<span class="NAME" dir="auto" translate="no">' . preg_replace('/\/([^\/]*)\//', '<span class="SURN">$1</span>', e($full)) . '</span>'; // Localise quotation marks around the nickname $full = preg_replace_callback('/"([^&]*)"/', static function (array $matches): string { - return I18N::translate('ā%sā', $matches[1]); + return '<q class="wt-nickname">' . $matches[1] . '</q>'; }, $full); // A suffix of ā*ā indicates a preferred name |
