Revision a9cc182f
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
js/locale/de.js | ||
---|---|---|
1 | 1 |
namespace("kivi").setupLocale({ |
2 |
"Add function block":"Funktionsblock hinzufügen", |
|
2 | 3 |
"Add linked record":"Verknüpften Beleg hinzufügen", |
4 |
"Add section":"Abschnitt hinzufügen", |
|
5 |
"Add sub function block":"Unterfunktionsblock hinzufügen", |
|
6 |
"Add text block":"Textblock erfassen", |
|
3 | 7 |
"Are you sure?":"Sind Sie sicher?", |
4 | 8 |
"Database Connection Test":"Test der Datenbankverbindung", |
5 | 9 |
"Do you want to set the account number \"#1\" to \"#2\" and the name \"#3\" to \"#4\"?":"Soll die Kontonummer \"#1\" zu \"#2\" und den Name \"#3\" zu \"#4\" geändert werden?", |
... | ... | |
11 | 15 |
"The name must only consist of letters, numbers and underscores and start with a letter.":"Der Name darf nur aus Buchstaben (keine Umlaute), Ziffern und Unterstrichen bestehen und muss mit einem Buchstaben beginnen.", |
12 | 16 |
"The option field is empty.":"Das Optionsfeld ist leer.", |
13 | 17 |
"The selected database is still configured for client \"#1\". If you delete the database that client will stop working until you re-configure it. Do you still want to delete the database?":"Die auswählte Datenbank ist noch für Mandant \"#1\" konfiguriert. Wenn Sie die Datenbank löschen, wird der Mandanten nicht mehr funktionieren, bis er anders konfiguriert wurde. Wollen Sie die Datenbank trotzdem löschen?" |
18 |
"Copy":"Kopieren", |
|
19 |
"Delete":"Löschen", |
|
20 |
"Delete text block":"Textblock löschen", |
|
21 |
"Edit":"Bearbeiten", |
|
22 |
"Edit text block":"Textblock bearbeiten", |
|
23 |
"Paste":"Einfügen", |
|
24 |
"Toggle marker":"Markierung umschalten" |
|
14 | 25 |
}); |
js/requirement_spec.js | ||
---|---|---|
178 | 178 |
$('#text-block-' + id).show(); |
179 | 179 |
} |
180 | 180 |
|
181 |
function ask_delete_text_block(key, opt) { |
|
182 |
if (confirm(kivi.t8("Are you sure?"))) |
|
183 |
standard_text_block_ajax_call(key, opt); |
|
184 |
return true; |
|
185 |
} |
|
186 |
|
|
181 | 187 |
// -------------------------------------------------------------------------------- |
182 | 188 |
// ------------------------------ sections and items ------------------------------ |
183 | 189 |
// -------------------------------------------------------------------------------- |
... | ... | |
248 | 254 |
if (options.to_hide_if_empty && (1 == $(options.to_hide_if_empty).children().size())) |
249 | 255 |
$(options.to_hide_if_empty).hide(); |
250 | 256 |
} |
257 |
|
|
258 |
function ask_delete_item(key, opt) { |
|
259 |
if (confirm(kivi.t8("Are you sure?"))) |
|
260 |
standard_item_ajax_call(key, opt); |
|
261 |
return true; |
|
262 |
} |
|
263 |
|
|
264 |
function create_requirement_spec_context_menus() { |
|
265 |
$.contextMenu({ |
|
266 |
selector: '.text-block-context-menu', |
|
267 |
items: { |
|
268 |
add: { name: kivi.t8('Add text block'), icon: "add", callback: standard_text_block_ajax_call } |
|
269 |
, edit: { name: kivi.t8('Edit text block'), icon: "edit", callback: standard_text_block_ajax_call, disabled: disable_edit_text_block_commands } |
|
270 |
, delete: { name: kivi.t8('Delete text block'), icon: "delete", callback: ask_delete_text_block, disabled: disable_edit_text_block_commands } |
|
271 |
, sep1: "---------" |
|
272 |
, flag: { name: kivi.t8('Toggle marker'), icon: "flag", callback: standard_text_block_ajax_call, disabled: disable_edit_text_block_commands } |
|
273 |
, sep2: "---------" |
|
274 |
, copy: { name: kivi.t8('Copy'), icon: "copy", disabled: function() { return true; } } |
|
275 |
, paste: { name: kivi.t8('Paste'), icon: "paste", disabled: function() { return true; } } |
|
276 |
// , copy: { name: kivi.t8('Copy'), icon: "copy", disabled: disable_edit_text_block_commands } |
|
277 |
// , paste: { name: kivi.t8('Paste'), icon: "paste", disabled: disable_edit_text_block_commands } |
|
278 |
} |
|
279 |
}); |
|
280 |
|
|
281 |
$.contextMenu({ |
|
282 |
selector: '.section-context-menu', |
|
283 |
items: { |
|
284 |
add_section: { name: kivi.t8('Add section'), icon: "add", callback: standard_item_ajax_call } |
|
285 |
, add_function_block: { name: kivi.t8('Add function block'), icon: "add", callback: standard_item_ajax_call, disabled: disable_add_function_block_command } |
|
286 |
, sep1: "---------" |
|
287 |
, edit: { name: kivi.t8('Edit'), icon: "edit", callback: standard_item_ajax_call, disabled: disable_edit_item_commands } |
|
288 |
, delete: { name: kivi.t8('Delete'), icon: "delete", callback: ask_delete_item, disabled: disable_edit_item_commands } |
|
289 |
, sep2: "---------" |
|
290 |
, flag: { name: kivi.t8('Toggle marker'), icon: "flag", callback: standard_item_ajax_call, disabled: disable_edit_item_commands } |
|
291 |
, sep3: "---------" |
|
292 |
, copy: { name: kivi.t8('Copy'), icon: "copy", disabled: function() { return true; } } |
|
293 |
, paste: { name: kivi.t8('Paste'), icon: "paste", disabled: function() { return true; } } |
|
294 |
// , copy: { name: kivi.t8('Copy'), icon: "copy", disabled: disable_edit_item_commands } |
|
295 |
// , paste: { name: kivi.t8('Paste'), icon: "paste", disabled: disable_edit_item_commands } |
|
296 |
} |
|
297 |
}); |
|
298 |
|
|
299 |
$.contextMenu({ |
|
300 |
selector: '.function-block-context-menu,.sub-function-block-context-menu', |
|
301 |
items: { |
|
302 |
add_function_block: { name: kivi.t8('Add function block'), icon: "add", callback: standard_item_ajax_call } |
|
303 |
, add_sub_function_block: { name: kivi.t8('Add sub function block'), icon: "add", callback: standard_item_ajax_call } |
|
304 |
, sep1: "---------" |
|
305 |
, edit: { name: kivi.t8('Edit'), icon: "edit", callback: standard_item_ajax_call, disabled: disable_edit_item_commands } |
|
306 |
, delete: { name: kivi.t8('Delete'), icon: "delete", callback: ask_delete_item, disabled: disable_edit_item_commands } |
|
307 |
, sep2: "---------" |
|
308 |
, flag: { name: kivi.t8('Toggle marker'), icon: "flag", callback: standard_item_ajax_call, disabled: disable_edit_item_commands } |
|
309 |
, sep3: "---------" |
|
310 |
, copy: { name: kivi.t8('Copy'), icon: "copy", disabled: function() { return true; } } |
|
311 |
, paste: { name: kivi.t8('Paste'), icon: "paste", disabled: function() { return true; } } |
|
312 |
// , copy: { name: kivi.t8('Copy'), icon: "copy", disabled: disable_edit_item_commands } |
|
313 |
// , paste: { name: kivi.t8('Paste'), icon: "paste", disabled: disable_edit_item_commands } |
|
314 |
} |
|
315 |
}); |
|
316 |
} |
templates/webpages/requirement_spec/show.html | ||
---|---|---|
99 | 99 |
[% IF SELF.requirement_spec_item %] |
100 | 100 |
$.jstree._reference("#tree").select_node('#fb-[% SELF.requirement_spec_item.id %]', true); |
101 | 101 |
[% END %] |
102 |
}); |
|
103 |
|
|
104 |
function ask_delete_text_block(key, opt) { |
|
105 |
if (confirm("[% LxERP.t8("Are you sure?") %]")) |
|
106 |
standard_text_block_ajax_call(key, opt); |
|
107 |
return true; |
|
108 |
} |
|
109 |
|
|
110 |
function ask_delete_item(key, opt) { |
|
111 |
if (confirm("[% LxERP.t8("Are you sure?") %]")) |
|
112 |
standard_item_ajax_call(key, opt); |
|
113 |
return true; |
|
114 |
} |
|
115 |
|
|
116 |
$(function(){ |
|
117 |
$.contextMenu({ |
|
118 |
selector: '.text-block-context-menu', |
|
119 |
items: { |
|
120 |
add: { name: "[% LxERP.t8('Add text block') %]", icon: "add", callback: standard_text_block_ajax_call }, |
|
121 |
edit: { name: "[% LxERP.t8('Edit text block') %]", icon: "edit", callback: standard_text_block_ajax_call, disabled: disable_edit_text_block_commands }, |
|
122 |
delete: { name: "[% LxERP.t8('Delete text block') %]", icon: "delete", callback: ask_delete_text_block, disabled: disable_edit_text_block_commands }, |
|
123 |
sep1: "---------", |
|
124 |
flag: { name: "[% LxERP.t8('Toggle marker') %]", icon: "flag", callback: standard_text_block_ajax_call, disabled: disable_edit_text_block_commands }, |
|
125 |
sep2: "---------", |
|
126 |
copy: { name: "[% LxERP.t8('Copy') %]", icon: "copy", disabled: disable_edit_text_block_commands }, |
|
127 |
paste: { name: "[% LxERP.t8('Paste') %]", icon: "paste", disabled: disable_edit_text_block_commands } |
|
128 |
} |
|
129 |
}); |
|
130 |
|
|
131 |
|
|
132 |
$.contextMenu({ |
|
133 |
selector: '.section-context-menu', |
|
134 |
items: { |
|
135 |
add_section: { name: "[% LxERP.t8('Add section') %]", icon: "add", callback: standard_item_ajax_call }, |
|
136 |
add_function_block: { name: "[% LxERP.t8('Add function block') %]", icon: "add", callback: standard_item_ajax_call, disabled: disable_add_function_block_command }, |
|
137 |
sep1: "---------", |
|
138 |
edit: { name: "[% LxERP.t8('Edit') %]", icon: "edit", callback: standard_item_ajax_call, disabled: disable_edit_item_commands }, |
|
139 |
delete: { name: "[% LxERP.t8('Delete') %]", icon: "delete", callback: ask_delete_item, disabled: disable_edit_item_commands }, |
|
140 |
sep2: "---------", |
|
141 |
flag: { name: "[% LxERP.t8('Toggle marker') %]", icon: "flag", callback: standard_item_ajax_call, disabled: disable_edit_item_commands }, |
|
142 |
sep3: "---------", |
|
143 |
copy: { name: "[% LxERP.t8('Copy') %]", icon: "copy", disabled: disable_edit_item_commands }, |
|
144 |
paste: { name: "[% LxERP.t8('Paste') %]", icon: "paste", disabled: disable_edit_item_commands } |
|
145 |
} |
|
146 |
}); |
|
147 | 102 |
|
148 |
$.contextMenu({ |
|
149 |
selector: '.function-block-context-menu,.sub-function-block-context-menu', |
|
150 |
items: { |
|
151 |
add_function_block: { name: "[% LxERP.t8('Add function block') %]", icon: "add", callback: standard_item_ajax_call }, |
|
152 |
add_sub_function_block: { name: "[% LxERP.t8('Add sub function block') %]", icon: "add", callback: standard_item_ajax_call }, |
|
153 |
sep1: "---------", |
|
154 |
edit: { name: "[% LxERP.t8('Edit') %]", icon: "edit", callback: standard_item_ajax_call, disabled: disable_edit_item_commands }, |
|
155 |
delete: { name: "[% LxERP.t8('Delete') %]", icon: "delete", callback: ask_delete_item, disabled: disable_edit_item_commands }, |
|
156 |
sep2: "---------", |
|
157 |
flag: { name: "[% LxERP.t8('Toggle marker') %]", icon: "flag", callback: standard_item_ajax_call, disabled: disable_edit_item_commands }, |
|
158 |
sep3: "---------", |
|
159 |
copy: { name: "[% LxERP.t8('Copy') %]", icon: "copy", disabled: disable_edit_item_commands }, |
|
160 |
paste: { name: "[% LxERP.t8('Paste') %]", icon: "paste", disabled: disable_edit_item_commands } |
|
161 |
} |
|
162 |
}); |
|
103 |
create_requirement_spec_context_menus(); |
|
163 | 104 |
}); |
164 | 105 |
|
165 | 106 |
--> |
Auch abrufbar als: Unified diff
Pflichtenhefte: Statischen JavaScript-Code nach js/requirement_spec.js verschieben