How can I use a template in a site with different lang tags?

My site has pages in six different languages.  For example, the French page is
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
My template, however, reads:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Ergo, every time I update my site because I changed the template, my foreign langauge pages lose their language declarations.
You cannot make an editable region for this.  When I tried, I got error messages.
Anyone know a good work around?
At this point, I have to manually edit those foreign language pages every time I do a site-wide update.
Thanks.

I have just tested this very quickly, but it seems to work.
Dreamweaver templates allow you to create editable attributes. You can't do it for the <html> tag through the Dreamweaver interface, but it seems to work without problem if you hand-code it in the template.
In the main template, change the <html> tag to look like this:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="@@(lang)@@" lang="@@(lang)@@">
Just before the closing </head> tag, add this:
<!-- TemplateParam name="lang" type="text" value="fr" -->
Save the template.
All child pages will automatically be updated to have xml:lang="fr" lang="fr".
In pages that use a different language, go to Modify > Template Properties, and change the value of lang to en, or whatever language it uses.
An alternative approach is to keep your language pages in different folders, and then use Find and Replace on the whole folder to change the values in the <html> tag.

Similar Messages

  • How can I use the templates I generated in CS5 Bridge, in Lightroom 4.4?

    How can I use the templates I generated in CS5 Bridge, in Lightroom 4.4 ?
    It appears that I can not link the templates which I have been using in Bridge for some time to Lightroom 4.4.
    Is this done on purpose?
    Thanks in advance
    Doppy

    I assume these are metadata templates?
    in Bridge, apply a template to an image which has no other metadata (eg a dummy image ) and then import the image into Lightroom, ensuring no metadata applied in the Import dialog. Now in Lightroom's Metadata panel, save the metadata as a new Metadata Preset.
    Repeat for each template.

  • How can I use my Dell photo 924 printer with my iMac

    How can I use my Dell photo 924 printer with my iMac, I have tons of ink and don't want to buy a new printer right now.

    People who need to SCAN & PRINT without a compatible driver from their manufacturer can use Apple's very basic "PRINT & SCAN" utility in System Preferences:
    Click the Apple menu ( ), and then click System Preferences .
    Click Print & Scan ( ).
    Click Scan , and then click Open Scanner .
    Click Show Details . The details of the scan display, including options to modify scan settings such as output type.Figure 2: Example of the Show Details scanning screen
    Change any settings as necessary, and then click Scan .
    Hope this helps

  • How can I use a vector image to stretch with the backgrounds in Muse master pages?

    How can I use a vector image to stretch with the backgrounds in Muse master pages?

    Maybe there's a bug.  I think it's only showing it when it wants to because look:

  • How can I use my Ipod as an alarm with wake up to an internet radio?

    How can I use my Ipod as an alarm with wake up to an internet radio?

    You need to find an app that does bot since one app can effect another app (an alarm app can tell an internet radio app to start playing).  There is Trance Radio with Alarm and Radio with Alarm Clock

  • HT5616 How can I use my apple ID to buy from different app stores (different countries)?

    How can I use my apple ID to buy from different app stores (different countries)?

    You can only use a country's store if you are in that country and have a billing address in that country on your account - are you in the country that you want to buy content from ? If you are then you can update the billing address on your account to be your address there (if using a credit card then that will need to have been issued by a bank in that country) via the Store > View Account menu option on your computer's iTunes.

  • Can I use iCloud to sync two devices with different apples Ids?

    Can I use iCloud to sync two devices with different apple ID's

    What do you mean by "apple ID"?  There's an ID you can use at the iTunes store to buy songs, apps, etc.  there's an ID you can use for your iCloud account - the two can be different or the same. So which service are you referring to when you talk about an apple ID?

  • How can I use same account in 2 iphone with diff contact list?

    how can I use same account number but other all totally diff such as contact list, application, everything ..... I found that it's bad on IOS5.
    when I used IOS4 .. old verison, I can keep my phone in diff data. Afte upgrade IOS 5, it's bad. Even take photo, it can not focus zoom in and out.

    how can I use same account number but other all totally diff such as contact list, application, everything ..... I found that it's bad on IOS5.
    when I used IOS4 .. old verison, I can keep my phone in diff data. Afte upgrade IOS 5, it's bad. Even take photo, it can not focus zoom in and out.

  • How can I use the built-in Isight camera with an external camera (usb/firewire) at the same time?

    How can I use the built-in Isight camera and an external video camera at the same time?
    I'm wanting to stream over Oovoo/Skype/etc. using 2 cameras.
    Thanks

    Simple question with a not so simple answer.
    (a) If you mean that you want to run multiple apps simultaneously using a different camera with each app, you may encounter computing power limitations.  Digital video is processor intensive.  The only way to know if your Mac can do this it to try it.  If the video does not work together but each app works when it it the only app running, you are likely overloading your Mac's ability to process and/or move all the required data in your data bus.  You can get a better indication of whether this is the case by watching your Activity Monitor utility while running the apps you want to use.
    (b) If you mean that you want to have more than one compatible camera connected to your Mac simultaneously for ease of changing between video sources, some, but not necessarily all, apps you are using to operate your camera(s) allow you to select between your cameras.
    How you select among connected cameras depends on which application you are using. Here is how camera selection works in a few examples:
    (1) For iChat, you can choose which iSight you use in the "Camera:" choices bar in iChat > Preferences... > Audio/Video that appears when more than one compatible camera is connected. Although your camera choices will be different, the choices bar will look something similar to the Preferences settings shown here:
    If you cannot see the "Camera" choices bar, your Mac is recognizing only one (or none) of your cameras. In that case, consider the suggestions fromhttp://support.apple.com/kb/HT2090 for iSight problems or refer to your other camera's documentation for help.
    This particular choices bar solution applies ONLY to iChat. Most other applications also have settings that allow you to choose which camera to use. However, they do not all work the same way.
    (2) For instance, iMovie HD's camera choice is NOT set via Preferences. When you have more than one compatible camera connected, iMovie6 HD uses a drop-down menu choice something like this (depending on which version of iMovie you use):
    Note: Because I had no built-in iSight connected when I made this example, and because my external iSight was not connected, the drop-down menu showed only "Time Lapse." Because your Mac has a built-in iSight, your built-in iSight would show in the drop-down menu even when no other camera is connected. Connecting an additional Mac compatible webcam should allow you to choose either camera.
    Other iMovie versions work slightly differently.
    iMovie 9 (from iLife '11) uses a different camera choice button shown in this article:
      http://docs.info.apple.com/article.html?path=iMovie/9.0/en/mov39f84285.html
    iMovie 8 (from iLife '09) is slightly different as explained in this article:
      http://docs.info.apple.com/article.html?path=iMovie/8.0/en/10172.html
    In general, you can use your Mac's help for the application in use to find out how to select among more than one connected camera.
    (3) Photo Booth in Snow Leopard 10.6.x and later uses the Photo Booth > Camera menu command to select which camera to use.
    Note for readers with older Mac OS X: The previous version of Photo Booth that came with Tiger (10.4.x) is such a simple, basic app that it offers no menu selectable choice. Unless your built-in iSight is already occupied as the camera being used by some open application before you launch Photo Booth, Photo Booth will use ONLY your built-in iSight.
    However, you can use the trick from ¶ 4 of http://docs.info.apple.com/article.html?artnum=302781 to let Photo Booth use an external camera.
    (If you have an external Firewire camera connected, it may be used in preference to any USB webcam. If that is a problem for you, merely disconnect the problem Firewire device.)
    (4) For FaceTime, launch the app and click the Video menu item.
    If your Mac recognizes more than one connected compatible camera, a "Camera" section listing the cameras from which you can choose will appear there. Clicking on the desired camera name will let you select the one you want as shown in this image from my Mac Pro and LED Cinema Display:
    If your Mac recognizes only one compatible camera, the "Camera" section will not appear in the Video menu, but FaceTime will automatically use the connected camera that is recognized by OS X.
    (5) I do not use Skype oir Oovoo.  For those or other apps, see Help for each app for info on how to select your desired camera.
    Message was edited by: EZ Jim

  • How can I use any website on the internet with my apple tv?

    How Can I use internet or the web on my apple tv?

    Welcome to the Apple Community.
    You can't unless you mirror it from your iPhone or iPad.

  • How can I use a iteration control to compare with array?

    Dear All
    I have done a program and I need to test me program...but I seem to have to problem...I don't know how to use a iteration ( a for loop ) to test my program...
    My test code is written like this...
    public class ClockWatchDemo
    public static void main(String[]args)
    TimePiece[] tpList = new TimePiece[3];
    tpList[0] = new Watch(200, "Vintage", "Men");
    tpList[1] = new Clock(400, "Classic", 70);
    tpList[2] = new Clock(300, "Futuristic", 45);
    for(int i=0; i<3; i++)
    if( i == tpList[0] ) // how can I do to compare my temp integer with the array number?
    System.out.println(tpList[0].toString() + "\n");
    else
    return "";
    Please advise

    Thank you for your help but how can i compare my temp int i to the tpList array?
    I wanted to do something like this
    if( i == tpList)
    System.out.println(tpList[i].toString() + "\n");
    but I will get prompt to inform me that
    if( i == tpList[i])
    incomparable types : int and TimePiece
    Please advise.
    Thank you

  • No ISA slot available in PC. How can I use PCI-85 Modbus Plus card with Lookout?

    My application is to communicate with two Modicon PLCs using Modicon's ModBus Plus (PCI based PCI-85) network card inside my PC, and using Lookout as an SCADA software. Since there is no ISA slot available in new PCs, I can not use Modicon's ISA-85 Modbus Plus networc card. But Lookout does not support PCI based PCI-85 card, how can I use PCI-85 card then, with Lookout? Why doesn't Lookout support it? I asked the following question from from the Modicon's representative about it:
    If I purchase Modbus Plus Driver Suite CD (SWMXDS001, 05, or 10 etc),will I be able to use Lookout SCADA software (by the way, it supports standard MB+ prtocol) for my application? If yes, can I use any version of an
    y of the ISA, PCI, or PCMCIA based MB+ card?
    His answer was:
    The Modbus Plus Driver Suite will talk to any version of card, PCMCIA, ISA, and PCI. The question now is will the SCADA package you are
    planning on using be able to talk to the Modbus Plus Driver Suite? You must contact National Instruments and ask them if they support Modbus Plus, and if
    they used the MB+ system developement kit to develop their product. Or if they wrote their own MB+ drivers, do they work with Modicon hardware?

    Hi,
    currently Lookout does not support the PCI-85 card. The only card supported for Modbus Plus is SA-85. Please see for further information:
    Where can I Find Drivers for Communicating to PLCs, RTUs, and Other Industrial Hardware?
    How to configure the SA-85 card for Modbus Plus
    Hope this helps
    Roland

  • I have a i phone 4,4.3.5 bought from uk i used this in uk but now i am in india how can i use this phone in other networka with out jailbreak such ntype of softwares

    i have a iphone 4,4.3.5 bought from uk i used this phone in uk,now i am in india how can i use this in another networks without jailbreak such type of softwares

    Where did the phone come from as most of the UK carriers unlock phones, but the fact that you are now abroad may be a problem.

  • How can I use javascript in a Text Area with HTML editor??

    My question is... how can I use javascript in Text Area with HTML editor??
    I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
    I need to limit number of characters in a text area with html editor and i can´t.
    could anybody help me please?

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • [EWS][Java] How can I use the Search Filter only mails with attachments?

    Hey,
    I'm trying to search a folder ( doesn't matter  which ) for ONLY mails with attachments.
    How can I use the search filter for that purpose? 
    Thanks!

    You can drag the attachment collumn from settings and sort on that collumn
    In the main Outlook window, on the View menu, point to
    Current View, and then click Customize Current View.
    Click Fields. In the Available fields list, click the field that you want to add, and then click
    Add.
    Come back and mark replies as answer if they help, and help others with the same problem. If this post is helpful please vote it as Helpful on the left side.

Maybe you are looking for

  • Can not start Enterprise Manager web page

    I can not start Enterprise Manager web page. Here is my steps: 1. Start enterprise manager emctl start Waiting for EM to initialize ...Started 2. Check status: emctl status EMD is up and running : 200 OK 3. Start the web page http://myhost:1810/ 4. g

  • Error during System Copy in SCM system

    *Hi We are performing System Copy of SCM system. Java was not running in the system from the starting. we are facing following error while performing system copy*  Please Help.. Oct 23, 2009 12:05:38... Info   : Successfully parsed! Oct 23, 2009 12:0

  • How To Cancel Completely Processed Shipment?

    Hi. I have created sales order ->Delivery->Picking---> Shipment. The shipment is completely processed now (Cost Calculation is done) But I want to cancel this shipment and delivery...how to go about this? Thanks in advance.

  • Pandora won't install

    I cannot install the Pandora app on my iPhone 5 (iOS 8.02).  The app was installed, but stopped working. I was advised to delete and reinstall it.  After deleting the app, I went to the App Store and saw the expected cloud download icon. However, tap

  • Doubleclick in another item

    I have a Block which is based on a Table. I have two Items. The first item is the "NAME" and the other Item is the "Title". And I have an Control-Block which have an Item "TITLE2". The item "Title" is deactivated. Now I want if I doubleclick in the "