Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Language Manager [Support Thread]

    A plugin that allows you to modify language files directly from the admin or even create your own language pack - no need to use FTP or understand advanced code.

    Built as an Encapsulated Plugin for Zen Cart 2.1.0+ (no idea if it works on older versions, although it should work back to 1.5.8).

    Any suggestions are more than welcome!

    GitHub: https://github.com/zenexpert/Zen_Cart-Language-Manager

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: Language Manager [Support Thread]

    Just updated.
    - fix for double sanitization in Advanced mode
    - basic mode allows clearing a string
    - basic mode supports reverting to original

  3. #3
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: Language Manager [Support Thread]

    Latest version submitted to Plugins. Once approved, it will be available here: https://www.zen-cart.com/downloads.php?do=file&id=2424

    Updated:
    - fix handling for module files (shipping/payment/order_total)

    Name:  screenshot.jpg
Views: 54
Size:  46.4 KB
    Last edited by balihr; 2 Jan 2026 at 01:20 PM.

  4. #4
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    345
    Plugin Contributions
    7

    Default Re: Language Manager [Support Thread]

    Did you test it with another language than English?
    I tried with French and as soon as I clicked on save button, language is set back to English and the edit is actually saved in the English file, not the French one.
    Trying to edit the French main language file gives an error message 'Invalid filename. Directory traversal detected.' on top of ZC window but no error log and no edit is saved.

  5. #5
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: Language Manager [Support Thread]

    Ugh... Yes, I did test other languages, just not the MAIN language file... This should fix it.

    Thanks for the feedback - every comment is most welcome!

  6. #6
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    345
    Plugin Contributions
    7

    Default Re: Language Manager [Support Thread]

    Quote Originally Posted by balihr View Post
    Ugh... Yes, I did test other languages, just not the MAIN language file... This should fix it.

    Thanks for the feedback - every comment is most welcome!
    Good! The language setting is retained now and files edits are saved in their actual language.
    For the main language file, there is some problem if you use modsecurity on Apache server, but I need to do more tests with this.

    There is still another related problem : If, after editing a file, you changed language without selecting a new file, actually displayed file is still the precedent language one and doing any edit will gives an error from ZC.

  7. #7
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: Language Manager [Support Thread]

    Quote Originally Posted by pilou2 View Post
    There is still another related problem : If, after editing a file, you changed language without selecting a new file, actually displayed file is still the precedent language one and doing any edit will gives an error from ZC.
    I can't seem to reproduce this.
    To make sure I understand it right: I'm in English language and select lang.account.php, make some edits and save it. I simply change language to Spanish, the same file is still selected and loads spanish definitions. I edit the file and save it, and it saves to the correct location (Successfully saved 1 overrides to includes/languages/spanish/responsive_classic/lang.account.php)

    But yes, there might be issues with languages other than english because the plugin was originally built for a client who only wanted one language to edit, the rest was done just to try and accommodate it for the whole community... Please bear with me and help me iron it all out.

  8. #8
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    345
    Plugin Contributions
    7

    Default Re: Language Manager [Support Thread]

    Quote Originally Posted by balihr View Post
    I can't seem to reproduce this.
    To make sure I understand it right: I'm in English language and select lang.account.php, make some edits and save it. I simply change language to Spanish, the same file is still selected and loads spanish definitions. I edit the file and save it, and it saves to the correct location (Successfully saved 1 overrides to includes/languages/spanish/responsive_classic/lang.account.php)

    But yes, there might be issues with languages other than english because the plugin was originally built for a client who only wanted one language to edit, the rest was done just to try and accommodate it for the whole community... Please bear with me and help me iron it all out.
    Sorry, I was not clear enough, the last proble you described well only happens with main language file, For exemple, if you are editing lang.english.php and change language to French, the English version of the file is still displayed.

    After ironing it a little bit more, this should be a great tool! I am not sure how far you want to go, because on the admin side, there is a lot that can be added, but not everything can be overriden.

  9. #9
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: Language Manager [Support Thread]

    Quote Originally Posted by pilou2 View Post
    Sorry, I was not clear enough, the last proble you described well only happens with main language file, For exemple, if you are editing lang.english.php and change language to French, the English version of the file is still displayed.
    Of course I didn't test THAT!
    Please try this.

    After ironing it a little bit more, this should be a great tool!
    I hope so! My main goal is to move Zen Cart away from being a developer-focused platform and bring it closer to the end user who doesn't want to deal with FTP and code editors. Anything that CAN be done without code editing, it's a step forward for the end user.

    I am not sure how far you want to go
    BRING IT ON!!!
    Just kidding, not sure what time allows me to do... Ideas are most welcome, but can't promise I'll have time to implement any of it.

    because on the admin side, there is a lot that can be added, but not everything can be overriden.
    I have no plans on making this available for the admin language files if that's what you meant.

    Thank you very much for the efforts, love the colab!

  10. #10
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    345
    Plugin Contributions
    7

    Default Re: Language Manager [Support Thread]

    Quote Originally Posted by balihr View Post
    Of course I didn't test THAT!
    Please try this.
    It is working !

    Quote Originally Posted by balihr View Post
    I hope so! My main goal is to move Zen Cart away from being a developer-focused platform and bring it closer to the end user who doesn't want to deal with FTP and code editors. Anything that CAN be done without code editing, it's a step forward for the end user.
    Yes, especially when it comes to language and translation, there are not so many people who have skills in language and coding.

    Quote Originally Posted by balihr View Post
    BRING IT ON!!!
    Just kidding, not sure what time allows me to do... Ideas are most welcome, but can't promise I'll have time to implement any of it.
    I added some PRs on GitHub. One is just the translation of this plugin in case you want to add them... or not, do as you want with it. The other two should improve the code a little bit.

    Quote Originally Posted by balihr View Post
    I have no plans on making this available for the admin language files if that's what you meant.

    Thank you very much for the efforts, love the colab!
    Yes, this is what I meant, but partially. There are some language strings in admin that are visible to customers and one might want to change them. But this might complicate things a lot for only few strings. It is probably better to let this aside.

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. Image Manager [Support Thread]
    By balihr in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Sep 2025, 02:06 AM
  2. v151 Log Manager [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 4 Jul 2025, 02:40 PM
  3. Link Manager 3.0 Support Thread
    By clydejones in forum Addon Sideboxes
    Replies: 1987
    Last Post: 6 Aug 2021, 02:56 PM
  4. Testimonial Manager Support Thread
    By clydejones in forum All Other Contributions/Addons
    Replies: 1500
    Last Post: 4 Feb 2021, 04:12 PM
  5. Poll Manager Support Thread
    By boudewijn in forum Addon Sideboxes
    Replies: 148
    Last Post: 27 Jan 2016, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg