PDA

View Full Version : Link by hand?



xelaxam
February 20th, 2006, 09:00 PM
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

bwh2
February 20th, 2006, 09:47 PM
well, you could find and replace something like



</body>
</html>

with


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

xelaxam
February 22nd, 2006, 10:40 PM
well, you could find and replace something like



</body>
</html>

with


<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...

skOOb
February 23rd, 2006, 08:09 AM
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?

xelaxam
February 23rd, 2006, 02:40 PM
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

bwh2
February 23rd, 2006, 02:47 PM
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.