News:

Wondering if this will always be free?  See why free is better.

Main Menu

$txt[\'moderate\'] bug?

Started by dfelix, March 19, 2008, 01:03:11 PM

Previous topic - Next topic

dfelix

Is there any know issue related to the $txt['moderate'] variable?

It seem to work only when English language selected.
On other language files, this variable is ignored and no description is shown on the menu.

I already duplicated the  index.english.php, renamed it to index.portuguese.php changing  only the lang_locale, lang_dictionary and lang_spelling ... and moderate variable doesn't work either...


karlbenson

When altering txt strings (outside of smf language editor).
This is a note/tip I posted in the Charter Members section a whileback and so am copying it here.

QuoteOk, I've just spent an hour or two trying to work out why a language string I added wasn't showing.

In SMF 2.0 smf has its own caching functionality.
It appears to cache the language files for use. (and no browser forced refresh will clear it)

So if your planning to develop mods which involve editing the template/language files directly (eg via Notepad++)
Then before starting it would be recommended to

a) Disable SMF caching via
Admin > Server Settings > Caching (tab)
Set Caching Level to No Caching

b) Clear existing cache
Admin > Forum Maintenance > Common Tasks (tab)
Under 'Miscellanous'
Click the link to "Empty the file cache".

Now no cache will be created whilst your creating your mods so everytime you create/change a language string the changes will be shown.

Once you are finished, if necessary, reset the Caching level back.

dfelix

#2
Thank you so much, karlbenson...
That was exactly the problem..



Advertisement: