XWIKI-10745: Improve the display of available languages in Flamingo.

* Fix test.

(cherry picked from commit 9d1b21efcf62ad36e893f61b35ef67ba4a0f0c53)
XWIKI-10745: Improve the display of available languages in Flamingo.

* Fix test.

(cherry picked from commit fbb85c1bf274375da1b0c4efdfa214a1716c1589)
XWIKI-10745: Improve the display of available languages in Flamingo.

* Fix test.

(cherry picked from commit e57f6395694e64706e65dc87575af688cb12cbb2)
XWIKI-10745: Improve the display of available languages in Flamingo.

* Fix test (typo).

(cherry picked from commit 6c913bdaf1ef103171b64c4457062b211a6c9e50)