Modify ↓
Opened 10 years ago
Last modified 8 years ago
#800 new Frage
Neue Funktion für Sprachdateien
| Reported by: | INETvisio | Owned by: | somebody |
|---|---|---|---|
| Priority: | niedrig | Milestone: | |
| Component: | Shop | Version: | 2.0.1.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Hallo,
es wäre supper, wenn alle Sprachdateien über paar neue zentrale Funktionen in die System eingeschlossen (include_once) werden.
Beispiele:
includes/classes/payment.php::construct
include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $include_modules[$i]['file']);
includes/classes/shipping.php::construct
include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/shipping/' . $include_modules[$i]['file']);
account_history_info.php
include (DIR_WS_LANGUAGES.'/'.$_SESSION['language'].'/modules/payment/'.$order->info['payment_method'].'.php');
.. und viele weitere Stellen.
Mit eine Funktion könnte man zum Beispiel folgendes machen:
xtc_init_lang_file( $_SESSION['language'], $path ); xtc_init_modules_lang_file( $_SESSION['language'], 'payment', $file );
Es wäre viel praktischer Fehler abzufangen oder ein include_once anstatt include zu benutzen.
Was denkt ihr?
Gruß
Jürgen H.
Attachments (0)
Change History (2)
comment:1 by , 10 years ago
| Milestone: | modified-shop-2.00 → modified-shop-2.10 |
|---|
comment:2 by , 8 years ago
| Milestone: | modified-shop-2.1.0.0 |
|---|
Note:
See TracTickets
for help on using tickets.
