Fix a bug with locale in glossary page.

- w/ refactoring