Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    Default Cannot access admin after translation

    Hi!

    I have tried translating zen cart to swedish. The front end works as expected but now I cannot access the admin area. Instead, I get the following error:

    Warning: main(includes/languages/swedish.php) [function.main]: failed to open stream: No such file or directory in /home/thaufoo/public_html/zen/admin/includes/init_includes/init_languages.php on line 31

    Warning: main(includes/languages/swedish.php) [function.main]: failed to open stream: No such file or directory in /home/thaufoo/public_html/zen/admin/includes/init_includes/init_languages.php on line 31

    Fatal error: main() [function.require]: Failed opening required 'includes/languages/swedish.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thaufoo/public_html/zen/admin/includes/init_includes/init_languages.php on line 31
    Also, by translating I mean that I previously added swedish as a language using the admin backend; that I basically copied, renamed and modified the file includes/languages/english.php to swedish.php and also copied and renamed the includes/languages/english/ directory to includes/languages/swedish/.

    Regards,
    thaufoo

  2. #2
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Cannot access admin after translation

    Is there nobody how can help? I don't mean to sound rude or make demands, but I'm currently evaluation zen cart for a project and not having access to the admin makes this evaluation really difficult. Anyone who wants to have a go at the error?

  3. #3
    Join Date
    Apr 2004
    Location
    Montreal
    Posts
    755
    Plugin Contributions
    1

    Default Re: Cannot access admin after translation

    Sounds like you have a character in your translated section that is also a code such as ' and in cases where a word is broken up such as it's the ' would create and end of code thus causing the translation to crash.

    Verify your translations carefully, it is most cerntain an oversite somewhere
    IntelCos

  4. #4
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Cannot access admin after translation

    I figured out the problem. I now understand that Zen Cart also needs to have the admin translated and not only the store front end. So basically, I faked a translation in the admin/languages (unsure about the path, though) by copying english.php and english/ and renaming the to swedish.php and swedish.php. I believe I also modified the admin settings file so that it uses proper swedish langauge settings.

    Maybe this is obvious for seasoned Zen Cart devs, but I haven't read any documentation, but only solved my problems using trial and error. I still haven't grasped all of the dependencies and the general architecture of Zen Cart, but it is nevertheless promising.

 

 

Similar Threads

  1. Cannot access admin after upgrade
    By moggi1964 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 10 Apr 2011, 07:33 PM
  2. Cannot Access Admin after SSL Install
    By tasha_g in forum Installing on a Mac Server
    Replies: 1
    Last Post: 11 Feb 2011, 07:59 PM
  3. Cannot Access Admin Area After Renaming
    By games4gamers in forum Basic Configuration
    Replies: 7
    Last Post: 12 Apr 2010, 03:46 PM
  4. Replies: 11
    Last Post: 4 Oct 2007, 06:53 PM
  5. Cannot access admin after upgrade...
    By colin99 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 19 Sep 2006, 11:27 PM

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