Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Multiple languages

    Here is the situation. I am programming a member registration page. My main
    site goes to

    [url]www.domain.com[/url]

    then when they go to register they are sent to

    [url]https://secure.domain.com[/url]

    My boss wants all the pages wrapped in his template. so what I have done is
    copied all the images, templates, and css sheets to the folder in the
    [url]https://secure.domain.com[/url] folder. Which works great!

    However when I do an update at [url]www.ctpclub.com[/url] I also have to udate the
    [url]https://secure.domain.com[/url] site.

    Not a big deal here is where it gets tricky.

    We have this site in several languages.

    german.domain.com, spanish.domain.com, etc

    So when I update the english site both secure and regular I have to then go
    update the additional sites both secure and normal.

    I was wondering if anyone had a solution for keeping the secure stuff wrapped
    in the template but allowing for updates so I only need do them to the main
    site for any given language. This would knock out half my maintenance.



    Buddhatech74 Guest

  2. Similar Questions and Discussions

    1. Multiple Sites + Multiple Languages + Unicode with Adobe Contribute ?
      Does Adobe Contributes allows you to maintan content in multiple language (with unicode support) over multiple web site (ie : www.myproduct.com,...
    2. Multiple Encodings & Languages within Contribute
      <b>Can Contribute support multiple encodings for a page? Also, can contribute support multiple languages including dual byte? Thanks for the...
    3. XML and Strings Panel for multiple languages
      Hello, and thank you in advance for any help! I'm authoring a piece that is going to be deployed in multiple languages. I want to use an XML file...
    4. flash with other languages
      Is it possible to get 3 layer Model, View and Controller with Flash for the View/GUI and other languages like java to do the rest of the midle and...
    5. languages
      Hi, 'scuse my ignorance, but what is a crossplatform way to determine the os language when (the environment).oslanguage and (the...
  3. #2

    Default Re: Multiple languages

    Buddatech,
    Here's some ideas, some of which may be the right answer, impractical in
    your situation, or just plain wrong! I am making an assumption, and correct me
    if I am wrong, that the "template" you refer to consists of a header, footer
    and main menu (maybe on the left). They will probably be the same content and
    color, but the difference will be (mostly) the language of the header text and
    menu items. With that....

    1) Use custom tags - for this, I am making an assumption that all domains are
    on the same server (or cluster of servers). You will also need the application
    to know which language it is working in. E.g., spanish.domain.com will know to
    use custom tag cf_spanish_header.cfm. So, if you make a change to a menu item
    you change it once for the secure and non secure version.

    2) DB driven menu's - a little more complicated, but you could pull the menu
    items, again based on the language, from a DB (which would need things like
    title, linkURL, language, sort order) and process them in a CF tag. Extra
    points if you import the menu structure into an application variable to act as
    a cache, so that you decrease load on the DB connection. Instead of changing
    code, you now change DB entries (spawning a whole new application to manage
    THAT).

    For either of the above, you should try use CSS for things like the font and
    the background colors. That way, if your boss asks you to change the banner BG
    color from red to magenta, you make one change to one file, and all of the menu
    files pull in the change (if you want to keep them all the same, that is).

    Hope this helps some.

    David

    davidmedifit Guest

  4. #3

    Default Re: Multiple languages

    well your first step is to have just the one application, then internationalize
    that. replace all static text w/variables or function calls backed by resource
    bundles, all date/numeric/currency format calls w/i18n functions (the LS ones
    in cf if they work for your supported locales), etc. serving out localized
    content afterwards is simpler than what you're doing now, as i guess your
    starting to realize.

    PaulH Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139