Major refactoring to standardize language file naming across the system, replacing verbose language names with ISO 639-1 two-letter codes. Language file renaming:
- lang-english.php → en.php
- lang-french.php → fr.php
- lang-german.php → de.php
- lang-polish.php → pl.php
- lang-russian.php → ru.php
- lang-ukrainian.php → uk.php
Applied to directories:
- admin/language/
- language/
- setup/language/
Language flag images renamed:
- setup/templates/images/english.png → en.png
- setup/templates/images/french.png → fr.png
- setup/templates/images/german.png → de.png
- setup/templates/images/polish.png → pl.png
- setup/templates/images/russian.png → ru.png
- setup/templates/images/ukrainian.png → uk.png
Admin structure changes:
- admin/admin.php → admin/index.php
- admin/modules/configure.php → admin/modules/config.php
- Removed legacy admin/links/ directory
Updated all admin modules to reflect language code changes and modernization patterns established in refactoring-rules.md. Core system files updated for compatibility with new language structure. This standardization improves internationalization consistency, follows ISO standards, and simplifies language file management throughout SLAED CMS.
- Info files: Language names standardized (english→en, german→de, etc.)
- blocks.php: Switch-Cases finalized and cleaned
- admin.php: Auto-discovery optimizations
- core.php: Admin functions improved
- Navigation: op=new → op=add, op=file → op=fileadd
- Switch: case 'new' → case 'add', case 'file' → case 'fileadd'
- Switch: case 'add' → case 'addsave' (save operation)
- Formular: op=add → op=addsave (save action)
- Alle Operationen entsprechen jetzt exakt den Funktionsnamen
- bfile() → filecode()
- bfilesave() → filecodesave()
- Switch-Cases grouped and commented by logic
- Alle Formular-Referenzen aktualisiert
file() is a PHP built-in function and cannot be overridden.
Problem:
- Parse error: "new" ist ein reserviertes PHP-Keyword
- Funktion new() konnte nicht deklariert werden
Lösung:
- Funktion new() → newBlock()
- Switch case angepasst: case 'new': newBlock();
- Navigation bleibt: name=blocks&op=new (nur interne Funktion renamed)
Änderung:
- Navigation: name=blocks&op=show → name=blocks (use default case)
Alle Redirects waren bereits korrekt mit explizitem &op=show. Keine weiteren Änderungen nötig - Datei war bereits sauber strukturiert.
Änderungen:
- Funktion navi() → adminsNavi() (consistent with other modules)
- Navigation: name=admins&op=show → name=admins (use default case)
- Formular: Redundant Hidden-Field "name" removed (in Action-URL)
- Funktion getAdminInfo() → adm_info() (konsistent)
- Redirects: Explicit &op=show added for clarity
All function calls updated:
- admins() Zeile 18
- add() Zeile 54
- info() Zeile 167