[Scummvm-git-logs] scummvm-web master -> 047655fd690a6c4a864f4ed527ee73f5a7418faa
lephilousophe
noreply at scummvm.org
Sat Sep 14 11:27:45 UTC 2024
This automated email contains information about 5 new commits which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
a08bd53973 WEB: Remove leading / in page URLs
d36386de1a TEMPLATES: Fix OpenGraph and canonical URL
832f769fe3 WEB: Add a description and a descriptive title for OpenGraph
14a84a1bf6 WEB: Create a dedicated string from home and news archive pages
047655fd69 WEB: Set the page description to the game support level
Commit: a08bd539737a66ba75d42bbaeb330dd2a39fd01a
https://github.com/scummvm/scummvm-web/commit/a08bd539737a66ba75d42bbaeb330dd2a39fd01a
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-09-14T13:27:42+02:00
Commit Message:
WEB: Remove leading / in page URLs
Changed paths:
include/Controller.php
templates/components/lang_menu.tpl
templates/pages/index.tpl
diff --git a/include/Controller.php b/include/Controller.php
index cd1168f5..89714ef6 100644
--- a/include/Controller.php
+++ b/include/Controller.php
@@ -78,6 +78,8 @@ class Controller
// Construct lang URL
$langs = join("|", array_keys($available_languages));
$pageurl = preg_replace("/\/\b($langs)\b\/?/i", '/', $_SERVER['REQUEST_URI']);
+ // Remove leading /
+ $pageurl = substr($pageurl, 1);
/* Check RTL */
$rtl = $this->isRtl($available_languages[$lang]);
diff --git a/templates/components/lang_menu.tpl b/templates/components/lang_menu.tpl
index dee32f64..9925edb6 100644
--- a/templates/components/lang_menu.tpl
+++ b/templates/components/lang_menu.tpl
@@ -7,11 +7,11 @@
{if $key != $lang}
<dd>
{if $key == $smarty.const.DEFAULT_LOCALE}
- <span class="bullet"></span><a href="{$pageurl}">{$item}</a>
+ <span class="bullet"></span><a href="/{$pageurl}">{$item}</a>
{else}
- <span class="bullet"></span><a href="/{$key}{$pageurl}">{$item}</a>
+ <span class="bullet"></span><a href="/{$key}/{$pageurl}">{$item}</a>
{/if}
</dd>
{/if}
{/foreach}
-</dl>
\ No newline at end of file
+</dl>
diff --git a/templates/pages/index.tpl b/templates/pages/index.tpl
index 15445f8d..edc2341a 100644
--- a/templates/pages/index.tpl
+++ b/templates/pages/index.tpl
@@ -30,7 +30,7 @@
<!-- Translations -->
{foreach from=$available_languages key=key item=item}
{if $lang != $key}
- <link rel="alternate" hreflang="{$key}" href="{$baseurl}{$key}{$pageurl}">
+ <link rel="alternate" hreflang="{$key}" href="{$baseurl}{$key}/{$pageurl}">
{/if}
{/foreach}
{* Cache bust CSS if making major changes *}
Commit: d36386de1a34c82b7a8cfd39b1eba086d5d11acd
https://github.com/scummvm/scummvm-web/commit/d36386de1a34c82b7a8cfd39b1eba086d5d11acd
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-09-14T13:27:42+02:00
Commit Message:
TEMPLATES: Fix OpenGraph and canonical URL
Changed paths:
templates/pages/index.tpl
diff --git a/templates/pages/index.tpl b/templates/pages/index.tpl
index edc2341a..f6af2c2b 100644
--- a/templates/pages/index.tpl
+++ b/templates/pages/index.tpl
@@ -25,8 +25,9 @@
<meta property="og:image:height" content="630">
<meta property="og:title" content="ScummVM">
<meta property="og:description" content="ScummVM is a collection of game engines for playing classic graphical RPGs and point-and-click adventure games on modern hardware.">
- <meta property="og:url" content="{'https://www.scummvm.org'|lang}">
+ <meta property="og:url" content="{$baseurl|lang}{$pageurl}">
<meta property="og:image" content="https://www.scummvm.org/images/og-image.jpg">
+ <link rel="canonical" href="{$baseurl|lang}{$pageurl}" />
<!-- Translations -->
{foreach from=$available_languages key=key item=item}
{if $lang != $key}
Commit: 832f769fe352bd9f7be3fbc39de294aec1ba8fe1
https://github.com/scummvm/scummvm-web/commit/832f769fe352bd9f7be3fbc39de294aec1ba8fe1
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-09-14T13:27:42+02:00
Commit Message:
WEB: Add a description and a descriptive title for OpenGraph
Changed paths:
include/Controller.php
include/Pages/ArticlePage.php
include/Pages/CompatibilityPage.php
include/Pages/DemosPage.php
include/Pages/DirectorDemosPage.php
include/Pages/DownloadsPage.php
include/Pages/GamesPage.php
include/Pages/LinksPage.php
include/Pages/NewsPage.php
include/Pages/ScreenshotsPage.php
include/Pages/SimplePage.php
templates/pages/index.tpl
diff --git a/include/Controller.php b/include/Controller.php
index 89714ef6..5007d0c4 100644
--- a/include/Controller.php
+++ b/include/Controller.php
@@ -233,4 +233,19 @@ class Controller
{
return $this->smarty->getConfigVars($title);
}
+
+ protected function getHeadline($body)
+ {
+ $headline = '';
+ for ($line = \strtok($body, PHP_EOL); $line !== false; $line = \strtok(PHP_EOL)) {
+ $line = \strip_tags($line);
+ $headline .= $line . ' ';
+ if (\strlen($headline) > 250) {
+ $headline = substr($headline, 0, 249);
+ $headline .= "\u{2026}";
+ break;
+ }
+ }
+ return $headline;
+ }
}
diff --git a/include/Pages/ArticlePage.php b/include/Pages/ArticlePage.php
index a9473bc8..ba13672b 100644
--- a/include/Pages/ArticlePage.php
+++ b/include/Pages/ArticlePage.php
@@ -56,6 +56,8 @@ class ArticlePage extends Controller
$content = $purifier->purify($Parsedown->text($article->body()));
return $this->renderPage([
+ 'title' => $title,
+ 'description' => htmlentities($this->getHeadline($content)),
'content_title' => $title,
'date' => $date,
'author' => $author,
diff --git a/include/Pages/CompatibilityPage.php b/include/Pages/CompatibilityPage.php
index 18778cc3..1c05f0cd 100644
--- a/include/Pages/CompatibilityPage.php
+++ b/include/Pages/CompatibilityPage.php
@@ -90,6 +90,8 @@ class CompatibilityPage extends Controller
return $this->renderPage(
array(
'title' => preg_replace('/{version}/', $version, $this->getConfigVars('compatibilityTitle')),
+ 'subtitle' => $game->getGame()->getName(),
+ 'description' => $this->getConfigVars('compatibilityIntro'),
'content_title' => preg_replace(
'/{version}/',
$version,
@@ -116,6 +118,7 @@ class CompatibilityPage extends Controller
return $this->renderPage(
[
'title' => preg_replace('/{version}/', $version, $this->getConfigVars('compatibilityTitle')),
+ 'description' => $this->getConfigVars('compatibilityIntro'),
'content_title' => preg_replace(
'/{version}/',
$version,
diff --git a/include/Pages/DemosPage.php b/include/Pages/DemosPage.php
index 6741fa40..d80599a0 100644
--- a/include/Pages/DemosPage.php
+++ b/include/Pages/DemosPage.php
@@ -23,6 +23,7 @@ class DemosPage extends Controller
return $this->renderPage(
array(
'title' => $this->getConfigVars('demosTitle'),
+ 'description' => $this->getConfigVars('gamesDemosContentP1'),
'content_title' => $this->getConfigVars('demosContentTitle'),
'demos' => $demos,
)
diff --git a/include/Pages/DirectorDemosPage.php b/include/Pages/DirectorDemosPage.php
index 9cad5920..62bc08c3 100644
--- a/include/Pages/DirectorDemosPage.php
+++ b/include/Pages/DirectorDemosPage.php
@@ -23,6 +23,7 @@ class DirectorDemosPage extends Controller
return $this->renderPage(
array(
'title' => $this->getConfigVars('directorDemosTitle'),
+ 'description' => $this->getConfigVars('gamesDemosContentP1'),
'content_title' => $this->getConfigVars('directorDemosContentTitle'),
'demos' => $demos,
)
diff --git a/include/Pages/DownloadsPage.php b/include/Pages/DownloadsPage.php
index 93bf1437..33086f12 100644
--- a/include/Pages/DownloadsPage.php
+++ b/include/Pages/DownloadsPage.php
@@ -23,6 +23,7 @@ class DownloadsPage extends Controller
return $this->renderPage(
array(
'title' => $this->getConfigVars('downloadsTitle'),
+ 'description' => \strip_tags($this->getConfigVars('downloadsContentP1')),
'content_title' => $this->getConfigVars('downloadsContentTitle'),
'downloads' => $downloads,
'recommendedDownload' => $recommendedDownload
diff --git a/include/Pages/GamesPage.php b/include/Pages/GamesPage.php
index c9961f57..cf4757e5 100644
--- a/include/Pages/GamesPage.php
+++ b/include/Pages/GamesPage.php
@@ -23,6 +23,7 @@ class GamesPage extends Controller
return $this->renderPage(
array(
'title' => $this->getConfigVars('gamesTitle'),
+ 'description' => strip_tags($this->getConfigVars('gamesContentP1')),
'content_title' => $this->getConfigVars('gamesContentTitle'),
'downloads' => $downloads,
)
diff --git a/include/Pages/LinksPage.php b/include/Pages/LinksPage.php
index 1751c509..ef0d8f86 100644
--- a/include/Pages/LinksPage.php
+++ b/include/Pages/LinksPage.php
@@ -24,6 +24,7 @@ class LinksPage extends Controller
return $this->renderPage(
array(
'title' => $this->getConfigVars('linksTitle'),
+ // TODO: add a description
'content_title' => $this->getConfigVars('linksContentTitle'),
'links' => $links,
)
diff --git a/include/Pages/NewsPage.php b/include/Pages/NewsPage.php
index 2797c2ce..a35d970a 100644
--- a/include/Pages/NewsPage.php
+++ b/include/Pages/NewsPage.php
@@ -38,14 +38,19 @@ class NewsPage extends Controller
{
if ($filename == null) {
$news_items = $this->newsModel->getAllNews();
- $filename = 'archive';
+ $subtitle = null;
+ $description = $this->getConfigVars('introHeaderContentP1');
} else {
$news_items = array($this->newsModel->getOneByFilename($filename));
+ $subtitle = $news_items[0]->getTitle();
+ $description = htmlentities($this->getHeadline($news_items[0]->getContent()));
}
return $this->renderPage(
array(
'title' => $this->getConfigVars('newsTitle'),
+ 'subtitle' => $subtitle,
+ 'description' => $description,
'content_title' => $this->getConfigVars('newsContentTitle'),
'show_intro' => false,
'news_items' => $news_items,
@@ -69,6 +74,7 @@ class NewsPage extends Controller
return $this->renderPage(
array(
'title' => $this->getConfigVars('newsTitle'),
+ 'description' => $this->getConfigVars('introHeaderContentP1'),
'content_title' => $this->getConfigVars('newsContentTitle'),
'show_intro' => true,
'news_items' => $news_items,
diff --git a/include/Pages/ScreenshotsPage.php b/include/Pages/ScreenshotsPage.php
index c9726b82..8f6b7878 100644
--- a/include/Pages/ScreenshotsPage.php
+++ b/include/Pages/ScreenshotsPage.php
@@ -39,6 +39,7 @@ class ScreenshotsPage extends Controller
return $this->renderPage(
[
'title' => $this->getConfigVars('screenshotsTitle'),
+ // TODO: Add a description
'content_title' => $this->getConfigVars('screenshotsContentTitle'),
'screenshots' => $screenshot,
'random_shot' => $random_shot,
@@ -51,17 +52,21 @@ class ScreenshotsPage extends Controller
{
if (empty($game)) {
$screenshots = $this->screenshotsModel->getScreenshotsByCompanyId($category);
+ $subtitle = $screenshots['title'];
} else {
$screenshots = [
'category' => $category,
'games' => $this->screenshotsModel->getScreenshotsBySubcategory($game)
];
+ $subtitle = $screenshots['games'][0]->getName();
}
$this->template = 'pages/screenshots_category.tpl';
return $this->renderPage(
[
'title' => $this->getConfigVars('screenshotsTitle'),
+ // TODO: Add a description
+ 'subtitle' => $subtitle,
'content_title' => $this->getConfigVars('screenshotsContentTitle'),
'screenshots' => $screenshots,
'category' => $category,
diff --git a/include/Pages/SimplePage.php b/include/Pages/SimplePage.php
index 3745bb5f..ab4797c2 100644
--- a/include/Pages/SimplePage.php
+++ b/include/Pages/SimplePage.php
@@ -42,6 +42,7 @@ class SimplePage extends Controller
return $this->renderPage([
'title' => $this->getConfigVars("{$this->key}Title"),
+ 'description' => $this->getConfigVars("{$this->key}Description"),
'content_title' => $this->getConfigVars("{$this->key}ContentTitle"),
'data' => $data
]);
diff --git a/templates/pages/index.tpl b/templates/pages/index.tpl
index f6af2c2b..34ce4870 100644
--- a/templates/pages/index.tpl
+++ b/templates/pages/index.tpl
@@ -8,7 +8,8 @@
<base href="{$baseurl|lang}">
<link rel="alternate" type="application/atom+xml" title="{#indexAtomFeed#}" href="{$baseurl|lang}/feeds/atom/">
<link rel="alternate" type="application/rss+xml" title="{#indexRSSFeed#}" href="{$baseurl|lang}/feeds/rss/">
- <title>ScummVM :: {$title}</title>
+ <title>ScummVM :: {$title}{if isset($subtitle)} :: {$subtitle}{/if}</title>
+ {if isset($description)}<meta name="description" content="{$description}">{/if}
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=oLBEjaJ9ag">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=oLBEjaJ9ag">
@@ -23,8 +24,8 @@
<!-- OpenGraph -->
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
- <meta property="og:title" content="ScummVM">
- <meta property="og:description" content="ScummVM is a collection of game engines for playing classic graphical RPGs and point-and-click adventure games on modern hardware.">
+ <meta property="og:title" content="ScummVM :: {$title}{if isset($subtitle)} :: {$subtitle}{/if}">
+ {if isset($description)}<meta property="og:description" content="{$description}">{/if}
<meta property="og:url" content="{$baseurl|lang}{$pageurl}">
<meta property="og:image" content="https://www.scummvm.org/images/og-image.jpg">
<link rel="canonical" href="{$baseurl|lang}{$pageurl}" />
Commit: 14a84a1bf690163ade3b59749b7a9e6f5bc151af
https://github.com/scummvm/scummvm-web/commit/14a84a1bf690163ade3b59749b7a9e6f5bc151af
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-09-14T13:27:42+02:00
Commit Message:
WEB: Create a dedicated string from home and news archive pages
Changed paths:
data/ca/strings.json
data/de/strings.json
data/el/strings.json
data/en/strings.json
data/es/strings.json
data/fi/strings.json
data/fr/strings.json
data/he/strings.json
data/it/strings.json
data/ka/strings.json
data/pt-BR/strings.json
data/pt-PT/strings.json
data/ru/strings.json
data/zh-Hans/strings.json
include/Pages/NewsPage.php
diff --git a/data/ca/strings.json b/data/ca/strings.json
index e237a19d..eb6994f5 100644
--- a/data/ca/strings.json
+++ b/data/ca/strings.json
@@ -121,6 +121,7 @@
"linksHeading": "",
"linksIntro": "",
"listItemsDate": "",
+ "homeTitle": "",
"newsTitle": "",
"newsContentTitle": "",
"newsPostedBy": "",
diff --git a/data/de/strings.json b/data/de/strings.json
index 682afee2..7098626a 100644
--- a/data/de/strings.json
+++ b/data/de/strings.json
@@ -106,7 +106,8 @@
"linksHeading": "Links",
"linksIntro": "**Verlinken Sie zu uns:** Bitte verwenden Sie dieses Bild, wenn Sie einen Link zu uns auf Ihre Website setzen wollen.",
"listItemsDate": ", zuletzt aktualisiert:",
- "newsTitle": "Startseite",
+ "homeTitle": "Startseite",
+ "newsTitle": "Aktuelle Nachrichten",
"newsContentTitle": "Aktuelle Nachrichten",
"newsPostedBy": "geschrieben von",
"newsMoreNews": "Weitere Nachrichten...",
diff --git a/data/el/strings.json b/data/el/strings.json
index 2c098939..02418f22 100644
--- a/data/el/strings.json
+++ b/data/el/strings.json
@@ -111,7 +111,8 @@
"linksHeading": "ΣÏνδεÏμοι",
"linksIntro": "**ΠαÏÎÏεÏε ÏÏνδεÏμο ÏÏÎ¿Ï ÎµÎ¼Î¬Ï:** Îν θÎλεÏε να ÏαÏÎÏεÏε Îνα ÏÏνδεÏμο αÏÏ Ïον ιÏÏÏÏοÏÏ ÏÎ±Ï ÏÏÎ¿Ï Ïο ScummVM: μÏοÏείÏε να ÏÏηÏιμοÏοιήÏεÏε ελεÏθεÏα αÏ
Ïή Ïην εικÏνα.",
"listItemsDate": ", ÏελεÏ
Ïαία ενημÎÏÏÏη:",
- "newsTitle": "ÎÏÏική",
+ "homeTitle": "ÎÏÏική",
+ "newsTitle": "ΤελεÏ
ÏÎ±Î¯ÎµÏ ÎξελίξειÏ",
"newsContentTitle": "ΤελεÏ
ÏÎ±Î¯ÎµÏ ÎξελίξειÏ",
"newsPostedBy": "ÎημοÏιεÏÏηκε αÏÏ",
"newsMoreNews": "ΠεÏιÏÏÏÏεÏÎµÏ ÎιδήÏειÏ...",
diff --git a/data/en/strings.json b/data/en/strings.json
index cc801519..ba141cba 100644
--- a/data/en/strings.json
+++ b/data/en/strings.json
@@ -121,7 +121,8 @@
"linksHeading": "Links",
"linksIntro": "**Link to us:** If you want to link your site to us: please feel free to use this image.",
"listItemsDate": ", last update:",
- "newsTitle": "Home",
+ "homeTitle": "Home",
+ "newsTitle": "Latest Developments",
"newsContentTitle": "Latest Developments",
"newsPostedBy": "Posted by",
"newsMoreNews": "More News...",
diff --git a/data/es/strings.json b/data/es/strings.json
index a95bf684..86bbc34b 100644
--- a/data/es/strings.json
+++ b/data/es/strings.json
@@ -110,7 +110,8 @@
"linksHeading": "Enlaces",
"linksIntro": "**Enlázanos:** Si quieres poner nuestro enlace en tu sitio, puedes usar esta imagen.",
"listItemsDate": ", última actualización:",
- "newsTitle": "Inicio",
+ "homeTitle": "Inicio",
+ "newsTitle": "Ãltimas publicaciones",
"newsContentTitle": "Ãltimas publicaciones",
"newsPostedBy": "Publicado por",
"newsMoreNews": "Más noticias...",
diff --git a/data/fi/strings.json b/data/fi/strings.json
index fc91a5af..fda1d6f5 100644
--- a/data/fi/strings.json
+++ b/data/fi/strings.json
@@ -122,7 +122,8 @@
"linksHeading": "Linkit",
"linksIntro": "**Linkitä tänne meille:** mikäli haluat linkittää ScummVM-hankkeeseen omalta sivustollasi: käytä tätä kuvaa vapaasti.",
"listItemsDate": ", viimeisin päivitys:",
- "newsTitle": "Koti",
+ "homeTitle": "Koti",
+ "newsTitle": "Viimeisimmät kehitysaskeleet",
"newsContentTitle": "Viimeisimmät kehitysaskeleet",
"newsPostedBy": "Tämän lähetti",
"newsMoreNews": "Lisää uutisia...",
diff --git a/data/fr/strings.json b/data/fr/strings.json
index 69fb8066..08ef1254 100644
--- a/data/fr/strings.json
+++ b/data/fr/strings.json
@@ -108,7 +108,8 @@
"linksHeading": "Liens",
"linksIntro": "**Liens vers le site de ScummVMâ¯:** vous pouvez utiliser cette image sur votre site pour les liens vers le site de ScummVM.",
"listItemsDate": ", dernière mise à jour⯠:",
- "newsTitle": "Accueil",
+ "homeTitle": "Accueil",
+ "newsTitle": "Nouvelles récentes",
"newsContentTitle": "Nouvelles récentes",
"newsPostedBy": "Posté par",
"newsMoreNews": "Plus de nouvelles...",
diff --git a/data/he/strings.json b/data/he/strings.json
index c5f742bc..c4183863 100644
--- a/data/he/strings.json
+++ b/data/he/strings.json
@@ -111,7 +111,8 @@
"linksHeading": "×§×ש×ר××",
"linksIntro": "**×§×ש×ר ×××× ×: ×× ×רצ×× × ×קשר ×××× × ×ת ××תר ש××: ×× ×ª×סס ××שת×ש ×ת××× × ××.**",
"listItemsDate": ", ××¢×××× ××ר××:",
- "newsTitle": "××ת",
+ "homeTitle": "××ת",
+ "newsTitle": "×תפת××××ת ××ר×× ×ת",
"newsContentTitle": "×תפת××××ת ××ר×× ×ת",
"newsPostedBy": "פ××¨×¡× ×¢× ×××",
"newsMoreNews": "×¢×× ××ש×ת...",
diff --git a/data/it/strings.json b/data/it/strings.json
index 25a0f1f2..e29b450d 100644
--- a/data/it/strings.json
+++ b/data/it/strings.json
@@ -103,7 +103,8 @@
"linksHeading": "Link",
"linksIntro": "**Linkaci:** se vuoi mettere un collegamento a scummvm.org sul tuo sito, usa pure questa immagine.",
"listItemsDate": ", ultimo aggiornamento:",
- "newsTitle": "Home",
+ "homeTitle": "Home",
+ "newsTitle": "Ultimi Aggiornamenti",
"newsContentTitle": "Ultimi Aggiornamenti",
"newsPostedBy": "Scritto da",
"newsMoreNews": "Altre News...",
diff --git a/data/ka/strings.json b/data/ka/strings.json
index 340cd3d1..8db8b14e 100644
--- a/data/ka/strings.json
+++ b/data/ka/strings.json
@@ -121,7 +121,8 @@
"linksHeading": "ááá£áááá",
"linksIntro": "**ááá£á á©ááááááá:** áᣠááááááá, áá¥áááá¡ ááááááá ááá á©áááá ááá£áá áááááááá¡áá: á¨áááá«áááá, áá¡ ááááá¡áá®á£áááá áááááá§áááá.",
"listItemsDate": ", áááá ááááá®áááá:",
- "newsTitle": "á¦ááááá Home",
+ "homeTitle": "á¦ááááá Home",
+ "newsTitle": "á£ááááá¡ááááá áªááááááááá",
"newsContentTitle": "á£ááááá¡ááááá áªááááááááá",
"newsPostedBy": "ááá¢áá á",
"newsMoreNews": "ááá¢á á¡ááá®áá ...",
diff --git a/data/pt-BR/strings.json b/data/pt-BR/strings.json
index fb489d96..e22fe4d1 100644
--- a/data/pt-BR/strings.json
+++ b/data/pt-BR/strings.json
@@ -111,7 +111,8 @@
"linksHeading": "Links",
"linksIntro": "**Redirecionamento:** Se deseja inserir em seu site um link para o nosso: por favor, fique à vontade para utilizar esta imagem.",
"listItemsDate": ", última atualização:",
- "newsTitle": "InÃcio",
+ "homeTitle": "InÃcio",
+ "newsTitle": "Publicações Mais Recentes",
"newsContentTitle": "Publicações Mais Recentes",
"newsPostedBy": "Publicado por",
"newsMoreNews": "Mais NotÃcias...",
diff --git a/data/pt-PT/strings.json b/data/pt-PT/strings.json
index d66f49a9..7c2e6024 100644
--- a/data/pt-PT/strings.json
+++ b/data/pt-PT/strings.json
@@ -114,7 +114,8 @@
"linksHeading": "Ligações",
"linksIntro": "",
"listItemsDate": ", última atualização:",
- "newsTitle": "InÃcio",
+ "homeTitle": "InÃcio",
+ "newsTitle": "Ãltimas NotÃcias",
"newsContentTitle": "Ãltimas NotÃcias",
"newsPostedBy": "Publicado por",
"newsMoreNews": "Mais NotÃcias...",
diff --git a/data/ru/strings.json b/data/ru/strings.json
index d5ba4762..51fd3d13 100644
--- a/data/ru/strings.json
+++ b/data/ru/strings.json
@@ -106,7 +106,8 @@
"linksHeading": "СÑÑлки",
"linksIntro": "**ÐобавлÑйÑе ÑÑÑлки на наÑ:** еÑли Ð²Ñ Ñ
оÑиÑе добавиÑÑ ÑÑÑÐ»ÐºÑ Ð½Ð° ÑвоÑм ÑайÑе, можеÑе иÑполÑзоваÑÑ ÑÑÑ ÐºÐ°ÑÑинкÑ.",
"listItemsDate": ", поÑледнее обновление:",
- "newsTitle": "ÐлавнаÑ",
+ "homeTitle": "ÐлавнаÑ",
+ "newsTitle": "ÐоÑледние новоÑÑи",
"newsContentTitle": "ÐоÑледние новоÑÑи",
"newsPostedBy": "ÐпÑбликовано",
"newsMoreNews": "ÐÑÑ Ð½Ð¾Ð²Ð¾ÑÑи...",
diff --git a/data/zh-Hans/strings.json b/data/zh-Hans/strings.json
index c19f5b2a..302a3223 100644
--- a/data/zh-Hans/strings.json
+++ b/data/zh-Hans/strings.json
@@ -121,7 +121,8 @@
"linksHeading": "龿¥",
"linksIntro": "**æä»¬ç龿¥ï¼** å¦æä½ æ³å¨ä¸ªäººç½ç«ä¸é¾æ¥å°æä»¬çç½ç«ï¼è¯·å°½ç®¡ä½¿ç¨æ¤å¾åã",
"listItemsDate": "ï¼ä¸æ¬¡æ´æ°ï¼",
- "newsTitle": "主页",
+ "homeTitle": "主页",
+ "newsTitle": "ææ°å¼åè¿å±",
"newsContentTitle": "ææ°å¼åè¿å±",
"newsPostedBy": "åå¸è
",
"newsMoreNews": "æ´å¤æ°é»â¦",
diff --git a/include/Pages/NewsPage.php b/include/Pages/NewsPage.php
index a35d970a..27100f09 100644
--- a/include/Pages/NewsPage.php
+++ b/include/Pages/NewsPage.php
@@ -73,7 +73,7 @@ class NewsPage extends Controller
return $this->renderPage(
array(
- 'title' => $this->getConfigVars('newsTitle'),
+ 'title' => $this->getConfigVars('homeTitle'),
'description' => $this->getConfigVars('introHeaderContentP1'),
'content_title' => $this->getConfigVars('newsContentTitle'),
'show_intro' => true,
Commit: 047655fd690a6c4a864f4ed527ee73f5a7418faa
https://github.com/scummvm/scummvm-web/commit/047655fd690a6c4a864f4ed527ee73f5a7418faa
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-09-14T13:27:42+02:00
Commit Message:
WEB: Set the page description to the game support level
Changed paths:
include/Pages/CompatibilityPage.php
diff --git a/include/Pages/CompatibilityPage.php b/include/Pages/CompatibilityPage.php
index 1c05f0cd..1bda80c7 100644
--- a/include/Pages/CompatibilityPage.php
+++ b/include/Pages/CompatibilityPage.php
@@ -91,7 +91,7 @@ class CompatibilityPage extends Controller
array(
'title' => preg_replace('/{version}/', $version, $this->getConfigVars('compatibilityTitle')),
'subtitle' => $game->getGame()->getName(),
- 'description' => $this->getConfigVars('compatibilityIntro'),
+ 'description' => $this->supportLevelDescriptions[$game->getSupport()],
'content_title' => preg_replace(
'/{version}/',
$version,
More information about the Scummvm-git-logs
mailing list