>
>
> What do I need to do in Apache and in PHP for it to properly render the
> language the website is written in?
>
> Do I need to generate the locales for the desired languages?
> Do I need to also do something in Apache?
>

Just write your document and save it in utf-8. Be sure to include
  <meta charset="UTF-8">
tag.

This should be enough to display this page in the modern browser.

If you want to serve different pages based on user language, you can use
mod_mime
https://httpd.apache.org/docs/2.4/mod/mod_mime.html#addlanguage

You may also want to set locale: some PHP functions may use it for sorting
etc.
https://www.php.net/manual/ru/function.setlocale.php

Generate locale first (see ``locale-gen(8)``) and set its name using
``setlocale`` in php.

Reply via email to