|
|
Choosing A Webhost: |
[mb-commits] r7976 - in mb_server/trunk/htdocs/scripts: . src/editsuite/mod: msg#00200audio.musicbrainz.cvs
Author: keschte Date: 2006-06-29 23:27:01 +0000 (Thu, 29 Jun 2006) New Revision: 7976 Modified: mb_server/trunk/htdocs/scripts/editsuite.js mb_server/trunk/htdocs/scripts/src/editsuite/module/EsUiModule.js Log: updated GC for new terminology (somewhat). fixes #1654 Modified: mb_server/trunk/htdocs/scripts/editsuite.js =================================================================== --- mb_server/trunk/htdocs/scripts/editsuite.js 2006-06-29 23:15:55 UTC (rev 7975) +++ mb_server/trunk/htdocs/scripts/editsuite.js 2006-06-29 23:27:01 UTC (rev 7976) @@ -210,7 +210,7 @@ for(var i=0;i<this.CONFIG_LIST.length;i++){ var cb=this.CONFIG_LIST[i]; var _24=cb.getHelpText(); -_24=_24.replace("'","???"); +_24=_24.replace("'","?"); s.push("<input type=\"checkbox\" name=\""); s.push(this.CONFIG_CHECKBOX); s.push("\" id=\""); @@ -1043,22 +1043,22 @@ this.BTN_USECURRENT="BTN_USECURRENT"; this.BTN_GUESSBOTH="BTN_GUESSBOTH"; this.BTN_CANCEL="BTN_CANCEL"; -this.BTN_TEXT_NONALBUMTRACKS="Guess All Track Names according to Guess Case settings"; -this.BTN_TEXT_ALBUMANDTRACKS="Guess Album Name and Track Names according to Guess Case settings"; -this.BTN_TEXT_ALBUMARTISTANDTRACKS="Guess Album, Artist and Track Names according to Guess Case settings"; +this.BTN_TEXT_NONALBUMTRACKS="Guess all track names according to guess case settings"; +this.BTN_TEXT_ALBUMANDTRACKS="Guess release name and track names according to Guess Case settings"; +this.BTN_TEXT_ALBUMARTISTANDTRACKS="Guess release, artist and track names according to Guess Case settings"; this.GC_MODE=null; this.focusField=null; this.focusValue=null; this.FORMFIELD_ID="ES_FORMFIELD_ID"; this.formRef=null; this.buttonRegistry=[]; -this.re={ARTISTFIELD:/^(search|artistname|newartistname|newartistalias)/i,SORTNAMEFIELD:/^(artistsortname|newartistsortname)/i,ALBUMFIELD:/^(newalbumname|albumname|album|name)/i,TRACKFIELD:/^(newtrackname|trackname|track)/i,TRACKLENGTHFIELD:/tracklength\d+/i,TEXTFIELD:/^textfield(\sfocus|\smissing)*$/i,RESIZEABLEFIELD:/^textfield(\sfocus|\shidden|\soldvalue|\sheader)*$/i,NUMBERFIELD:/^numberfield(\sfocus|\shidden|oldvalue|header)*$/i}; +this.re={ARTISTFIELD:/^(search|artistname|newartistname|newartistalias)/i,SORTNAMEFIELD:/^(artistsortname|newartistsortname)/i,ALBUMFIELD:/^(newalbumname|albumname|newreleasename|releasename|album|release|name)/i,TRACKFIELD:/^(newtrackname|trackname|track)/i,TRACKLENGTHFIELD:/tracklength\d+/i,TEXTFIELD:/^textfield(\sfocus|\smissing)*$/i,RESIZEABLEFIELD:/^textfield(\sfocus|\shidden|\soldvalue|\sheader)*$/i,NUMBERFIELD:/^numberfield(\sfocus|\shidden|oldvalue|header)*$/i}; this.TEXTFIELD_SIZE=350; this.SIZE_PX_FACTOR=5.7; this.setupModuleDelegate=function(){ mb.log.enter(this.GID,"setupModuleDelegate"); var def="Guess Case"; -this.registerButtons(new EsButton(this.BTN_ALIAS,def,"Guess Artist Alias according to MusicBrainz Artist Name Guidelines","es.guessArtistField($);"),new EsButton(this.BTN_ARTIST,def,"Guess Artist Name according to MusicBrainz Artist Name Guidelines","es.guessArtistField($);"),new EsButton(this.BTN_SORTGUESS,"Guess","Guess Sort Name from Artist Name field","es.guessSortnameField($, $);"),new EsButton(this.BTN_SORTCOPY,"Copy","Copy Sort Name from Artist Name field","es.copySortnameField($, $);"),new EsButton(this.BTN_ALBUM,def,"Guess Album Name according to Guess Case settings","es.guessAlbumField($);"),new EsButton(this.BTN_TRACK,def,"Guess Track Name according to Guess Case settings","es.guessTrackField($)"),new EsButton(this.BTN_ALL,"Guess All","Guess all fields according to Guess Case settings","es.guessAllFields()"),new EsButton(this.BTN_USESWAP,"Swap","Swap Artist Name and Track Nam e fields","es.swapFields($,$,$)"),new EsButton(this.BTN_USECURRENT,"Use Current","Reset to current Artist Name and Track Name","es.changeartist.useCurrent()"),new EsButton(this.BTN_USESPLIT,"Split","Use Artist Name and Track Name from split function","es.changeartist.useSplit()"),new EsButton(this.BTN_GUESSBOTH,"Guess Both","Guess both Artist Name and Track Name","es.changeartist.guessBoth($, $)"),new EsButton(this.BTN_CANCEL,"Cancel","Return to the previous page","es.ui.cancelForm($)")); +this.registerButtons(new EsButton(this.BTN_ALIAS,def,"Guess artist alias according to MusicBrainz artist name guidelines","es.guessArtistField($);"),new EsButton(this.BTN_ARTIST,def,"Guess artist name according to MusicBrainz artist name guidelines","es.guessArtistField($);"),new EsButton(this.BTN_SORTGUESS,"Guess","Guess sort name from artist name field","es.guessSortnameField($, $);"),new EsButton(this.BTN_SORTCOPY,"Copy","Copy sort name from artist name field","es.copySortnameField($, $);"),new EsButton(this.BTN_ALBUM,def,"Guess release name according to Guess Case settings","es.guessAlbumField($);"),new EsButton(this.BTN_TRACK,def,"Guess track name according to Guess Case settings","es.guessTrackField($)"),new EsButton(this.BTN_ALL,"Guess All","Guess all fields according to Guess Case settings","es.guessAllFields()"),new EsButton(this.BTN_USESWAP,"Swap","Swap artist name and track n ame fields","es.swapFields($,$,$)"),new EsButton(this.BTN_USECURRENT,"Use Current","Reset to current artist name and track name","es.changeartist.useCurrent()"),new EsButton(this.BTN_USESPLIT,"Split","Use artist name and track name from split function","es.changeartist.useSplit()"),new EsButton(this.BTN_GUESSBOTH,"Guess Both","Guess both artist name and track name","es.changeartist.guessBoth($, $)"),new EsButton(this.BTN_CANCEL,"Cancel","Return to the previous page","es.ui.cancelForm($)")); mb.registerDOMReadyAction(new MbEventAction(this.GID,"setupFormFields","Add event handlers on form elements")); mb.log.exit(); }; Modified: mb_server/trunk/htdocs/scripts/src/editsuite/module/EsUiModule.js =================================================================== --- mb_server/trunk/htdocs/scripts/src/editsuite/module/EsUiModule.js 2006-06-29 23:15:55 UTC (rev 7975) +++ mb_server/trunk/htdocs/scripts/src/editsuite/module/EsUiModule.js 2006-06-29 23:27:01 UTC (rev 7976) @@ -33,9 +33,9 @@ this.BTN_GUESSBOTH = "BTN_GUESSBOTH"; this.BTN_CANCEL = "BTN_CANCEL"; - this.BTN_TEXT_NONALBUMTRACKS = 'Guess All Track Names according to Guess Case settings'; - this.BTN_TEXT_ALBUMANDTRACKS = 'Guess Album Name and Track Names according to Guess Case settings'; - this.BTN_TEXT_ALBUMARTISTANDTRACKS = 'Guess Album, Artist and Track Names according to Guess Case settings'; + this.BTN_TEXT_NONALBUMTRACKS = 'Guess all track names according to guess case settings'; + this.BTN_TEXT_ALBUMANDTRACKS = 'Guess release name and track names according to Guess Case settings'; + this.BTN_TEXT_ALBUMARTISTANDTRACKS = 'Guess release, artist and track names according to Guess Case settings'; // guess case mode setting this.GC_MODE = null; @@ -56,7 +56,7 @@ // names of the different field types. ARTISTFIELD : /^(search|artistname|newartistname|newartistalias)/i, SORTNAMEFIELD : /^(artistsortname|newartistsortname)/i, - ALBUMFIELD : /^(newalbumname|albumname|album|name)/i, + ALBUMFIELD : /^(newalbumname|albumname|newreleasename|releasename|album|release|name)/i, TRACKFIELD : /^(newtrackname|trackname|track)/i, TRACKLENGTHFIELD : /tracklength\d+/i, @@ -80,32 +80,32 @@ this.registerButtons( new EsButton( this.BTN_ALIAS, def, - "Guess Artist Alias according to MusicBrainz Artist Name Guidelines", + "Guess artist alias according to MusicBrainz artist name guidelines", "es.guessArtistField($);"), new EsButton( this.BTN_ARTIST, def, - "Guess Artist Name according to MusicBrainz Artist Name Guidelines", + "Guess artist name according to MusicBrainz artist name guidelines", "es.guessArtistField($);"), new EsButton( this.BTN_SORTGUESS, "Guess", - "Guess Sort Name from Artist Name field", + "Guess sort name from artist name field", "es.guessSortnameField($, $);"), new EsButton( this.BTN_SORTCOPY, "Copy", - "Copy Sort Name from Artist Name field", + "Copy sort name from artist name field", "es.copySortnameField($, $);"), new EsButton( this.BTN_ALBUM, def, - "Guess Album Name according to Guess Case settings", + "Guess release name according to Guess Case settings", "es.guessAlbumField($);"), new EsButton( this.BTN_TRACK, def, - "Guess Track Name according to Guess Case settings", + "Guess track name according to Guess Case settings", "es.guessTrackField($)"), new EsButton( @@ -115,22 +115,22 @@ new EsButton( this.BTN_USESWAP, "Swap", - "Swap Artist Name and Track Name fields", + "Swap artist name and track name fields", "es.swapFields($,$,$)"), new EsButton( this.BTN_USECURRENT, "Use Current", - "Reset to current Artist Name and Track Name", + "Reset to current artist name and track name", "es.changeartist.useCurrent()"), new EsButton( this.BTN_USESPLIT, "Split", - "Use Artist Name and Track Name from split function", + "Use artist name and track name from split function", "es.changeartist.useSplit()"), new EsButton( this.BTN_GUESSBOTH, "Guess Both", - "Guess both Artist Name and Track Name", + "Guess both artist name and track name", "es.changeartist.guessBoth($, $)"), new EsButton(
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [mb-commits] r7975 - in mb_server/trunk: cgi-bin htdocs/comp htdocs/css, root |
|---|---|
| Next by Date: | [mb-commits] r7977 - mb_server/trunk/htdocs/images, root |
| Previous by Thread: | [mb-commits] r7975 - in mb_server/trunk: cgi-bin htdocs/comp htdocs/css, root |
| Next by Thread: | [mb-commits] r7977 - mb_server/trunk/htdocs/images, root |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |