How do I get translated strings into Drupal.locale.strings? So I'm trying to use the Drupal.t() function in some of my custom Javascript code (in my theme).

How do I get the strings I need populated in the Drupal.locale.strings object? I see some strings in there, but of course the entire database can't be loaded. What's the best way to add to it? I would like to use the PHP t() function so that the strings added can be edited in the Translate interface.
Drupal handles populating the needing strings into the javascript object. Much like the entire collection of strings isn't loaded on every page, only the needed strings are added to the JavaScript.

I believe this is done by traversing the script files before they are actually added to the page.

So if you add Drupal.t('Some string'); to your JavaScript code, you should be able to translate that in the translate interface.