OT: directing to new page dependent on browser/keyboard language?

Hell
I have just got a new gig building a dual language site.
English and Spanish
and I have heard that its easy enough to have a mechanism
that detects the
users language and serves hello.htm or ola.htm respectively
for instance.
How would I go about that?
Cheers
James Loudon
www.fatgraphics.com
websites::photography::video

.oO(James Loudon)
>Cool, thanks David. I had found various Javascript
methods of doing this but
>was looking for something more solid and server side. I
find myself wanting
>to avoid Javascript as much as possible these days.
Good. At least you shouldn't rely on JS for a site's most
basic
functionality, it should always work without it. But if done
properly,
JS can really help to further improve a site's usability.
Back to the topic ... currently I don't have a multilingual
project
online, but I played around with it a while ago and would do
it like
this:
(1)
Server-side content negotiation (as already mentioned), but
only on the
homepage. The document root would contain at least these
files for 3
languages:
/index.php.de
/index.php.en
/index.php.es
And maybe a generic
/index.php.php
(There are reasons for that, it's explained in the Apache CN
manual.)
These files just redirect the browser to the
language-specific homepage,
which directly leads to issue 2:
(2)
There are two ways where to store all those pages and how to
access them
by URLs:
* subdirectories, e.g.
http://example.com/de/foo
http://example.com/en/foo
http://example.com/es/foo
* subdomains, e.g.
http://de.example.com/foo
http://en.example.com/foo
http://es.example.com/foo
It's more or less just a design decision, but there are some
reasons for
and against each other. The subdomain-way for example is
quite common
and used by projects like Wikipedia, but can become a problem
if you
want to use SSL/TLS.
Whatever way you go - make sure that all pages are linked to
their
language counterparts, so that the user can always and
permanently
switch to another language. It's also very helpful to not
only have
multilingual pages, but translated URLs as well:
http://de.example.com/produkte/musik/cds
http://en.example.com/products/music/cds
Micha

