Index: branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js |
— | — | @@ -503,6 +503,9 @@ |
504 | 504 | var catName = mw.getConfig( 'TimedText.NeedsTranscriptCategory' ); |
505 | 505 | var $dialog = $j(this); |
506 | 506 | |
| 507 | + var subRequestCategoryUrl = apiUrl.replace('api.php', 'index.php') + |
| 508 | + '?title=Category:' + catName.replace(/ /g, '_'); |
| 509 | + |
507 | 510 | var buttonOk= {}; |
508 | 511 | buttonOk[gM('mwe-ok')] =function(){ |
509 | 512 | $j(this).dialog('close'); |
— | — | @@ -520,7 +523,7 @@ |
521 | 524 | var categories = data.query.pages[i].categories; |
522 | 525 | for(var j =0; j < categories.length; j++){ |
523 | 526 | if( categories[j].title.indexOf( catName ) != -1 ){ |
524 | | - $dialog.html( gM('mwe-timedtext-request-already-done') ); |
| 527 | + $dialog.html( gM('mwe-timedtext-request-already-done', subRequestCategoryUrl ) ); |
525 | 528 | $dialog.dialog( 'option', 'buttons', buttonOk); |
526 | 529 | return ; |
527 | 530 | } |
— | — | @@ -551,10 +554,8 @@ |
552 | 555 | // Do the edit request: |
553 | 556 | mw.getJSON( apiUrl, request, function(data){ |
554 | 557 | if( data.edit && data.edit.newrevid){ |
555 | | - $dialog.html( gM('mwe-timedtext-request-subs-done', |
556 | | - apiUrl.replace('api.php', 'index.php') + |
557 | | - '?title=Category:' + catName.replace(' ', '_') |
558 | | - ) |
| 558 | + |
| 559 | + $dialog.html( gM('mwe-timedtext-request-subs-done', subRequestCategoryUrl ) |
559 | 560 | ); |
560 | 561 | } else { |
561 | 562 | $dialog.html( gM('mwe-timedtext-request-subs-fail') ); |
Index: branches/MwEmbedStandAlone/modules/TimedText/TimedText.i18n.php |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | 'mwe-timedtext-request-subs-desc' => 'Add a request for this video file to be transcribed', |
61 | 61 | 'mwe-timedtext-request-subs-done' => 'Transcription request added. [$1 See all transcribe requests]', |
62 | 62 | 'mwe-timedtext-request-subs-fail' => 'Failed to add transcription request, Are you logged in? ', |
63 | | - 'mwe-timedtext-request-already-done' => 'A transcription of this video has already been requested', |
| 63 | + 'mwe-timedtext-request-already-done' => 'A transcription of this video has already been requested. [$1 See all transcribe requests]', |
64 | 64 | ); |
65 | 65 | |
66 | 66 | /** Message documentation (Message documentation) |
Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | */ |
6 | 6 | var urlparts = getRemoteEmbedPath(); |
7 | 7 | var mwEmbedHostPath = urlparts[0]; |
8 | | -var mwRemoteVersion = 'r167'; |
| 8 | +var mwRemoteVersion = 'r168'; |
9 | 9 | var mwUseScriptLoader = true; |
10 | 10 | |
11 | 11 | // Log the mwRemote version makes it easy to debug cache issues |