The page doesn't seem to quite spell out the answer, which is that lang and locale have nothing to do with each other. It's basically coincidence that they look even similar. The locale came from basically an ad-hoc system from X/Open in the late 80s, while lang comes from RFC 5646 in 2009. The two become more obviously different if you need to specify anything complicated, like sr_RS.UTF-8@latin or zh-cmn-Hans-CN.
This is basically correct. It's worth an addendum though that IETF language tags are in turn based substantially on ISO 639 language codes and ISO 3166 country codes, and while AFAIK POSIX doesn't mandate the use of these vocabularies, it's de facto common practice to use them for the language and territory parts of POSIX locales as well. So there's some indirect, distant shared background. Beyond that, the two strings contain intersecting but differing sets of information because they were made for different purposes: affecting the ambient behavior of a user environment and its applications versus describing the language of content on the Internet. For instance, a POSIX locale can imply a default character set for text I/O, which is out of scope for an IETF language tag.
> A language only tells you about the language. A locale, by contrast, tells you about the user's preferences.
I think it's more like, it just so happens that choosing language resources based on this pair of parameters is useful, because neither of these are particularly good boundaries.
There are people like Spanish speakers in the US, German speakers in Switzerland, Portuguese speakers in Brazil, things like that. So either of languages or flags alone is not enough, but combinations of both works 99% of the time. So that gets used.
I was raised in the US and work in Germany, but I set my region to Ireland because, as you say, it represents my preferences and daily work best.
If I set my locale to en_US, I get Letter-size paper and USD and MM/DD/YYYY as defaults---all different from what I use every day.
Setting de_DE means writing "a million and change" as 1.000.000,69 which sometimes causes problems copying data from one window to another but mostly confuses me.
An Irish locale gives me preferred formats for numbers, dates, currency, language, and print defaults.
I don’t unterstand this. In order to write correct text i have to know some conventions, such as number formatting. So just language and locale are kind of hard to separate. Why dies the author say that the locale doesn’t matter for strings in OGP metadata?
> a Facebook recommendation is not the same as a living standard.
Sure it’s not. Remember how Facebook used to offer RSS feeds until 2015?
Conformance to standards (let alone development of standards) in the interest of interoperability is against the needs of a digital giant, unless it strengthens their hegemony. It’s a variant of the ‘embrace–extend–extinguish’ tactic. It could be dubbed SSS: Standardize–Support–Subvert.
I think it's more like, it just so happens that choosing language resources based on this pair of parameters is useful, because neither of these are particularly good boundaries.
There are people like Spanish speakers in the US, German speakers in Switzerland, Portuguese speakers in Brazil, things like that. So either of languages or flags alone is not enough, but combinations of both works 99% of the time. So that gets used.
If I set my locale to en_US, I get Letter-size paper and USD and MM/DD/YYYY as defaults---all different from what I use every day.
Setting de_DE means writing "a million and change" as 1.000.000,69 which sometimes causes problems copying data from one window to another but mostly confuses me.
An Irish locale gives me preferred formats for numbers, dates, currency, language, and print defaults.
Sure it’s not. Remember how Facebook used to offer RSS feeds until 2015?
Conformance to standards (let alone development of standards) in the interest of interoperability is against the needs of a digital giant, unless it strengthens their hegemony. It’s a variant of the ‘embrace–extend–extinguish’ tactic. It could be dubbed SSS: Standardize–Support–Subvert.
Nice reference. :)