Commit 565b3efe authored by Phu Nguyen's avatar Phu Nguyen
Browse files

Fix i18n and layouts

* Check the condition (> 50 translations) and update languages at each build, generate menus and categories at build time;
* Use suitable language codes so that the language list is not messed up anymore;
* Category list and single layouts now work again;
* Use site title and site description (in config.yaml);
* Cleanup old files.
parent b62983ac
# SPDX-FileCopyrightText: 2020 Carl Schwan <carl@carlschwan.eu>
#
# SPDX-License-Identifier: CC0-1.0
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
\ No newline at end of file
......@@ -14,13 +14,13 @@ vendor/
kde-org-applications-extractor/
*.swp
.idea
locales
locale*
index.json.back
public
content/applications
content/categories
resources
po[st]
locale
po[st]*
###> symfony/phpunit-bridge ###
.phpunit
......
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2021 Nguyen Hung Phu <phu.nguyen@kdemail.net>
# SPDX-License-Identifier: LGPL-3.0-or-later
hugoi18n extract $podir
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2020 Carl Schwan <carl@carlschwan.eu>
# SPDX-License-Identifier: CC0-1.0
export FILENAME="kde-org-applications"
function export_pot_file # First parameter is the path of the pot file we have to create, containing $FILENAME
{
potfile=$1
hugoi18n extract $potfile
}
function import_po_files # First parameter is the path of a directory containing several .po files named as $lang.po
{
export LANG=en_US.UTF-8
podir=$1
hugoi18n -q compile $podir
hugoi18n -q generate
}
This diff is collapsed.
"ca",
"ca@valencia",
"ca_valencia",
"cs",
"de",
"el",
"en_GB",
"es",
"eu",
"fr",
"it",
"nl",
"nn",
"pl",
"pt_BR",
"pt",
"ru",
"sk",
"sl",
"sv",
"uk",
]);
---
title: KDE's Applications
description: KDE is a community of friendly people who create over 200 apps which run on any Linux desktop, and often other platforms too.
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: التطوير
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Desendolcu
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Tərtibat
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Разработка
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Diorren
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Razvoj
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Desenvolupament
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Desenvolupament
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Vývoj
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Udvikling
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Entwicklung
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Ανάπτυξη
---
---
SPDX-License-Identifier: LGPL-2.1-or-later
authors:
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
categoryName: Development
icon: development.svg
title: Programado
---
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment