Advertisement:

Modified mod translations handling

Aloittaja c2h5oh, kesäkuu 07, 2007, 03:59:47 AP

« edellinen - seuraava »

c2h5oh

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).
"The day Microsoft makes something that does not suck is probably the day they start making vacuum cleaners"

Rudolf

Check out this mod
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.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

c2h5oh

#2
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.
"The day Microsoft makes something that does not suck is probably the day they start making vacuum cleaners"

Rudolf

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.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

ディン1031

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
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

karlbenson

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)

Advertisement: