Просмотр исходного кода

Merge pull request #9432 from overleaf/ta-galileo-bibtex-copy-hint

Show Bibtex Copy Hint After Selecting Galileo Suggestion

GitOrigin-RevId: 879598d7a949f99c248b6536ca86542b63906be1
Timothée Alby 4 лет назад
Родитель
Сommit
c074e7acf8

+ 2 - 0
services/web/frontend/extracted-translations.json

@@ -77,6 +77,8 @@
   "continue_github_merge": "",
   "continue_github_merge": "",
   "copy": "",
   "copy": "",
   "copy_project": "",
   "copy_project": "",
+  "copy_bibtex": "",
+  "copy_bibtex_to_paste_in_file": "",
   "copying": "",
   "copying": "",
   "country": "",
   "country": "",
   "create": "",
   "create": "",

+ 1 - 0
services/web/frontend/stylesheets/app/editor.less

@@ -588,6 +588,7 @@ CodeMirror
   }
   }
 }
 }
 
 
+.bibtex-hint-banner,
 .references-search-banner {
 .references-search-banner {
   position: absolute;
   position: absolute;
   top: 8px;
   top: 8px;

+ 2 - 0
services/web/locales/en.json

@@ -833,6 +833,8 @@
   "ask_proj_owner_to_upgrade_for_references_search": "Please ask the project owner to upgrade to use the References Search feature.",
   "ask_proj_owner_to_upgrade_for_references_search": "Please ask the project owner to upgrade to use the References Search feature.",
   "ask_proj_owner_to_upgrade_for_faster_compiles": "Please ask the project owner to upgrade for faster compiles and to increase the timeout limit.",
   "ask_proj_owner_to_upgrade_for_faster_compiles": "Please ask the project owner to upgrade for faster compiles and to increase the timeout limit.",
   "search_bib_files": "Search by author, title, year",
   "search_bib_files": "Search by author, title, year",
+  "copy_bibtex_to_paste_in_file": "The <strong>__citeKey__</strong> cite key has been inserted. Click <strong>Copy BibTeX</strong> to copy the matching citation information and paste it into your <strong>.bib</strong> file.",
+  "copy_bibtex": "Copy BibTeX",
   "leave_group": "Leave group",
   "leave_group": "Leave group",
   "leave_now": "Leave now",
   "leave_now": "Leave now",
   "sure_you_want_to_leave_group": "Are you sure you want to leave this group?",
   "sure_you_want_to_leave_group": "Are you sure you want to leave this group?",