Skip to content

Commit

Permalink
Merge pull request thinkingreed-inc#390 from pavish69/fix_document_li…
Browse files Browse the repository at this point in the history
…st_jp

fix thinkingreed-inc#353 ドキュメントのリスト表示の日本語訳
  • Loading branch information
Remicck committed Jun 1, 2022
1 parent 2a20666 commit 978c275
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions languages/ja_jp/Documents.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'Folder Name' => 'フォルダ名',
'Document No' => 'ドキュメント番号',
'Last Modified By' => '最終更新者',
'Download' => 'ダウンロード',

//Folder
'LBL_FOLDER_HAS_DOCUMENTS' => '削除する前にドキュメントをフォルダから移動してください。',
Expand Down
4 changes: 2 additions & 2 deletions layouts/v7/modules/Documents/ListViewRecordActions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
{assign var=RECORD_ID value=$LISTVIEW_ENTRY->getId()}
{assign var="DOCUMENT_RECORD_MODEL" value=Vtiger_Record_Model::getInstanceById($RECORD_ID)}
{if $DOCUMENT_RECORD_MODEL->get('filename') && $DOCUMENT_RECORD_MODEL->get('filestatus')}
<li><a data-id="{$LISTVIEW_ENTRY->getId()}" name="viewfile" href="javascript:void(0)" data-filelocationtype="{$DOCUMENT_RECORD_MODEL->get('filelocationtype')}" data-filename="{$DOCUMENT_RECORD_MODEL->get('filename')}" onclick="Vtiger_Header_Js.previewFile(event)">File Preview</a></li>
<li><a data-id="{$LISTVIEW_ENTRY->getId()}" name="viewfile" href="javascript:void(0)" data-filelocationtype="{$DOCUMENT_RECORD_MODEL->get('filelocationtype')}" data-filename="{$DOCUMENT_RECORD_MODEL->get('filename')}" onclick="Vtiger_Header_Js.previewFile(event)">{vtranslate('LBL_PREVIEW', $MODULE)}</a></li>
{/if}
{if $DOCUMENT_RECORD_MODEL->get('filename') && $DOCUMENT_RECORD_MODEL->get('filestatus') && $DOCUMENT_RECORD_MODEL->get('filelocationtype') eq 'I'}
<li><a data-id="{$LISTVIEW_ENTRY->getId()}" name="downloadfile" href="{$DOCUMENT_RECORD_MODEL->getDownloadFileURL()}">Download</a></li>
<li><a data-id="{$LISTVIEW_ENTRY->getId()}" name="downloadfile" href="{$DOCUMENT_RECORD_MODEL->getDownloadFileURL()}">{vtranslate('Download', $MODULE)}</a></li>
{/if}
</ul>
</span>
Expand Down

0 comments on commit 978c275

Please sign in to comment.