How to build a multi-language help center?


(Cyril Franceschini) #1

Hi,

I’d like to build a help center for my app like this one: https://stackoverflow.com/help

But in addition, I want it to be multi-language so I wonder if there is a way to iterate and search over a language file like messages.en-US, messages.fr-FR, etc.? If yes, how? If no, how should I proceed to do what I want?

Thank you,
Cyril Franceschini


(Elijah Rippeth) #2

You’ll want to look at i18n.


(Cyril Franceschini) #3

I didn’t find any way to iterate over keys like:

section1.chapter1 = Chapter 1
section1.chapter1.paragraph1 = This is a paragraph.
section1.chapter1.paragraph2 = This is a paragraph.
section1.chapter2 = Chapter 2

to display a full help section.

And I didn’t find either a search by value or regexp to retrieve keys of sections to display in a result set.


(Christian Kaps) #4

I would store the content in a database instead of the language files. So you can add new content, without to rebuild the application. It makes it also easier to query your data.