diff options
-rw-r--r-- | tdd/tdd-bootstrap.php | 7 | ||||
-rw-r--r-- | tdd/translations.json | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/tdd/tdd-bootstrap.php b/tdd/tdd-bootstrap.php index 04bbb0b..7259958 100644 --- a/tdd/tdd-bootstrap.php +++ b/tdd/tdd-bootstrap.php @@ -146,7 +146,12 @@ class Protocol { sort($tables); // compile header with tables numbers $insert = '<a href="#table-' . $tables[0] . '"><h4 id="table-' . $tables[0] . '">'; - $insert .= static::__("Stół") . ' ' . implode(', ', $tables) . ' – '; + if (count($tables) <= 5) { + $insert .= static::__("Stół") . ' ' . implode(', ', $tables); + } else { + $insert .= count($tables) . ' ' . static::__("stołów"); + } + $insert .= ' – '; $insert .= static::__("Rozdanie") . ' ' . $deal->deal_num . '</h4></a>'; // if the board has been played on all tables if ($this->areBoardsPlayed($groupedBoard)) { diff --git a/tdd/translations.json b/tdd/translations.json index e4cc46c..759fc8f 100644 --- a/tdd/translations.json +++ b/tdd/translations.json @@ -2,5 +2,6 @@ "Stół": "Table", "Rozdanie": "Board", "Maksymalna liczba lew": "Makeable tricks", - "Obie": "All" + "Obie": "All", + "stołów": "tables" } |