Skip to content

add lang.files#252

Open
torvista wants to merge 1 commit intolat9:masterfrom
torvista:lang
Open

add lang.files#252
torvista wants to merge 1 commit intolat9:masterfrom
torvista:lang

Conversation

@torvista
Copy link
Copy Markdown
Contributor

I used this in all the classes,

        $filename = FILENAME_DBIO_MESSAGES;  // Exclude "lang." prefix
        $folder = '/dbio/';
        $languageLoader->loadExtraLanguageFiles(DIR_WS_LANGUAGES, $_SESSION['language'],  $filename, $folder);

but haven't added those to this, I can if you're ok with this or have another preference.

@lat9
Copy link
Copy Markdown
Owner

lat9 commented Apr 30, 2026

No need to change every class, just change

include_once DIR_FS_DBIO_LANGUAGES . $_SESSION['language'] . '/dbio/DbIo' . $handler_name . 'Handler.php';

@lat9
Copy link
Copy Markdown
Owner

lat9 commented Apr 30, 2026

Note, too, that this will bump the base Zen Cart versions supported. I need to think a bit about what'll be dropped -- for sure zc157.

@torvista
Copy link
Copy Markdown
Contributor Author

torvista commented Apr 30, 2026

Also just DBIO.php

I forgot I had not modified the rest for this, but have plenty of IDE additions otherwise.

Anyway you have the language files done at least.

@lat9
Copy link
Copy Markdown
Owner

lat9 commented Apr 30, 2026

Thanks for doing this. It'll take me a bit to come back to DbIo, but I'll be back here in a month or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants