joshuaadickerson / Elkarte2

Elkarte Version 2
Other
0 stars 0 forks source link

Move language files to database #4

Open joshuaadickerson opened 8 years ago

joshuaadickerson commented 8 years ago

Move the language files to the database then output the files.

joshuaadickerson commented 8 years ago

Just copying from convo with Emanuele

I'm moving all of the language strings to the database and making them a single level and making the default language "default" and then if you want to edit anything, you can edit "english". They will still be cached in files but this makes it possible to edit them from the forum. The directory is 576KB according to Windows (not sure if it is including any .git in there). Considering they get cached already since it loads Index+{template}, why not just do that with the database? This way we can better track where strings are used, if there are unused or duplicates, and make it easier to change anything, any time. No more crazy language editor stuff 😉 and we can change out the language files to be whatever format we want. Missing string in a language? Put an error in the log so the admin knows. Each module would have its own namespace in the database. That's what I'd call files - namespaces.