Modify ↓
Opened 7 years ago
Closed 7 years ago
#1613 closed Bug/Fehler (worksforme)
lang_`$language`.custom im Template
| Reported by: | Volker Strähle | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 2.0.3.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Kann bitte mal jemand prüfen of der Eintrag
{config_load file="lang_$language.custom"}
- B. in templates/tpl_modified_responsive/boxes/box_miscellaneous.html
richtig ist?
Die lang_german.custom sollte doch im Verzeichnis "lang" des Templates gefunden werden. Bei funktioniert das nicht. Ich musste die Datei in /root/lang/lang_german.custom speichern und zusätzlich im box-template ändern auf
{config_load file="lang_$language.custom" section="boxes"}
Das geht dann.
Attachments (0)
Change History (1)
comment:1 by , 7 years ago
| Milestone: | modified-shop-2.0.5.0 |
|---|---|
| Resolution: | → worksforme |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Das ist genau so richtig wie es gemacht wurde und ich hatte damit noch in keinem Shop Probleme:
{config_load file="lang_`$language`.custom"}Das funktioniert jedoch erst ab Smarty 3, siehe "/includes/external/smarty/smarty_3/Smarty.class.php":
// set default dirs $this->setTemplateDir(DIR_FS_CATALOG . 'templates' . DIRECTORY_SEPARATOR) ->addTemplateDir(DIR_FS_CATALOG . 'templates' . DIRECTORY_SEPARATOR . CURRENT_TEMPLATE . DIRECTORY_SEPARATOR) ->setCompileDir(DIR_FS_CATALOG . 'templates_c' . DIRECTORY_SEPARATOR) ->setPluginsDir(SMARTY_PLUGINS_DIR) ->setCacheDir(DIR_FS_CATALOG . 'cache' . DIRECTORY_SEPARATOR) ->setConfigDir(DIR_FS_CATALOG . 'lang' . DIRECTORY_SEPARATOR) ->addConfigDir(DIR_FS_CATALOG . 'templates' . DIRECTORY_SEPARATOR . CURRENT_TEMPLATE . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR) ->addPluginsDir(MY_TEMPLATE_PLUGINS) ->addPluginsDir(MY_SHOP_PLUGINS) ->registerCacheResource('phpfastcache', new Smarty_CacheResource_Phpfastcache());Die *.custom hat von unserer Seite aus überhaupt keine Sektionen, sondern nur die *.section!