The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 6 of 6

Thread: Link by hand?

  1. #1
    104
    posts
    Registered User

    Link by hand?

    I have a really big web site (351 pages) in two language french and english. My boss wants, at the end of each page, a link "in english" (on the french page) that redirect you to the same page but of course in english. Is there any way to do the same job with find and replace or something like that.

    Xelaxam

  2. #2
    well, you could find and replace something like

    HTML Code:
    </body>
    </html>
    with
    HTML Code:
    <div id="language"><p><a href="myenglish.html" title="English">View this page in English</a></p></div>
    </body>
    </html>

  3. #3
    104
    posts
    Registered User
    Quote Originally Posted by bwh2
    well, you could find and replace something like

    HTML Code:
    </body>
    </html>
    with
    HTML Code:
    <div id="language"><p><a href="myenglish.html" title="English">View this page in English</a></p></div>
    </body>
    </html>
    I know and I will surely do that to make the link the only problem is that the links change from each page... I mean there is a page "cafe" and when I press on the link It will go to the french cafe page... It will be the same for news which will go to the french news page and not the cafe one...

  4. #4
    602
    posts
    Backend Specialist
    how are your filenames related? like "cafe_fr.htm" and "cafe_en.htm" or something? or are they the same name in different directories? if your filenames are named with the same format depending on english and french, you should be able to get the name somehow...are you using a server side language at all?

  5. #5
    104
    posts
    Registered User
    Quote Originally Posted by skOOb
    how are your filenames related? like "cafe_fr.htm" and "cafe_en.htm" or something? or are they the same name in different directories? if your filenames are named with the same format depending on english and french, you should be able to get the name somehow...are you using a server side language at all?
    In fact the file are named the same but in a different directory...

    But I have some difficulty in programming that's why I asked for a find/replace solution.

    Xelaxam

  6. #6
    it's perfect for them to be in a different directory. just do a find/replace within that directory. then do a different find and replace within the other directory.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012