From 5221f1357c5ebbf46adb5b0ef92c15b4c4c30e6d Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Tue, 8 Feb 2022 09:41:47 -0700 Subject: [PATCH] Use CSV string for $txt['translation_credits'] (CrowdIn compatibility) Signed-off-by: Jon Stovell --- Sources/Who.php | 3 +++ Themes/default/languages/Who.english.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/Who.php b/Sources/Who.php index 22c27b0914..5c06bafec5 100644 --- a/Sources/Who.php +++ b/Sources/Who.php @@ -764,6 +764,9 @@ function Credits($in_admin = false) ); // Give the translators some credit for their hard work. + if (!is_array($txt['translation_credits'])) + $txt['translation_credits'] = array_filter(array_map('trim', explode(',', $txt['translation_credits']))); + if (!empty($txt['translation_credits'])) $context['credits'][] = array( 'title' => $txt['credits_groups_translation'], diff --git a/Themes/default/languages/Who.english.php b/Themes/default/languages/Who.english.php index 3a1c305ce7..9424e01f85 100644 --- a/Themes/default/languages/Who.english.php +++ b/Themes/default/languages/Who.english.php @@ -210,7 +210,7 @@ $txt['credits_groups_orignal_pm'] = 'Original Project Managers'; $txt['credits_in_memoriam'] = 'In loving memory of'; -// List of people who have made more than a token contribution to this translation. (blank for English) -$txt['translation_credits'] = array(); +// Comma separated list of people who have made more than a token contribution to this translation. Example: 'Alice "The Hammer" Smith, Bob Cratchit, Gandalf the Grey'. (Note: English version contains a single comma so that the string will be shown in CrowdIn.) +$txt['translation_credits'] = ','; ?> \ No newline at end of file