I have a question which is surely answered somewhere but I didn’t find it.
I want to create an language specific admin gui for a nc plugin.
The admin should be able to define menu texts for different languages.
Thanks for your answer. I’m a complete newbie to nc, php, therefore I didn’t understand the solution.
I cannot expect you to explain the code. Perhaps you can give me a more conceptual answer.
Where does nc store the admin’s texts? (files, DB, …)
In case of files: Are the files reread for every access or only at nc startup?
I know Java’s NLS concept. Text’s are stored in language/country specific NLS files.
Texts are selected via package name/ID and the language/country parameters.
If the specific NLS file does not exist, a default file is taken.
I think for user specific texts which should be changable effectivly within a user session, the file concept is not the best way (don’t know whether files are cached, read at every access, …).
DB should be better. Does nc offers sth for this purpose? Do one have to implement it himself?