MyBB Hacks

Full Version: Opions?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(11-22-2010 08:55 AM)ZiNgA BuRgA Wrote: [ -> ]- language variable prefix?
I'm sorry, but I can't understand this, Yumi. Do you mean, user need to create .lang.php file?

(11-22-2010 08:55 AM)ZiNgA BuRgA Wrote: [ -> ]- define a list of overwritten language variables?

Do you mean that we have textbox in edit forum page like XThreads Custom WOL Text, Yumi?
(11-22-2010 10:18 AM)RateU Wrote: [ -> ]
(11-22-2010 08:55 AM)ZiNgA BuRgA Wrote: [ -> ]- language variable prefix?
I'm sorry, but I can't understand this, Yumi. Do you mean, user need to create .lang.php file?
Possibly.

Two thoughts:
If you have a prefix of "mylang_", then wherever {$lang->newthread} is specified, it would look for $lang->mylang_newthread, then try $lang->newthread if the previous doesn't exist.
Or perhaps you do create new .lang files, so if the prefix is "mylang_", and newthread.lang.php is being loaded, it'll override some stuff with mylang_newthread.lang.php

(11-22-2010 10:18 AM)RateU Wrote: [ -> ]
(11-22-2010 08:55 AM)ZiNgA BuRgA Wrote: [ -> ]- define a list of overwritten language variables?

Do you mean that we have textbox in edit forum page like XThreads Custom WOL Text, Yumi?
It will probably be more like the Formatting Map list textbox, since there won't be a fixed number of things to override.
I think, there are some advantages using language prefix.
If we have more than one forums using similar applications (maybe it is a bit rare though), we can share the language (I think).
For example, Link Directory and Showcase Forum can use the same newthread language prefix variable, the value is Submit New Site.

But, there are some advantages for the second one too (define a list of overwritten language variables).
Users know whatever language variable can be overwritten. It is easier to use (I think). Overwriting each language variable can be done via Admin CP while setting up an application.

Ugh... It is hard to choose which one is better, Yumi Biggrin
Well manual overriding is messy (open textbox, potentially a lot of stuff in there).
As for prefixes, unfortunately, I don't think MyBB provides an easy way to add entries or language files from the AdminCP.  In fact, I suspect the language directory is usually unwritable.
Personally, I don't mind if I should create a new .lang files, Yumi.
Pages: 1 2
Reference URL's