As for all Themes becomes the language loaded from the default theme. Would it not make sense to move the language folder in the root?
This question gets asked fairly often. The reason why it is not in a language directory is because if you are creating a revolutionary theme, it might have different text.
I think it's about time to have 2 directories though. One will be the default text and the other will be the theme text. Load the default, then the theme, if it exists. A simple setting in the theme would enable it to check for additional $txt "has_own_txt".
This isn't so much about space as just making themes a little easier to understand.
If Theme own language strings needed this might be regulated with a separate language file. A second additional language folder must not be true.
I'm pretty sure there is already another topic around (or maybe few messages in a topic) about... the topic. LOL
Yup, I'd move that directory somewhere else and find a way to deal with themes.
If you change $languagedir it has to still be in a directory with 'languages' or it won't work.
I have not until now tested it. It should work
$languagedir = $boarddir . '/themes/default/languages change to
$languagedir = $boarddir . '/languages.
Example
bootstrap.php, index.php,
if ((empty($languagedir) || !file_exists($languagedir)) && file_exists($boarddir . '/themes/default/languages'))
$languagedir = $boarddir . '/themes/default/languages';
change to
if ((empty($languagedir) || !file_exists($languagedir)) && file_exists($boarddir . '/languages'))
$languagedir = $boarddir . '/languages';
https://github.com/elkarte/Elkarte/search?p=1&q=%24languagedir&utf8=%E2%9C%93
O_o
If it doesn't then I guess it's a bug.
At least I can't think of any reason for having it like that, $languagedir should define a constant the way other directories do and be used "as such".
This post of mine is not a bug requests, but to lay a proposal in the future the languagefile folder in the root 8)
Sorry for hi-jacking it but if you remove /languages and move it to /foobar it won't work.
And that means it's a bug! :P
https://github.com/emanuele45/Dialogo/commit/79392f00227cb2f3b122d6809707bcdf01224493