Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

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