Implement dynamic language system with automatic detection

- Add getAvailableLanguages() method to scan lang directory automatically
- Add getNativeLanguageName() method for proper language display names
- Enhance SimpleTemplate engine to support array iteration with {{#array}} syntax
- Update header template to use dynamic language dropdown with native names
- Add German (de.php) and French (fr.php) language files as examples
- Fix search input text color to use black text for better visibility
- Languages now appear automatically when added to engine/lang/ without code changes
This commit is contained in:
2025-11-22 21:06:50 +01:00
parent 26f382c41d
commit 25769cef24
8 changed files with 657 additions and 13 deletions

View File

@@ -271,12 +271,12 @@ footer {
max-width: 300px;
}
/* Search input text color */
.search-input {
color: #212529 !important;
/* Search input text color - override navbar form-control styling */
.navbar .form-control.search-input {
color: #000000 !important;
}
.search-input::placeholder {
.navbar .form-control.search-input::placeholder {
color: #6c757d !important;
}