diff --git a/src/main/java/org/jabref/gui/groups/EntryTableTransferHandler.java b/src/main/java/org/jabref/gui/groups/EntryTableTransferHandler.java index a5f138cf955..9b6a761ba8c 100644 --- a/src/main/java/org/jabref/gui/groups/EntryTableTransferHandler.java +++ b/src/main/java/org/jabref/gui/groups/EntryTableTransferHandler.java @@ -18,6 +18,7 @@ import java.util.Collections; import java.util.List; import java.util.Optional; +import java.util.stream.Collectors; import javax.swing.JComponent; import javax.swing.JTable; @@ -118,7 +119,8 @@ public boolean importData(JComponent comp, Transferable t) { // JOptionPane.showMessageDialog(null, "Received // javaFileListFlavor"); @SuppressWarnings("unchecked") - List files = (List) t.getTransferData(DataFlavor.javaFileListFlavor); + List files = ((List) t.getTransferData(DataFlavor.javaFileListFlavor)).stream() + .map(File::toPath).collect(Collectors.toList()); return handleDraggedFiles(files, dropRow); } else if (t.isDataFlavorSupported(urlFlavor)) { URL dropLink = (URL) t.getTransferData(urlFlavor); diff --git a/src/main/resources/l10n/JabRef_zh.properties b/src/main/resources/l10n/JabRef_zh.properties index 23b31522681..9e5a315fb8e 100644 --- a/src/main/resources/l10n/JabRef_zh.properties +++ b/src/main/resources/l10n/JabRef_zh.properties @@ -94,9 +94,9 @@ any_field_that_matches_the_regular_expression_%0=匹配正则表达式_%0_is_invalid\:=正则表达式_%0_是非法的\: @@ -1332,7 +1332,7 @@ Write_BibTeXEntry_as_XMP-metadata_to_PDF.=将_BibTeX_记录作为_XMP_源数据 Write_XMP=写入_XMP Write_XMP-metadata=写入_XMP_元数据 -Write_XMP-metadata_for_all_PDFs_in_current_library?=将_XMP_元数据写入到当前数据库中所有_PDF_文件? +Write_XMP-metadata_for_all_PDFs_in_current_library?=将_XMP_元数据写入到当前文献库中所有_PDF_文件? Writing_XMP-metadata...=正在写入_XMP_元数据... Writing_XMP-metadata_for_selected_entries...=正在为选中记录写入_XMP_元数据... @@ -1376,11 +1376,11 @@ Search_in_all_open_libraries=在所有打开的数据库中搜索 Move_file_to_file_directory?=移动文件到文件目录? You_have_changed_the_menu_and_label_font_size.=您已经修改了菜单和标签的字号。 -Library_is_protected._Cannot_save_until_external_changes_have_been_reviewed.=数据库受保护中,在外部修改未被复查前无法执行保存操作。 -Protected_library=受保护的数据库 -Refuse_to_save_the_library_before_external_changes_have_been_reviewed.=在外部修改未被复查之前拒绝保存数据库。 -Library_protection=数据库保护 -Unable_to_save_library=无法保存数据库 +Library_is_protected._Cannot_save_until_external_changes_have_been_reviewed.=文献库受保护中,在外部修改未被复查前无法执行保存操作。 +Protected_library=受保护的文献库 +Refuse_to_save_the_library_before_external_changes_have_been_reviewed.=在外部修改未被复查之前拒绝保存文献库。 +Library_protection=文献库保护 +Unable_to_save_library=无法保存文献库 BibTeX_key_generator=BibTeX_键生成器 Unable_to_open_link.=无法打开链接。 @@ -1398,8 +1398,8 @@ The_Guide_to_Computing_Literature=The_Guide_to_Computing_Literature When_opening_file_link,_search_for_matching_file_if_no_link_is_defined=打开文件时,如果文件链接未定义,则自动寻找匹配的文件。 Settings_for_%0=%0_的设置 -Mark_entries_imported_into_an_existing_library=标记导入到已有数据库的新记录 -Unmark_all_entries_before_importing_new_entries_into_an_existing_library=导入新记录到数据库之前移除所有新记录的标记 +Mark_entries_imported_into_an_existing_library=标记导入到已有文献库的新记录 +Unmark_all_entries_before_importing_new_entries_into_an_existing_library=导入新记录到文献库之前移除所有新记录的标记 Forward=前进 Back=后退 @@ -1424,7 +1424,7 @@ Looking_for_full_text_document...=查找文章全文文档 Autosave=自动保存 A_local_copy_will_be_opened.=将打开一个本地拷贝. Autosave_local_libraries=自动保存本地数据库 -Automatically_save_the_library_to=自动将数据库保存到 +Automatically_save_the_library_to=自动将文献库保存到 Please_enter_a_valid_file_path.=请输入一个合法的文件路径. @@ -1464,7 +1464,7 @@ Optional_fields_2=可选域_2 Waiting_for_save_operation_to_finish=正在等待保存操作完成 Resolving_duplicate_BibTeX_keys...=处理重复的_BibTeX Finished_resolving_duplicate_BibTeX_keys._%0_entries_modified.=完成处理重复_BibTeX_键值,修改了_%0_条记录。 -This_library_contains_one_or_more_duplicated_BibTeX_keys.=当前数据库包含一个或多个重复的_BibTeX_键值。 +This_library_contains_one_or_more_duplicated_BibTeX_keys.=当前文献库包含一个或多个重复的_BibTeX_键值。 Do_you_want_to_resolve_duplicate_keys_now?=您希望马上处理重复的键值吗? Find_and_remove_duplicate_BibTeX_keys=查找并移除重复的_BibTeX_键值 @@ -1544,7 +1544,7 @@ Connected_to_document=连接到文档 Insert_a_citation_without_text_(the_entry_will_appear_in_the_reference_list)=插入一条没有内容的引用(这条记录将会出现在引用列表中) Cite_selected_entries_with_extra_information=引用包含额外信息的选中记录 Ensure_that_the_bibliography_is_up-to-date=保证参考文献是最新的 -Your_OpenOffice/LibreOffice_document_references_the_BibTeX_key_'%0',_which_could_not_be_found_in_your_current_library.=您的_OpenOffice/LibreOffice_文档引用了一个当前数据库中不存在的_BibTeX_键值_”%0”。 +Your_OpenOffice/LibreOffice_document_references_the_BibTeX_key_'%0',_which_could_not_be_found_in_your_current_library.=您的_OpenOffice/LibreOffice_文档引用了一个当前文献库中不存在的_BibTeX_键值_”%0”。 Unable_to_synchronize_bibliography=无法同步参考文献 Combine_pairs_of_citations_that_are_separated_by_spaces_only= Autodetection_failed=自动检测失败 @@ -1580,7 +1580,7 @@ OpenOffice/LibreOffice_connection=OpenOffice/LibreOffice_连接 You_must_select_either_a_valid_style_file,_or_use_one_of_the_default_styles.=您要么选择一个可用的风格文件,要么使用一种默认风格。 This_is_a_simple_copy_and_paste_dialog._First_load_or_paste_some_text_into_the_text_input_area.
After_that,_you_can_mark_text_and_assign_it_to_a_BibTeX_field.=这是一个简单的拷贝粘贴对话框。首先加载或者粘贴一些文本内容到文本框中,
然后你可以选中文本分配到一个_BibTeX_域中。 -This_feature_generates_a_new_library_based_on_which_entries_are_needed_in_an_existing_LaTeX_document.=此功能根据一个_LeTeX_文档,将它使用到的记录生成为一个新的数据库。 +This_feature_generates_a_new_library_based_on_which_entries_are_needed_in_an_existing_LaTeX_document.=此功能根据一个_LeTeX_文档,将它使用到的记录生成为一个新的文献库。 You_need_to_select_one_of_your_open_libraries_from_which_to_choose_entries,_as_well_as_the_AUX_file_produced_by_LaTeX_when_compiling_your_document.= First_select_entries_to_clean_up.=首先选择要清理的记录。 @@ -1634,7 +1634,7 @@ Select_file_type\:=选择文件类型\: These_files_are_not_linked_in_the_active_library.= Entry_type_to_be_created\:= Searching_file_system...=正在搜索文件系统... -Importing_into_Library...=正在导入到数据库... +Importing_into_Library...=正在导入到文献库... Select_directory=选择目录 Select_files=选择文件 BibTeX_entry_creation= @@ -1846,7 +1846,7 @@ No_problems_found.=没有发现问题。 %0_problem(s)_found= Save_changes=保存修改 Discard_changes=放弃修改 -Library_'%0'_has_changed.=数据库_'%0'_已修改。 +Library_'%0'_has_changed.=文献库_'%0'_已修改。 Print_entry_preview=打印记录预览 Copy_title= Copy_\\cite{BibTeX_key}=复制_\\cite{BibTeX_键值} @@ -1867,7 +1867,7 @@ Field_is_missing= Search_%0=搜索_%0 Search_results_in_all_libraries_for_%0=在所有数据库中搜索_%0_的结果 -Search_results_in_library_%0_for_%1=在数据库_%0_中搜索_%1_的结果 +Search_results_in_library_%0_for_%1=在文献库_%0_中搜索_%1_的结果 Search_globally=全局搜索 No_results_found.=没有找到结果. Found_%0_results.=找到_%0_条结果. @@ -1880,10 +1880,10 @@ This_search_contains_entries_in_which=这次搜索的结果记录符合条件: Unable_to_autodetect_OpenOffice/LibreOffice_installation._Please_choose_the_installation_directory_manually.=自动检测_OpenOffice/LibreOffice_安装位置失败,请手动指定安装目录。 JabRef_no_longer_supports_'ps'_or_'pdf'_fields.
File_links_are_now_stored_in_the_'file'_field_and_files_are_stored_in_an_external_file_directory.
To_make_use_of_this_feature,_JabRef_needs_to_upgrade_file_links.

=JabRef_不再支持_"ps"_或_"pdf"_域。
新版本将文件链接保存在_"file"_域中,文件保存在外部文件目录中。
为了启用新的特性,JabRef_需要升级文件链接。

-This_library_uses_outdated_file_links.=这个数据库使用了过期的文件链接。 +This_library_uses_outdated_file_links.=这个文献库使用了过期的文件链接。 Clear_search=清除搜索 -Close_library=关闭数据库 +Close_library=关闭文献库 Close_entry_editor=关闭记录编辑器 Decrease_table_font_size=减小表格字号 Entry_editor,_next_entry=记录编辑器,下一条记录 @@ -1896,8 +1896,8 @@ Entry_editor,_store_field=记录编辑器,保存域内容 File_list_editor,_move_entry_down=文件列表编辑器,下移记录 File_list_editor,_move_entry_up=文件列表编辑器,上移记录 Focus_entry_table=激活记录列表 -Import_into_current_library=导入当前数据库 -Import_into_new_library=导入新建数据库 +Import_into_current_library=导入当前文献库 +Import_into_new_library=导入新建文献库 Increase_table_font_size=增大表格字号 New_article=新建_article New_book=新建_book @@ -1927,7 +1927,7 @@ No_meta_data_present_in_BIB_file._Cannot_regenerate_BibTeX_keys=在_BIB_file_中 Regenerate_all_keys_for_the_entries_in_a_BibTeX_file=重新生成_BibTeX_文件中所有记录的键值 Show_debug_level_messages=显示调试级别消息 Default_bibliography_mode=默认的参考文献模式 -New_%0_library_created.=成功新建数据库_%0. +New_%0_library_created.=成功新建文献库_%0. Show_only_preferences_deviating_from_their_default_value=只显示与默认值不同的首选项 default=默认 key=键值 @@ -2135,7 +2135,7 @@ Unable_to_generate_new_library= Open_console=打开终端程序 Use_default_terminal_emulator=使用默认的模拟终端 Execute_command=执行命令 -Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_library_file.=注意\:_使用_%0_占位符来表示当前打开的数据库文件位置. +Note\:_Use_the_placeholder_%0_for_the_location_of_the_opened_library_file.=注意\:_使用_%0_占位符来表示当前打开的文献库文件位置. Executing_command_\"%0\"...= Error_occured_while_executing_the_command_\"%0\".= Reformat_ISSN= diff --git a/src/main/resources/l10n/Menu_zh.properties b/src/main/resources/l10n/Menu_zh.properties index af2524ce1bd..24f4b39e34e 100644 --- a/src/main/resources/l10n/Menu_zh.properties +++ b/src/main/resources/l10n/Menu_zh.properties @@ -5,16 +5,16 @@ Abbreviate_journal_names_(ISO)=缩写期刊名称_(ISO) Abbreviate_journal_names_(MEDLINE)=缩写期刊名称_(MEDLINE) About_JabRef=关于_JabRef_(&A) -Append_library=追加数据库_(&A) +Append_library=追加文献库_(&A) Autogenerate_BibTeX_keys=自动生成_BibTeX_键(&A) -Close_library=关闭当前数据库_(&C) +Close_library=关闭当前文献库_(&C) Copy=复制(&o) Copy_title=复制标题 Copy_\\cite{BibTeX_key}=复制_\\c&ite{BibTeX_键值} Copy_BibTeX_key=复制_&BibTeX_键值 Customize_entry_types=自定义记录类别_(&C) Cut=剪切_(&C) -Library_properties=数据库属性_(&p) +Library_properties=文献库属性_(&p) Edit=编辑_(&E) # Bibtex Edit_entry=编辑记录_(&E) @@ -37,15 +37,15 @@ Manage_custom_imports=管理自定义导入器_(&I) Manage_journal_abbreviations=管理期刊名缩写规则_(&J) Mark_entries=高亮标记选中记录_(&M) # File menu -New_%0_library=新建_%0_数据库 +New_%0_library=新建_%0_文献库 # Menu BibTeX (BibTeX) New_entry=新建记录向导_(&e) New_entry_by_type...=新建记录_(&N)... New_entry_from_plain_text=以纯文本新建记录_(&W) -New_sublibrary_based_on_AUX_file=根据_AU&X_文件新建子数据库 +New_sublibrary_based_on_AUX_file=根据_AU&X_文件新建子文献库 # View Next_tab=下一标签页_(&N) -Open_library=打开数据库_(&O) +Open_library=打开文献库_(&O) Open_URL_or_DOI=打开_&URL_或_DOI Connect_to_shared_database=连接到共享数据库 Open_terminal_here=在此处打开终端 @@ -58,8 +58,8 @@ Quit=退出_(&Q) Recent_libraries=最近打开的文件_(&R) Redo=重做_(&R) Replace_string=替换字符串_(&R) -Save_library=保存数据库_(&S) -Save_library_as...=数据库另存为_(&A)... +Save_library=保存文献库_(&S) +Save_library_as...=文献库另存为_(&A)... Save_selected_as...=选中记录另存为_(&L)... # Tools Search=查找_(&S) @@ -80,8 +80,8 @@ Mark_specific_color=用指定颜色标记_(&a) Unmark_all=撤销所有高亮标记_(&L) Unmark_entries=撤销选中高亮标记_(&N) View=视图_(&V) -Import_into_new_library=导入到新数据库 -Import_into_current_library=导入到当前数据库 +Import_into_new_library=导入到新文献库 +Import_into_current_library=导入到当前文献库 Switch_to_%0_mode=切换到_%0_模式 Push_entries_to_external_application_(%0)=推送选中记录到外部程序_(%0)