wyntarvox (
wyntarvox) wrote in
dw_dev_training2009-05-16 04:44 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Entry tags:
English Stripping and JavaScript
I've seen this come up a couple times in comments on Bugzilla, so I figured I'd ask here.
On a few pages that I know of, there's user-facing text that gets printed by included JavaScript files rather than in the BML files, so (unless I'm mistaken) they can't be English-stripped. Is the general procedure here to leave the copy un-stripped, but update it to be DW-consistent?
For example, manage/tags.bml uses "friends" under "counts and security" which should obviously be updated to "trusted". This would be easy to do just to manually change it, but is there perhaps a way to English strip these kinds of things?
On a few pages that I know of, there's user-facing text that gets printed by included JavaScript files rather than in the BML files, so (unless I'm mistaken) they can't be English-stripped. Is the general procedure here to leave the copy un-stripped, but update it to be DW-consistent?
For example, manage/tags.bml uses "friends" under "counts and security" which should obviously be updated to "trusted". This would be easy to do just to manually change it, but is there perhaps a way to English strip these kinds of things?
no subject
To show what I mean: If you look at the homepage while logged out, you'll notice this code in the source:
In the actual JavaScript file, I can then refer to these strings as
ml.usecode
and such. In the original BML, I print it like this:Of course, you need to know how to code it this way, which limits it, really. I don't think anybody would expect someone to English-strip *this* much if they didn't know how, so it might just work to change the words. May want to ask about that though.
[edited multiple times to fix stuff. So sorry about the edit spam. :(]
no subject
no subject
Thanks!