xref: /plugin/ragasker/lang/en/lang.php (revision ee5a17d9fbcd1782f5b6e74c2d73d7240fd2f789)
1*ee5a17d9SCharles Chan<?php
2*ee5a17d9SCharles Chan
3*ee5a17d9SCharles Chan$lang['no_apikey'] = 'Please set the OpenAI API key in the plugin settings first';
4*ee5a17d9SCharles Chan$lang['keyword_prompt'] = 'Please extract the 3-5 most important keywords from the following question, return a space-separated list of keywords in order of priority, do not explain:';
5*ee5a17d9SCharles Chan$lang['keyword_system'] = 'You are a keyword extraction assistant.';
6*ee5a17d9SCharles Chan$lang['summary_prompt'] = 'Based on the following list of pages, combined with the user\'s original question, briefly summarize and answer the user\'s question.';
7*ee5a17d9SCharles Chan$lang['summary_system'] = 'You are a dokuwiki knowledge base Q&A assistant.';
8*ee5a17d9SCharles Chan
9*ee5a17d9SCharles Chan// Common errors and tips
10*ee5a17d9SCharles Chan$lang['error_api'] = 'API returned an error';
11*ee5a17d9SCharles Chan$lang['error_parse'] = 'Failed to parse response';
12*ee5a17d9SCharles Chan$lang['error_permission'] = 'Permission denied';
13*ee5a17d9SCharles Chan$lang['error_format'] = 'API returned an invalid format';
14*ee5a17d9SCharles Chan$lang['error_noresult'] = 'No related content found';
15*ee5a17d9SCharles Chan$lang['error_input_empty'] = 'Please enter content';
16*ee5a17d9SCharles Chan$lang['error_network'] = 'Network error';
17*ee5a17d9SCharles Chan$lang['error_request'] = 'Request failed';
18*ee5a17d9SCharles Chan
19*ee5a17d9SCharles Chan// Steps and dynamic content
20*ee5a17d9SCharles Chan$lang['step_title'] = 'Step %d: %s'; // sprintf($lang['step_title'], 1, 'Extract Keywords')
21*ee5a17d9SCharles Chan$lang['step_extracting'] = 'Extracting keywords...';
22*ee5a17d9SCharles Chan$lang['step_searching'] = 'Searching pages...';
23*ee5a17d9SCharles Chan$lang['step_summarizing'] = 'Summarizing answer...';
24*ee5a17d9SCharles Chan
25*ee5a17d9SCharles Chan// Results and content
26*ee5a17d9SCharles Chan$lang['user_question'] = 'User question: %s';
27*ee5a17d9SCharles Chan$lang['keywords'] = 'Keywords: %s';
28*ee5a17d9SCharles Chan$lang['result'] = 'Result: %s';
29*ee5a17d9SCharles Chan$lang['search_result'] = 'Search result: %s';
30*ee5a17d9SCharles Chan$lang['no_page_found'] = 'No related pages found';
31*ee5a17d9SCharles Chan$lang['page_summary'] = '[%s] Summary: %s'; // sprintf($lang['page_summary'], $title, $summary)
32*ee5a17d9SCharles Chan$lang['page_list'] = 'Page list:';
33*ee5a17d9SCharles Chan$lang['prompt_detail'] = 'Prompt (click to expand)';
34*ee5a17d9SCharles Chan
35*ee5a17d9SCharles Chan// UI
36*ee5a17d9SCharles Chan$lang['input_placeholder'] = 'Please enter your question...';
37*ee5a17d9SCharles Chan$lang['submit_btn'] = 'Submit';
38*ee5a17d9SCharles Chan$lang['stop_btn'] = 'Stop';
39*ee5a17d9SCharles Chan$lang['stopped'] = 'Stopped';
40