Check out Glinski's Hexagonal Chess, our featured variant for May, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Shortcodes[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Sat, May 28, 2016 01:02 AM UTC:

I have added a lang shortcode. This is a paired shortcode that encloses text in a particular language. It takes one parameter, a lowercase, two-letter language code. Using this allows you to provide text in multiple languages. This works by first making an ordered list of all the languages you have used in your lang shortcodes. It compares this list to the value of the HTTP_ACCEPT_LANGUAGE environment variable. It identifies each language you have provided text in that is mentioned in this variable, and it sorts them by order of precedence. If any of the languages you have used appear in this variable, it favors the one that appears earliest in this variable. If there isn't a match, it favors the first language you wrote text in. So, you should generally write text in your best language first, and it's good to always provide text in English. I will now demonstrate this shortcode with some examples. Change your accepted languages around to see different results turn up.

Hello, World. This is my English text.