Skip to content

Commit

Permalink
Removed unused progress messages for actions moved from JS to PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardspec committed Jan 11, 2025
1 parent 90a1614 commit bfd5ea8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
3 changes: 0 additions & 3 deletions extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,7 @@
"askai-chatwith-button",
"askai-excluded-pages",
"askai-included-pages",
"askai-progress-findpar",
"askai-progress-findpar-empty",
"askai-progress-findpar-all-empty",
"askai-progress-findpar-all-ok",
"askai-progress-findpar-ok",
"askai-progress-narrow",
"askai-progress-narrow-empty",
Expand Down
7 changes: 2 additions & 5 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@
"askai-field-response": "Response from the AI:",
"askai-included-pages": "Included content:",
"askai-openai-not-configured": "Error: OpenAI not configured: apiKey, apiUrl or model are not set.",
"askai-progress-findpar": "Scanning the page $1 for relevant paragraph numbers...",
"askai-progress-findpar-all-empty": "Paragraph numbers not found in any of the titles.",
"askai-progress-findpar-all-ok": "Found relevant pages and paragraphs: $1.",
"askai-progress-findpar-empty": "not found.",
"askai-progress-findpar-ok": "found: $1.",
"askai-progress-findpar-empty": "Paragraph numbers not found in any of the titles.",
"askai-progress-findpar-ok": "Found relevant pages and paragraphs: $1.",
"askai-progress-narrow": "Asking AI to narrow down $1 search results...",
"askai-progress-narrow-empty": "AI hasn't found any relevant pages.",
"askai-progress-narrow-ok": "selected $1 pages.",
Expand Down
7 changes: 2 additions & 5 deletions i18n/qqq.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@
"askai-field-response": "Label of readonly field that will show the response from the AI.",
"askai-included-pages": "Progress message before listing pages that were chosen to be analyzed by Chat With AI.",
"askai-openai-not-configured": "Error message if OpenAI API key, etc. are not configured.",
"askai-progress-findpar": "Progress message before scanning page $1 for paragraphs.",
"askai-progress-findpar-all-empty": "Not Found message after scanning all pages for paragraphs.",
"askai-progress-findpar-all-ok": "Success message after scanning all pages for paragraphs.",
"askai-progress-findpar-empty": "Not Found message after scanning one page for paragraphs.",
"askai-progress-findpar-ok": "Success message after scanning one page for paragraphs.",
"askai-progress-findpar-empty": "Not Found message after scanning all pages for paragraphs.",
"askai-progress-findpar-ok": "Success message after scanning all pages for paragraphs.",
"askai-progress-narrow": "Progress message before asking AI to narrow down search results.",
"askai-progress-narrow-empty": "Not Found message after asking AI to narrow down search results.",
"askai-progress-narrow-ok": "Success message if AI narrowed down search results. $1 - number of results (integer).",
Expand Down
4 changes: 2 additions & 2 deletions modules/ext.askai.chatwith.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ $( function () {
return mw.askai.findparInPages( snippets );
} ).then( ( foundPages ) => {
if ( !foundPages.length ) {
displayProgress( mw.msg( 'askai-progress-findpar-all-empty' ) );
displayProgress( mw.msg( 'askai-progress-findpar-empty' ) );
return;
}

displayProgress( mw.msg( 'askai-progress-findpar-all-ok',
displayProgress( mw.msg( 'askai-progress-findpar-ok',
mw.html.escape( foundPages.join( ', ' ) ) ) );

const specialTitle = new mw.Title( 'Special:AI' ),
Expand Down

0 comments on commit bfd5ea8

Please sign in to comment.