You remember Brian Cantrill’s “don’t anthropomorphise the lawnmower” line about Larry Ellison? Don’t assume there is any virtue or sense in the Open Graph protocol. It was a ill-designed lump of Facebook-serving stuff with a misleading name thrown over the wall and abandoned.
You remember eevee’s “PHP: a fractal of bad design”? The Open Graph protocol is like that. It truly is stupendously bad; it’s breathtaking how many errors and follies they’ve managed to fit into the spec. Genuinely almost every single technical decision is dumb. (I am currently writing an article roundly flaying it in detail.)
You know the differences between IRI, URI and URL? What, you say you’ve subscribed to WHATWG’s philosophy and just use the term URL because the others are pointlessly confusing? Huh. Fancy that. Well, it’s pretty similar with “language” and “locale”: there are technical distinctions (pretty big ones, in fact), but things that deal in one or the other are often similarly-featured, so some things have stopped trying to distinguish the terms. BCP 47 defines “language tags” which are similar in scope to POSIX locale identifiers, and they “form the basis for most implementations of locale identifiers”, most notably Unicode’s Common Locale Data Repository (CLDR); and with extension U you can more finely control some localey stuff if you want, such as calendar and time zone. So the language tag itself covers both language and locale parts. And it’s better-specified and -understood than POSIX locale identifiers.
So honestly, as regards the difference between language and locale, I’d call it a red herring. Never assume any wisdom or sense from OGP, it’s just bad through and through. Why, Facebook even said in the text that the format is “language_TERRITORY” which is obviously much less expressive, though in the (incomplete and incompatible) schema it says “a Unix locale”, which is wildly underspecified.
chrismorgan | 8 hours ago
You remember Brian Cantrill’s “don’t anthropomorphise the lawnmower” line about Larry Ellison? Don’t assume there is any virtue or sense in the Open Graph protocol. It was a ill-designed lump of Facebook-serving stuff with a misleading name thrown over the wall and abandoned.
You remember eevee’s “PHP: a fractal of bad design”? The Open Graph protocol is like that. It truly is stupendously bad; it’s breathtaking how many errors and follies they’ve managed to fit into the spec. Genuinely almost every single technical decision is dumb. (I am currently writing an article roundly flaying it in detail.)
You know the differences between IRI, URI and URL? What, you say you’ve subscribed to WHATWG’s philosophy and just use the term URL because the others are pointlessly confusing? Huh. Fancy that. Well, it’s pretty similar with “language” and “locale”: there are technical distinctions (pretty big ones, in fact), but things that deal in one or the other are often similarly-featured, so some things have stopped trying to distinguish the terms. BCP 47 defines “language tags” which are similar in scope to POSIX locale identifiers, and they “form the basis for most implementations of locale identifiers”, most notably Unicode’s Common Locale Data Repository (CLDR); and with extension U you can more finely control some localey stuff if you want, such as calendar and time zone. So the language tag itself covers both language and locale parts. And it’s better-specified and -understood than POSIX locale identifiers.
So honestly, as regards the difference between language and locale, I’d call it a red herring. Never assume any wisdom or sense from OGP, it’s just bad through and through. Why, Facebook even said in the text that the format is “
language_TERRITORY” which is obviously much less expressive, though in the (incomplete and incompatible) schema it says “a Unix locale”, which is wildly underspecified.The payment stuff is a crimson fish too.