denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
Denise ([staff profile] denise) wrote in [site community profile] dw_dev_training2009-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.
kimira: (Default)

[personal profile] kimira 2012-10-12 12:37 pm (UTC)(link)
I was looking through recent bugs and noticed "Bug 4704 - Poll error messages reference the lj-* form" which seemed to be an easy thing to fix in this en.dat file, but the "Newbie Guide" said to come here. It seems like one of these "site copy" issues so I was just wondering, when coming across a bug like that on bugzilla, should we assume the site copy team already knows about it, or if it's unassigned should we contact one of them, or...?
kimira: (Default)

[personal profile] kimira 2012-10-12 12:53 pm (UTC)(link)
Oh, I didn't know about that CLA thing. (Should it be mentioned on the Newbie Guide?) I also submitted one patch back in December, although my bugzilla name was different then (I changed it to match this account), and I didn't have that CLA thing then either or know about it. Anyway, I will get it to you now.

And thanks for the info about site copy stuff, I will try to do that bug then! :D