Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Opions?
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #11
RE: Opions?
(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
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #12
RE: Opions?
(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.

My Blog
11-22-2010 11:14 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #13
RE: Opions?
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

11-23-2010 02:34 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #14
RE: Opions?
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.

My Blog
11-23-2010 06:32 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #15
RE: Opions?
Personally, I don't mind if I should create a new .lang files, Yumi.

11-24-2010 05:32 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: