Use english configuration-labels if german text is not available?

Started by DerEineDa, December 03, 2006, 08:49:45 PM

Previous topic - Next topic

DerEineDa

Hello,

I am using SMF for quite a long time now and I really love it. It's especially nice that the source code is so beautiful commented and thus easy to understand.

But there is one little thing I find slightly annoying, maybe you agree:

I am using the german language pack. Now I have the problem that most modifications don't modify the german language files, so they only change the english files. Now, when I want to edit some options in the administration-section, e.g. change permissions (often required before the modifications work), there is often only a checkbox, no text of course. So I have to look into the sourcecode to look which modification this checkbox belongs to. To make it easy I usually just copy the lines from the english language file to the german one.

Wouldn't it make sense to implement some "smart" function which takes the english text if no german text is available into SMF?

Just my little idea.

vbgamer45

For my mods I load the english version if the language version does not exist.

//Load the language files
if(loadlanguage('Gallery') == false)
loadLanguage('Gallery','english');


I think it is a good idea. I wish the mods could apply the text strings to all languages as option I might work on that one day.

Other idea is to always load modifications.english.php first even if you have another language but that is an extra include on each page load and is not the best choice.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


Advertisement: