eadz ([info]eadz) wrote in [info]lj_everywhere,
@ 2003-05-12 23:06:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Few questions
Firstly, thankyou to the developers of LiveJournal!

I have installed the code on a debian unstable system, everything went according to the docs, using mod_perl, and inside a <VirtualHost>. I have read the manual a few times and the answers to the below don't appear to be in it. Greatfull for any answers.

I would like to change every instance of "Journal" to "Blog" and "LiveJournal" to "MyBloggingSite". I can change what's hardcoded into the .bml files no problem, but I'm not sure where I should change the content in the ml_ database tables. I.e. if I should edit them in the database. What's the best way to do this translation so if I need to upgrade ( using cvs version at the moment ) I can keep my translations?

How do I get journaltype to show up on the userinfo page? e.g. paid, early adopter etc.

The S2 style system - is it stable? if so how can I make it the default for any new user? And what file should I look into so I can add the custom threaded comments to the other S2 styles?

MySQL 4 - anyone use the caching feature of mysql 4? does it speed things up?

Thanks in advance :)


(Post a new comment)


[info]zachhauri
2003-05-12 04:44 am UTC (link)
I can answer two of your questions..

The _ml items can be changed at the translation interface (http://localhost/translate/). You'd need to give yourself translate privs first before you can use it.. It's a really nifty interface; you can search for a string (like Journal and LiveJournal), so you can change those.

Add the line below to your ljconfig.pl to make all new accounts use S2:

$LJ::USERPROP_DEF{'stylesys'} = 2;

Dunno about your other questions. Sorry.

(Reply to this) (Thread)


[info]bradfitz
2003-05-12 10:06 am UTC (link)
I would like to change every instance of "Journal" to "Blog" and "LiveJournal" to "MyBloggingSite". I can change what's hardcoded into the .bml files no problem, but I'm not sure where I should change the content in the ml_ database tables. I.e. if I should edit them in the database. What's the best way to do this translation so if I need to upgrade ( using cvs version at the moment ) I can keep my translations?

Don't edit en.dat. And don't use /translate/ (at least, not yet...)

If you do things right, you'll be able to stay in-sync with CVS and not lose your local changes.

First, go make a file beside en.dat called, say, en_LO (en_LOCAL ?) or whatever. On LJ we calls ours en_LJ.dat. This file selectively overrides things from en.dat.

Then, modify text-local.dat to be:

# EnglishLO is child of English for general domain:
lang:100:en_LO:English (Local):sim:en
langdomain:en_LO:general

# EnglishLO is root of FAQ:
langdomain:en_LO:faq:1

Now, make changes in en_LJ.dat (like en.dat) and re-run the texttool load. Then, after that, you can use /translate/ (after you give yourself the privs in /admin/priv/) and modify en_LO using the web interface.

If you ever want to archive the changes you've made, run texttool.pl dumptext en_LO to dump from database to file.

How do I get journaltype to show up on the userinfo page? e.g. paid, early adopter etc.

That's a site-specific concept. By default, all accounts are the same. See our cgi-bin/ljcom.pl to see how to write a hook to return a string name.

The S2 style system - is it stable? if so how can I make it the default for any new user? And what file should I look into so I can add the custom threaded comments to the other S2 styles?

All S2 styles in CVS now support threading. Did you get the code from the .tar.gz?

MySQL 4 - anyone use the caching feature of mysql 4? does it speed things up?

You won't gain much from it, in LJ's case at least... we've optimized the code like crazy, intelligently caching all the simple stuff already. Other web apps might benefit from it more.

(Reply to this) (Parent)(Thread)


[info]eadz
2003-05-12 03:15 pm UTC (link)
Thanks for the answers! It was a bit too late for the "don't use /translate/ though!"

I have another question or three if you don't mind.

I can't work out where to add Faq categories. The box to add faq questions is there, but the dropdown list of categories is empty.

Which spell checker should I use? aspell or ispell?

Where can I get the mood sets?

On the development pages of livejournal.com, it says "The server distribution above includes the following reusable components: LJ::TextMessage .. etc"

I think the support system is great, and is probally too closely interwoven with the whole lj code, but it would be a great standalone product as well.

my install is at http://www.bblog.com/ if anyone is interested.

If I get time, I will make available an icon set ( e.g. userinfo.gif, next / prev, add a friend buttons ) based on the KDE Crystal icons. The're GPL and look very nice :)

(Reply to this) (Parent)


[info]scsi
2003-05-13 09:18 pm UTC (link)
Hmm, I followed your instructions to try to do this to the DJ beta box, but it seems not to be working.. Heres what I did.

  • Took the DJ'ified en.dat and renamed it to en_DJ.dat
  • Copied en.dat from the livejournal cvs.. So now I have en.dat (from cvs) and en_DJ.dat (DJ'ified)

  • Made a text-local.dat like so:

    lang:100:en_DJ:English (DJ):sim:en
    langdomain:en_DJ:general

  • The text.dat is standard cvs default

    # one language, english, which is the master of one domain (general)
    lang:1:en:English
    domain:1:general
    langdomain:en:general:1


  • Ran texttool.pl wipedb so I start with a clean slate.

    trinary:/home/lj/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.


  • Then I loaded the language files with textool.pl load

    trinary:/home/lj/bin/upgrading# ./texttool.pl load
    Populating structure...
    Inserting language: English
    Inserting language: English (DJ)
    Inserting domain: general[]
    Inserting language domains ...
    done.
    Populating text...
    en
    added: 1185
    en_DJ
    added: 1221
    done.
    Making usable...
    en -- en_DJ
    done.

  • On any page (like create.bml) it shows the contents from en.dat (Creating a new LiveJournal is easy, blah), not from en_DJ.dat (hey dumbass, get a DJ, blah blah)..

    Am I missing the point entirely? Or is this a bug that should be in zilla?

    (Reply to this) (Parent)(Thread)


  • [info]bradfitz
    2003-05-13 10:10 pm UTC (link)
    Oh! I totally forgot:

    You must make the file: cgi-bin/bmlp-local.cfg

    With contents:
    Location: /
    
    DefaultLanguage en_WHATEV

    (Reply to this) (Parent)

    Invalid Language?
    [info]crisdias
    2003-06-06 07:51 am UTC (link)
    So I followed these instructions and added a new language to my LJ. It all works fine but from time to time I will get a "Invalid Language" after I submit my translations. If I refresh (sometimes I have to insist) it finally works.

    Is that a know bug or something? What should I do?

    (Reply to this)


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