Currently if your forum is using language other than English and mod adds $txt['something']s just to English language files you don't get any mod settings in admin. It would be great if it checked your current language and it $txt['something'] does not exist it would check other languages (or at least the most common - English).
Check out this mod (http://custom.simplemachines.org/mods/index.php?mod=615)
I'm sure I wouldn't want this as a standard feature!
Imagine the hit it would/will cause to check every page load if the files exists.
Yeah, this mod pretty much takes care of the issue, but It does increase server load, since it includes the files all the time, not only when they are needed.
I'd rather it would only load if $txt['something'] == null
As vast majority of forums aren't multilanguage having an option to have one set of lang files wouldn't also be that bad - you'd start with English and if translation exists for a term it would be replaced.
Another way of doing it is adding synchronize lang files option - all the missing terms would be copied over.
What you are suggesting would increase server load like the power of nth. You actually want to check each and every string if it's set?
The mod does exactly what you say. It loads the english files, then it will load the current language files. The existings strings in the current language files overwrite the english ones, leaving those that are undefined with their original value.
There's no faster way to do this. I haven't looked at the mod, but hopefully it does so.
I guess one could write a script to synchronize language files.
Lainaus käyttäjältä: Rudolf - kesäkuu 07, 2007, 05:53:09 AP
There's no faster way to do this. I haven't looked at the mod, but hopefully it does so.
He do it like you said.
Bye
DIN1031
Lainaus käyttäjältä: Rudolf - kesäkuu 07, 2007, 05:53:09 AP
I guess one could write a script to synchronize language files.
Sounds like a good idea (possibly a link in forum maintenance)