#74: Add cut/copy/paste/delete and batch links to the content menu bar
Add to the content menu bar the cut/copy/paste/delete actions and replace the 'Contents' content tab with a 'Batch' action in content menu. cut/copy/paste/deleteアクションを内容メニューバーに加えて、内容メニューで『目次』内容タブを『バッチ』アクションと取り替えてください。
#74: Add cut/copy/paste/delete and batch links to the content menu bar
Motivation 動機づけ
Users should not have to go to the folder_contents page each time they want to cut/copy or paste a single item.
彼らが切りたくて/コピーするか、一つのアイテムにもペーストするたびに、ユーザーは『folder_contents』ページへ行く必要はありません。
the content tab is used only when an owner/manager needs to perform actions on multiple items in a folder. It is more natural to call that action batch and to place it close to the cut/copy/paste/delete links in the content menu.
所有者/マネージャがフォルダで複数のアイテムに及ぼす働きを実行する必要がある時だけ、『内容』タブが使われます。その行動『バッチ』を呼んで、内容メニューでcut/copy/paste/delete関連の近くにそれを置くことは、より自然です。
Assumptions
見せかけ
- Bug #3653 (Contents tab is hidden when default document is set to state =
published) Must be resolved before this plip/branch can mergeable, assuming that it is now related to theBatchlink appearing in the content menu. *それが現在、内容メニューで見かけている『バッチ』関連に関連があると仮定して、バグ#3653(デフォルト文書が=が『公表しました』と述べる用意が整っているとき、目次タブは隠されます)Mustは、mergeableなこのplip/枝缶の前に解決されます。 Proposal 提案
Add actions to the content menu bar that lets the user cut/copy/paste/delete an object from any page related to that content. 行動をどんなページからでもの物がその内容と関連づけたユーザーcut/copy/paste/deleteを動かす内容メニューバーに加えてください。
In addintion, remove the content action from the content tabs and replace it by a batch link in the content menu.
addintionに、内容タブから『内容』アクションを取り除いて、内容メニューでそれを『バッチ』関連と取り替えてください。
Implementation
実施
Use of the patch written by Martin Opstad Reistadbakk (sent to plone-devel on march 2nd) マーティンオプスタReistadbakk(第2に行進の上にplone-強打に送られた)によって記述されるパッチの活用法
add i18n tags i18nタグを加えてください
In ActionTool ActionToolで
- Three actions were added under the
edit_menucategory. This is done at Plone instanciation, ported to migration script 2.1 alpha. *3つの行動は、『edit_menu』カテゴリーの下に加えられました。これはPlone instanciationでされて、2.1のアルファを移動スクリプトに運びました。 - Actions actually look from left to right because of a float:right property in the CSS. *行動は、実際にフロートのため、左から右に見えます:CSSの正常な資産。 content menu CSS will probably be rewritten so this has be kept as is for now. 内容メニューCSSは多分そう書き直されるでしょう。そして、これは今のところのように保たせられます。
In skins/plone_templates/global_contentmenu.pt 皮膚/plone_templates/global_contentmenu.ptで
- I18N is based on how content buttons are translated (for now is is a litterate expression, they should get a msgid). *I18Nは、内容ボタンが翻訳される(今のところlitterateな表現です彼らが、msgidのために得なければなりません)方法に基づきます。
- The
alert_really_deleteis translated from a python expression, as it will appear in a javascript expression for an onclick attribute of the anchor. This might not be recognized by i18ndude (to be tested) so it should be added to the manual pot (after having tried this issue) *それがアンカーのonclick特質のjavascript式で現れて、『alert_really_delete』はパイソン表現から翻訳されます。それが手動ポット(この問題をためした後に)に加えられなければならないように、これはi18ndude(テストされるために)によって認められないかもしれません - The template tests if the object is the actual view page of it's container, if yes the actions are performed against the container instead of the object itself *テンプレートは物がそれのページが容器であるという実際の見方であるかどうか調べます、可能ならば、行動は物の代わりに容器に対して実行されます