Hi haukex,

thank you very much for your hints and code. Due to the different wording, I had been quite sure that the country code and the territory code could not be the same. So your hints regarding the structure of locales' codes have been very important for me, and your code shows how to solve the problem.

By the way, I have no idea if even one single user will sign up for the application. But in the unlikely case that it becomes successful, I actually will have to support several dozens or even hundreds of locales. The application, if successful, will be translated into at least 8 languages and addresses private persons as well as commercial and non-commercial organizations all over the world.

The application does a lot of input, output and calculations of dates, times, currencies and other numbers, and it is of utmost importance that every user (after having logged in) is working in the time zone he has chosen, gets output in the locale he has chosen, and can give input in the locale he has chosen. Due to the nature of the application, the user should consistently use always the same locale and time zone, regardless of the browser he uses and from where he works.

Thanks again,

Nocturnus


In reply to Re^2: Relationship between timezone country and locale territory? (updated x3) by Nocturnus
in thread Relationship between timezone country and locale territory? by Nocturnus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.