arnold2100 ([info]arnold2100) wrote in [info]lj_everywhere,
@ 2004-05-04 15:11:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
en_LOCAL - Site Specific Text
Hey all,
Im using the latest code base from cvs, but im running into a problem with site specific text. I followed the directions to a T from the online docs:

-------------

Create a new file under $LJHOME/bin/upgrading/, labelled en_LOCAL.dat. This file should contain all of the text that you'd like to override from $LJHOME/bin/upgrading/en.dat.

If you don't have a local BML configuration file (_config-local.bml) in your $LJHOME/htdocs/ directory, you should create one now. Add the following line to your local configuration file:
DefaultLanguage en_LOCAL

If you don't have a local language directive file ($LJHOME/bin/upgrading/text-local.dat) create one now. Add the following lines to your local language file:
# EnglishLOCAL is child of English for general domain:
lang:100:en_LOCAL:English (Local):sim:en
langdomain:en_LOCAL:general

# EnglishLOCAL is root of FAQ:
langdomain:en_LOCAL:faq:1

Run $LJHOME/bin/upgrading/texttool.pl load.

---------------

The FAQ line gave me an error, so i commented it out. Other than that I did all of the above, and the load tool ran without error. However even after a restart of apache, none of the text from en_LOCAL appears live on the site. A browse of the database shows that the en_LOCAL text (id=100) is in the ml_text table of the database.

Any idea whats going on here?

Thank in advance.


(Post a new comment)


[info]justgags
2004-05-04 12:44 pm UTC (link)
Try this:

$LJHOME/bin/upgrading/texttool.pl wipedb
$LJHome/bin/upgrading/texttool.pl load

(Reply to this) (Thread)


[info]arnold2100
2004-05-04 01:02 pm UTC (link)
Ok ran those two comands, heres the output:

[root@]# $LJHOME/bin/upgrading/texttool.pl wipedb
Wiping DB...
deleting from domains
deleting from items
deleting from langdomains
deleting from langs
deleting from latest
deleting from text
done.
[root@]# $LJHOME/bin/upgrading/texttool.pl load
Populating structure...
Inserting language: English
Inserting language: English (Local)
Inserting domain: general[]
Inserting language domains ...
done.
Populating text...
en
added: 1932
en_LOCAL
added: 1883
done.
Removing dead phrases...
File: deadphrases.dat
Done.
Loading all crumbs into DB...
inserting crumb.siteopts
inserting crumb.moderate
inserting crumb.utf8convert
inserting crumb.supportsubmit
inserting crumb.editfriendgrps
inserting crumb.logout
inserting crumb.delcomment
inserting crumb.supportappend
inserting crumb.styles
inserting crumb.searchinterests
inserting crumb.login
inserting crumb.feedstersearch
inserting crumb.commsentinvites
inserting crumb.managecommunity
inserting crumb.friendsfilter
inserting crumb.manage
inserting crumb.yourstyles
inserting crumb.textmessage
inserting crumb.acctstatus
inserting crumb.commpending
inserting crumb.birthdays
inserting crumb.comminvites
inserting crumb.commsearch
inserting crumb.supportnotify
inserting crumb.lostinfo
inserting crumb.home
inserting crumb.todo
inserting crumb.faq
inserting crumb.linkslist
inserting crumb.stats
inserting crumb.unsubscribe
inserting crumb.editfriends
inserting crumb.advsearch
inserting crumb.changepass
inserting crumb.update
inserting crumb.yourlayers
inserting crumb.editpics
inserting crumb.encodings
inserting crumb.layerbrowse
inserting crumb.emailmanage
inserting crumb.friends
inserting crumb.joincomm
inserting crumb.phonepostsettings
inserting crumb.community
inserting crumb.popfaq
inserting crumb.export
inserting crumb.editinfo
inserting crumb.themes
inserting crumb.editentries
inserting crumb.commmembers
inserting crumb.editstyle
inserting crumb.supportscores
inserting crumb.createstyle
inserting crumb.preview
inserting crumb.setpgpkey
inserting crumb.meme
inserting crumb.createjournal
inserting crumb.searchregion
inserting crumb.support
inserting crumb.latestposts
inserting crumb.addtodo
inserting crumb.supportact
inserting crumb.emailgateway
inserting crumb.seeoverrides
inserting crumb.createcommunity
inserting crumb.modify
inserting crumb.supporthelp
inserting crumb.editentries_do
inserting crumb.memories
inserting crumb.leavecomm
inserting crumb.register
inserting crumb.moodlist
inserting crumb.addfriend
inserting crumb.news
inserting crumb.customize
inserting crumb.advcustomize
done.
Making usable...
en -- en_LOCAL
done.


I then restarted apache. Still no change on the site.

Any ideas?

(Reply to this) (Parent)(Thread)


[info]scsi
2004-05-04 01:10 pm UTC (link)
I dont have a shell on my dev box, but I think there is a @LANGS=qw(en_LOCAL) that needs to be set in ljconfig.pl, as well as something that needs to be in ~lj/htdocs/.config
If you still need help, let me know and i'll get into my dev box tonight and see how I have it setup.

(Reply to this) (Parent)(Thread)

Resolved!
[info]arnold2100
2004-05-04 01:34 pm UTC (link)
Scsi, That was it! I just needed to add en_LOCAL to the LANGS array (undefined by default) in ljconfig.pl.

Is there someone i can forward this thread to who controls the online docs? The docs really should be updated to reflect that this additional change needs to be made in order for site specfic text to work.

Thank you again!

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…