diff --git a/module/bug/view/batchcreate.html.php b/module/bug/view/batchcreate.html.php index 824666c3d9..7760e7ecfa 100644 --- a/module/bug/view/batchcreate.html.php +++ b/module/bug/view/batchcreate.html.php @@ -16,7 +16,7 @@
icons['bug']);?> icons['batchCreate']);?> bug->common . $lang->colon . $lang->bug->batchCreate;?> -
parseText, "data-toggle='myModal'")?>
+
pasteText, "data-toggle='myModal'")?>
@@ -73,5 +73,5 @@ - + diff --git a/module/common/lang/en.php b/module/common/lang/en.php index c09fdfa6ef..b57a295425 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -59,6 +59,7 @@ $lang->switchDisplay= 'Toggle Show'; $lang->switchHelp = 'Toggle Help'; $lang->addFiles = 'Add Files'; $lang->files = 'Files '; +$lang->pasteText = 'Paste text'; $lang->timeout = 'Timed out, please check the network, or retry!'; $lang->unfold = '+'; $lang->fold = '-'; @@ -357,7 +358,8 @@ $lang->donate = "proVersion = " zentaoPRO!   "; $lang->downNotify = "Down notify"; -$lang->suhosinInfo = "Warming:data is too large! Please enlarge the setting of sohusin.post.max_vars and sohusin.request.max_vars in php.ini. Otherwise partial data can't be saved."; +$lang->suhosinInfo = "Warming:data is too large! Please enlarge the setting of sohusin.post.max_vars and sohusin.request.max_vars in php.ini. Otherwise partial data can't be saved."; +$lang->pasteTextInfo = "Paste the text into a text field, each line of text as a data header."; $lang->noResultsMatch = "No results match"; $lang->selectAnOption = "Select an option"; diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index c5c564caf3..d36d3558a9 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -59,7 +59,7 @@ $lang->switchDisplay= '切换显示'; $lang->switchHelp = '切换帮助'; $lang->addFiles = '上传了附件 '; $lang->files = '附件 '; -$lang->parseText = '粘贴文本 '; +$lang->pasteText = '粘贴文本 '; $lang->timeout = '连接超时,请检查网络环境,或重试!'; $lang->unfold = '+'; $lang->fold = '-'; @@ -358,7 +358,8 @@ $lang->donate = "proVersion = " 升至专业版!   "; $lang->downNotify = "下载桌面提醒"; -$lang->suhosinInfo = "警告:数据太多,请在php.ini中修改sohusin.post.max_varssohusin.request.max_vars(设置更大的数)。 保存并重新启动apache,否则会造成部分数据无法保存。"; +$lang->suhosinInfo = "警告:数据太多,请在php.ini中修改sohusin.post.max_varssohusin.request.max_vars(设置更大的数)。 保存并重新启动apache,否则会造成部分数据无法保存。"; +$lang->pasteTextInfo = "粘贴文本到文本域中,每行文字作为一条数据的标题。"; $lang->noResultsMatch = "没有匹配结果"; $lang->selectAnOption = "选择一个选项"; diff --git a/module/common/view/parsetext.html.php b/module/common/view/pastetext.html.php similarity index 86% rename from module/common/view/parsetext.html.php rename to module/common/view/pastetext.html.php index 1e09fbf9f5..8dfb57bc98 100644 --- a/module/common/view/parsetext.html.php +++ b/module/common/view/pastetext.html.php @@ -3,9 +3,9 @@ @@ -14,12 +14,12 @@ $("button[data-toggle='myModal']").click(function(){$('#myModal').modal('show')}) $("#myModal button[type='submit']").click(function() { - var parseText = $('#myModal #parseText').val(); + var pasteText = $('#myModal #pasteText').val(); $('#myModal').modal('hide') - $('#myModal #parseText').val(''); + $('#myModal #pasteText').val(''); - var dataList = parseText.split("\n"); + var dataList = pasteText.split("\n"); if(typeof(mainField) == 'undefined') mainField = 'title'; var index = 0; diff --git a/module/story/view/batchcreate.html.php b/module/story/view/batchcreate.html.php index 7367df91b4..7cd47f4a98 100644 --- a/module/story/view/batchcreate.html.php +++ b/module/story/view/batchcreate.html.php @@ -15,7 +15,7 @@
icons['story']);?> icons['batchCreate']);?> story->batchCreate;?> -
parseText, "data-toggle='myModal'")?>
+
pasteText, "data-toggle='myModal'")?>
@@ -67,5 +67,5 @@ - + diff --git a/module/task/view/batchcreate.html.php b/module/task/view/batchcreate.html.php index debd464c2a..67e4b58201 100644 --- a/module/task/view/batchcreate.html.php +++ b/module/task/view/batchcreate.html.php @@ -17,7 +17,7 @@
icons['task']);?> icons['batchCreate']);?> task->batchCreate . ' ' . $lang->task->common;?> -
parseText, "data-toggle='myModal'")?>
+
pasteText, "data-toggle='myModal'")?>
@@ -106,5 +106,5 @@ - + diff --git a/module/testcase/view/batchcreate.html.php b/module/testcase/view/batchcreate.html.php index 100695de85..faf77aacac 100644 --- a/module/testcase/view/batchcreate.html.php +++ b/module/testcase/view/batchcreate.html.php @@ -20,7 +20,7 @@ icons['story']) . ' ' . $story->title ?> -
parseText, "data-toggle='myModal' ")?>
+
pasteText, "data-toggle='myModal' ")?>
@@ -64,5 +64,5 @@ - +