Similar Messages

  • Spawning a new page depending on whether a text field is populated or not

    I am trying to create a form that once the last line is in the description field contains text it will automatically spawn a new page directly below the page being filled in. I am so googled out.
    if (getField("DOD20").value === "");
    else
    var a = this.templates;
      for (i = 0; i < a.length; i++)
      a[i].spawn(this.numPages, false, false);

    The renaming of the form fields is controlled by the spawn method. It is a passed parameter. By default the new page will be inserted after the first page, the fields will be renamed, the form will not overlay.
    Because the fields are renamed in a standard manner, you need to create your scripts to allow for this. I usually do this by using JavaScript to access the focused field name, event.target.name, and split the field name into an array and then compute the field names that need to be accessed.
    Did you open the JavaScript console and see if there are any errors?
    Have you opened the form and looked at the form in the edit mode?

  • Web gallery: Multiple pages depending on browser

    I'm using iPhoto to post a stand alone gallery of 62 pictures for a client to review my photos. I've noticed depending on the web browser, the gallery might divide up my pictures over several pages--which can be confusing with the tiny buttons to move between pages.
    Is there any way to force all pictures in a gallery to show on one page? That would be a much better experience in this case. Also, can you edit the settings of a gallery after it has been posted (Aperture 2.0 does this now)? Thanks! --Jeff
    Example of Web Gallery with 62 photos:
    *Safari 3: All 62 on one page
    *Firefox 2: 62 pictures divided over 2 pages
    *Explorer 6: divided over 3 pages (25/25/12)

    Is there any way to force all pictures in a gallery to show on one page
    No - web galleries are a consume level feature and you have limited control of the display - to make suggestions to Apple re improvements iPhoto menu ==> provide iPhoto feedback
    Also, can you edit the settings of a gallery after it has been posted
    Yes - in iPhoto select the web gallery and click on the gear icon in the toolbar - a setting window comes up that gives you access to the limited setting that you control
    LN

  • How to make a form direct to different pages depending on which answers you select?

    I am creating an online application.  Before the user can get access to the application, I want to create a pre-qualification form.  I need to create it to where if they answer a certain form field one way, it will take them to a page that says "Sorry, we are not accepting applications at this time" and if they answer the form field another way, it will take them to the Application Form to fill out.
    How do I set it up to where when they hit submit, it directs them to the appropriate page?
    I have no idea what this is called and what I should search for online to find help on this matter.
    Thanks,
    Michael

    Hi
    First you need to decide on which scripting language you are going to use and any other requirements you may have.
    Simply put, (and this is very simply put) you would filter the answers using your scripting language using a if/else or switch statement to decide if to redirect, (or not).
    PZ

  • I can no longer get the Fox news page on your browser. I have been trying all afternoon, and it is my home page. I opened Safari and it came right up. Went back to Firefox, and still kept getting error.

    The page just waiting to load. Although a couple of times that I tried, it popped up a message saying that there was an error loading the page or the website had changed it's address.

    To start, the steps in [[Basic Troubleshooting|Basic Troubleshooting]] may be of help.

  • IWeb "open new page in browser" doesn't work?

    On websites I have created in iWeb, the hyperlinks to a web page will not open in a new window even though I have checked that setting in the Inspector. Previously when creating websites with html I would simply add the "blank target" code but in iWeb there is no way to edit html directly. I have tried this with Safari and with Firefox, it doesn't work!
    Message was edited by: Ironic Bliss

    Thanks for those helpful suggestions, though I have batted around different ways of trying to get iWeb to register the "open in new window" when checked, to no avail so far, and it doesn't work with any link, whether in text or combined with an image. Taking all these points:
    I have now managed to open the html using TextWrangler but I must admit it is a little beyond me to even find the string of code in question as iWeb uses so many files. It would be better if I could just get iWeb to do the work for me as it's meant to.
    Strangely, when I open the website in iWeb the first time, all the pages to the left are marked in red before I've done anything! So I cannot use that as a simple check to see if a change has been made. Also I have already tried making other changes after checking the "open in new window" box before saving.
    I always publish to a folder on my HD, as I am uploading to a server that is not me.com or mac.com. (Could that be the trouble? iWeb seems to generally be very unfriendly to publishing on other servers than Apple and I have had to jump through a lot of hoops with various things.)
    Could it be the weird folder hierarchy created by iWeb, where there is an index.html page outside of the main folder where all the stuff is kept? So far, I have just uploaded it to the server "as is", so the contents of the main folder (which has another index.html rather strangely placed outside it) are not at the root level on the server. The folder containing them is at the root level and so is the "external" index.html. Would it work if I uploaded only the contents of the folder to the root directory on the server, and not in the folder that iWeb creates or with its "dummy" index.html outside it?
    (I think in the past this has caused trouble with Google search sitemaps, and is the reason why in the end I uploaded the whole thing and not just the contents of the main folder.)
    So to be clear (not that easy here), the files on the server are:
    Directory > index.html plus the folder containing all the website files. So the actual website files are at a second level in a folder, not at the root level.
    The easiest example where the blank target doesn't work is on the home page of one of my websites. Scroll down and there is an image of a book which has a link to a bookstore. This should open a new page in the browser, but never does. (Annoyingly, in FireFox it even kills the back button, Safari works slightly better in that respect.)
    http://www.ordoastri.org/OA/Ordo_Astri.html

  • Web-app icons always open a new page?

    Is there any way to prevent homescreen webapp shortcut icons from always opening a new page in the browser? It sort of defeats the purpose of keeping cool little webapp shortcuts on the home screen if I'm constantly closing extra browser pages all the time. Might as well just use bookmarks within safari. I use certain apps several times a day, and end up with a bunch of instances of the same app all "open" in safari each time I return (counterintuitive). Is there a setting that I'm missing, or am I better off using bookmarks?

    At this point it appears that you can't control it. I would assume that the link the icons calls up has an added target="_blank" or a javascript window.open command. As these are added at the time the icon/link is created, you can't go back and edit them out.
    Kevin

  • Problem with direction in a page(??????)

    Hi every body,
    I have a problem with direction in some page when i change the language to Arabic(right to left language).
    in some page like welcome page its completely true ,but in some page that i buile with my self (and add some portlet to it like :advanced search portlet)its directon does not appear properly,the label is appear in left, and text box appear in right(its not true).
    what can i do??????????????????
    please answer me :(

    This is not the right forum for your question. Try to post it in the Oracle Application Server Portal forum, or contact Oracle Support.
    Peter

  • Cannot directly open the browser from the icon. "problem loading webpage" and "timed out" are the messages. Access was accomplished by using yahoo messenger and opening my email. if I attempt to open a new page, I recieve the aforementioned warnings.

    no link to open access to the internet. I used Yahoo Messenger, clicked on the 'mail icon' and since Firefox is my default it opened and I was able to continue from there. If I try to click File, open New Page, I get the "problem loading webpage" and "connection timed out" messages

    changed my homepage to Yahoo. Now Firrefox works but still cannot access ANYTHING 'Google"!

  • On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom new document in order to open one. How can i have directly a new document when i click on pages icon

    On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom < new document> in order to open one. How can i have directly a new document when i click on pages icon

    How to open an existing Pages document?
    Click Pages icon in the Dock to launch Pages.
    When Pages is open, click File menu in the  Pages menu bar.
    Select “Open”.
    When the select document  dialog box opens up, highlight/select the document and click “Open”
    at the bottom right corner of the dialog box.
    s
    https://support.apple.com/kb/PH15304?locale=en_US

  • Can't access adobe from my smart phone to use my form created in formscentral I receive an error message that says "unsupported browser". There is a link to download a supported browser but the link directs me to another page that says "browser no

    When I try to access adobe from my smart phone to use my form created in formscentral I receive an error message that says "unsupported browser". There is a link to download a supported browser but the link directs me to another page that says "browser not supported at this time". This happened to me while using my IPhone 5, a friend that uses an IPhone 6, and another friend that uses a Samsung Galaxy S5. I just need for my employees to be able to access, complete and submit work orders created in formscentral from their phones. I would like to use the data collection feature in formscentral but at this point any suggestions on how to accomplish this are welcomed. Thank you

    Further info - I changed my security settings to allow apps from anywhere, and again tried to install.  I again got an error message
    that the update failed to install, and to contact Customer Support.

  • Go directly to a page in a pdf, even when Reader opens outside of browser

    I am working on a web page in ColdFusion that allows users to pick the page they want to see in a pdf and then generates a link that opens up the pdf and takes them directly to that page. It works great when Reader (or Acrobat) open up within the browser window. However, some people have Reader (or Acrobat) set up to always open up outside the browser window, and then my link to the specific page (http: . . . pdf#Page=7) doesn't work. Any suggestions for a link to a specific page in a pdf that will work whether or not Reader (or Acrobat) opens up inside or outside the browser window?

    There's just buttons with behaviors attached to them.
    Bob

  • A new page doesn't directly appear in the detailel navigation.

    Good day everyone,
    We use Btexx EasyWCM as a content management system on our SAP NW portal.
    When we create a new page in the portal it should appear directly in the detailed navigation, but instead it appears much much later. Often after more then an hour. The same happens when deleting a page.
    We thought of navigation cache at first but we disabled it and the problem was still there.
    Because the new page does appear after a while, what makes it time-based, we still think it might be a caching issue. We don't know what other caches influence the detailed navigation.
    The page does appear in the PCD directly after it is made, same goes for deletion.
    Does anyone have an idea how to solve this issue?
    Thanks in advance.
    Best regards, Sander.

    Hello Anub,
    Thank you for your reaction. We tried a restart allready, but that didn't resolve anything. And I dont think it's a network problem because the PCD updates instantly. Just the detailed navigation doesn't. Even when we changed the customised detailed navigation back to the standard SAP detailed navigation there was no difference.
    We tried create a page directly on the server so the caches of the proxy's etc could be excuded and the problem was still there.
    Greetings, Sander

  • Is it possible to have the accordian remember which pane was open when the browser jumps to a new page

    I have the same accordion on all of my pages and I would like
    to have the accordion maintain the same open status that the user
    selected after the browser refreshes. IE. it is a 3 pane setup...
    common to all pages with the same content in each pane on all
    pages. The default is pane 1. If the user selects pane 2 then jumps
    to a new page I would like pane 2 top be displayed on the new page,
    not pane 1.
    Thoughts?

    V1 fusion,
    Hope you feel better.... I tried this and am getting ( syntax
    error
    [Break on this error] if (!Spry.Utils) Spry.Utils = {};\n )
    vw2ureg,
    That seems to have corrected the url... it is now (
    http://site.name.com/index.php?option=com_content&task=blogcategory&id=25&pane=0&Itemid=55
    However it is still not picking up the pane. I am getting
    this error in the console:
    [Exception... "Component is not available" nsresult:
    "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
    file:///Applications/Firefox.app/Contents/MacOS/components/nsSessionStore.js
    :: sss_saveState :: line 1749" data: no]
    [Break on this error] oState.session = { state:
    ((this._loadState == STATE_RUNNING) ? STATE_RUNNIN...
    Refering to this line in
    http://sitename.com/SpryAssets/SpryAccordion.js
    oState.session = { state: ((this._loadState ==
    STATE_RUNNING) ? STATE_RUNNING_STR : STATE_STOPPED_STR) };

  • Why Firefox 5 opening the "What's new" page every time I start the browser?

    I have Firefox betas since version firefox 4 beta 1, so when it's updated to version 5, I uninstalled firefox, and install the clean version 5 with my saved settings.
    Everything went okay, started the browser and it searched for addon compatibility, opened up the What's new page. But now it is for every start, so it's very annoying.
    I tried clean the mess but nothing changed.
    How can i solve this? thanks, and sorry for my english

    This link should help - https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox

Maybe you are looking for

  • What happened to my apps in iTunes

    I did a clean install on my MacPro with Lion. Mine is one of the machines not supported by Mountain Lion. Before I cleaned out the drive, I cloned it, so I have everything on another drive installed in the same MacPro. My iTunes Library was over a de

  • Snow leopard very sluggish in general.

    Since I upgraded to snow leopard on both of my machines they both have been extremely slow. Snow leopard claimed to be twice as fast, but I experience something that is 10 times as slow. I had no problems with Leopard. I have 2 macs: Mac Pro 8 cores

  • Sql functions with SQL*loader

    For the testing purpose I created table SQL> desc test Name Null? Type C1 VARCHAR2(20) A file test.txt contains only one record: 12/13/2007-09/15/2008 control file contains: load data infile 'c:\grum\test\test.txt' "str '|'" insert into table test (c

  • Navigation Bar

    Hi, I want to create a navigation bar that consists of two parts, on the left side of my page. The first part includes symbols and is narrow; the second part includes the description of the symbols and is therefore wider.  The first bar is always vis

  • AL16UTF16 as nchar set

    I'm trying to wrap my head around multi-byte character set support and I'm having quite the time. Our production database was created before my time, so I don't have a good reason why it was created with the WE8MSWIN1252 character set, but here's our