Skip to content

Commit

Permalink
Merge pull request #7303 from Sesquipedalian/translation_credits
Browse files Browse the repository at this point in the history
Use CSV string for $txt['translation_credits'] (CrowdIn compatibility)
  • Loading branch information
Sesquipedalian authored Feb 8, 2022
2 parents 98f663b + 5221f13 commit 40d439e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Sources/Who.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
4 changes: 2 additions & 2 deletions Themes/default/languages/Who.english.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = ',';

?>

0 comments on commit 40d439e

Please sign in to comment.