Mercurial > hg > mgallery
changeset 126:e14605c7aea0
Add translations for image/sub-album counts.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 28 Aug 2017 13:49:10 +0300 |
parents | 379a8cd3bb2c |
children | 3ee66c432081 |
files | mgallery.php |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mgallery.php Sat Aug 26 03:41:16 2017 +0300 +++ b/mgallery.php Mon Aug 28 13:49:10 2017 +0300 @@ -31,6 +31,16 @@ "fi" => "Näytä parhaalla laadulla", "en" => "View best quality version", ], + + "gallery_nimages" => [ + "fi" => "kuvaa", + "en" => "images", + ], + + "gallery_nsubalbums" => [ + "fi" => "albumia", + "en" => "albums", + ], ]; @@ -765,9 +775,9 @@ $ptmp = []; if (count($galImagesIndex) > 0) - $ptmp[] = count($galImagesIndex)." images"; + $ptmp[] = count($galImagesIndex)." ".mgQM("gallery_nimages"); if (count($galAlbumsIndex) > 0) - $ptmp[] = count($galAlbumsIndex)." sub-albums"; + $ptmp[] = count($galAlbumsIndex)." ".mgQM("gallery_nsubalbums"); if (count($ptmp)) $pageTitle .= " (".implode($ptmp, ", ").")";