[PHP-WEBMASTER] [web-php] PR #1057: Add function for translation of UI elements

Pull Request: Add function for translation of UI elements by haszi · Pull Request #1057 · php/web-php · GitHub
Author: haszi

Add a function similar to the one in PhD that can be used to translate words or phrases, and use it to translate UI elements of the doc pages. If translation of a certain text is not defined for a language, the function will use the original English text.

Closes User Contributed Notes section title and footer do not follow selected language · Issue #145 · php/phd · GitHub

As noted in [this comment](User Contributed Notes section title and footer do not follow selected language · Issue #145 · php/phd · GitHub) (by @derickr ?) the "User Contributed Notes" related parts of the UI may have not been translated on purpose.

Pinging @leonardolara and @cmb69 from the original [issue](User Contributed Notes section title and footer do not follow selected language · Issue #145 · php/phd · GitHub).