Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    red flag Where is the tpl_header.php for non-English?

    I see there is a tpl_header.php for the template I am using in my site, I installed two other languages, I was expecting to see the same files in these two languages however I couldn't find them.

    Am I missing something when installing them? or they just don't exist?

    If they don't exist, then how the header is generated in that language? which file it is using to generate the header? I created my menu in the tpl_header.php, I would need to do the translation for other two languages but don't know which files should I work on?

    Thanks.
    Last edited by mdivk; 6 Dec 2011 at 04:57 PM.

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Where is the tpl_header.php for non-English?

    tpl_header.php is zencarts core file. this file has been moved to your custom template folder ( common ) because perhaps has been modified . this is called overriding .

    language files don't alter core files , they are only translation for your site and those files reside in language directory of your site and is called by zencart whenever needed .

  3. #3
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: Where is the tpl_header.php for non-English?

    Quote Originally Posted by tony_sar View Post
    tpl_header.php is zencarts core file. this file has been moved to your custom template folder ( common ) because perhaps has been modified . this is called overriding .

    language files don't alter core files , they are only translation for your site and those files reside in language directory of your site and is called by zencart whenever needed .
    Understood, but there got to be a place for me to customize this particular file for different languages, right? Where and how do I do it?

    Thanks

  4. #4
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Where is the tpl_header.php for non-English?

    if you are talking about the constant that shows on your page ..

    HEADER_TITLE_CONTACT_US.

    go to admin > tools > Developers tool kit .

    type the constant in bottom most search field . that should give you the location of language file that contains it . ( english ) , once you locate the correct english file , you can then correct the problem in other languages

  5. #5
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: Where is the tpl_header.php for non-English?

    Quote Originally Posted by tony_sar View Post
    if you are talking about the constant that shows on your page ..

    HEADER_TITLE_CONTACT_US.

    go to admin > tools > Developers tool kit .

    type the constant in bottom most search field . that should give you the location of language file that contains it . ( english ) , once you locate the correct english file , you can then correct the problem in other languages
    Thank you.

    That only gives me the English file, when I switched to other languages and go to the tools/DevKit, I couldn't locate the constant in any files.

  6. #6
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Where is the tpl_header.php for non-English?

    because that constant dose not exist in other language files.
    open the english file that contains that constant . locate that constant . it should start with word Define ()
    note which english file contains that constant . then open the corresponding file in other languages . copy the exact define () statement into corresponding files then save your work . this should fix the problem for your other language.

  7. #7
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: Where is the tpl_header.php for non-English?

    Quote Originally Posted by tony_sar View Post
    if you are talking about the constant that shows on your page ..

    HEADER_TITLE_CONTACT_US.

    go to admin > tools > Developers tool kit .

    type the constant in bottom most search field . that should give you the location of language file that contains it . ( english ) , once you locate the correct english file , you can then correct the problem in other languages
    Quote Originally Posted by tony_sar View Post
    because that constant dose not exist in other language files.
    open the english file that contains that constant . locate that constant . it should start with word Define ()
    note which english file contains that constant . then open the corresponding file in other languages . copy the exact define () statement into corresponding files then save your work . this should fix the problem for your other language.
    Thank you, but like I said in previous posts, I didn't see tpl_header.php file in languages other than English

  8. #8
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Where is the tpl_header.php for non-English?

    there is nothing to modify in tpl_header.php for language.

    go to

    includes / languages / your language

    look for the file called header.php
    open this file
    add the following
    define('HEADER_TITLE_CONTACT_US','Contact Us');

    replace contact us with correct chines translation.

  9. #9
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: Where is the tpl_header.php for non-English?

    Quote Originally Posted by tony_sar View Post
    there is nothing to modify in tpl_header.php for language.

    go to

    includes / languages / your language

    look for the file called header.php
    open this file
    add the following
    define('HEADER_TITLE_CONTACT_US','Contact Us');

    replace contact us with correct chines translation.


    Can I do the same thing to all the ezpages I put on the header as menu?

  10. #10
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Where is the tpl_header.php for non-English?

    ez pages can only be translated if you add the free addon that i mentioned in other post . ez pages information reside in database.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. New products on home page - where's the php code inside tpl_header?
    By Thannaree in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 10 Jun 2011, 11:16 AM
  2. Character problem for non-English address
    By musicfreer in forum General Questions
    Replies: 9
    Last Post: 7 May 2011, 01:45 AM
  3. Where to find includes/languages/english.php
    By JulieAFrey in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Oct 2009, 10:33 PM
  4. Replies: 10
    Last Post: 8 Jan 2009, 09:10 PM
  5. Replies: 13
    Last Post: 23 Sep 2008, 05:27 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