2009-10-30

denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
[staff profile] denise2009-10-30 10:13 am

because i just spent too damn long debugging this

If you accidentally leave a single invisible control character on a blank line in en.dat, you will get horrible errors, like so:

[Error: /dreamhack/home/8083-rahaeli/dw/bin/upgrading/en.dat:3195: Bogus format. at /dreamhack/home/8083-rahaeli/dw/cgi-bin/LJ/Lang.pm line 565 ]
Entry tags:

More DQFaN: changing account level on Dreamhacks?

So I know how to change a user's capabilities with admin/capedit but how do you create a paid or a seed account or upgrade a free one? I'm asking because some things don't display as a permanent user would see them (in my particular case if was the links on http://www.dreamwidth.org/shop).

A: Go to Admin/Payments.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
[staff profile] denise2009-10-30 03:15 pm

best practice with the translation system

I've caught myself typing this out to people several times, so, into [site community profile] dw_dev_training it goes:

In general, if you're updating the value of a text string in a .text file or in en.dat, you need to change the name of the string.

The reason for this is -- in order to not undo the site copy team's hard work -- we don't allow updates from cvs to overwrite the existing text on the site, because then the 'old' values would overwrite the values that had been changed on the site. (This is because the translation system is horrible, horrible, horrible.)

So, if you've got:

.string.foo=Bar!

and you want to change it to:

.string.foo=Baz!

you would instead change it to:

.string.foo2=Baz!

and update the BML::ml calls to use the new string name.