diff --git a/addons/web/static/lib/qunit/qunit.css b/addons/web/static/lib/qunit/qunit.css index 58101ea34ce..257b224ff44 100644 --- a/addons/web/static/lib/qunit/qunit.css +++ b/addons/web/static/lib/qunit/qunit.css @@ -1,5 +1,5 @@ /** - * QUnit v1.4.0pre - A JavaScript Unit Testing Framework + * QUnit v1.9.0 - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * @@ -38,10 +38,10 @@ line-height: 1em; font-weight: normal; - border-radius: 15px 15px 0 0; - -moz-border-radius: 15px 15px 0 0; - -webkit-border-top-right-radius: 15px; - -webkit-border-top-left-radius: 15px; + border-radius: 5px 5px 0 0; + -moz-border-radius: 5px 5px 0 0; + -webkit-border-top-right-radius: 5px; + -webkit-border-top-left-radius: 5px; } #qunit-header a { @@ -54,8 +54,9 @@ color: #fff; } -#qunit-header label { +#qunit-testrunner-toolbar label { display: inline-block; + padding: 0 .5em 0 .1em; } #qunit-banner { @@ -112,13 +113,9 @@ background-color: #fff; - border-radius: 15px; - -moz-border-radius: 15px; - -webkit-border-radius: 15px; - - box-shadow: inset 0px 2px 13px #999; - -moz-box-shadow: inset 0px 2px 13px #999; - -webkit-box-shadow: inset 0px 2px 13px #999; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; } #qunit-tests table { @@ -161,8 +158,7 @@ #qunit-tests b.failed { color: #710909; } #qunit-tests li li { - margin: 0.5em; - padding: 0.4em 0.5em 0.4em 0.5em; + padding: 5px; background-color: #fff; border-bottom: none; list-style-position: inside; @@ -171,9 +167,9 @@ /*** Passing Styles */ #qunit-tests li li.pass { - color: #5E740B; + color: #3c510c; background-color: #fff; - border-left: 26px solid #C6E746; + border-left: 10px solid #C6E746; } #qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; } @@ -189,15 +185,15 @@ #qunit-tests li li.fail { color: #710909; background-color: #fff; - border-left: 26px solid #EE5757; + border-left: 10px solid #EE5757; white-space: pre; } #qunit-tests > li:last-child { - border-radius: 0 0 15px 15px; - -moz-border-radius: 0 0 15px 15px; - -webkit-border-bottom-right-radius: 15px; - -webkit-border-bottom-left-radius: 15px; + border-radius: 0 0 5px 5px; + -moz-border-radius: 0 0 5px 5px; + -webkit-border-bottom-right-radius: 5px; + -webkit-border-bottom-left-radius: 5px; } #qunit-tests .fail { color: #000000; background-color: #EE5757; } @@ -220,6 +216,9 @@ border-bottom: 1px solid white; } +#qunit-testresult .module-name { + font-weight: bold; +} /** Fixture */ diff --git a/addons/web/static/lib/qunit/qunit.js b/addons/web/static/lib/qunit/qunit.js index b71381313c7..65625336453 100644 --- a/addons/web/static/lib/qunit/qunit.js +++ b/addons/web/static/lib/qunit/qunit.js @@ -1,5 +1,5 @@ /** - * QUnit v1.4.0pre - A JavaScript Unit Testing Framework + * QUnit v1.9.0 - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * @@ -8,75 +8,89 @@ * or GPL (GPL-LICENSE.txt) licenses. */ -(function(window) { +(function( window ) { -var defined = { +var QUnit, + config, + onErrorFnPrev, + testId = 0, + fileName = (sourceFromStacktrace( 0 ) || "" ).replace(/(:\d+)+\)?/, "").replace(/.+\//, ""), + toString = Object.prototype.toString, + hasOwn = Object.prototype.hasOwnProperty, + defined = { setTimeout: typeof window.setTimeout !== "undefined", sessionStorage: (function() { var x = "qunit-test-string"; try { - sessionStorage.setItem(x, x); - sessionStorage.removeItem(x); + sessionStorage.setItem( x, x ); + sessionStorage.removeItem( x ); return true; - } catch(e) { + } catch( e ) { return false; } - })() + }()) }; -var testId = 0, - toString = Object.prototype.toString, - hasOwn = Object.prototype.hasOwnProperty; - -var Test = function(name, testName, expected, async, callback) { - this.name = name; - this.testName = testName; - this.expected = expected; - this.async = async; - this.callback = callback; +function Test( settings ) { + extend( this, settings ); this.assertions = []; -}; + this.testNumber = ++Test.count; +} + +Test.count = 0; + Test.prototype = { init: function() { - var tests = id("qunit-tests"); - if (tests) { - var b = document.createElement("strong"); - b.innerHTML = "Running " + this.name; - var li = document.createElement("li"); - li.appendChild( b ); - li.className = "running"; - li.id = this.id = "test-output" + testId++; + var a, b, li, + tests = id( "qunit-tests" ); + + if ( tests ) { + b = document.createElement( "strong" ); + b.innerHTML = this.name; + + // `a` initialized at top of scope + a = document.createElement( "a" ); + a.innerHTML = "Rerun"; + a.href = QUnit.url({ testNumber: this.testNumber }); + + li = document.createElement( "li" ); + li.appendChild( b ); + li.appendChild( a ); + li.className = "running"; + li.id = this.id = "qunit-test-output" + testId++; + tests.appendChild( li ); } }, setup: function() { - if (this.module != config.previousModule) { + if ( this.module !== config.previousModule ) { if ( config.previousModule ) { - runLoggingCallbacks('moduleDone', QUnit, { + runLoggingCallbacks( "moduleDone", QUnit, { name: config.previousModule, failed: config.moduleStats.bad, passed: config.moduleStats.all - config.moduleStats.bad, total: config.moduleStats.all - } ); + }); } config.previousModule = this.module; config.moduleStats = { all: 0, bad: 0 }; - runLoggingCallbacks( 'moduleStart', QUnit, { + runLoggingCallbacks( "moduleStart", QUnit, { name: this.module - } ); - } else if (config.autorun) { - runLoggingCallbacks( 'moduleStart', QUnit, { + }); + } else if ( config.autorun ) { + runLoggingCallbacks( "moduleStart", QUnit, { name: this.module - } ); + }); } config.current = this; + this.testEnvironment = extend({ setup: function() {}, teardown: function() {} - }, this.moduleTestEnvironment); + }, this.moduleTestEnvironment ); - runLoggingCallbacks( 'testStart', QUnit, { + runLoggingCallbacks( "testStart", QUnit, { name: this.testName, module: this.module }); @@ -85,31 +99,41 @@ Test.prototype = { // TODO why?? QUnit.current_testEnvironment = this.testEnvironment; + if ( !config.pollution ) { + saveGlobal(); + } + if ( config.notrycatch ) { + this.testEnvironment.setup.call( this.testEnvironment ); + return; + } try { - if ( !config.pollution ) { - saveGlobal(); - } - - this.testEnvironment.setup.call(this.testEnvironment); - } catch(e) { - QUnit.ok( false, "Setup failed on " + this.testName + ": " + e.message ); + this.testEnvironment.setup.call( this.testEnvironment ); + } catch( e ) { + QUnit.pushFailure( "Setup failed on " + this.testName + ": " + e.message, extractStacktrace( e, 1 ) ); } }, run: function() { config.current = this; + + var running = id( "qunit-testresult" ); + + if ( running ) { + running.innerHTML = "Running:
" + this.name; + } + if ( this.async ) { QUnit.stop(); } if ( config.notrycatch ) { - this.callback.call(this.testEnvironment); + this.callback.call( this.testEnvironment, QUnit.assert ); return; } + try { - this.callback.call(this.testEnvironment); - } catch(e) { - fail("Test " + this.testName + " died, exception and test follows", e, this.callback); - QUnit.ok( false, "Died on test #" + (this.assertions.length + 1) + ": " + e.message + " - " + QUnit.jsDump.parse(e) ); + this.callback.call( this.testEnvironment, QUnit.assert ); + } catch( e ) { + QUnit.pushFailure( "Died on test #" + (this.assertions.length + 1) + " " + this.stack + ": " + e.message, extractStacktrace( e, 0 ) ); // else next test will carry the responsibility saveGlobal(); @@ -121,34 +145,46 @@ Test.prototype = { }, teardown: function() { config.current = this; - try { - this.testEnvironment.teardown.call(this.testEnvironment); - checkPollution(); - } catch(e) { - QUnit.ok( false, "Teardown failed on " + this.testName + ": " + e.message ); + if ( config.notrycatch ) { + this.testEnvironment.teardown.call( this.testEnvironment ); + return; + } else { + try { + this.testEnvironment.teardown.call( this.testEnvironment ); + } catch( e ) { + QUnit.pushFailure( "Teardown failed on " + this.testName + ": " + e.message, extractStacktrace( e, 1 ) ); + } } + checkPollution(); }, finish: function() { config.current = this; - if ( this.expected != null && this.expected != this.assertions.length ) { - QUnit.ok( false, "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run" ); + if ( config.requireExpects && this.expected == null ) { + QUnit.pushFailure( "Expected number of assertions to be defined, but expect() was not called.", this.stack ); + } else if ( this.expected != null && this.expected != this.assertions.length ) { + QUnit.pushFailure( "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run", this.stack ); + } else if ( this.expected == null && !this.assertions.length ) { + QUnit.pushFailure( "Expected at least one assertion, but none were run - call expect(0) to accept zero assertions.", this.stack ); } - var good = 0, bad = 0, - tests = id("qunit-tests"); + var assertion, a, b, i, li, ol, + test = this, + good = 0, + bad = 0, + tests = id( "qunit-tests" ); config.stats.all += this.assertions.length; config.moduleStats.all += this.assertions.length; if ( tests ) { - var ol = document.createElement("ol"); + ol = document.createElement( "ol" ); - for ( var i = 0; i < this.assertions.length; i++ ) { - var assertion = this.assertions[i]; + for ( i = 0; i < this.assertions.length; i++ ) { + assertion = this.assertions[i]; - var li = document.createElement("li"); + li = document.createElement( "li" ); li.className = assertion.result ? "pass" : "fail"; - li.innerHTML = assertion.message || (assertion.result ? "okay" : "failed"); + li.innerHTML = assertion.message || ( assertion.result ? "okay" : "failed" ); ol.appendChild( li ); if ( assertion.result ) { @@ -162,49 +198,48 @@ Test.prototype = { // store result when possible if ( QUnit.config.reorder && defined.sessionStorage ) { - if (bad) { - sessionStorage.setItem("qunit-" + this.module + "-" + this.testName, bad); + if ( bad ) { + sessionStorage.setItem( "qunit-test-" + this.module + "-" + this.testName, bad ); } else { - sessionStorage.removeItem("qunit-" + this.module + "-" + this.testName); + sessionStorage.removeItem( "qunit-test-" + this.module + "-" + this.testName ); } } - if (bad == 0) { + if ( bad === 0 ) { ol.style.display = "none"; } - var b = document.createElement("strong"); + // `b` initialized at top of scope + b = document.createElement( "strong" ); b.innerHTML = this.name + " (" + bad + ", " + good + ", " + this.assertions.length + ")"; - var a = document.createElement("a"); - a.innerHTML = "Rerun"; - a.href = QUnit.url({ filter: getText([b]).replace(/\([^)]+\)$/, "").replace(/(^\s*|\s*$)/g, "") }); - addEvent(b, "click", function() { var next = b.nextSibling.nextSibling, display = next.style.display; next.style.display = display === "none" ? "block" : "none"; }); - addEvent(b, "dblclick", function(e) { + addEvent(b, "dblclick", function( e ) { var target = e && e.target ? e.target : window.event.srcElement; if ( target.nodeName.toLowerCase() == "span" || target.nodeName.toLowerCase() == "b" ) { target = target.parentNode; } if ( window.location && target.nodeName.toLowerCase() === "strong" ) { - window.location = QUnit.url({ filter: getText([target]).replace(/\([^)]+\)$/, "").replace(/(^\s*|\s*$)/g, "") }); + window.location = QUnit.url({ testNumber: test.testNumber }); } }); - var li = id(this.id); + // `li` initialized at top of scope + li = id( this.id ); li.className = bad ? "fail" : "pass"; li.removeChild( li.firstChild ); + a = li.firstChild; li.appendChild( b ); - li.appendChild( a ); + li.appendChild ( a ); li.appendChild( ol ); } else { - for ( var i = 0; i < this.assertions.length; i++ ) { + for ( i = 0; i < this.assertions.length; i++ ) { if ( !this.assertions[i].result ) { bad++; config.stats.bad++; @@ -213,23 +248,23 @@ Test.prototype = { } } - try { - QUnit.reset(); - } catch(e) { - fail("reset() failed, following Test " + this.testName + ", exception and reset fn follows", e, QUnit.reset); - } - - runLoggingCallbacks( 'testDone', QUnit, { + runLoggingCallbacks( "testDone", QUnit, { name: this.testName, module: this.module, failed: bad, passed: this.assertions.length - bad, total: this.assertions.length - } ); + }); + + QUnit.reset(); + + config.current = undefined; }, queue: function() { - var test = this; + var bad, + test = this; + synchronize(function() { test.init(); }); @@ -248,36 +283,42 @@ Test.prototype = { test.finish(); }); } + + // `bad` initialized at top of scope // defer when previous test run passed, if storage is available - var bad = QUnit.config.reorder && defined.sessionStorage && +sessionStorage.getItem("qunit-" + this.module + "-" + this.testName); - if (bad) { + bad = QUnit.config.reorder && defined.sessionStorage && + +sessionStorage.getItem( "qunit-test-" + this.module + "-" + this.testName ); + + if ( bad ) { run(); } else { - synchronize(run, true); - }; + synchronize( run, true ); + } } - }; -var QUnit = { +// Root QUnit object. +// `QUnit` initialized at top of scope +QUnit = { // call on start of module test to prepend name to all tests - module: function(name, testEnvironment) { + module: function( name, testEnvironment ) { config.currentModule = name; config.currentModuleTestEnviroment = testEnvironment; }, - asyncTest: function(testName, expected, callback) { + asyncTest: function( testName, expected, callback ) { if ( arguments.length === 2 ) { callback = expected; expected = null; } - QUnit.test(testName, expected, callback, true); + QUnit.test( testName, expected, callback, true ); }, - test: function(testName, expected, callback, async) { - var name = '' + escapeInnerText(testName) + ''; + test: function( testName, expected, callback, async ) { + var test, + name = "" + escapeInnerText( testName ) + ""; if ( arguments.length === 2 ) { callback = expected; @@ -285,180 +326,245 @@ var QUnit = { } if ( config.currentModule ) { - name = '' + config.currentModule + ": " + name; + name = "" + config.currentModule + ": " + name; } - if ( !validTest(config.currentModule + ": " + testName) ) { + test = new Test({ + name: name, + testName: testName, + expected: expected, + async: async, + callback: callback, + module: config.currentModule, + moduleTestEnvironment: config.currentModuleTestEnviroment, + stack: sourceFromStacktrace( 2 ) + }); + + if ( !validTest( test ) ) { return; } - var test = new Test(name, testName, expected, async, callback); - test.module = config.currentModule; - test.moduleTestEnvironment = config.currentModuleTestEnviroment; test.queue(); }, - /** - * Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through. - */ - expect: function(asserts) { + // Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through. + expect: function( asserts ) { config.current.expected = asserts; }, + start: function( count ) { + config.semaphore -= count || 1; + // don't start until equal number of stop-calls + if ( config.semaphore > 0 ) { + return; + } + // ignore if start is called more often then stop + if ( config.semaphore < 0 ) { + config.semaphore = 0; + } + // A slight delay, to avoid any current callbacks + if ( defined.setTimeout ) { + window.setTimeout(function() { + if ( config.semaphore > 0 ) { + return; + } + if ( config.timeout ) { + clearTimeout( config.timeout ); + } + + config.blocking = false; + process( true ); + }, 13); + } else { + config.blocking = false; + process( true ); + } + }, + + stop: function( count ) { + config.semaphore += count || 1; + config.blocking = true; + + if ( config.testTimeout && defined.setTimeout ) { + clearTimeout( config.timeout ); + config.timeout = window.setTimeout(function() { + QUnit.ok( false, "Test timed out" ); + config.semaphore = 1; + QUnit.start(); + }, config.testTimeout ); + } + } +}; + +// Asssert helpers +// All of these must call either QUnit.push() or manually do: +// - runLoggingCallbacks( "log", .. ); +// - config.current.assertions.push({ .. }); +QUnit.assert = { /** - * Asserts true. + * Asserts rough true-ish result. + * @name ok + * @function * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" ); */ - ok: function(a, msg) { - if (!config.current) { - throw new Error("ok() assertion outside test context, was " + sourceFromStacktrace(2)); + ok: function( result, msg ) { + if ( !config.current ) { + throw new Error( "ok() assertion outside test context, was " + sourceFromStacktrace(2) ); } - a = !!a; - var details = { - result: a, - message: msg - }; - msg = escapeInnerText(msg); - runLoggingCallbacks( 'log', QUnit, details ); + result = !!result; + + var source, + details = { + result: result, + message: msg + }; + + msg = escapeInnerText( msg || (result ? "okay" : "failed" ) ); + msg = "" + msg + ""; + + if ( !result ) { + source = sourceFromStacktrace( 2 ); + if ( source ) { + details.source = source; + msg += "
Source:
" + escapeInnerText( source ) + "
"; + } + } + runLoggingCallbacks( "log", QUnit, details ); config.current.assertions.push({ - result: a, + result: result, message: msg }); }, /** - * Checks that the first two arguments are equal, with an optional message. + * Assert that the first two arguments are equal, with an optional message. * Prints out both actual and expected values. - * - * Prefered to ok( actual == expected, message ) - * - * @example equal( format("Received {0} bytes.", 2), "Received 2 bytes." ); - * - * @param Object actual - * @param Object expected - * @param String message (optional) + * @name equal + * @function + * @example equal( format( "Received {0} bytes.", 2), "Received 2 bytes.", "format() replaces {0} with next argument" ); */ - equal: function(actual, expected, message) { - QUnit.push(expected == actual, actual, expected, message); + equal: function( actual, expected, message ) { + QUnit.push( expected == actual, actual, expected, message ); }, - notEqual: function(actual, expected, message) { - QUnit.push(expected != actual, actual, expected, message); + /** + * @name notEqual + * @function + */ + notEqual: function( actual, expected, message ) { + QUnit.push( expected != actual, actual, expected, message ); }, - deepEqual: function(actual, expected, message) { - QUnit.push(QUnit.equiv(actual, expected), actual, expected, message); + /** + * @name deepEqual + * @function + */ + deepEqual: function( actual, expected, message ) { + QUnit.push( QUnit.equiv(actual, expected), actual, expected, message ); }, - notDeepEqual: function(actual, expected, message) { - QUnit.push(!QUnit.equiv(actual, expected), actual, expected, message); + /** + * @name notDeepEqual + * @function + */ + notDeepEqual: function( actual, expected, message ) { + QUnit.push( !QUnit.equiv(actual, expected), actual, expected, message ); }, - strictEqual: function(actual, expected, message) { - QUnit.push(expected === actual, actual, expected, message); + /** + * @name strictEqual + * @function + */ + strictEqual: function( actual, expected, message ) { + QUnit.push( expected === actual, actual, expected, message ); }, - notStrictEqual: function(actual, expected, message) { - QUnit.push(expected !== actual, actual, expected, message); + /** + * @name notStrictEqual + * @function + */ + notStrictEqual: function( actual, expected, message ) { + QUnit.push( expected !== actual, actual, expected, message ); }, - raises: function(block, expected, message) { - var actual, ok = false; + throws: function( block, expected, message ) { + var actual, + ok = false; - if (typeof expected === 'string') { + // 'expected' is optional + if ( typeof expected === "string" ) { message = expected; expected = null; } + config.current.ignoreGlobalErrors = true; try { - block(); + block.call( config.current.testEnvironment ); } catch (e) { actual = e; } + config.current.ignoreGlobalErrors = false; - if (actual) { + if ( actual ) { // we don't want to validate thrown error - if (!expected) { + if ( !expected ) { ok = true; // expected is a regexp - } else if (QUnit.objectType(expected) === "regexp") { - ok = expected.test(actual); + } else if ( QUnit.objectType( expected ) === "regexp" ) { + ok = expected.test( actual ); // expected is a constructor - } else if (actual instanceof expected) { + } else if ( actual instanceof expected ) { ok = true; // expected is a validation function which returns true is validation passed - } else if (expected.call({}, actual) === true) { + } else if ( expected.call( {}, actual ) === true ) { ok = true; } - } - QUnit.ok(ok, message); - }, - - start: function(count) { - config.semaphore -= count || 1; - if (config.semaphore > 0) { - // don't start until equal number of stop-calls - return; - } - if (config.semaphore < 0) { - // ignore if start is called more often then stop - config.semaphore = 0; - } - // A slight delay, to avoid any current callbacks - if ( defined.setTimeout ) { - window.setTimeout(function() { - if (config.semaphore > 0) { - return; - } - if ( config.timeout ) { - clearTimeout(config.timeout); - } - - config.blocking = false; - process(true); - }, 13); + QUnit.push( ok, actual, null, message ); } else { - config.blocking = false; - process(true); - } - }, - - stop: function(count) { - config.semaphore += count || 1; - config.blocking = true; - - if ( config.testTimeout && defined.setTimeout ) { - clearTimeout(config.timeout); - config.timeout = window.setTimeout(function() { - QUnit.ok( false, "Test timed out" ); - config.semaphore = 1; - QUnit.start(); - }, config.testTimeout); + QUnit.pushFailure( message, null, 'No exception was thrown.' ); } } }; -//We want access to the constructor's prototype -(function() { - function F(){}; - F.prototype = QUnit; - QUnit = new F(); - //Make F QUnit's constructor so that we can add to the prototype later - QUnit.constructor = F; -})(); +/** + * @deprecate since 1.8.0 + * Kept assertion helpers in root for backwards compatibility + */ +extend( QUnit, QUnit.assert ); -// deprecated; still export them to window to provide clear error messages -// next step: remove entirely +/** + * @deprecated since 1.9.0 + * Kept global "raises()" for backwards compatibility + */ +QUnit.raises = QUnit.assert.throws; + +/** + * @deprecated since 1.0.0, replaced with error pushes since 1.3.0 + * Kept to avoid TypeErrors for undefined methods. + */ QUnit.equals = function() { - throw new Error("QUnit.equals has been deprecated since 2009 (e88049a0), use QUnit.equal instead"); + QUnit.push( false, false, false, "QUnit.equals has been deprecated since 2009 (e88049a0), use QUnit.equal instead" ); }; QUnit.same = function() { - throw new Error("QUnit.same has been deprecated since 2009 (e88049a0), use QUnit.deepEqual instead"); + QUnit.push( false, false, false, "QUnit.same has been deprecated since 2009 (e88049a0), use QUnit.deepEqual instead" ); }; -// Maintain internal state -var config = { +// We want access to the constructor's prototype +(function() { + function F() {} + F.prototype = QUnit; + QUnit = new F(); + // Make F QUnit's constructor so that we can add to the prototype later + QUnit.constructor = F; +}()); + +/** + * Config object: Maintain internal state + * Later exposed as QUnit.config + * `config` initialized at top of scope + */ +config = { // The queue of tests to run queue: [], @@ -476,9 +582,25 @@ var config = { // by default, modify document.title when suite is done altertitle: true, - urlConfig: ['noglobals', 'notrycatch'], + // when enabled, all tests must call expect() + requireExpects: false, - //logging callback queues + // add checkboxes that are persisted in the query-string + // when enabled, the id is set to `true` as a `QUnit.config` property + urlConfig: [ + { + id: "noglobals", + label: "Check for Globals", + tooltip: "Enabling this will test if any test introduces new properties on the `window` object. Stored as query-strings." + }, + { + id: "notrycatch", + label: "No try-catch", + tooltip: "Enabling this will run tests outside of a try-catch block. Makes debugging exceptions in IE reasonable. Stored as query-strings." + } + ], + + // logging callback queues begin: [], done: [], log: [], @@ -488,16 +610,17 @@ var config = { moduleDone: [] }; -// Load paramaters +// Initialize more QUnit.config and QUnit.urlParams (function() { - var location = window.location || { search: "", protocol: "file:" }, + var i, + location = window.location || { search: "", protocol: "file:" }, params = location.search.slice( 1 ).split( "&" ), length = params.length, urlParams = {}, current; if ( params[ 0 ] ) { - for ( var i = 0; i < length; i++ ) { + for ( i = 0; i < length; i++ ) { current = params[ i ].split( "=" ); current[ 0 ] = decodeURIComponent( current[ 0 ] ); // allow just a key to turn on a flag, e.g., test.html?noglobals @@ -507,31 +630,39 @@ var config = { } QUnit.urlParams = urlParams; + + // String search anywhere in moduleName+testName config.filter = urlParams.filter; - // Figure out if we're running the tests from a server or not - QUnit.isLocal = !!(location.protocol === 'file:'); -})(); + // Exact match of the module name + config.module = urlParams.module; -// Expose the API as global variables, unless an 'exports' -// object exists, in that case we assume we're in CommonJS -if ( typeof exports === "undefined" || typeof require === "undefined" ) { - extend(window, QUnit); + config.testNumber = parseInt( urlParams.testNumber, 10 ) || null; + + // Figure out if we're running the tests from a server or not + QUnit.isLocal = location.protocol === "file:"; +}()); + +// Export global variables, unless an 'exports' object exists, +// in that case we assume we're in CommonJS (dealt with on the bottom of the script) +if ( typeof exports === "undefined" ) { + extend( window, QUnit ); + + // Expose QUnit object window.QUnit = QUnit; -} else { - module.exports = QUnit; } -// define these after exposing globals to keep them in these QUnit namespace only -extend(QUnit, { +// Extend QUnit object, +// these after set here because they should not be exposed as global functions +extend( QUnit, { config: config, // Initialize the configuration options init: function() { - extend(config, { + extend( config, { stats: { all: 0, bad: 0 }, moduleStats: { all: 0, bad: 0 }, - started: +new Date, + started: +new Date(), updateRate: 1000, blocking: false, autostart: true, @@ -541,19 +672,21 @@ extend(QUnit, { semaphore: 0 }); - var qunit = id( "qunit" ); + var tests, banner, result, + qunit = id( "qunit" ); + if ( qunit ) { qunit.innerHTML = - '

' + escapeInnerText( document.title ) + '

' + - '

' + - '
' + - '

' + - '
    '; + "

    " + escapeInnerText( document.title ) + "

    " + + "

    " + + "
    " + + "

    " + + "
      "; } - var tests = id( "qunit-tests" ), - banner = id( "qunit-banner" ), - result = id( "qunit-testresult" ); + tests = id( "qunit-tests" ); + banner = id( "qunit-banner" ); + result = id( "qunit-testresult" ); if ( tests ) { tests.innerHTML = ""; @@ -572,43 +705,36 @@ extend(QUnit, { result.id = "qunit-testresult"; result.className = "result"; tests.parentNode.insertBefore( result, tests ); - result.innerHTML = 'Running...
       '; + result.innerHTML = "Running...
       "; } }, - /** - * Resets the test setup. Useful for tests that modify the DOM. - * - * If jQuery is available, uses jQuery's replaceWith(), otherwise use replaceChild - */ + // Resets the test setup. Useful for tests that modify the DOM. + // If jQuery is available, uses jQuery's html(), otherwise just innerHTML. reset: function() { - var main = id( 'qunit-fixture' ); - if ( main ) { - if ( window.jQuery ) { - jQuery( main ).replaceWith( config.fixture.cloneNode(true) ); - } else { - main.parentNode.replaceChild(config.fixture.cloneNode(true), main); + var fixture; + + if ( window.jQuery ) { + jQuery( "#qunit-fixture" ).html( config.fixture ); + } else { + fixture = id( "qunit-fixture" ); + if ( fixture ) { + fixture.innerHTML = config.fixture; } } }, - /** - * Trigger an event on an element. - * - * @example triggerEvent( document.body, "click" ); - * - * @param DOMElement elem - * @param String type - */ + // Trigger an event on an element. + // @example triggerEvent( document.body, "click" ); triggerEvent: function( elem, type, event ) { if ( document.createEvent ) { - event = document.createEvent("MouseEvents"); + event = document.createEvent( "MouseEvents" ); event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView, 0, 0, 0, 0, 0, false, false, false, false, 0, null); - elem.dispatchEvent( event ); + elem.dispatchEvent( event ); } else if ( elem.fireEvent ) { - elem.fireEvent("on"+type); + elem.fireEvent( "on" + type ); } }, @@ -618,69 +744,74 @@ extend(QUnit, { }, objectType: function( obj ) { - if (typeof obj === "undefined") { + if ( typeof obj === "undefined" ) { return "undefined"; - // consider: typeof null === object } - if (obj === null) { + if ( obj === null ) { return "null"; } - var type = toString.call( obj ).match(/^\[object\s(.*)\]$/)[1] || ''; + var type = toString.call( obj ).match(/^\[object\s(.*)\]$/)[1] || ""; - switch (type) { - case 'Number': - if (isNaN(obj)) { - return "nan"; - } else { - return "number"; - } - case 'String': - case 'Boolean': - case 'Array': - case 'Date': - case 'RegExp': - case 'Function': - return type.toLowerCase(); + switch ( type ) { + case "Number": + if ( isNaN(obj) ) { + return "nan"; + } + return "number"; + case "String": + case "Boolean": + case "Array": + case "Date": + case "RegExp": + case "Function": + return type.toLowerCase(); } - if (typeof obj === "object") { - return "object"; + if ( typeof obj === "object" ) { + return "object"; } return undefined; }, - push: function(result, actual, expected, message) { - if (!config.current) { - throw new Error("assertion outside test context, was " + sourceFromStacktrace()); + push: function( result, actual, expected, message ) { + if ( !config.current ) { + throw new Error( "assertion outside test context, was " + sourceFromStacktrace() ); } - var details = { - result: result, - message: message, - actual: actual, - expected: expected - }; - message = escapeInnerText(message) || (result ? "okay" : "failed"); - message = '' + message + ""; - var output = message; - if (!result) { - expected = escapeInnerText(QUnit.jsDump.parse(expected)); - actual = escapeInnerText(QUnit.jsDump.parse(actual)); - output += ''; - if (actual != expected) { - output += ''; - output += ''; + var output, source, + details = { + result: result, + message: message, + actual: actual, + expected: expected + }; + + message = escapeInnerText( message ) || ( result ? "okay" : "failed" ); + message = "" + message + ""; + output = message; + + if ( !result ) { + expected = escapeInnerText( QUnit.jsDump.parse(expected) ); + actual = escapeInnerText( QUnit.jsDump.parse(actual) ); + output += "
      Expected:
      ' + expected + '
      Result:
      ' + actual + '
      Diff:
      ' + QUnit.diff(expected, actual) +'
      "; + + if ( actual != expected ) { + output += ""; + output += ""; } - var source = sourceFromStacktrace(); - if (source) { + + source = sourceFromStacktrace(); + + if ( source ) { details.source = source; - output += ''; + output += ""; } + output += "
      Expected:
      " + expected + "
      Result:
      " + actual + "
      Diff:
      " + QUnit.diff( expected, actual ) + "
      Source:
      ' + escapeInnerText(source) + '
      Source:
      " + escapeInnerText( source ) + "
      "; } - runLoggingCallbacks( 'log', QUnit, details ); + runLoggingCallbacks( "log", QUnit, details ); config.current.assertions.push({ result: !!result, @@ -688,10 +819,47 @@ extend(QUnit, { }); }, + pushFailure: function( message, source, actual ) { + if ( !config.current ) { + throw new Error( "pushFailure() assertion outside test context, was " + sourceFromStacktrace(2) ); + } + + var output, + details = { + result: false, + message: message + }; + + message = escapeInnerText( message ) || "error"; + message = "" + message + ""; + output = message; + + output += ""; + + if ( actual ) { + output += ""; + } + + if ( source ) { + details.source = source; + output += ""; + } + + output += "
      Result:
      " + escapeInnerText( actual ) + "
      Source:
      " + escapeInnerText( source ) + "
      "; + + runLoggingCallbacks( "log", QUnit, details ); + + config.current.assertions.push({ + result: false, + message: output + }); + }, + url: function( params ) { params = extend( extend( {}, QUnit.urlParams ), params ); - var querystring = "?", - key; + var key, + querystring = "?"; + for ( key in params ) { if ( !hasOwn.call( params, key ) ) { continue; @@ -705,27 +873,39 @@ extend(QUnit, { extend: extend, id: id, addEvent: addEvent + // load, equiv, jsDump, diff: Attached later }); -//QUnit.constructor is set to the empty F() above so that we can add to it's prototype later -//Doing this allows us to tell if the following methods have been overwritten on the actual -//QUnit object, which is a deprecated way of using the callbacks. -extend(QUnit.constructor.prototype, { +/** + * @deprecated: Created for backwards compatibility with test runner that set the hook function + * into QUnit.{hook}, instead of invoking it and passing the hook function. + * QUnit.constructor is set to the empty F() above so that we can add to it's prototype here. + * Doing this allows us to tell if the following methods have been overwritten on the actual + * QUnit object. + */ +extend( QUnit.constructor.prototype, { + // Logging callbacks; all receive a single argument with the listed properties // run test/logs.html for any related changes - begin: registerLoggingCallback('begin'), + begin: registerLoggingCallback( "begin" ), + // done: { failed, passed, total, runtime } - done: registerLoggingCallback('done'), + done: registerLoggingCallback( "done" ), + // log: { result, actual, expected, message } - log: registerLoggingCallback('log'), + log: registerLoggingCallback( "log" ), + // testStart: { name } - testStart: registerLoggingCallback('testStart'), + testStart: registerLoggingCallback( "testStart" ), + // testDone: { name, failed, passed, total } - testDone: registerLoggingCallback('testDone'), + testDone: registerLoggingCallback( "testDone" ), + // moduleStart: { name } - moduleStart: registerLoggingCallback('moduleStart'), + moduleStart: registerLoggingCallback( "moduleStart" ), + // moduleDone: { name, failed, passed, total } - moduleDone: registerLoggingCallback('moduleDone') + moduleDone: registerLoggingCallback( "moduleDone" ) }); if ( typeof document === "undefined" || document.readyState === "complete" ) { @@ -733,90 +913,140 @@ if ( typeof document === "undefined" || document.readyState === "complete" ) { } QUnit.load = function() { - runLoggingCallbacks( 'begin', QUnit, {} ); + runLoggingCallbacks( "begin", QUnit, {} ); // Initialize the config, saving the execution queue - var oldconfig = extend({}, config); + var banner, filter, i, label, len, main, ol, toolbar, userAgent, val, urlConfigCheckboxes, + urlConfigHtml = "", + oldconfig = extend( {}, config ); + QUnit.init(); extend(config, oldconfig); config.blocking = false; - var urlConfigHtml = '', len = config.urlConfig.length; - for ( var i = 0, val; i < len, val = config.urlConfig[i]; i++ ) { - config[val] = QUnit.urlParams[val]; - urlConfigHtml += ''; + len = config.urlConfig.length; + + for ( i = 0; i < len; i++ ) { + val = config.urlConfig[i]; + if ( typeof val === "string" ) { + val = { + id: val, + label: val, + tooltip: "[no tooltip available]" + }; + } + config[ val.id ] = QUnit.urlParams[ val.id ]; + urlConfigHtml += ""; } - var userAgent = id("qunit-userAgent"); + // `userAgent` initialized at top of scope + userAgent = id( "qunit-userAgent" ); if ( userAgent ) { userAgent.innerHTML = navigator.userAgent; } - var banner = id("qunit-header"); + + // `banner` initialized at top of scope + banner = id( "qunit-header" ); if ( banner ) { - banner.innerHTML = ' ' + banner.innerHTML + ' ' + urlConfigHtml; - addEvent( banner, "change", function( event ) { - var params = {}; - params[ event.target.name ] = event.target.checked ? true : undefined; - window.location = QUnit.url( params ); - }); + banner.innerHTML = "" + banner.innerHTML + " "; } - var toolbar = id("qunit-testrunner-toolbar"); + // `toolbar` initialized at top of scope + toolbar = id( "qunit-testrunner-toolbar" ); if ( toolbar ) { - var filter = document.createElement("input"); + // `filter` initialized at top of scope + filter = document.createElement( "input" ); filter.type = "checkbox"; filter.id = "qunit-filter-pass"; + addEvent( filter, "click", function() { - var ol = document.getElementById("qunit-tests"); + var tmp, + ol = document.getElementById( "qunit-tests" ); + if ( filter.checked ) { ol.className = ol.className + " hidepass"; } else { - var tmp = " " + ol.className.replace( /[\n\t\r]/g, " " ) + " "; - ol.className = tmp.replace(/ hidepass /, " "); + tmp = " " + ol.className.replace( /[\n\t\r]/g, " " ) + " "; + ol.className = tmp.replace( / hidepass /, " " ); } if ( defined.sessionStorage ) { if (filter.checked) { - sessionStorage.setItem("qunit-filter-passed-tests", "true"); + sessionStorage.setItem( "qunit-filter-passed-tests", "true" ); } else { - sessionStorage.removeItem("qunit-filter-passed-tests"); + sessionStorage.removeItem( "qunit-filter-passed-tests" ); } } }); - if ( config.hidepassed || defined.sessionStorage && sessionStorage.getItem("qunit-filter-passed-tests") ) { + + if ( config.hidepassed || defined.sessionStorage && sessionStorage.getItem( "qunit-filter-passed-tests" ) ) { filter.checked = true; - var ol = document.getElementById("qunit-tests"); + // `ol` initialized at top of scope + ol = document.getElementById( "qunit-tests" ); ol.className = ol.className + " hidepass"; } toolbar.appendChild( filter ); - var label = document.createElement("label"); - label.setAttribute("for", "qunit-filter-pass"); + // `label` initialized at top of scope + label = document.createElement( "label" ); + label.setAttribute( "for", "qunit-filter-pass" ); + label.setAttribute( "title", "Only show tests and assertons that fail. Stored in sessionStorage." ); label.innerHTML = "Hide passed tests"; toolbar.appendChild( label ); + + urlConfigCheckboxes = document.createElement( 'span' ); + urlConfigCheckboxes.innerHTML = urlConfigHtml; + addEvent( urlConfigCheckboxes, "change", function( event ) { + var params = {}; + params[ event.target.name ] = event.target.checked ? true : undefined; + window.location = QUnit.url( params ); + }); + toolbar.appendChild( urlConfigCheckboxes ); } - var main = id('qunit-fixture'); + // `main` initialized at top of scope + main = id( "qunit-fixture" ); if ( main ) { - config.fixture = main.cloneNode(true); + config.fixture = main.innerHTML; } - if (config.autostart) { + if ( config.autostart ) { QUnit.start(); } }; -addEvent(window, "load", QUnit.load); +addEvent( window, "load", QUnit.load ); -// addEvent(window, "error") gives us a useless event object -window.onerror = function( message, file, line ) { - if ( QUnit.config.current ) { - ok( false, message + ", " + file + ":" + line ); - } else { - test( "global failure", function() { - ok( false, message + ", " + file + ":" + line ); - }); +// `onErrorFnPrev` initialized at top of scope +// Preserve other handlers +onErrorFnPrev = window.onerror; + +// Cover uncaught exceptions +// Returning true will surpress the default browser handler, +// returning false will let it run. +window.onerror = function ( error, filePath, linerNr ) { + var ret = false; + if ( onErrorFnPrev ) { + ret = onErrorFnPrev( error, filePath, linerNr ); } + + // Treat return value as window.onerror itself does, + // Only do our handling if not surpressed. + if ( ret !== true ) { + if ( QUnit.config.current ) { + if ( QUnit.config.current.ignoreGlobalErrors ) { + return true; + } + QUnit.pushFailure( error, filePath + ":" + linerNr ); + } else { + QUnit.test( "global failure", function() { + QUnit.pushFailure( error, filePath + ":" + linerNr ); + }); + } + return false; + } + + return ret; }; function done() { @@ -824,33 +1054,34 @@ function done() { // Log the last module results if ( config.currentModule ) { - runLoggingCallbacks( 'moduleDone', QUnit, { + runLoggingCallbacks( "moduleDone", QUnit, { name: config.currentModule, failed: config.moduleStats.bad, passed: config.moduleStats.all - config.moduleStats.bad, total: config.moduleStats.all - } ); + }); } - var banner = id("qunit-banner"), - tests = id("qunit-tests"), - runtime = +new Date - config.started, + var i, key, + banner = id( "qunit-banner" ), + tests = id( "qunit-tests" ), + runtime = +new Date() - config.started, passed = config.stats.all - config.stats.bad, html = [ - 'Tests completed in ', + "Tests completed in ", runtime, - ' milliseconds.
      ', - '', + " milliseconds.
      ", + "", passed, - ' tests of ', + " tests of ", config.stats.all, - ' passed, ', + " passed, ", config.stats.bad, - ' failed.' - ].join(''); + "
      failed." + ].join( "" ); if ( banner ) { - banner.className = (config.stats.bad ? "qunit-fail" : "qunit-pass"); + banner.className = ( config.stats.bad ? "qunit-fail" : "qunit-pass" ); } if ( tests ) { @@ -861,84 +1092,119 @@ function done() { // show ✖ for good, ✔ for bad suite result in title // use escape sequences in case file gets loaded with non-utf-8-charset document.title = [ - (config.stats.bad ? "\u2716" : "\u2714"), - document.title.replace(/^[\u2714\u2716] /i, "") - ].join(" "); + ( config.stats.bad ? "\u2716" : "\u2714" ), + document.title.replace( /^[\u2714\u2716] /i, "" ) + ].join( " " ); } // clear own sessionStorage items if all tests passed if ( config.reorder && defined.sessionStorage && config.stats.bad === 0 ) { - for (var key in sessionStorage) { - if (sessionStorage.hasOwnProperty(key) && key.indexOf("qunit-") === 0 ) { - sessionStorage.removeItem(key); + // `key` & `i` initialized at top of scope + for ( i = 0; i < sessionStorage.length; i++ ) { + key = sessionStorage.key( i++ ); + if ( key.indexOf( "qunit-test-" ) === 0 ) { + sessionStorage.removeItem( key ); } } } - runLoggingCallbacks( 'done', QUnit, { + runLoggingCallbacks( "done", QUnit, { failed: config.stats.bad, passed: passed, total: config.stats.all, runtime: runtime - } ); + }); } -function validTest( name ) { - var filter = config.filter, - run = false; +/** @return Boolean: true if this test should be ran */ +function validTest( test ) { + var include, + filter = config.filter && config.filter.toLowerCase(), + module = config.module && config.module.toLowerCase(), + fullName = (test.module + ": " + test.testName).toLowerCase(); + + if ( config.testNumber ) { + return test.testNumber === config.testNumber; + } + + if ( module && ( !test.module || test.module.toLowerCase() !== module ) ) { + return false; + } if ( !filter ) { return true; } - var not = filter.charAt( 0 ) === "!"; - if ( not ) { + include = filter.charAt( 0 ) !== "!"; + if ( !include ) { filter = filter.slice( 1 ); } - if ( name.indexOf( filter ) !== -1 ) { - return !not; + // If the filter matches, we need to honour include + if ( fullName.indexOf( filter ) !== -1 ) { + return include; } - if ( not ) { - run = true; - } - - return run; + // Otherwise, do the opposite + return !include; } -// so far supports only Firefox, Chrome and Opera (buggy) -// could be extended in the future to use something like https://github.com/csnover/TraceKit -function sourceFromStacktrace(offset) { - offset = offset || 3; +// so far supports only Firefox, Chrome and Opera (buggy), Safari (for real exceptions) +// Later Safari and IE10 are supposed to support error.stack as well +// See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack +function extractStacktrace( e, offset ) { + offset = offset === undefined ? 3 : offset; + + var stack, include, i, regex; + + if ( e.stacktrace ) { + // Opera + return e.stacktrace.split( "\n" )[ offset + 3 ]; + } else if ( e.stack ) { + // Firefox, Chrome + stack = e.stack.split( "\n" ); + if (/^error$/i.test( stack[0] ) ) { + stack.shift(); + } + if ( fileName ) { + include = []; + for ( i = offset; i < stack.length; i++ ) { + if ( stack[ i ].indexOf( fileName ) != -1 ) { + break; + } + include.push( stack[ i ] ); + } + if ( include.length ) { + return include.join( "\n" ); + } + } + return stack[ offset ]; + } else if ( e.sourceURL ) { + // Safari, PhantomJS + // hopefully one day Safari provides actual stacktraces + // exclude useless self-reference for generated Error objects + if ( /qunit.js$/.test( e.sourceURL ) ) { + return; + } + // for actual exceptions, this is useful + return e.sourceURL + ":" + e.line; + } +} +function sourceFromStacktrace( offset ) { try { throw new Error(); } catch ( e ) { - if (e.stacktrace) { - // Opera - return e.stacktrace.split("\n")[offset + 3]; - } else if (e.stack) { - // Firefox, Chrome - var stack = e.stack.split("\n"); - if (/^error$/i.test(stack[0])) { - stack.shift(); - } - return stack[offset]; - } else if (e.sourceURL) { - // Safari, PhantomJS - // TODO sourceURL points at the 'throw new Error' line above, useless - //return e.sourceURL + ":" + e.line; - } + return extractStacktrace( e, offset ); } } -function escapeInnerText(s) { - if (!s) { +function escapeInnerText( s ) { + if ( !s ) { return ""; } s = s + ""; - return s.replace(/[\&<>]/g, function(s) { - switch(s) { + return s.replace( /[\&<>]/g, function( s ) { + switch( s ) { case "&": return "&"; case "<": return "<"; case ">": return ">"; @@ -951,11 +1217,14 @@ function synchronize( callback, last ) { config.queue.push( callback ); if ( config.autorun && !config.blocking ) { - process(last); + process( last ); } } function process( last ) { + function next() { + process( last ); + } var start = new Date().getTime(); config.depth = config.depth ? config.depth + 1 : 1; @@ -963,9 +1232,7 @@ function process( last ) { if ( !defined.setTimeout || config.updateRate <= 0 || ( ( new Date().getTime() - start ) < config.updateRate ) ) { config.queue.shift()(); } else { - window.setTimeout( function(){ - process( last ); - }, 13 ); + window.setTimeout( next, 13 ); break; } } @@ -980,7 +1247,8 @@ function saveGlobal() { if ( config.noglobals ) { for ( var key in window ) { - if ( !hasOwn.call( window, key ) ) { + // in Opera sometimes DOM element ids show up here, ignore them + if ( !hasOwn.call( window, key ) || /^qunit-test-output/.test( key ) ) { continue; } config.pollution.push( key ); @@ -989,27 +1257,32 @@ function saveGlobal() { } function checkPollution( name ) { - var old = config.pollution; + var newGlobals, + deletedGlobals, + old = config.pollution; + saveGlobal(); - var newGlobals = diff( config.pollution, old ); + newGlobals = diff( config.pollution, old ); if ( newGlobals.length > 0 ) { - ok( false, "Introduced global variable(s): " + newGlobals.join(", ") ); + QUnit.pushFailure( "Introduced global variable(s): " + newGlobals.join(", ") ); } - var deletedGlobals = diff( old, config.pollution ); + deletedGlobals = diff( old, config.pollution ); if ( deletedGlobals.length > 0 ) { - ok( false, "Deleted global variable(s): " + deletedGlobals.join(", ") ); + QUnit.pushFailure( "Deleted global variable(s): " + deletedGlobals.join(", ") ); } } // returns a new Array with the elements that are in a but not in b function diff( a, b ) { - var result = a.slice(); - for ( var i = 0; i < result.length; i++ ) { - for ( var j = 0; j < b.length; j++ ) { + var i, j, + result = a.slice(); + + for ( i = 0; i < result.length; i++ ) { + for ( j = 0; j < b.length; j++ ) { if ( result[i] === b[j] ) { - result.splice(i, 1); + result.splice( i, 1 ); i--; break; } @@ -1018,33 +1291,21 @@ function diff( a, b ) { return result; } -function fail(message, exception, callback) { - if ( typeof console !== "undefined" && console.error && console.warn ) { - console.error(message); - console.error(exception); - console.error(exception.stack); - console.warn(callback.toString()); - - } else if ( window.opera && opera.postError ) { - opera.postError(message, exception, callback.toString); - } -} - -function extend(a, b) { +function extend( a, b ) { for ( var prop in b ) { - if ( b[prop] === undefined ) { - delete a[prop]; + if ( b[ prop ] === undefined ) { + delete a[ prop ]; // Avoid "Member not found" error in IE8 caused by setting window.constructor } else if ( prop !== "constructor" || a !== window ) { - a[prop] = b[prop]; + a[ prop ] = b[ prop ]; } } return a; } -function addEvent(elem, type, fn) { +function addEvent( elem, type, fn ) { if ( elem.addEventListener ) { elem.addEventListener( type, fn, false ); } else if ( elem.attachEvent ) { @@ -1054,215 +1315,214 @@ function addEvent(elem, type, fn) { } } -function id(name) { - return !!(typeof document !== "undefined" && document && document.getElementById) && +function id( name ) { + return !!( typeof document !== "undefined" && document && document.getElementById ) && document.getElementById( name ); } -function registerLoggingCallback(key){ - return function(callback){ +function registerLoggingCallback( key ) { + return function( callback ) { config[key].push( callback ); }; } // Supports deprecated method of completely overwriting logging callbacks -function runLoggingCallbacks(key, scope, args) { +function runLoggingCallbacks( key, scope, args ) { //debugger; - var callbacks; - if ( QUnit.hasOwnProperty(key) ) { - QUnit[key].call(scope, args); + var i, callbacks; + if ( QUnit.hasOwnProperty( key ) ) { + QUnit[ key ].call(scope, args ); } else { - callbacks = config[key]; - for( var i = 0; i < callbacks.length; i++ ) { - callbacks[i].call( scope, args ); + callbacks = config[ key ]; + for ( i = 0; i < callbacks.length; i++ ) { + callbacks[ i ].call( scope, args ); } } } // Test for equality any JavaScript type. // Author: Philippe Rathé -QUnit.equiv = function () { - - var innerEquiv; // the real equiv function - var callers = []; // stack to decide between skip/abort functions - var parents = []; // stack to avoiding loops from circular referencing +QUnit.equiv = (function() { // Call the o related callback with the given arguments. - function bindCallbacks(o, callbacks, args) { - var prop = QUnit.objectType(o); - if (prop) { - if (QUnit.objectType(callbacks[prop]) === "function") { - return callbacks[prop].apply(callbacks, args); + function bindCallbacks( o, callbacks, args ) { + var prop = QUnit.objectType( o ); + if ( prop ) { + if ( QUnit.objectType( callbacks[ prop ] ) === "function" ) { + return callbacks[ prop ].apply( callbacks, args ); } else { - return callbacks[prop]; // or undefined + return callbacks[ prop ]; // or undefined } } } - var getProto = Object.getPrototypeOf || function (obj) { - return obj.__proto__; - }; + // the real equiv function + var innerEquiv, + // stack to decide between skip/abort functions + callers = [], + // stack to avoiding loops from circular referencing + parents = [], - var callbacks = function () { + getProto = Object.getPrototypeOf || function ( obj ) { + return obj.__proto__; + }, + callbacks = (function () { - // for string, boolean, number and null - function useStrictEquality(b, a) { - if (b instanceof a.constructor || a instanceof b.constructor) { - // to catch short annotaion VS 'new' annotation of a - // declaration - // e.g. var i = 1; - // var j = new Number(1); - return a == b; - } else { - return a === b; + // for string, boolean, number and null + function useStrictEquality( b, a ) { + if ( b instanceof a.constructor || a instanceof b.constructor ) { + // to catch short annotaion VS 'new' annotation of a + // declaration + // e.g. var i = 1; + // var j = new Number(1); + return a == b; + } else { + return a === b; + } } - } - return { - "string" : useStrictEquality, - "boolean" : useStrictEquality, - "number" : useStrictEquality, - "null" : useStrictEquality, - "undefined" : useStrictEquality, + return { + "string": useStrictEquality, + "boolean": useStrictEquality, + "number": useStrictEquality, + "null": useStrictEquality, + "undefined": useStrictEquality, - "nan" : function(b) { - return isNaN(b); - }, + "nan": function( b ) { + return isNaN( b ); + }, - "date" : function(b, a) { - return QUnit.objectType(b) === "date" - && a.valueOf() === b.valueOf(); - }, + "date": function( b, a ) { + return QUnit.objectType( b ) === "date" && a.valueOf() === b.valueOf(); + }, - "regexp" : function(b, a) { - return QUnit.objectType(b) === "regexp" - && a.source === b.source && // the regex itself - a.global === b.global && // and its modifers - // (gmi) ... - a.ignoreCase === b.ignoreCase - && a.multiline === b.multiline; - }, + "regexp": function( b, a ) { + return QUnit.objectType( b ) === "regexp" && + // the regex itself + a.source === b.source && + // and its modifers + a.global === b.global && + // (gmi) ... + a.ignoreCase === b.ignoreCase && + a.multiline === b.multiline; + }, - // - skip when the property is a method of an instance (OOP) - // - abort otherwise, - // initial === would have catch identical references anyway - "function" : function() { - var caller = callers[callers.length - 1]; - return caller !== Object && typeof caller !== "undefined"; - }, + // - skip when the property is a method of an instance (OOP) + // - abort otherwise, + // initial === would have catch identical references anyway + "function": function() { + var caller = callers[callers.length - 1]; + return caller !== Object && typeof caller !== "undefined"; + }, - "array" : function(b, a) { - var i, j, loop; - var len; + "array": function( b, a ) { + var i, j, len, loop; - // b could be an object literal here - if (!(QUnit.objectType(b) === "array")) { - return false; - } + // b could be an object literal here + if ( QUnit.objectType( b ) !== "array" ) { + return false; + } - len = a.length; - if (len !== b.length) { // safe and faster - return false; - } + len = a.length; + if ( len !== b.length ) { + // safe and faster + return false; + } - // track reference to avoid circular references - parents.push(a); - for (i = 0; i < len; i++) { - loop = false; - for (j = 0; j < parents.length; j++) { - if (parents[j] === a[i]) { - loop = true;// dont rewalk array + // track reference to avoid circular references + parents.push( a ); + for ( i = 0; i < len; i++ ) { + loop = false; + for ( j = 0; j < parents.length; j++ ) { + if ( parents[j] === a[i] ) { + loop = true;// dont rewalk array + } + } + if ( !loop && !innerEquiv(a[i], b[i]) ) { + parents.pop(); + return false; } } - if (!loop && !innerEquiv(a[i], b[i])) { - parents.pop(); - return false; + parents.pop(); + return true; + }, + + "object": function( b, a ) { + var i, j, loop, + // Default to true + eq = true, + aProperties = [], + bProperties = []; + + // comparing constructors is more strict than using + // instanceof + if ( a.constructor !== b.constructor ) { + // Allow objects with no prototype to be equivalent to + // objects with Object as their constructor. + if ( !(( getProto(a) === null && getProto(b) === Object.prototype ) || + ( getProto(b) === null && getProto(a) === Object.prototype ) ) ) { + return false; + } } - } - parents.pop(); - return true; - }, - "object" : function(b, a) { - var i, j, loop; - var eq = true; // unless we can proove it - var aProperties = [], bProperties = []; // collection of - // strings + // stack constructor before traversing properties + callers.push( a.constructor ); + // track reference to avoid circular references + parents.push( a ); - // comparing constructors is more strict than using - // instanceof - if (a.constructor !== b.constructor) { - // Allow objects with no prototype to be equivalent to - // objects with Object as their constructor. - if (!((getProto(a) === null && getProto(b) === Object.prototype) || - (getProto(b) === null && getProto(a) === Object.prototype))) - { - return false; + for ( i in a ) { // be strict: don't ensures hasOwnProperty + // and go deep + loop = false; + for ( j = 0; j < parents.length; j++ ) { + if ( parents[j] === a[i] ) { + // don't go down the same path twice + loop = true; + } + } + aProperties.push(i); // collect a's properties + + if (!loop && !innerEquiv( a[i], b[i] ) ) { + eq = false; + break; + } } - } - // stack constructor before traversing properties - callers.push(a.constructor); - // track reference to avoid circular references - parents.push(a); + callers.pop(); // unstack, we are done + parents.pop(); - for (i in a) { // be strict: don't ensures hasOwnProperty - // and go deep - loop = false; - for (j = 0; j < parents.length; j++) { - if (parents[j] === a[i]) - loop = true; // don't go down the same path - // twice + for ( i in b ) { + bProperties.push( i ); // collect b's properties } - aProperties.push(i); // collect a's properties - if (!loop && !innerEquiv(a[i], b[i])) { - eq = false; - break; - } + // Ensures identical properties name + return eq && innerEquiv( aProperties.sort(), bProperties.sort() ); } - - callers.pop(); // unstack, we are done - parents.pop(); - - for (i in b) { - bProperties.push(i); // collect b's properties - } - - // Ensures identical properties name - return eq - && innerEquiv(aProperties.sort(), bProperties - .sort()); - } - }; - }(); + }; + }()); innerEquiv = function() { // can take multiple arguments - var args = Array.prototype.slice.apply(arguments); - if (args.length < 2) { + var args = [].slice.apply( arguments ); + if ( args.length < 2 ) { return true; // end transition } - return (function(a, b) { - if (a === b) { + return (function( a, b ) { + if ( a === b ) { return true; // catch the most you can - } else if (a === null || b === null || typeof a === "undefined" - || typeof b === "undefined" - || QUnit.objectType(a) !== QUnit.objectType(b)) { + } else if ( a === null || b === null || typeof a === "undefined" || + typeof b === "undefined" || + QUnit.objectType(a) !== QUnit.objectType(b) ) { return false; // don't lose time with error prone cases } else { return bindCallbacks(a, callbacks, [ b, a ]); } // apply transition with (1..n) arguments - })(args[0], args[1]) - && arguments.callee.apply(this, args.splice(1, - args.length - 1)); + }( args[0], args[1] ) && arguments.callee.apply( this, args.splice(1, args.length - 1 )) ); }; return innerEquiv; - -}(); +}()); /** * jsDump Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | @@ -1276,188 +1536,215 @@ QUnit.equiv = function () { */ QUnit.jsDump = (function() { function quote( str ) { - return '"' + str.toString().replace(/"/g, '\\"') + '"'; - }; + return '"' + str.toString().replace( /"/g, '\\"' ) + '"'; + } function literal( o ) { - return o + ''; - }; + return o + ""; + } function join( pre, arr, post ) { var s = jsDump.separator(), base = jsDump.indent(), inner = jsDump.indent(1); - if ( arr.join ) - arr = arr.join( ',' + s + inner ); - if ( !arr ) + if ( arr.join ) { + arr = arr.join( "," + s + inner ); + } + if ( !arr ) { return pre + post; + } return [ pre, inner + arr, base + post ].join(s); - }; + } function array( arr, stack ) { - var i = arr.length, ret = Array(i); + var i = arr.length, ret = new Array(i); this.up(); - while ( i-- ) + while ( i-- ) { ret[i] = this.parse( arr[i] , undefined , stack); + } this.down(); - return join( '[', ret, ']' ); - }; + return join( "[", ret, "]" ); + } - var reName = /^function (\w+)/; + var reName = /^function (\w+)/, + jsDump = { + parse: function( obj, type, stack ) { //type is used mostly internally, you can fix a (custom)type in advance + stack = stack || [ ]; + var inStack, res, + parser = this.parsers[ type || this.typeOf(obj) ]; - var jsDump = { - parse:function( obj, type, stack ) { //type is used mostly internally, you can fix a (custom)type in advance - stack = stack || [ ]; - var parser = this.parsers[ type || this.typeOf(obj) ]; - type = typeof parser; - var inStack = inArray(obj, stack); - if (inStack != -1) { - return 'recursion('+(inStack - stack.length)+')'; - } - //else - if (type == 'function') { - stack.push(obj); - var res = parser.call( this, obj, stack ); + type = typeof parser; + inStack = inArray( obj, stack ); + + if ( inStack != -1 ) { + return "recursion(" + (inStack - stack.length) + ")"; + } + //else + if ( type == "function" ) { + stack.push( obj ); + res = parser.call( this, obj, stack ); stack.pop(); return res; - } - // else - return (type == 'string') ? parser : this.parsers.error; - }, - typeOf:function( obj ) { - var type; - if ( obj === null ) { - type = "null"; - } else if (typeof obj === "undefined") { - type = "undefined"; - } else if (QUnit.is("RegExp", obj)) { - type = "regexp"; - } else if (QUnit.is("Date", obj)) { - type = "date"; - } else if (QUnit.is("Function", obj)) { - type = "function"; - } else if (typeof obj.setInterval !== undefined && typeof obj.document !== "undefined" && typeof obj.nodeType === "undefined") { - type = "window"; - } else if (obj.nodeType === 9) { - type = "document"; - } else if (obj.nodeType) { - type = "node"; - } else if ( - // native arrays - toString.call( obj ) === "[object Array]" || - // NodeList objects - ( typeof obj.length === "number" && typeof obj.item !== "undefined" && ( obj.length ? obj.item(0) === obj[0] : ( obj.item( 0 ) === null && typeof obj[0] === "undefined" ) ) ) - ) { - type = "array"; - } else { - type = typeof obj; - } - return type; - }, - separator:function() { - return this.multiline ? this.HTML ? '
      ' : '\n' : this.HTML ? ' ' : ' '; - }, - indent:function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing - if ( !this.multiline ) - return ''; - var chr = this.indentChar; - if ( this.HTML ) - chr = chr.replace(/\t/g,' ').replace(/ /g,' '); - return Array( this._depth_ + (extra||0) ).join(chr); - }, - up:function( a ) { - this._depth_ += a || 1; - }, - down:function( a ) { - this._depth_ -= a || 1; - }, - setParser:function( name, parser ) { - this.parsers[name] = parser; - }, - // The next 3 are exposed so you can use them - quote:quote, - literal:literal, - join:join, - // - _depth_: 1, - // This is the list of parsers, to modify them, use jsDump.setParser - parsers:{ - window: '[Window]', - document: '[Document]', - error:'[ERROR]', //when no parser is found, shouldn't happen - unknown: '[Unknown]', - 'null':'null', - 'undefined':'undefined', - 'function':function( fn ) { - var ret = 'function', - name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE - if ( name ) - ret += ' ' + name; - ret += '('; - - ret = [ ret, QUnit.jsDump.parse( fn, 'functionArgs' ), '){'].join(''); - return join( ret, QUnit.jsDump.parse(fn,'functionCode'), '}' ); - }, - array: array, - nodelist: array, - arguments: array, - object:function( map, stack ) { - var ret = [ ]; - QUnit.jsDump.up(); - for ( var key in map ) { - var val = map[key]; - ret.push( QUnit.jsDump.parse(key,'key') + ': ' + QUnit.jsDump.parse(val, undefined, stack)); } - QUnit.jsDump.down(); - return join( '{', ret, '}' ); + // else + return ( type == "string" ) ? parser : this.parsers.error; }, - node:function( node ) { - var open = QUnit.jsDump.HTML ? '<' : '<', - close = QUnit.jsDump.HTML ? '>' : '>'; - - var tag = node.nodeName.toLowerCase(), - ret = open + tag; - - for ( var a in QUnit.jsDump.DOMAttrs ) { - var val = node[QUnit.jsDump.DOMAttrs[a]]; - if ( val ) - ret += ' ' + a + '=' + QUnit.jsDump.parse( val, 'attribute' ); + typeOf: function( obj ) { + var type; + if ( obj === null ) { + type = "null"; + } else if ( typeof obj === "undefined" ) { + type = "undefined"; + } else if ( QUnit.is( "regexp", obj) ) { + type = "regexp"; + } else if ( QUnit.is( "date", obj) ) { + type = "date"; + } else if ( QUnit.is( "function", obj) ) { + type = "function"; + } else if ( typeof obj.setInterval !== undefined && typeof obj.document !== "undefined" && typeof obj.nodeType === "undefined" ) { + type = "window"; + } else if ( obj.nodeType === 9 ) { + type = "document"; + } else if ( obj.nodeType ) { + type = "node"; + } else if ( + // native arrays + toString.call( obj ) === "[object Array]" || + // NodeList objects + ( typeof obj.length === "number" && typeof obj.item !== "undefined" && ( obj.length ? obj.item(0) === obj[0] : ( obj.item( 0 ) === null && typeof obj[0] === "undefined" ) ) ) + ) { + type = "array"; + } else { + type = typeof obj; } - return ret + close + open + '/' + tag + close; + return type; }, - functionArgs:function( fn ) {//function calls it internally, it's the arguments part of the function - var l = fn.length; - if ( !l ) return ''; + separator: function() { + return this.multiline ? this.HTML ? "
      " : "\n" : this.HTML ? " " : " "; + }, + indent: function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing + if ( !this.multiline ) { + return ""; + } + var chr = this.indentChar; + if ( this.HTML ) { + chr = chr.replace( /\t/g, " " ).replace( / /g, " " ); + } + return new Array( this._depth_ + (extra||0) ).join(chr); + }, + up: function( a ) { + this._depth_ += a || 1; + }, + down: function( a ) { + this._depth_ -= a || 1; + }, + setParser: function( name, parser ) { + this.parsers[name] = parser; + }, + // The next 3 are exposed so you can use them + quote: quote, + literal: literal, + join: join, + // + _depth_: 1, + // This is the list of parsers, to modify them, use jsDump.setParser + parsers: { + window: "[Window]", + document: "[Document]", + error: "[ERROR]", //when no parser is found, shouldn"t happen + unknown: "[Unknown]", + "null": "null", + "undefined": "undefined", + "function": function( fn ) { + var ret = "function", + name = "name" in fn ? fn.name : (reName.exec(fn) || [])[1];//functions never have name in IE - var args = Array(l); - while ( l-- ) - args[l] = String.fromCharCode(97+l);//97 is 'a' - return ' ' + args.join(', ') + ' '; + if ( name ) { + ret += " " + name; + } + ret += "( "; + + ret = [ ret, QUnit.jsDump.parse( fn, "functionArgs" ), "){" ].join( "" ); + return join( ret, QUnit.jsDump.parse(fn,"functionCode" ), "}" ); + }, + array: array, + nodelist: array, + "arguments": array, + object: function( map, stack ) { + var ret = [ ], keys, key, val, i; + QUnit.jsDump.up(); + if ( Object.keys ) { + keys = Object.keys( map ); + } else { + keys = []; + for ( key in map ) { + keys.push( key ); + } + } + keys.sort(); + for ( i = 0; i < keys.length; i++ ) { + key = keys[ i ]; + val = map[ key ]; + ret.push( QUnit.jsDump.parse( key, "key" ) + ": " + QUnit.jsDump.parse( val, undefined, stack ) ); + } + QUnit.jsDump.down(); + return join( "{", ret, "}" ); + }, + node: function( node ) { + var a, val, + open = QUnit.jsDump.HTML ? "<" : "<", + close = QUnit.jsDump.HTML ? ">" : ">", + tag = node.nodeName.toLowerCase(), + ret = open + tag; + + for ( a in QUnit.jsDump.DOMAttrs ) { + val = node[ QUnit.jsDump.DOMAttrs[a] ]; + if ( val ) { + ret += " " + a + "=" + QUnit.jsDump.parse( val, "attribute" ); + } + } + return ret + close + open + "/" + tag + close; + }, + functionArgs: function( fn ) {//function calls it internally, it's the arguments part of the function + var args, + l = fn.length; + + if ( !l ) { + return ""; + } + + args = new Array(l); + while ( l-- ) { + args[l] = String.fromCharCode(97+l);//97 is 'a' + } + return " " + args.join( ", " ) + " "; + }, + key: quote, //object calls it internally, the key part of an item in a map + functionCode: "[code]", //function calls it internally, it's the content of the function + attribute: quote, //node calls it internally, it's an html attribute value + string: quote, + date: quote, + regexp: literal, //regex + number: literal, + "boolean": literal }, - key:quote, //object calls it internally, the key part of an item in a map - functionCode:'[code]', //function calls it internally, it's the content of the function - attribute:quote, //node calls it internally, it's an html attribute value - string:quote, - date:quote, - regexp:literal, //regex - number:literal, - 'boolean':literal - }, - DOMAttrs:{//attributes to dump from nodes, name=>realName - id:'id', - name:'name', - 'class':'className' - }, - HTML:false,//if true, entities are escaped ( <, >, \t, space and \n ) - indentChar:' ',//indentation unit - multiline:true //if true, items in a collection, are separated by a \n, else just a space. - }; + DOMAttrs: { + //attributes to dump from nodes, name=>realName + id: "id", + name: "name", + "class": "className" + }, + HTML: false,//if true, entities are escaped ( <, >, \t, space and \n ) + indentChar: " ",//indentation unit + multiline: true //if true, items in a collection, are separated by a \n, else just a space. + }; return jsDump; -})(); +}()); // from Sizzle.js function getText( elems ) { - var ret = "", elem; + var i, elem, + ret = ""; - for ( var i = 0; elems[i]; i++ ) { + for ( i = 0; elems[i]; i++ ) { elem = elems[i]; // Get the text from text nodes and CDATA nodes @@ -1471,9 +1758,9 @@ function getText( elems ) { } return ret; -}; +} -//from jquery.js +// from jquery.js function inArray( elem, array ) { if ( array.indexOf ) { return array.indexOf( elem ); @@ -1500,70 +1787,75 @@ function inArray( elem, array ) { * * Usage: QUnit.diff(expected, actual) * - * QUnit.diff("the quick brown fox jumped over", "the quick fox jumps over") == "the quick brown fox jumped jumps over" + * QUnit.diff( "the quick brown fox jumped over", "the quick fox jumps over" ) == "the quick brown fox jumped jumps over" */ QUnit.diff = (function() { - function diff(o, n) { - var ns = {}; - var os = {}; + function diff( o, n ) { + var i, + ns = {}, + os = {}; - for (var i = 0; i < n.length; i++) { - if (ns[n[i]] == null) - ns[n[i]] = { + for ( i = 0; i < n.length; i++ ) { + if ( ns[ n[i] ] == null ) { + ns[ n[i] ] = { rows: [], o: null }; - ns[n[i]].rows.push(i); + } + ns[ n[i] ].rows.push( i ); } - for (var i = 0; i < o.length; i++) { - if (os[o[i]] == null) - os[o[i]] = { + for ( i = 0; i < o.length; i++ ) { + if ( os[ o[i] ] == null ) { + os[ o[i] ] = { rows: [], n: null }; - os[o[i]].rows.push(i); + } + os[ o[i] ].rows.push( i ); } - for (var i in ns) { + for ( i in ns ) { if ( !hasOwn.call( ns, i ) ) { continue; } - if (ns[i].rows.length == 1 && typeof(os[i]) != "undefined" && os[i].rows.length == 1) { - n[ns[i].rows[0]] = { - text: n[ns[i].rows[0]], + if ( ns[i].rows.length == 1 && typeof os[i] != "undefined" && os[i].rows.length == 1 ) { + n[ ns[i].rows[0] ] = { + text: n[ ns[i].rows[0] ], row: os[i].rows[0] }; - o[os[i].rows[0]] = { - text: o[os[i].rows[0]], + o[ os[i].rows[0] ] = { + text: o[ os[i].rows[0] ], row: ns[i].rows[0] }; } } - for (var i = 0; i < n.length - 1; i++) { - if (n[i].text != null && n[i + 1].text == null && n[i].row + 1 < o.length && o[n[i].row + 1].text == null && - n[i + 1] == o[n[i].row + 1]) { - n[i + 1] = { - text: n[i + 1], + for ( i = 0; i < n.length - 1; i++ ) { + if ( n[i].text != null && n[ i + 1 ].text == null && n[i].row + 1 < o.length && o[ n[i].row + 1 ].text == null && + n[ i + 1 ] == o[ n[i].row + 1 ] ) { + + n[ i + 1 ] = { + text: n[ i + 1 ], row: n[i].row + 1 }; - o[n[i].row + 1] = { - text: o[n[i].row + 1], + o[ n[i].row + 1 ] = { + text: o[ n[i].row + 1 ], row: i + 1 }; } } - for (var i = n.length - 1; i > 0; i--) { - if (n[i].text != null && n[i - 1].text == null && n[i].row > 0 && o[n[i].row - 1].text == null && - n[i - 1] == o[n[i].row - 1]) { - n[i - 1] = { - text: n[i - 1], + for ( i = n.length - 1; i > 0; i-- ) { + if ( n[i].text != null && n[ i - 1 ].text == null && n[i].row > 0 && o[ n[i].row - 1 ].text == null && + n[ i - 1 ] == o[ n[i].row - 1 ]) { + + n[ i - 1 ] = { + text: n[ i - 1 ], row: n[i].row - 1 }; - o[n[i].row - 1] = { - text: o[n[i].row - 1], + o[ n[i].row - 1 ] = { + text: o[ n[i].row - 1 ], row: i - 1 }; } @@ -1575,49 +1867,52 @@ QUnit.diff = (function() { }; } - return function(o, n) { - o = o.replace(/\s+$/, ''); - n = n.replace(/\s+$/, ''); - var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/)); + return function( o, n ) { + o = o.replace( /\s+$/, "" ); + n = n.replace( /\s+$/, "" ); - var str = ""; + var i, pre, + str = "", + out = diff( o === "" ? [] : o.split(/\s+/), n === "" ? [] : n.split(/\s+/) ), + oSpace = o.match(/\s+/g), + nSpace = n.match(/\s+/g); - var oSpace = o.match(/\s+/g); - if (oSpace == null) { - oSpace = [" "]; + if ( oSpace == null ) { + oSpace = [ " " ]; } else { - oSpace.push(" "); - } - var nSpace = n.match(/\s+/g); - if (nSpace == null) { - nSpace = [" "]; - } - else { - nSpace.push(" "); + oSpace.push( " " ); } - if (out.n.length == 0) { - for (var i = 0; i < out.o.length; i++) { - str += '' + out.o[i] + oSpace[i] + ""; + if ( nSpace == null ) { + nSpace = [ " " ]; + } + else { + nSpace.push( " " ); + } + + if ( out.n.length === 0 ) { + for ( i = 0; i < out.o.length; i++ ) { + str += "" + out.o[i] + oSpace[i] + ""; } } else { - if (out.n[0].text == null) { - for (n = 0; n < out.o.length && out.o[n].text == null; n++) { - str += '' + out.o[n] + oSpace[n] + ""; + if ( out.n[0].text == null ) { + for ( n = 0; n < out.o.length && out.o[n].text == null; n++ ) { + str += "" + out.o[n] + oSpace[n] + ""; } } - for (var i = 0; i < out.n.length; i++) { + for ( i = 0; i < out.n.length; i++ ) { if (out.n[i].text == null) { - str += '' + out.n[i] + nSpace[i] + ""; + str += "" + out.n[i] + nSpace[i] + ""; } else { - var pre = ""; + // `pre` initialized at top of scope + pre = ""; - for (n = out.n[i].row + 1; n < out.o.length && out.o[n].text == null; n++) { - pre += '' + out.o[n] + oSpace[n] + ""; + for ( n = out.n[i].row + 1; n < out.o.length && out.o[n].text == null; n++ ) { + pre += "" + out.o[n] + oSpace[n] + ""; } str += " " + out.n[i].text + nSpace[i] + pre; } @@ -1626,7 +1921,12 @@ QUnit.diff = (function() { return str; }; -})(); +}()); + +// for CommonJS enviroments, export everything +if ( typeof exports !== "undefined" ) { + extend(exports, QUnit); +} // get at whatever the global object is, like window in browsers -})( (function() {return this}).call() ); +}( (function() {return this;}.call()) )); diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 226ccbd3513..8698fdb9f94 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -393,40 +393,38 @@ background: #dc5f59; } .openerp button.oe_highlight { - background-color: #dc5f59; - background-image: -webkit-gradient(linear, left top, left bottom, from(#dc5f59), to(#b33630)); - background-image: -webkit-linear-gradient(top, #dc5f59, #b33630); - background-image: -moz-linear-gradient(top, #dc5f59, #b33630); - background-image: -ms-linear-gradient(top, #dc5f59, #b33630); - background-image: -o-linear-gradient(top, #dc5f59, #b33630); - background-image: linear-gradient(to bottom, #dc5f59, #b33630); - -moz-box-shadow: none; - -webkit-box-shadow: none; - box-shadow: none; -} -.openerp button.oe_highlight:active { - background-color: #b33630; - background-image: -webkit-gradient(linear, left top, left bottom, from(#b33630), to(#dc5f59)); - background-image: -webkit-linear-gradient(top, #b33630, #dc5f59); - background-image: -moz-linear-gradient(top, #b33630, #dc5f59); - background-image: -ms-linear-gradient(top, #b33630, #dc5f59); - background-image: -o-linear-gradient(top, #b33630, #dc5f59); - background-image: linear-gradient(to bottom, #b33630, #dc5f59); - -moz-box-shadow: none; - -webkit-box-shadow: none; - box-shadow: none; + border: 1px solid #795151; + background-color: #df3f3f; + background-image: -webkit-gradient(linear, left top, left bottom, from(#df3f3f), to(#a21a1a)); + background-image: -webkit-linear-gradient(top, #df3f3f, #a21a1a); + background-image: -moz-linear-gradient(top, #df3f3f, #a21a1a); + background-image: -ms-linear-gradient(top, #df3f3f, #a21a1a); + background-image: -o-linear-gradient(top, #df3f3f, #a21a1a); + background-image: linear-gradient(to bottom, #df3f3f, #a21a1a); + -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(155, 155, 155, 0.4) inset; + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(155, 155, 155, 0.4) inset; + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(155, 155, 155, 0.4) inset; } .openerp button.oe_highlight:hover { - background-color: #df6b66; - background-image: -webkit-gradient(linear, left top, left bottom, from(#df6b66), to(#bf3a33)); - background-image: -webkit-linear-gradient(top, #df6b66, #bf3a33); - background-image: -moz-linear-gradient(top, #df6b66, #bf3a33); - background-image: -ms-linear-gradient(top, #df6b66, #bf3a33); - background-image: -o-linear-gradient(top, #df6b66, #bf3a33); - background-image: linear-gradient(to bottom, #df6b66, #bf3a33); - -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2); - -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2); - box-shadow: 0 0 1px rgba(0, 0, 0, 0.2); + background-color: #e25858; + background-image: -webkit-gradient(linear, left top, left bottom, from(#e25858), to(#ab1b1b)); + background-image: -webkit-linear-gradient(top, #e25858, #ab1b1b); + background-image: -moz-linear-gradient(top, #e25858, #ab1b1b); + background-image: -ms-linear-gradient(top, #e25858, #ab1b1b); + background-image: -o-linear-gradient(top, #e25858, #ab1b1b); + background-image: linear-gradient(to bottom, #e25858, #ab1b1b); +} +.openerp button.oe_highlight:active { + background-color: #c52020; + background-image: -webkit-gradient(linear, left top, left bottom, from(#c52020), to(#d22323)); + background-image: -webkit-linear-gradient(top, #c52020, #d22323); + background-image: -moz-linear-gradient(top, #c52020, #d22323); + background-image: -ms-linear-gradient(top, #c52020, #d22323); + background-image: -o-linear-gradient(top, #c52020, #d22323); + background-image: linear-gradient(to bottom, #c52020, #d22323); +} +.openerp .oe_background_grey { + background: #eeeeee !important; } .openerp .oe_form_dirty .oe_highlight_on_dirty { color: white; @@ -472,9 +470,9 @@ -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; - -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); - -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); + -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); + -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); border: none; margin-bottom: 10px; } @@ -864,9 +862,9 @@ font-family: "Lucida Grande", Helvetica, Verdana, Arial; border: 1px solid #999999; background: whitesmoke; - -moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3); - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3); + -moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4); + -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4); + box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4); -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; @@ -1009,7 +1007,6 @@ .openerp .oe_topbar { width: 100%; height: 31px; - border-top: solid 1px #d3d3d3; background-color: #646060; background-image: -webkit-gradient(linear, left top, left bottom, from(#646060), to(#262626)); background-image: -webkit-linear-gradient(top, #646060, #262626); @@ -1234,24 +1231,26 @@ .openerp .oe_secondary_submenu .oe_menu_counter { float: right; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); - margin: 0px; + margin: 1px; padding: 1px 4px; + border: none; } .openerp .oe_secondary_submenu .oe_menu_counter:hover { cursor: pointer; - border: 1px solid #c81010; - -moz-box-shadow: 0 0 2px #c81010; - -webkit-box-shadow: 0 0 2px #c81010; - box-shadow: 0 0 2px #c81010; + -webkit-transform: scale(1.1); + -moz-transform: scale(1.1); + -ms-transform: scale(1.1); + -o-transform: scale(1.1); + transform: scale(1.1); } .openerp .oe_secondary_submenu .oe_active { - background: #7c7bad; border-top: 1px solid lightGray; - border-bottom: 1px solid lightGray; + border-bottom: 1px solid #dedede; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); + -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2); + -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2); + background: #7c7bad; } .openerp .oe_secondary_submenu .oe_active a { color: white; @@ -1267,6 +1266,9 @@ .openerp .oe_secondary_submenu .oe_active .oe_menu_counter { background: #eeeeee; color: #7c7bad; + -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); } .openerp .oe_secondary_submenu .oe_menu_toggler:before { width: 0; @@ -2005,6 +2007,7 @@ .openerp .oe_form header { position: relative; border-bottom: 1px solid #cacaca; + padding-left: 2px; background-color: #fcfcfc; background-image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#dedede)); background-image: -webkit-linear-gradient(top, #fcfcfc, #dedede); @@ -2017,6 +2020,9 @@ display: inline-block; float: right; } +.openerp .oe_form header .oe_form_button { + margin: 3px 2px 1px; +} .openerp .oe_form div.oe_chatter { min-width: 650px; max-width: 860px; @@ -2036,7 +2042,7 @@ min-width: 150px; } .openerp .oe_form div.oe_form_configuration .oe_form_group_cell_label { - padding: 2px 0; + padding: 1px 0; } .openerp .oe_form div.oe_form_configuration .oe_form_group_cell div div { padding: 1px 0; @@ -2201,7 +2207,7 @@ } .openerp .oe_form td.oe_form_group_cell_label { border-right: 1px solid #dddddd; - padding: 4px 0px 4px 0px; + padding: 2px 0px; } .openerp .oe_form td.oe_form_group_cell_label label { line-height: 18px; @@ -2209,7 +2215,7 @@ min-width: 140px; } .openerp .oe_form td.oe_form_group_cell + .oe_form_group_cell { - padding-left: 6px; + padding: 2px 0 2px 8px; } .openerp .oe_form .oe_form_group { width: 100%; @@ -2221,7 +2227,7 @@ .openerp .oe_form .oe_form_label_help[for], .openerp .oe_form .oe_form_label[for] { font-weight: bold; white-space: nowrap; - padding-right: 6px; + padding-right: 8px; } .openerp .oe_form .oe_form_label_help[for] span, .openerp .oe_form .oe_form_label[for] span { font-size: 80%; @@ -2297,7 +2303,6 @@ width: 100%; display: inline-block; padding: 2px 2px 2px 0px; - line-height: 1em; } .openerp .oe_form .oe_form_field input { margin: 0px; @@ -2595,6 +2600,15 @@ margin: 0 !important; padding: 0; } +.openerp .oe_list .oe_list_content .oe_group_header { + background-color: #fcfcfc; + background-image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#dedede)); + background-image: -webkit-linear-gradient(top, #fcfcfc, #dedede); + background-image: -moz-linear-gradient(top, #fcfcfc, #dedede); + background-image: -ms-linear-gradient(top, #fcfcfc, #dedede); + background-image: -o-linear-gradient(top, #fcfcfc, #dedede); + background-image: linear-gradient(to bottom, #fcfcfc, #dedede); +} .openerp .oe_list_content { width: 100%; } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 13f740f218c..374f3a6fc4e 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -379,15 +379,15 @@ $sheet-max-width: 860px color: white background: #DC5F59 button.oe_highlight - @include vertical-gradient(#dc5f59, #b33630) - @include box-shadow(none) - button.oe_highlight:active - @include vertical-gradient(#b33630, #dc5f59) - @include box-shadow(none) + border: 1px solid #795151 + @include vertical-gradient(#df3f3f, #a21a1a) + @include box-shadow((0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(155, 155, 155, 0.4) inset)) button.oe_highlight:hover - @include vertical-gradient(#DF6B66, #BF3A33) - //@include vertical-gradient(lighten(#dc5f59, 3%), lighten(#b33630, 3%)) - @include box-shadow(0 0 1px rgba(0, 0, 0, 0.2)) + @include vertical-gradient(lighten(#e04f4f, 2%), lighten(#a21a1a, 2%)) + button.oe_highlight:active + @include vertical-gradient(lighten(#a21a1a, 8%), darken(#df3f3f, 8%)) + .oe_background_grey + background: #eee !important .oe_form_dirty .oe_highlight_on_dirty @@ -418,7 +418,7 @@ $sheet-max-width: 860px max-height: 90px max-width: 90px @include radius(3px) - @include box-shadow(0 1px 3px rgba(0, 0, 0, 0.3)) + @include box-shadow(0 1px 4px rgba(0, 0, 0, 0.4)) border: none margin-bottom: 10px .oe_avatar + div @@ -689,7 +689,7 @@ $sheet-max-width: 860px font-family: "Lucida Grande", Helvetica, Verdana, Arial border: 1px solid #999999 background: whitesmoke - @include box-shadow(inset 0 1px 4px rgba(0, 0, 0, 0.3)) + @include box-shadow(inset 0 1px 4px rgba(0, 0, 0, 0.4)) @include radius(3px) input margin-bottom: 9px @@ -794,7 +794,6 @@ $sheet-max-width: 860px .oe_topbar width: 100% height: 31px - border-top: solid 1px #d3d3d3 @include vertical-gradient(#646060, #262626) @include semantic-html-override .oe_topbar_item @@ -948,18 +947,18 @@ $sheet-max-width: 860px .oe_menu_counter float: right text-shadow: 0 1px 1px rgba(0,0,0,0.2) - margin: 0px + margin: 1px padding: 1px 4px + border: none &:hover cursor: pointer - border: 1px solid #C81010 - @include box-shadow(0 0 2px #C81010) + @include transform(scale(1.1)) .oe_active - background: $link-color border-top: 1px solid lightGray - border-bottom: 1px solid lightGray + border-bottom: 1px solid #dedede text-shadow: 0 1px 1px rgba(0,0,0,0.2) - @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.2)) + @include box-shadow((inset 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2))) + background: $link-color a color: white .oe_menu_label @@ -970,6 +969,7 @@ $sheet-max-width: 860px .oe_menu_counter background: #eee color: $link-color + @include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.2)) .oe_menu_toggler:before width: 0 height: 0 @@ -1545,10 +1545,13 @@ $sheet-max-width: 860px header position: relative border-bottom: 1px solid #cacaca + padding-left: 2px @include vertical-gradient(#fcfcfc, #dedede) ul display: inline-block float: right + .oe_form_button + margin: 3px 2px 1px div.oe_chatter min-width: 650px max-width: $sheet-max-width @@ -1565,7 +1568,7 @@ $sheet-max-width: 860px label min-width: 150px .oe_form_group_cell_label - padding: 2px 0 + padding: 1px 0 .oe_form_group_cell div div padding: 1px 0 ul.oe_form_steps, ul.oe_form_steps_clickable @@ -1661,13 +1664,13 @@ $sheet-max-width: 860px margin: 2px td.oe_form_group_cell_label border-right: 1px solid #ddd - padding: 4px 0px 4px 0px + padding: 2px 0px label line-height: 18px display: block min-width: 140px td.oe_form_group_cell + .oe_form_group_cell - padding-left: 6px + padding: 2px 0 2px 8px .oe_form_group width: 100% margin: 9px 0 9px 0 @@ -1679,7 +1682,7 @@ $sheet-max-width: 860px .oe_form_label_help[for], .oe_form_label[for] font-weight: bold white-space: nowrap - padding-right: 6px + padding-right: 8px span font-size: 80% color: darkGreen @@ -1742,7 +1745,6 @@ $sheet-max-width: 860px width: 100% display: inline-block padding: 2px 2px 2px 0px - line-height: 1em input margin: 0px input[type="text"], input[type="password"], input[type="file"], select @@ -1991,6 +1993,8 @@ $sheet-max-width: 860px position: absolute margin: 0 !important // dammit padding: 0 + .oe_list_content .oe_group_header + @include vertical-gradient(#fcfcfc, #dedede) .oe_list_content width: 100% @@ -2050,6 +2054,7 @@ $sheet-max-width: 860px > tr:nth-child(odd) background-color: #f0f0fa @include vertical-gradient(#f0f0fa, #eeeef6) + > tfoot border-top: 2px solid #cacaca border-bottom: 1px solid #cacaca diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 736e10875f6..3114aaf315f 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -731,6 +731,8 @@ instance.web.Menu = instance.web.Widget.extend({ * @param {Number} id database id of the terminal menu to select */ open_menu: function (id) { + this.current_menu = id; + this.session.active_id = id; var $clicked_menu, $sub_menu, $main_menu; $clicked_menu = this.$el.add(this.$secondary_menus).find('a[data-menu=' + id + ']'); this.trigger('open_menu', id, $clicked_menu); @@ -803,16 +805,15 @@ instance.web.Menu = instance.web.Widget.extend({ } } } - this.open_menu(id); - this.current_menu = id; - this.session.active_id = id; if (action_id) { this.trigger('menu_click', { action_id: action_id, needaction: needaction, - id: id + id: id, + previous_menu_id: this.current_menu // Here we don't know if action will fail (in which case we have to revert menu) }, $item); } + this.open_menu(id); }, /** * Jquery event handler for menu click @@ -870,10 +871,12 @@ instance.web.UserMenu = instance.web.Widget.extend({ }, on_menu_settings: function() { var self = this; - self.rpc("/web/action/load", { action_id: "base.action_res_users_my" }, function(result) { - result.result.res_id = instance.session.uid; - self.getParent().action_manager.do_action(result.result); - }); + if (!this.getParent().has_uncommitted_changes()) { + self.rpc("/web/action/load", { action_id: "base.action_res_users_my" }, function(result) { + result.result.res_id = instance.session.uid; + self.getParent().action_manager.do_action(result.result); + }); + } }, on_menu_about: function() { var self = this; @@ -951,7 +954,10 @@ instance.web.Client = instance.web.Widget.extend({ }, toggle_bars: function(value) { this.$('tr:has(td.oe_topbar),.oe_leftbar').toggle(value); - } + }, + has_uncommitted_changes: function() { + return false; + }, }); instance.web.WebClient = instance.web.Client.extend({ @@ -963,6 +969,9 @@ instance.web.WebClient = instance.web.Client.extend({ start: function() { var self = this; return $.when(this._super()).pipe(function() { + self.$el.on('click', '.oe_logo', function() { + self.action_manager.do_action('home'); + }); if (jQuery.param !== undefined && jQuery.deparam(jQuery.param.querystring()).kitten !== undefined) { $("body").addClass("kitten-mode-activated"); if ($.blockUI) { @@ -1048,11 +1057,13 @@ instance.web.WebClient = instance.web.Client.extend({ }, on_logout: function() { var self = this; - this.session.session_logout().then(function () { - $(window).unbind('hashchange', self.on_hashchange); - self.do_push_state({}); - window.location.reload(); - }); + if (!this.has_uncommitted_changes()) { + this.session.session_logout().then(function () { + $(window).unbind('hashchange', self.on_hashchange); + self.do_push_state({}); + window.location.reload(); + }); + } }, bind_hashchange: function() { var self = this; @@ -1095,14 +1106,15 @@ instance.web.WebClient = instance.web.Client.extend({ }, on_menu_action: function(options) { var self = this; - this.rpc("/web/action/load", { action_id: options.action_id }) - .then(function (result) { + return this.rpc("/web/action/load", { action_id: options.action_id }) + .pipe(function (result) { var action = result.result; if (options.needaction) { action.context.search_default_needaction_pending = true; } - self.action_manager.clear_breadcrumbs(); - self.action_manager.do_action(action); + return $.when(self.action_manager.do_action(action, null, true)).fail(function() { + self.menu.open_menu(options.previous_menu_id); + }); }); }, do_action: function(action) { @@ -1122,7 +1134,16 @@ instance.web.WebClient = instance.web.Client.extend({ $(".oe_webclient", this.$el).removeClass("oe_content_full_screen"); $("body").css({'overflow-y':'scroll'}); } - } + }, + has_uncommitted_changes: function() { + var $e = $.Event('clear_uncommitted_changes'); + instance.web.bus.trigger('clear_uncommitted_changes', $e); + if ($e.isDefaultPrevented()) { + return true; + } else { + return this._super.apply(this, arguments); + } + }, }); instance.web.EmbeddedClient = instance.web.Client.extend({ diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js index 0c10d40f0ca..5f0ecc80827 100644 --- a/addons/web/static/src/js/coresetup.js +++ b/addons/web/static/src/js/coresetup.js @@ -585,7 +585,7 @@ instance.session.on('module_loaded', this, function () { /** Setup blockui */ if ($.blockUI) { $.blockUI.defaults.baseZ = 1100; - $.blockUI.defaults.message = '
      '; + $.blockUI.defaults.message = '
      '; $.blockUI.defaults.css.border = '0'; $.blockUI.defaults.css["background-color"] = ''; } @@ -593,11 +593,12 @@ if ($.blockUI) { var messages_by_seconds = function() { return [ [0, _t("Loading...")], - [30, _t("Still loading...")], + [20, _t("Still loading...")], [60, _t("Still loading...
      Please be patient.")], [120, _t("Don't leave yet,
      it's still loading...")], [300, _t("You may not believe it,
      but the application is actually loading...")], - [600, _t("You know, sometimes,
      OpenERP can be a little bit slow,
      because it's loading...")], + [420, _t("Take a minute to get a coffee,
      because it's loading...")], + [600, _t("It's loading...
      By the way, did you tried the kitten mode?")], [3600, _t("Maybe you should consider pressing F5...")], ]; }; diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index 10fd727e57a..29e799e54c3 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -417,6 +417,7 @@ instance.web.data = { var group_size = fixed_group[grouping_field + '_count'] || fixed_group.__count || 0; var leaf_group = fixed_group.__context.group_by.length === 0; this.attributes = { + folded: !!(fixed_group.__fold), grouped_on: grouping_field, // if terminal group (or no group) and group_by_no_leaf => use group.__count length: group_size, @@ -494,6 +495,7 @@ instance.web.DataGroup = instance.web.CallbackEnabled.extend( /** @lends opener { __context: child_context, __domain: group.model.domain(), + folded: group.get('folded'), grouped_on: group.get('grouped_on'), length: group.get('length'), value: group.get('value'), diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index f65da67d8fb..744aa8d000d 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -92,6 +92,11 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM self.on("change:actual_mode", self, self.init_pager); self.init_pager(); }); + instance.web.bus.on('clear_uncommitted_changes', this, function(e) { + if (!this.can_be_discarded()) { + e.preventDefault(); + } + }); }, destroy: function() { _.each(this.get_widgets(), function(w) { @@ -748,7 +753,13 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM return def.promise(); }, can_be_discarded: function() { - return !this.$el.is('.oe_form_dirty') || confirm(_t("Warning, the record has been modified, your changes will be discarded.")); + if (this.$el.is('.oe_form_dirty')) { + if (!confirm(_t("Warning, the record has been modified, your changes will be discarded.\n\nAre you sure you want to leave this page ?"))) { + return false; + } + this.$el.removeClass('oe_form_dirty'); + } + return true; }, /** * Triggers saving the form's record. Chooses between creating a new diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index 6c46003a380..22333898813 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -1265,7 +1265,7 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we self.bind_child_events(child); child.datagroup = group; - var $row = child.$row = $(''); + var $row = child.$row = $(''); if (group.openable && group.length) { $row.click(function (e) { if (!$row.data('open')) { diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 95693ca9c50..90709276bdf 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -101,7 +101,9 @@ instance.web.ActionManager = instance.web.Widget.extend({ select_breadcrumb: function(index, subindex) { for (var i = this.breadcrumbs.length - 1; i >= 0; i--) { if (i > index) { - this.remove_breadcrumb(i); + if (this.remove_breadcrumb(i) === false) { + return false; + } } } var item = this.breadcrumbs[index]; @@ -110,8 +112,10 @@ instance.web.ActionManager = instance.web.Widget.extend({ return true; }, clear_breadcrumbs: function() { - while (this.breadcrumbs.length) { - this.remove_breadcrumb(0); + for (var i = this.breadcrumbs.length - 1; i >= 0; i--) { + if (this.remove_breadcrumb(0) === false) { + break; + } } }, remove_breadcrumb: function(index) { @@ -121,9 +125,17 @@ instance.web.ActionManager = instance.web.Widget.extend({ return item.widget === it.widget; }); if (!dups.length) { - item.destroy(); + if (this.getParent().has_uncommitted_changes()) { + this.inner_widget = item.widget; + this.breadcrumbs.splice(index, 0, item); + return false; + } else { + item.destroy(); + } } } + var last_widget = this.breadcrumbs.slice(-1)[0]; + this.inner_widget = last_widget && last_widget.widget; }, get_title: function() { var titles = []; @@ -208,19 +220,19 @@ instance.web.ActionManager = instance.web.Widget.extend({ } }); }, - do_action: function(action, on_close) { + do_action: function(action, on_close, clear_breadcrumbs) { if (_.isString(action) && instance.web.client_actions.contains(action)) { var action_client = { type: "ir.actions.client", tag: action }; - return this.do_action(action_client); + return this.do_action(action_client, on_close, clear_breadcrumbs); } else if (_.isNumber(action) || _.isString(action)) { var self = this; - return self.rpc("/web/action/load", { action_id: action }, function(result) { - self.do_action(result.result, on_close); + return self.rpc("/web/action/load", { action_id: action }).pipe(function(result) { + return self.do_action(result.result, on_close, clear_breadcrumbs); }); } if (!action.type) { console.error("No type for action", action); - return null; + return $.Deferred().reject(); } var type = action.type.replace(/\./g,'_'); var popup = action.target === 'new'; @@ -235,16 +247,23 @@ instance.web.ActionManager = instance.web.Widget.extend({ }, action.flags || {}); if (!(type in this)) { console.error("Action manager can't handle action of type " + action.type, action); - return null; + return $.Deferred().reject(); } - return this[type](action, on_close); + return this[type](action, on_close, clear_breadcrumbs); }, null_action: function() { this.dialog_stop(); this.clear_breadcrumbs(); }, - ir_actions_common: function(action, on_close) { + ir_actions_common: function(action, on_close, clear_breadcrumbs) { var self = this, klass, widget, post_process; + if (this.inner_widget && (action.type === 'ir.actions.client' || action.target !== 'new')) { + if (this.getParent().has_uncommitted_changes()) { + return $.Deferred().reject(); + } else if (clear_breadcrumbs) { + this.clear_breadcrumbs(); + } + } if (action.type === 'ir.actions.client') { var ClientWidget = instance.web.client_actions.get_object(action.tag); widget = new ClientWidget(this, action.params); @@ -287,17 +306,17 @@ instance.web.ActionManager = instance.web.Widget.extend({ this.inner_widget.appendTo(this.$el); } }, - ir_actions_act_window: function (action, on_close) { + ir_actions_act_window: function (action, on_close, clear_breadcrumbs) { var self = this; if (action.target !== 'new') { if(action.menu_id) { this.dialog_stop(); return this.getParent().do_action(action, function () { instance.webclient.menu.open_menu(action.menu_id); - }); + }, clear_breadcrumbs); } } - return this.ir_actions_common(action, on_close); + return this.ir_actions_common(action, on_close, clear_breadcrumbs); }, ir_actions_client: function (action, on_close) { return this.ir_actions_common(action, on_close); @@ -314,7 +333,7 @@ instance.web.ActionManager = instance.web.Widget.extend({ action_id: action.id, context: action.context || {} }).then(function (action) { - self.do_action(action, on_closed) + self.do_action(action, on_closed, clear_breadcrumbs) }); }, ir_actions_report_xml: function(action, on_closed) { @@ -412,8 +431,10 @@ instance.web.ViewManager = instance.web.Widget.extend({ var self = this; var view = this.views[view_type]; var view_promise; - if(!view) + var form = this.views['form']; + if (!view || (form && form.controller && !form.controller.can_be_discarded())) { return $.Deferred().reject(); + } if (!no_store) { this.views_history.push(view_type); @@ -732,6 +753,14 @@ instance.web.ViewManagerAction = instance.web.ViewManager.extend({ var dialog = new instance.web.Dialog(this, { title: _t("Fields View Get"), width: '95%' }).open(); $('
      ').text(instance.web.json_node_to_xml(current_view.fields_view.arch, true)).appendTo(dialog.$el);
                       break;
      +            case 'tests':
      +                this.do_action({
      +                    name: "JS Tests",
      +                    target: 'new',
      +                    type : 'ir.actions.act_url',
      +                    url: '/web/static/test/test.html'
      +                })
      +                break;
                   case 'perm_read':
                       var ids = current_view.get_selected_ids();
                       if (ids.length === 1) {
      diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
      index d206c538e1c..d067b7586fb 100644
      --- a/addons/web/static/src/xml/base.xml
      +++ b/addons/web/static/src/xml/base.xml
      @@ -79,7 +79,7 @@
                   
                   
               
      @@ -404,13 +404,10 @@ - - d.url = '/' + (window.location.search || ''); - - +
      @@ -479,6 +476,7 @@ + diff --git a/addons/web/static/test/Widget.js b/addons/web/static/test/Widget.js index 102a7d94d29..3e6cc262565 100644 --- a/addons/web/static/test/Widget.js +++ b/addons/web/static/test/Widget.js @@ -220,7 +220,7 @@ $(document).ready(function () { }); module('Widget.renderElement', mod); - test('repeated', function () { + asyncTest('repeated', 4, function () { var w = new (instance.web.Widget.extend({ template: 'test.widget.template-value' })); diff --git a/addons/web/static/test/fulltest.html b/addons/web/static/test/fulltest.html index a031325966a..2917b246b8d 100644 --- a/addons/web/static/test/fulltest.html +++ b/addons/web/static/test/fulltest.html @@ -2,7 +2,7 @@ - OpenERP + OpenERP Web Full Stack @@ -12,7 +12,7 @@ - + @@ -37,13 +37,7 @@ -

      - OpenERP Web Test Suite: javascript to XML-RPC (excluded) -

      -

      -
      -

      -
        +
        diff --git a/addons/web/static/test/test.html b/addons/web/static/test/test.html index 35d57d3c3a6..209723af5a0 100644 --- a/addons/web/static/test/test.html +++ b/addons/web/static/test/test.html @@ -2,7 +2,7 @@ - OpenERP + OpenERP Web Test Suite @@ -46,11 +46,7 @@ -

        OpenERP web Test Suite

        -

        -
        -

        -
          +
          diff --git a/addons/web_calendar/i18n/hu.po b/addons/web_calendar/i18n/hu.po new file mode 100644 index 00000000000..f825870d50b --- /dev/null +++ b/addons/web_calendar/i18n/hu.po @@ -0,0 +1,144 @@ +# Hungarian translation for openerp-web +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the openerp-web package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-web\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2012-07-02 09:06+0200\n" +"PO-Revision-Date: 2012-09-06 08:35+0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: Hungarian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-09-07 05:05+0000\n" +"X-Generator: Launchpad (build 15914)\n" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:11 +msgid "Calendar" +msgstr "Naptár" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:70 +msgid "Filter" +msgstr "Szűrő" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:144 +msgid "Today" +msgstr "Ma" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:145 +msgid "Day" +msgstr "Nap" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:146 +msgid "Week" +msgstr "Hét" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:147 +msgid "Month" +msgstr "Hó" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:148 +msgid "New event" +msgstr "Új esemény" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:149 +msgid "Save" +msgstr "Mentés" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:150 +msgid "Cancel" +msgstr "Mégsem" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:151 +msgid "Details" +msgstr "Részletek" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:152 +msgid "Edit" +msgstr "Szerkesztés" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:153 +msgid "Delete" +msgstr "Törlés" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:155 +msgid "Event will be deleted permanently, are you sure?" +msgstr "Az esemény véglegesen törlődik, biztos benne?" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:156 +#: addons/web_calendar/static/src/js/calendar.js:169 +msgid "Description" +msgstr "Leírás" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:157 +msgid "Time period" +msgstr "Időintervallum" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:158 +msgid "Full day" +msgstr "Egész nap" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:161 +msgid "Do you want to edit the whole set of repeated events?" +msgstr "Az összes ismétlődő eseményt szerkeszteni akarja?" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:162 +msgid "Repeat event" +msgstr "Esemény ismétlése" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:163 +msgid "Disabled" +msgstr "Tiltva" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:164 +msgid "Enabled" +msgstr "Engedélyezve" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:167 +#: addons/web_calendar/static/src/js/calendar.js:175 +msgid "Agenda" +msgstr "Napirend" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:168 +msgid "Date" +msgstr "Dátum" + +#. openerp-web +#: addons/web_calendar/static/src/js/calendar.js:172 +msgid "Year" +msgstr "Év" + +#. openerp-web +#: addons/web_calendar/static/src/xml/web_calendar.xml:5 +#: addons/web_calendar/static/src/xml/web_calendar.xml:6 +msgid " " +msgstr " " + +#~ msgid "Navigator" +#~ msgstr "Navigátor" diff --git a/addons/web_kanban/static/src/css/kanban.css b/addons/web_kanban/static/src/css/kanban.css index 345becc7cdd..1b9530b0845 100644 --- a/addons/web_kanban/static/src/css/kanban.css +++ b/addons/web_kanban/static/src/css/kanban.css @@ -1,4 +1,5 @@ .openerp .oe_kanban_view { + background: white; height: inherit; } .openerp .oe_kanban_view.oe_kanban_grouped .oe_kanban_dummy_cell { @@ -229,7 +230,6 @@ margin-bottom: 5px; } .openerp .oe_kanban_view .oe_kanban_box_header { - background: #eeeeee; border-bottom: 1px solid #cccccc; } .openerp .oe_kanban_view .oe_kanban_title { @@ -248,9 +248,6 @@ .openerp .oe_kanban_view.oe_kanban_grouped .oe_kanban_show_more .oe_button { width: 100%; } -.openerp .oe_kanban_view.oe_kanban_ungrouped .oe_kanban_column { - background: white; -} .openerp .oe_kanban_view.oe_kanban_ungrouped .oe_kanban_column .oe_kanban_record { float: left; padding: 2px; @@ -265,6 +262,9 @@ .openerp .oe_kanban_view .oe_kanban_action_a { text-decoration: none; } +.openerp .oe_kanban_view .oe_kanban_action_a:hover { + text-decoration: none; +} .openerp .oe_kanban_view .oe_kanban_table { width: 100%; border: none; @@ -340,15 +340,12 @@ background: white; border: 1px solid #d8d8d8; border-bottom-color: #b9b9b9; - padding: 6px; + padding: 8px; display: block; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } -.openerp .oe_kanban_view .oe_kanban_card:last-child { - margin-bottom: 0; -} .openerp .oe_kanban_view .oe_kanban_card:hover { border: 1px solid #7c7bad; -moz-box-shadow: 0 0 4px #7c7bad; diff --git a/addons/web_kanban/static/src/css/kanban.sass b/addons/web_kanban/static/src/css/kanban.sass index b85d3ebea03..cd2b210a733 100644 --- a/addons/web_kanban/static/src/css/kanban.sass +++ b/addons/web_kanban/static/src/css/kanban.sass @@ -37,6 +37,7 @@ .openerp .oe_kanban_view // KanbanView {{{ //background: url(data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAKElEQVQIHWP8DwTv379nAAFBQUEGhnfv3oHEwADEZgJLIRGMIClkLQCr3x2Htp/lLwAAAABJRU5ErkJggg==) + background: white height: inherit &.oe_kanban_grouped .oe_kanban_dummy_cell background: url(/web/static/src/img/form_sheetbg.png) @@ -219,7 +220,6 @@ -webkit-border-radius: 4px margin-bottom: 5px .oe_kanban_box_header - background: #EEE border-bottom: 1px solid #CCC .oe_kanban_title font-size: 95% @@ -234,7 +234,6 @@ &.oe_kanban_grouped .oe_kanban_show_more .oe_button width: 100% &.oe_kanban_ungrouped .oe_kanban_column - background: white .oe_kanban_record float: left padding: 2px @@ -246,6 +245,8 @@ margin: 0 .oe_kanban_action_a text-decoration: none + &:hover + text-decoration: none .oe_kanban_table width: 100% border: none @@ -307,11 +308,9 @@ background: white border: 1px solid #d8d8d8 border-bottom-color: #b9b9b9 - padding: 6px + padding: 8px display: block @include radius(4px) - &:last-child - margin-bottom: 0 &:hover border: 1px solid #7C7BAD @include box-shadow(0 0 4px #7C7BAD) diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js index 0cef134d95b..a4dbae559b7 100644 --- a/addons/web_kanban/static/src/js/kanban.js +++ b/addons/web_kanban/static/src/js/kanban.js @@ -471,7 +471,7 @@ instance.web_kanban.KanbanGroup = instance.web.Widget.extend({ var key = this.view.group_by + '-' + this.value; if (!this.view.state.groups[key]) { this.view.state.groups[key] = { - folded: false + folded: group?group.folded:false }; } this.state = this.view.state.groups[key]; diff --git a/addons/web_process/__init__.py b/addons/web_process/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/addons/web_process/__openerp__.py b/addons/web_process/__openerp__.py deleted file mode 100644 index 7192e83fda7..00000000000 --- a/addons/web_process/__openerp__.py +++ /dev/null @@ -1,21 +0,0 @@ -{ - 'name': 'Process', - 'version': '2.0', - 'description': """ -OpenERP Web process view. -========================= - -""", - 'depends': ['web_diagram'], - 'js': [ - 'static/lib/dracula/*.js', - 'static/src/js/process.js' - ], - 'css': [ - 'static/src/css/process.css' - ], - 'qweb': [ - 'static/src/xml/*.xml' - ], - 'auto_install': True -} diff --git a/addons/web_process/i18n/ar.po b/addons/web_process/i18n/ar.po deleted file mode 100644 index 3e1df341eca..00000000000 --- a/addons/web_process/i18n/ar.po +++ /dev/null @@ -1,118 +0,0 @@ -# Arabic translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-08 00:38+0000\n" -"Last-Translator: kifcaliph \n" -"Language-Team: Arabic \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "إلغاء" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "حفظ" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "مستعرض العمليات" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "التوثيق" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "اقرأ الوثائق من علي الإنترنت" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "المنتدى" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "نقاش المجتمع" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "كتب" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "احصل علي الكتاب" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "أوبنيرب للمنشآت" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "قم بشراء أوبنيرب" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "عمليّة" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "ملاحظات:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "آخر تعديل بواسطة:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "غ/م" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "تدفقات بيانية:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "متعلق:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "اختر العملية" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "تحديد" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "تحرير العملية" diff --git a/addons/web_process/i18n/bg.po b/addons/web_process/i18n/bg.po deleted file mode 100644 index 9aa1fe53d69..00000000000 --- a/addons/web_process/i18n/bg.po +++ /dev/null @@ -1,118 +0,0 @@ -# Bulgarian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-07-09 12:29+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Bulgarian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Отказ" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Запис" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Изглед на процеса" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Документация" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Прочети документацията онлайн" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Форум" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Обща дискусия" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Книги" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Вземи книгите" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Купи OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Процес" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Бележки" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Последно модифицирано от:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Междинен поток" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Свързани" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Избор Процес" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Избор" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Редакция Процес" diff --git a/addons/web_process/i18n/bn.po b/addons/web_process/i18n/bn.po deleted file mode 100644 index a5a10d017da..00000000000 --- a/addons/web_process/i18n/bn.po +++ /dev/null @@ -1,118 +0,0 @@ -# Bengali translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-04-12 22:04+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Bengali \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "বাতিল করুন" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "সংরক্ষণ করুন" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "প্রক্রিয়াদর্শন" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "নথিকরন" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "অনলাইনে নথিপত্র পরুন" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "মুক্ত আলোচনাস্থল" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "সাম্প্রদায়িক আলোচনা" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "বইগুলি" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "বইগুলি নাও" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "ওপেন-ই-আর-পি শিল্পোদ্যোগ" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "ওপেন-ই-আর-পি শিল্পোদ্যোগ কিনুন" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "প্রক্রিয়া" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "টীকাগুলি" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "সর্বশেষ পরিবর্তন" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "প্রযোজ্য নয়" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "উপপ্রবাহগুলি:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "সম্পর্কিত:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "প্রক্রিয়া নির্বাচন করুন" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "নির্বাচন করুন" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "প্রক্রিয়া সম্পাদনা করুন" diff --git a/addons/web_process/i18n/bs.po b/addons/web_process/i18n/bs.po deleted file mode 100644 index ca18ca5c8ba..00000000000 --- a/addons/web_process/i18n/bs.po +++ /dev/null @@ -1,118 +0,0 @@ -# Bosnian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-04-17 17:00+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Bosnian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Otkaži" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Spasi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Pregled Procesa" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentacija" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Čitaj Dokumentaciju Online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Zajednička Diskusija" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Knjige" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Nabavite knjige" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "Pokreni OpenERP" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Kupi OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Bilješke:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Posljednje modifikovano od:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/A" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Srodnost:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Odabrani Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Izaberi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Edituj proces" diff --git a/addons/web_process/i18n/ca.po b/addons/web_process/i18n/ca.po deleted file mode 100644 index 49ae4877ad8..00000000000 --- a/addons/web_process/i18n/ca.po +++ /dev/null @@ -1,118 +0,0 @@ -# Catalan translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-06-16 18:19+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Catalan \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "" diff --git a/addons/web_process/i18n/cs.po b/addons/web_process/i18n/cs.po deleted file mode 100644 index 64c1efebe9d..00000000000 --- a/addons/web_process/i18n/cs.po +++ /dev/null @@ -1,119 +0,0 @@ -# Czech translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-03-22 09:43+0000\n" -"Last-Translator: Jiří Hajda \n" -"Language-Team: opener-i18n-czech \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" -"X-Poedit-Language: Czech\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Zrušit" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Uložit" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Pohled procesu" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentace" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Číst dokumentaci online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Fórum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Komunitní diskuse" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Knihy" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Získat knihy" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Zakoupit OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Poznámky:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Naposledy změněno:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/A" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Podtoky:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Vztažené:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Vybrat proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Vybrat" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Upravit proces" diff --git a/addons/web_process/i18n/da.po b/addons/web_process/i18n/da.po deleted file mode 100644 index eebabf25d23..00000000000 --- a/addons/web_process/i18n/da.po +++ /dev/null @@ -1,118 +0,0 @@ -# Danish translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-07-01 09:08+0000\n" -"Last-Translator: Aputsiaq Niels Janussen \n" -"Language-Team: Danish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Annullér" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Gem" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentation" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Læs dokumentation online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Bøger" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Noter:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Senest ændret af:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "Ikke tilgængelig" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Relateret:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Markér" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "" diff --git a/addons/web_process/i18n/de.po b/addons/web_process/i18n/de.po deleted file mode 100644 index 9ad55a18bcc..00000000000 --- a/addons/web_process/i18n/de.po +++ /dev/null @@ -1,118 +0,0 @@ -# German translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-07 19:13+0000\n" -"Last-Translator: Ferdinand @ Camptocamp \n" -"Language-Team: German \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Abbrechen" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Speichern" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Prozess Ansicht" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentation" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Lese Online Dokumentation" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Community Diskussion" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Bücher" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Kaufe Bücher" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Kaufe OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Prozess" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Anmerkungen:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Zuletzt bearbeitet von:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "n. v." - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Unterprozesse:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Zugehörig:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Prozess auswählen" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Auswählen" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Prozess bearbeiten" diff --git a/addons/web_process/i18n/en_GB.po b/addons/web_process/i18n/en_GB.po deleted file mode 100644 index c4317088faf..00000000000 --- a/addons/web_process/i18n/en_GB.po +++ /dev/null @@ -1,118 +0,0 @@ -# English (United Kingdom) translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-09 11:44+0000\n" -"Last-Translator: John Bradshaw \n" -"Language-Team: English (United Kingdom) \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Cancel" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Save" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Process View" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentation" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Read Documentation Online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Community Discussion" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Books" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Get the books" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Purchase OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Process" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Notes:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Last modified by:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/A" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Subflows :" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Related:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Select Process" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Select" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Edit Process" diff --git a/addons/web_process/i18n/es.po b/addons/web_process/i18n/es.po deleted file mode 100644 index 88a9f16ed1d..00000000000 --- a/addons/web_process/i18n/es.po +++ /dev/null @@ -1,118 +0,0 @@ -# Spanish translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-13 12:36+0000\n" -"Last-Translator: Daniel Campos (Avanzosc) \n" -"Language-Team: Spanish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Cancelar" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Guardar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Vista del proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentación" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Leer Documentación Online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Foro" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Debate de la comunidad" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Obtener los libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Comprar OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Observaciones:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Última modificación por:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/D" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Subflujos:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Relacionado:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Seleccionar Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Seleccionar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Editar Proceso" diff --git a/addons/web_process/i18n/es_CL.po b/addons/web_process/i18n/es_CL.po deleted file mode 100644 index 636612638df..00000000000 --- a/addons/web_process/i18n/es_CL.po +++ /dev/null @@ -1,118 +0,0 @@ -# Spanish (Chile) translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-04-14 15:22+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Spanish (Chile) \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Cancelar" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Guardar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Vista del proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentación" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Leer documentación online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Foro" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Debate de la comunidad" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Obtener los libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Comprar OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Observaciones:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Última modificación por:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/D" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Subflujos:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Relacionado:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Seleccionar proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Seleccionar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Editar Proceso" diff --git a/addons/web_process/i18n/es_CR.po b/addons/web_process/i18n/es_CR.po deleted file mode 100644 index b102f2838cd..00000000000 --- a/addons/web_process/i18n/es_CR.po +++ /dev/null @@ -1,118 +0,0 @@ -# Spanish (Costa Rica) translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-17 14:28+0000\n" -"Last-Translator: Freddy Gonzalez \n" -"Language-Team: Spanish (Costa Rica) \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Cancelar" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Guardar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Vista de Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentación" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Leer documentación en línea" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Foro" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Discusión de la comunidad" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Obtener los libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Comprar OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Notas:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Última modificación por:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/A" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Sub-flujos:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Relacionado:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Seleccionar proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Seleccionar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Editar proceso" diff --git a/addons/web_process/i18n/es_EC.po b/addons/web_process/i18n/es_EC.po deleted file mode 100644 index c2003008290..00000000000 --- a/addons/web_process/i18n/es_EC.po +++ /dev/null @@ -1,118 +0,0 @@ -# Spanish (Ecuador) translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-03-22 20:19+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Spanish (Ecuador) \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Cancelar" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Guardar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Vista del proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentación" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Leer Documentación Online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Foro" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Debate de la comunidad" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Obtener los libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Comprar OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Observaciones:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Última modificación por:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/D" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Subflujos:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Relacionado:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Seleccionar Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Seleccionar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Editar Proceso" diff --git a/addons/web_process/i18n/fi.po b/addons/web_process/i18n/fi.po deleted file mode 100644 index b853bff6426..00000000000 --- a/addons/web_process/i18n/fi.po +++ /dev/null @@ -1,118 +0,0 @@ -# Finnish translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-03-19 11:50+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Finnish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Peruuta" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Talleta" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Prosessinäkymä" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentointi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Lue dokumentaatio verkosta" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Foorumi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Yhteisön keskustelut" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Kirjat" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Hanki kirjat" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Osta OpenERP enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Prosessi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Muistiinpanot:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Viimeksi muokkasi:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "Ei saatavilla" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Työnkulku (alataso):" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Liittyy:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Valitse Prosessi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Valitse" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Muokkaa prosessia" diff --git a/addons/web_process/i18n/fr.po b/addons/web_process/i18n/fr.po deleted file mode 100644 index 325252c2f09..00000000000 --- a/addons/web_process/i18n/fr.po +++ /dev/null @@ -1,118 +0,0 @@ -# French translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-15 09:56+0000\n" -"Last-Translator: Olivier Dony (OpenERP) \n" -"Language-Team: French \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Annuler" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Enregistrer" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Vue processus" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentation" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Lire la documentation en ligne" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Discussion communautaire" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Livres" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Obtenir les livres" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Souscrire à OpeneRP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Processus métier" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Notes :" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Dernière modification par :" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/D" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Sous-flux :" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Processus métier connexes :" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Sélectionner un processus métier" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Sélectionner" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Modifier processus métier" diff --git a/addons/web_process/i18n/gl.po b/addons/web_process/i18n/gl.po deleted file mode 100644 index a06a31db591..00000000000 --- a/addons/web_process/i18n/gl.po +++ /dev/null @@ -1,118 +0,0 @@ -# Galician translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-13 23:07+0000\n" -"Last-Translator: Amós Oviedo \n" -"Language-Team: Galician \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Cancelar" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Gardar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Vista de Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentación" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Lea a Documentación En liña" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Foro" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Discusión na Comunidade" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Conseguir os libros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Comprar OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Observacións" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Última modificación feita por:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/D" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Subfluxos:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Relacionado:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Escolla un Proceso" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Seleccionar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Editar Proceso" diff --git a/addons/web_process/i18n/hr.po b/addons/web_process/i18n/hr.po deleted file mode 100644 index 7963cc01288..00000000000 --- a/addons/web_process/i18n/hr.po +++ /dev/null @@ -1,118 +0,0 @@ -# Croatian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-08 08:44+0000\n" -"Last-Translator: Marijan Rajic \n" -"Language-Team: Croatian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Odustani" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Snimi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Pregled procesa" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentacija" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Pogledajte dokumentaciju na internetu" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Rasprave" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Knjige" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Nabavi knjige" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Nabavite OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Bilješke:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Promijenio:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/A" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Podtokovi:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Povezani:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Odaberi proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Odaberi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Uredi proces" diff --git a/addons/web_process/i18n/hu.po b/addons/web_process/i18n/hu.po deleted file mode 100644 index c34533d9874..00000000000 --- a/addons/web_process/i18n/hu.po +++ /dev/null @@ -1,118 +0,0 @@ -# Hungarian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-07-19 06:28+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Hungarian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Mégsem" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Mentés" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentáció" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Olvassa a dokumentációt online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Fórum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Közösségi vitafórum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Könyvek" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Megjegyzések:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Utoljára módosította:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Alfolyamatok:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Kapcsolódó:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Folyamat kiválasztása" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Kiválaszt" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "" diff --git a/addons/web_process/i18n/it.po b/addons/web_process/i18n/it.po deleted file mode 100644 index ed09b1d03a2..00000000000 --- a/addons/web_process/i18n/it.po +++ /dev/null @@ -1,118 +0,0 @@ -# Italian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-16 22:02+0000\n" -"Last-Translator: Davide Corio - agilebg.com \n" -"Language-Team: Italian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Annulla" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Salva" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Vista Processo" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentazione" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Leggi la Documentazione Online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Discussioni Community" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Libri" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Ottieni i libri" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Acquista OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Processo" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Note:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Ultima modifica di:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/A" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Sottoflussi:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Correlati:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Seleziona Processo" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Seleziona" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Modifica Processo" diff --git a/addons/web_process/i18n/ja.po b/addons/web_process/i18n/ja.po deleted file mode 100644 index 4c6292af40d..00000000000 --- a/addons/web_process/i18n/ja.po +++ /dev/null @@ -1,118 +0,0 @@ -# Japanese translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-07-19 04:29+0000\n" -"Last-Translator: Akira Hiyama \n" -"Language-Team: Japanese \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "キャンセル" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "保存" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "プロセスビュー" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "ドキュメンテーション" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "オンラインのドキュメントを読んで下さい" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "フォーラム" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "コミュニティの議論" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "本" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "本を手に入れる" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERPエンタープライズ" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "OpenERPエンタープライズを購入" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "プロセス" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "注記" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "最終更新者:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "該当なし" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "サブフロー:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "関係:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "プロセスの選択" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "選択" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "プロセスの編集" diff --git a/addons/web_process/i18n/ka.po b/addons/web_process/i18n/ka.po deleted file mode 100644 index 4c403c4efd2..00000000000 --- a/addons/web_process/i18n/ka.po +++ /dev/null @@ -1,118 +0,0 @@ -# Georgian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-03-15 19:07+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Georgian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "შეწყვეტა" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "შენახვა" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "პროცესის ხედი" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "დოკუმენტაცია" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "წაიკითხეთ დოკუმენტაცია ონლაინ რეჟიმში" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "ფორუმი" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "საზოგადო დისკუსია" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "წიგნები" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "წიგნების მოძიება" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "OpenERP Enterprise-ს შეძენა" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "პროცესი" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "შენიშვნები:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "ბოლოს შეცვალა:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "არ არის მოცემული" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "ქვენაკადები:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "დაკავშირებული:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "აირჩიე პროცესი" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "აირჩიე" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "შეცვალე პროცესი" diff --git a/addons/web_process/i18n/mk.po b/addons/web_process/i18n/mk.po deleted file mode 100644 index 463fc07210d..00000000000 --- a/addons/web_process/i18n/mk.po +++ /dev/null @@ -1,118 +0,0 @@ -# Macedonian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-08 10:30+0000\n" -"Last-Translator: Nikola Stojanoski \n" -"Language-Team: Macedonian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Откажи" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Сочувај" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Документација" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Форум" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Книги" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Процес" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Забелешки:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Поврзано:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Одбери" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "" diff --git a/addons/web_process/i18n/mn.po b/addons/web_process/i18n/mn.po deleted file mode 100644 index 0faf71e1951..00000000000 --- a/addons/web_process/i18n/mn.po +++ /dev/null @@ -1,118 +0,0 @@ -# Mongolian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-06-13 17:40+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Mongolian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Цуцлах" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Хадгалах" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Процесс Харагдац" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Баримт" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Баримтыг Онлайн Унших" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Хэлэлцүүлэг" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Холбооны Хэлэлцүүлэг" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Ном" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Ном авах" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "OpenERP Enterprise-г худалдаж авах" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Процесс" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Тэмдэглэл:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Хамгийн сүүлд зассан:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "Алга" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Дэд урсгал:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Холбоотой:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Процесс Сонгох" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Сонгох" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Процесс Засварлах" diff --git a/addons/web_process/i18n/nb.po b/addons/web_process/i18n/nb.po deleted file mode 100644 index 9a15b148381..00000000000 --- a/addons/web_process/i18n/nb.po +++ /dev/null @@ -1,118 +0,0 @@ -# Norwegian Bokmal translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-07-24 06:25+0000\n" -"Last-Translator: Tor Syversen \n" -"Language-Team: Norwegian Bokmal \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Avbryt" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Lagre" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentasjon" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Les dokumentasjon online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Bøker" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Få tak i bøkene" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Prosess" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Notater:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Sist revidert av:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/A" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Velg prosess" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Velg" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Rediger prosess" diff --git a/addons/web_process/i18n/nl.po b/addons/web_process/i18n/nl.po deleted file mode 100644 index 3004298b899..00000000000 --- a/addons/web_process/i18n/nl.po +++ /dev/null @@ -1,118 +0,0 @@ -# Dutch translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-07-05 08:01+0000\n" -"Last-Translator: Erwin \n" -"Language-Team: Dutch \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Annuleren" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Opslaan" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Laat proces zien" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentatie" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Lees documentatie online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Community discussie" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Boeken" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Verkrijg de boeken" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Koop OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Verwerken" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Opmerkingen:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Laatst gewijzigd door:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N.v.t." - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Subschemas:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Gerelateerd:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Proces selecteren" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Selecteer" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Proces bewerken" diff --git a/addons/web_process/i18n/nl_BE.po b/addons/web_process/i18n/nl_BE.po deleted file mode 100644 index 336f3823a57..00000000000 --- a/addons/web_process/i18n/nl_BE.po +++ /dev/null @@ -1,118 +0,0 @@ -# Dutch (Belgium) translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-08 16:58+0000\n" -"Last-Translator: Els Van Vossel (Agaplan) \n" -"Language-Team: Dutch (Belgium) \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Annuleren" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Opslaan" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Procesweergave" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentatie" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Documentatie on line lezen" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Communitygesprekken" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Boeken" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Koop de boeken" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Entreprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Koop OpenERP Entreprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Opmerkingen:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Laatst gewijzigd door:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "Nvt" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Subflows:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Gekoppeld:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Selecteer een proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Selecteren" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Proces bewerken" diff --git a/addons/web_process/i18n/pl.po b/addons/web_process/i18n/pl.po deleted file mode 100644 index bfa4691499f..00000000000 --- a/addons/web_process/i18n/pl.po +++ /dev/null @@ -1,118 +0,0 @@ -# Polish translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-28 11:14+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Polish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Anuluj" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Zapisz" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Widok procesu" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentacja" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Czytaj dokumentację online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Dyskusja w społeczności" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Książki" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Pobierz książki" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Notatki:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Ostatnio modyfikowane przez:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Podobiegi:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Związane:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Wybierz proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Wybierz" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Edytuj proces" diff --git a/addons/web_process/i18n/pt.po b/addons/web_process/i18n/pt.po deleted file mode 100644 index fe9d449b15d..00000000000 --- a/addons/web_process/i18n/pt.po +++ /dev/null @@ -1,118 +0,0 @@ -# Portuguese translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-16 02:19+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Portuguese \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Cancelar" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Gravar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Vista de Processo" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentação" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Ler documentação online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Discussão da comunidade" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Livros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Compre os Livros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Adquira o OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Processar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Notas:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Última alteração por:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "Indisponível" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Subfluxos" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Relacionado:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Selecionar Processo" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Selecionar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Editar Processo" diff --git a/addons/web_process/i18n/pt_BR.po b/addons/web_process/i18n/pt_BR.po deleted file mode 100644 index fd1d766dbe2..00000000000 --- a/addons/web_process/i18n/pt_BR.po +++ /dev/null @@ -1,118 +0,0 @@ -# Brazilian Portuguese translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-08 02:43+0000\n" -"Last-Translator: Marcelo Sa - www.jambu.com.br \n" -"Language-Team: Brazilian Portuguese \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Cancelar" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Salvar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Visão de Processo" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentação" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Ler Documentação Online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Fórum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Discussão da Comunidade" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Livros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Obter os livros" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Comprar OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Processo" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Notas:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Última atualização por:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/D" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Sub fluxos:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Relacionado:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Selecionar processo" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Selecionar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Editar Processo" diff --git a/addons/web_process/i18n/ro.po b/addons/web_process/i18n/ro.po deleted file mode 100644 index d9445d19146..00000000000 --- a/addons/web_process/i18n/ro.po +++ /dev/null @@ -1,118 +0,0 @@ -# Romanian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-03-10 13:23+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Romanian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Anulati" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Salvati" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Vizualizare Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Documentatie" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Cititi Documentatia Online" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Discutii" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Carti" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Obtineti cartile" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Cumparati OpenErp Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Note:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Modificat ultima data de :" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "Nu este disponibil (a)" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Subfluxuri:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Referitor la:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Selectati Procesul" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Selectati" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Editati Procesul" diff --git a/addons/web_process/i18n/ru.po b/addons/web_process/i18n/ru.po deleted file mode 100644 index 01701676b0d..00000000000 --- a/addons/web_process/i18n/ru.po +++ /dev/null @@ -1,118 +0,0 @@ -# Russian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-17 07:49+0000\n" -"Last-Translator: Aleksei Motsik \n" -"Language-Team: Russian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Отменить" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Сохранить" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Просмотр Процесса" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Документация" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Читать Документацию Онлайн" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Форум" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Обсуждения Сообществом" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Книги" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Получить книги" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Приобрести OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Процесс" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Заметки:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Изменялся:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "Н/Д" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "СубПотоки:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Связанный:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Выбрерите Процесс" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Выбрать" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Изменить Процесс" diff --git a/addons/web_process/i18n/sl.po b/addons/web_process/i18n/sl.po deleted file mode 100644 index 0f426def60f..00000000000 --- a/addons/web_process/i18n/sl.po +++ /dev/null @@ -1,118 +0,0 @@ -# Slovenian translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-05-23 20:57+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Slovenian \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Prekliči" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Shrani" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentacija" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Preberi spletno dokumentacijo" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Razprava skupnosti" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Knjige" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Zapiski:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Zadnja sprememba:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/A" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Izberi postopek" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Izberi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Urejanje procesa" diff --git a/addons/web_process/i18n/sr@latin.po b/addons/web_process/i18n/sr@latin.po deleted file mode 100644 index 02dfe01f1f1..00000000000 --- a/addons/web_process/i18n/sr@latin.po +++ /dev/null @@ -1,118 +0,0 @@ -# Serbian Latin translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-09 21:14+0000\n" -"Last-Translator: zmmaj \n" -"Language-Team: Serbian Latin \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Otkaži" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Sačuvaj" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Pregled Procesa" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentacija" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Čitaj dokumentaciju na mreži" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Diskusija u okviru zajednice" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Knjige" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Uzmi knjige" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Kupi OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Beleške:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Poslednji izmenio :" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "N/V" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Podtokovi:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Vezano za:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Izaberi Proces" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Izaberi" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Uredi Proces" diff --git a/addons/web_process/i18n/sv.po b/addons/web_process/i18n/sv.po deleted file mode 100644 index 55467b65c2b..00000000000 --- a/addons/web_process/i18n/sv.po +++ /dev/null @@ -1,118 +0,0 @@ -# Swedish translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-04-17 12:42+0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: Swedish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "Avbryt" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Spara" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "Processvy" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokumentation" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Läs online-dokumentationen" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Diskussion i användarföreningen" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Böcker" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Komma över böckerna" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "Köp OpenERP Enterprise" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "Process" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Anteckningar:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "Senast ändrad av:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "Ej tillgänglig" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Underflöde" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "Relaterad:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "Välj process" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Välj" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "Ändra processen" diff --git a/addons/web_process/i18n/tr.po b/addons/web_process/i18n/tr.po deleted file mode 100644 index 79fa1e0c208..00000000000 --- a/addons/web_process/i18n/tr.po +++ /dev/null @@ -1,118 +0,0 @@ -# Turkish translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-09 20:20+0000\n" -"Last-Translator: Ahmet Altınışık \n" -"Language-Team: Turkish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "İptal" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "Kaydet" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "İşlem Görünümü" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "Dokümantasyon" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "Online Dökümantasyonu Oku" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "Forum" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "Topluluk Tartışması" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "Kitaplar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "Kitapları al" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP Kurumsal" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "OpenERP Kurumsalı Satınal" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "İşlem" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "Notlar:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "En son değiştiren:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "YOK" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "Alt akışlar" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "İlgili:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "İşlemi Seç" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "Seç" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "İşlemi Düzenle" diff --git a/addons/web_process/i18n/web_process.pot b/addons/web_process/i18n/web_process.pot deleted file mode 100644 index 4efbba4961f..00000000000 --- a/addons/web_process/i18n/web_process.pot +++ /dev/null @@ -1,119 +0,0 @@ -# Translations template for PROJECT. -# Copyright (C) 2012 ORGANIZATION -# This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2012. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PROJECT VERSION\n" -"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 0.9.6\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "" - diff --git a/addons/web_process/i18n/zh_CN.po b/addons/web_process/i18n/zh_CN.po deleted file mode 100644 index 0acc66b8584..00000000000 --- a/addons/web_process/i18n/zh_CN.po +++ /dev/null @@ -1,118 +0,0 @@ -# Chinese (Simplified) translation for openerp-web -# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 -# This file is distributed under the same license as the openerp-web package. -# FIRST AUTHOR , 2012. -# -msgid "" -msgstr "" -"Project-Id-Version: openerp-web\n" -"Report-Msgid-Bugs-To: FULL NAME \n" -"POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-08 02:13+0000\n" -"Last-Translator: Wei \"oldrev\" Li \n" -"Language-Team: Chinese (Simplified) \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-09-05 04:56+0000\n" -"X-Generator: Launchpad (build 15901)\n" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:261 -msgid "Cancel" -msgstr "取消" - -#. openerp-web -#: addons/web_process/static/src/js/process.js:262 -msgid "Save" -msgstr "保存" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:6 -msgid "Process View" -msgstr "业务流程视图" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Documentation" -msgstr "文档" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:19 -msgid "Read Documentation Online" -msgstr "在线阅读文档" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Forum" -msgstr "论坛" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:25 -msgid "Community Discussion" -msgstr "社区讨论" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Books" -msgstr "图书" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:31 -msgid "Get the books" -msgstr "获得相关图书" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "OpenERP Enterprise" -msgstr "OpenERP 企业" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:37 -msgid "Purchase OpenERP Enterprise" -msgstr "购买 OpenERP 企业版" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:52 -msgid "Process" -msgstr "业务流程" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:56 -msgid "Notes:" -msgstr "备注:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "Last modified by:" -msgstr "最后修改者:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:59 -msgid "N/A" -msgstr "不可用" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:62 -msgid "Subflows:" -msgstr "子工作流:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:75 -msgid "Related:" -msgstr "相关的:" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:88 -msgid "Select Process" -msgstr "选择业务流程" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:98 -msgid "Select" -msgstr "选择" - -#. openerp-web -#: addons/web_process/static/src/xml/web_process.xml:109 -msgid "Edit Process" -msgstr "编辑业务流程" diff --git a/addons/web_process/static/lib/dracula/dracula_algorithms.js b/addons/web_process/static/lib/dracula/dracula_algorithms.js deleted file mode 100644 index 0fbb0857fc8..00000000000 --- a/addons/web_process/static/lib/dracula/dracula_algorithms.js +++ /dev/null @@ -1,599 +0,0 @@ -/* - * Various algorithms and data structures, licensed under the MIT-license. - * (c) 2010 by Johann Philipp Strathausen - * http://strathausen.eu - * - */ - - - -/* - Bellman-Ford - - Path-finding algorithm, finds the shortest paths from one node to all nodes. - - - Complexity - - O( |E| · |V| ), where E = edges and V = vertices (nodes) - - - Constraints - - Can run on graphs with negative edge weights as long as they do not have - any negative weight cycles. - - */ -function bellman_ford(g, source) { - - /* STEP 1: initialisation */ - for(var n in g.nodes) - g.nodes[n].distance = Infinity; - /* predecessors are implicitly null */ - source.distance = 0; - - step("Initially, all distances are infinite and all predecessors are null."); - - /* STEP 2: relax each edge (this is at the heart of Bellman-Ford) */ - /* repeat this for the number of nodes minus one */ - for(var i = 1; i < g.nodes.length; i++) - /* for each edge */ - for(var e in g.edges) { - var edge = g.edges[e]; - if(edge.source.distance + edge.weight < edge.target.distance) { - step("Relax edge between " + edge.source.id + " and " + edge.target.id + "."); - edge.target.distance = edge.source.distance + edge.weight; - edge.target.predecessor = edge.source; - } - //Added by Jake Stothard (Needs to be tested) - if(!edge.style.directed) { - if(edge.target.distance + edge.weight < edge.source.distance) { - g.snapShot("Relax edge between "+edge.target.id+" and "+edge.source.id+"."); - edge.source.distance = edge.target.distance + edge.weight; - edge.source.predecessor = edge.target; - } - } - } - step("Ready."); - - /* STEP 3: TODO Check for negative cycles */ - /* For now we assume here that the graph does not contain any negative - weights cycles. (this is left as an excercise to the reader[tm]) */ -} - - - -/* - Path-finding algorithm Dijkstra - - - worst-case running time is O((|E| + |V|) · log |V| ) thus better than - Bellman-Ford for sparse graphs (with less edges), but cannot handle - negative edge weights - */ -function dijkstra(g, source) { - - /* initially, all distances are infinite and all predecessors are null */ - for(var n in g.nodes) - g.nodes[n].distance = Infinity; - /* predecessors are implicitly null */ - - g.snapShot("Initially, all distances are infinite and all predecessors are null."); - - source.distance = 0; - /* set of unoptimized nodes, sorted by their distance (but a Fibonacci heap - would be better) */ - var q = new BinaryMinHeap(g.nodes, "distance"); - - /* pointer to the node in focus */ - var node; - - /* get the node with the smallest distance - as long as we have unoptimized nodes. q.min() can have O(log n). */ - while(q.min() != undefined) { - /* remove the latest */ - node = q.extractMin(); - node.optimized = true; - - /* no nodes accessible from this one, should not happen */ - if(node.distance == Infinity) - throw "Orphaned node!"; - - /* for each neighbour of node */ - for(e in node.edges) { - var other = (node == node.edges[e].target) ? node.edges[e].source : node.edges[e].target; - - if(other.optimized) - continue; - - /* look for an alternative route */ - var alt = node.distance + node.edges[e].weight; - - /* update distance and route if a better one has been found */ - if (alt < other.distance) { - - /* update distance of neighbour */ - other.distance = alt; - - /* update priority queue */ - q.heapify(); - - /* update path */ - other.predecessor = node; - g.snapShot("Enhancing node.") - } - } - } -} - - -/* All-Pairs-Shortest-Paths */ -/* Runs at worst in O(|V|³) and at best in Omega(|V|³) :-) - complexity Sigma(|V|²) */ -/* This implementation is not yet ready for general use, but works with the - Dracula graph library. */ -function floyd_warshall(g, source) { - - /* Step 1: initialising empty path matrix (second dimension is implicit) */ - var path = []; - var next = []; - var n = g.nodes.length; - - /* construct path matrix, initialize with Infinity */ - for(j in g.nodes) { - path[j] = []; - next[j] = []; - for(i in g.nodes) - path[j][i] = j == i ? 0 : Infinity; - } - - /* initialize path with edge weights */ - for(e in g.edges) - path[g.edges[e].source.id][g.edges[e].target.id] = g.edges[e].weight; - - /* Note: Usually, the initialisation is done by getting the edge weights - from a node matrix representation of the graph, not by iterating through - a list of edges as done here. */ - - /* Step 2: find best distances (the heart of Floyd-Warshall) */ - for(k in g.nodes){ - for(i in g.nodes) { - for(j in g.nodes) - if(path[i][j] > path[i][k] + path[k][j]) { - path[i][j] = path[i][k] + path[k][j]; - /* Step 2.b: remember the path */ - next[i][j] = k; - } - } - } - - /* Step 3: Path reconstruction, get shortest path */ - function getPath(i, j) { - if(path[i][j] == Infinity) - throw "There is no path."; - var intermediate = next[i][j]; - if(intermediate == undefined) - return null; - else - return getPath(i, intermediate) - .concat([intermediate]) - .concat(getPath(intermediate, j)); - } - - /* TODO use the knowledge, e.g. mark path in graph */ -} - -/* - Ford-Fulkerson - - Max-Flow-Min-Cut Algorithm finding the maximum flow through a directed - graph from source to sink. - - - Complexity - - O(E * max(f)), max(f) being the maximum flow - - - Description - - As long as there is an open path through the residual graph, send the - minimum of the residual capacities on the path. - - - Constraints - - The algorithm works only if all weights are integers. Otherwise it is - possible that the Ford–Fulkerson algorithm will not converge to the maximum - value. - - - Input - - g - Graph object - s - Source ID - t - Target (sink) ID - - - Output - - Maximum flow from Source s to Target t - - */ -/* - Edmonds-Karp - - Max-Flow-Min-Cut Algorithm finding the maximum flow through a directed - graph from source to sink. An implementation of the Ford-Fulkerson - algorithm. - - - Complexity - - O(|V|*|E|²) - - - Input - - g - Graph object (with node and edge lists, capacity is a property of edge) - s - source ID - t - sink ID - - */ -function edmonds_karp(g, s, t) { - -} - -/* - A simple binary min-heap serving as a priority queue - - takes an array as the input, with elements having a key property - - elements will look like this: - { - key: "... key property ...", - value: "... element content ..." - } - - provides insert(), min(), extractMin() and heapify() - - example usage (e.g. via the Firebug or Chromium console): - var x = {foo: 20, hui: "bla"}; - var a = new BinaryMinHeap([x,{foo:3},{foo:10},{foo:20},{foo:30},{foo:6},{foo:1},{foo:3}],"foo"); - console.log(a.extractMin()); - console.log(a.extractMin()); - x.foo = 0; // update key - a.heapify(); // call this always after having a key updated - console.log(a.extractMin()); - console.log(a.extractMin()); - - can also be used on a simple array, like [9,7,8,5] - */ -function BinaryMinHeap(array, key) { - - /* Binary tree stored in an array, no need for a complicated data structure */ - var tree = []; - - var key = key || 'key'; - - /* Calculate the index of the parent or a child */ - var parent = function(index) { return Math.floor((index - 1)/2); }; - var right = function(index) { return 2 * index + 2; }; - var left = function(index) { return 2 * index + 1; }; - - /* Helper function to swap elements with their parent - as long as the parent is bigger */ - function bubble_up(i) { - var p = parent(i); - while((p >= 0) && (tree[i][key] < tree[p][key])) { - /* swap with parent */ - tree[i] = tree.splice(p, 1, tree[i])[0]; - /* go up one level */ - i = p; - p = parent(i); - } - } - - /* Helper function to swap elements with the smaller of their children - as long as there is one */ - function bubble_down(i) { - var l = left(i); - var r = right(i); - - /* as long as there are smaller children */ - while(tree[l] && (tree[i][key] > tree[l][key]) || tree[r] && (tree[i][key] > tree[r][key])) { - - /* find smaller child */ - var child = tree[l] ? tree[r] ? tree[l][key] > tree[r][key] ? r : l : l : l; - - /* swap with smaller child with current element */ - tree[i] = tree.splice(child, 1, tree[i])[0]; - - /* go up one level */ - i = child; - l = left(i); - r = right(i); - } - } - - /* Insert a new element with respect to the heap property - 1. Insert the element at the end - 2. Bubble it up until it is smaller than its parent */ - this.insert = function(element) { - - /* make sure there's a key property */ - (element[key] == undefined) && (element = {key:element}); - - /* insert element at the end */ - tree.push(element); - - /* bubble up the element */ - bubble_up(tree.length - 1); - } - - /* Only show us the minimum */ - this.min = function() { - return tree.length == 1 ? undefined : tree[0]; - } - - /* Return and remove the minimum - 1. Take the root as the minimum that we are looking for - 2. Move the last element to the root (thereby deleting the root) - 3. Compare the new root with both of its children, swap it with the - smaller child and then check again from there (bubble down) - */ - this.extractMin = function() { - var result = this.min(); - - /* move the last element to the root or empty the tree completely */ - /* bubble down the new root if necessary */ - (tree.length == 1) && (tree = []) || (tree[0] = tree.pop()) && bubble_down(0); - - return result; - } - - /* currently unused, TODO implement */ - this.changeKey = function(index, key) { - throw "function not implemented"; - } - - this.heapify = function() { - for(var start = Math.floor((tree.length - 2) / 2); start >= 0; start--) { - bubble_down(start); - } - } - - /* insert the input elements one by one only when we don't have a key property (TODO can be done more elegant) */ - for(i in (array || [])) - this.insert(array[i]); -} - - - -/* - Quick Sort: - 1. Select some random value from the array, the median. - 2. Divide the array in three smaller arrays according to the elements - being less, equal or greater than the median. - 3. Recursively sort the array containg the elements less than the - median and the one containing elements greater than the median. - 4. Concatenate the three arrays (less, equal and greater). - 5. One or no element is always sorted. - TODO: This could be implemented more efficiently by using only one array object and several pointers. -*/ -function quickSort(arr) { - /* recursion anchor: one element is always sorted */ - if(arr.length <= 1) return arr; - /* randomly selecting some value */ - var median = arr[Math.floor(Math.random() * arr.length)]; - var arr1 = [], arr2 = [], arr3 = []; - for(var i in arr) { - arr[i] < median && arr1.push(arr[i]); - arr[i] == median && arr2.push(arr[i]); - arr[i] > median && arr3.push(arr[i]); - } - /* recursive sorting and assembling final result */ - return quickSort(arr1).concat(arr2).concat(quickSort(arr3)); -} - -/* - Selection Sort: - 1. Select the minimum and remove it from the array - 2. Sort the rest recursively - 3. Return the minimum plus the sorted rest - 4. An array with only one element is already sorted -*/ -function selectionSort(arr) { - /* recursion anchor: one element is always sorted */ - if(arr.length == 1) return arr; - var minimum = Infinity; - var index; - for(var i in arr) { - if(arr[i] < minimum) { - minimum = arr[i]; - index = i; /* remember the minimum index for later removal */ - } - } - /* remove the minimum */ - arr.splice(index, 1); - /* assemble result and sort recursively (could be easily done iteratively as well)*/ - return [minimum].concat(selectionSort(arr)); -} - -/* - Merge Sort: - 1. Cut the array in half - 2. Sort each of them recursively - 3. Merge the two sorted arrays - 4. An array with only one element is considered sorted - -*/ -function mergeSort(arr) { - /* merges two sorted arrays into one sorted array */ - function merge(a, b) { - /* result set */ - var c = []; - /* as long as there are elements in the arrays to be merged */ - while(a.length > 0 || b.length > 0){ - /* are there elements to be merged, if yes, compare them and merge */ - var n = a.length > 0 && b.length > 0 ? a[0] < b[0] ? a.shift() : b.shift() : b.length > 0 ? b.shift() : a.length > 0 ? a.shift() : null; - /* always push the smaller one onto the result set */ - n != null && c.push(n); - } - return c; - } - /* this mergeSort implementation cuts the array in half, wich should be fine with randomized arrays, but introduces the risk of a worst-case scenario */ - median = Math.floor(arr.length / 2); - var part1 = arr.slice(0, median); /* for some reason it doesn't work if inserted directly in the return statement (tried so with firefox) */ - var part2 = arr.slice(median - arr.length); - return arr.length <= 1 ? arr : merge( - mergeSort(part1), /* first half */ - mergeSort(part2) /* second half */ - ); -} - -/* Balanced Red-Black-Tree */ -function RedBlackTree(arr) { - -} - -function BTree(arr) { - -} - -function NaryTree(n, arr) { - -} - -/** - * Knuth-Morris-Pratt string matching algorithm - finds a pattern in a text. - * FIXME: Doesn't work correctly yet. - */ -function kmp(p, t) { - - /** - * PREFIX, OVERLAP or FALIURE function for KMP. Computes how many iterations - * the algorithm can skip after a mismatch. - * - * @input p - pattern (string) - * @result array of skippable iterations - */ - function prefix(p) { - /* pi contains the computed skip marks */ - var pi = [0], k = 0; - for(q = 1; q < p.length; q++) { - while(k > 0 && (p.charAt(k) != p.charAt(q))) - k = pi[k-1]; - - (p.charAt(k) == p.charAt(q)) && k++; - - pi[q] = k; - } - return pi; - } - - /* The actual KMP algorithm starts here. */ - - var pi = prefix(p), q = 0, result = []; - - for(var i = 0; i < t.length; i++) { - /* jump forward as long as the character doesn't match */ - while((q > 0) && (p.charAt(q) != t.charAt(i))) - q = pi[q]; - - (p.charAt(q) == t.charAt(i)) && q++; - - (q == p.length) && result.push(i - p.length) && (q = pi[q]); - } - - return result; -} - -/* step for algorithm visualisation */ -function step(comment, funct) { - //wait for input - //display comment (before or after waiting) -// next.wait(); - /* execute callback function */ - funct(); -} - -/** - * Curry - Function currying - * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com - * Licensed under BSD (http://www.opensource.org/licenses/bsd-license.php) - * Date: 10/4/2008 - * - * @author Ariel Flesler - * @version 1.0.1 - */ -function curry( fn ){ - return function(){ - var args = curry.args(arguments), - master = arguments.callee, - self = this; - - return args.length >= fn.length ? fn.apply(self,args) : function(){ - return master.apply( self, args.concat(curry.args(arguments)) ); - }; - }; -}; - -curry.args = function( args ){ - return Array.prototype.slice.call(args); -}; - -Function.prototype.curry = function(){ - return curry(this); -}; - -/** - * Topological Sort - * - * Sort a directed graph based on incoming edges - * - * Coded by Jake Stothard - */ -function topological_sort(g) { - //Mark nodes as "deleted" instead of actually deleting them - //That way we don't have to copy g - - for(i in g.nodes) - g.nodes[i].deleted = false; - - var ret = topological_sort_helper(g); - - //Cleanup: Remove the deleted property - for(i in g.nodes) - delete g.nodes[i].deleted - - return ret; -} -function topological_sort_helper(g) { - //Find node with no incoming edges - var node; - for(i in g.nodes) { - if(g.nodes[i].deleted) - continue; //Bad style, meh - - var incoming = false; - for(j in g.nodes[i].edges) { - if(g.nodes[i].edges[j].target == g.nodes[i] - && g.nodes[i].edges[j].source.deleted == false) { - incoming = true; - break; - } - } - if(!incoming) { - node = g.nodes[i]; - break; - } - } - - // Either unsortable or done. Either way, GTFO - if(node == undefined) - return []; - - //"Delete" node from g - node.deleted = true; - - var tail = topological_sort_helper(g); - - tail.unshift(node); - - return tail; -} diff --git a/addons/web_process/static/lib/dracula/dracula_graffle.js b/addons/web_process/static/lib/dracula/dracula_graffle.js deleted file mode 100644 index 2b03ad16c79..00000000000 --- a/addons/web_process/static/lib/dracula/dracula_graffle.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Originally grabbed from the official RaphaelJS Documentation - * http://raphaeljs.com/graffle.html - * Adopted (arrows) and commented by Philipp Strathausen http://blog.ameisenbar.de - * Licenced under the MIT licence. - */ - -/** - * Usage: - * connect two shapes - * parameters: - * source shape [or connection for redrawing], - * target shape, - * style with { fg : linecolor, bg : background color, directed: boolean } - * returns: - * connection { draw = function() } - */ -Raphael.fn.connection = function (obj1, obj2, style) { - var selfRef = this; - /* create and return new connection */ - var edge = {/* - from : obj1, - to : obj2, - style : style,*/ - draw : function() { - /* get bounding boxes of target and source */ - var bb1 = obj1.getBBox(); - var bb2 = obj2.getBBox(); - var off1 = 0; - var off2 = 0; - /* coordinates for potential connection coordinates from/to the objects */ - var p = [ - {x: bb1.x + bb1.width / 2, y: bb1.y - off1}, /* NORTH 1 */ - {x: bb1.x + bb1.width / 2, y: bb1.y + bb1.height + off1}, /* SOUTH 1 */ - {x: bb1.x - off1, y: bb1.y + bb1.height / 2}, /* WEST 1 */ - {x: bb1.x + bb1.width + off1, y: bb1.y + bb1.height / 2}, /* EAST 1 */ - {x: bb2.x + bb2.width / 2, y: bb2.y - off2}, /* NORTH 2 */ - {x: bb2.x + bb2.width / 2, y: bb2.y + bb2.height + off2}, /* SOUTH 2 */ - {x: bb2.x - off2, y: bb2.y + bb2.height / 2}, /* WEST 2 */ - {x: bb2.x + bb2.width + off2, y: bb2.y + bb2.height / 2} /* EAST 2 */ - ]; - - /* distances between objects and according coordinates connection */ - var d = {}, dis = []; - - /* - * find out the best connection coordinates by trying all possible ways - */ - /* loop the first object's connection coordinates */ - for (var i = 0; i < 4; i++) { - /* loop the seond object's connection coordinates */ - for (var j = 4; j < 8; j++) { - var dx = Math.abs(p[i].x - p[j].x), - dy = Math.abs(p[i].y - p[j].y); - if ((i == j - 4) || (((i != 3 && j != 6) || p[i].x < p[j].x) && ((i != 2 && j != 7) || p[i].x > p[j].x) && ((i != 0 && j != 5) || p[i].y > p[j].y) && ((i != 1 && j != 4) || p[i].y < p[j].y))) { - dis.push(dx + dy); - d[dis[dis.length - 1].toFixed(3)] = [i, j]; - } - } - } - var res = dis.length == 0 ? [0, 4] : d[Math.min.apply(Math, dis).toFixed(3)]; - /* bezier path */ - var x1 = p[res[0]].x, - y1 = p[res[0]].y, - x4 = p[res[1]].x, - y4 = p[res[1]].y, - dx = Math.max(Math.abs(x1 - x4) / 2, 10), - dy = Math.max(Math.abs(y1 - y4) / 2, 10), - x2 = [x1, x1, x1 - dx, x1 + dx][res[0]].toFixed(3), - y2 = [y1 - dy, y1 + dy, y1, y1][res[0]].toFixed(3), - x3 = [0, 0, 0, 0, x4, x4, x4 - dx, x4 + dx][res[1]].toFixed(3), - y3 = [0, 0, 0, 0, y1 + dy, y1 - dy, y4, y4][res[1]].toFixed(3); - /* assemble path and arrow */ - var path = ["M", x1.toFixed(3), y1.toFixed(3), "C", x2, y2, x3, y3, x4.toFixed(3), y4.toFixed(3)]; - /* arrow */ - if(style && style.directed) { - /* magnitude, length of the last path vector */ - var mag = Math.sqrt((y4 - y3) * (y4 - y3) + (x4 - x3) * (x4 - x3)); - /* vector normalisation to specified length */ - var norm = function(x,l){return (-x*(l||5)/mag);}; - /* calculate array coordinates (two lines orthogonal to the path vector) */ - var arr = [ - {x:(norm(x4-x3)+norm(y4-y3)+x4).toFixed(3), y:(norm(y4-y3)+norm(x4-x3)+y4).toFixed(3)}, - {x:(norm(x4-x3)-norm(y4-y3)+x4).toFixed(3), y:(norm(y4-y3)-norm(x4-x3)+y4).toFixed(3)} - ]; - path.push("M", arr[0].x, arr[0].y, "L", x4, y4, "L", arr[1].x, arr[1].y, "L", arr[0].x, arr[0].y); - } - var svgpath = path.join(' '); - /* function to be used for moving existent path(s), e.g. animate() or attr() */ - var move = "attr"; - /* applying path(s) */ - edge.fg && edge.fg[move]({path:svgpath}) - || (edge.fg = selfRef.path(svgpath).attr({stroke: style && style.stroke || "#000", fill: "none"}).toBack()); - edge.bg && edge.bg[move]({path:svgpath}) - || style && style.fill && (edge.bg = style.fill.split && selfRef.path(svgpath).attr({stroke: style.fill.split("|")[0], fill: "none", "stroke-width": style.fill.split("|")[1] || 3}).toBack()); - /* setting label */ - style && style.label - && (edge.label && edge.label.attr({x:(x1+x4)/2, y:(y1+y4)/2}) - || (edge.label = selfRef.text((x1+x4)/2, (y1+y4)/2, style.label).attr({fill: "#000", "font-size": style["font-size"] || "12px"}))); -// && selfRef.text(x4, y4, style.label).attr({stroke: style && style.stroke || "#fff", "font-weight":"bold", "font-size":"20px"}) -// style && style.callback && style.callback(edge); - } - } - edge.draw(); - return edge; -}; -//Raphael.prototype.set.prototype.dodo=function(){console.log("works");}; diff --git a/addons/web_process/static/lib/dracula/dracula_graph.coffee b/addons/web_process/static/lib/dracula/dracula_graph.coffee deleted file mode 100644 index bb91945098d..00000000000 --- a/addons/web_process/static/lib/dracula/dracula_graph.coffee +++ /dev/null @@ -1,524 +0,0 @@ -### - * Dracula Graph Layout and Drawing Framework 0.0.3alpha - * (c) 2010 Philipp Strathausen , http://strathausen.eu - * - * Contributions by: - * Branched by Jake Stothard . - * - * based on the Graph JavaScript framework, version 0.0.1 - * (c) 2006 Aslak Hellesoy - * (c) 2006 Dave Hoover - * - * Ported from Graph::Layouter::Spring in - * http://search.cpan.org/~pasky/Graph-Layderer-0.02/ - * The algorithm is based on a spring-style layouter of a Java-based social - * network tracker PieSpy written by Paul Mutton Epaul@jibble.orgE. - * - * This code is freely distributable under the terms of an MIT-style license. - * For details, see the Graph web site: http://dev.buildpatternd.com/trac - * - * Links: - * - * Graph Dracula JavaScript Framework: - * http://graphdracula.net - * - * Demo of the original applet: - * http://redsquirrel.com/dave/work/webdep/ - * - * Mirrored original source code at snipplr: - * http://snipplr.com/view/1950/graph-javascript-framework-version-001/ - * - * Original usage example: - * http://ajaxian.com/archives/new-javascriptcanvas-graph-library - * -### - - -### - Edge Factory -### -AbstractEdge = -> - -AbstractEdge.prototype = - hide: -> - @connection.fg.hide() - @connection.bg && @bg.connection.hide() - -EdgeFactory = -> - @template = new AbstractEdge() - @template.style = new Object() - @template.style.directed = false - @template.weight = 1 - -EdgeFactory.prototype = - build: (source, target) -> - e = jQuery.extend true, {}, @template - e.source = source - e.target = target - e - -### - Graph -### -Graph = -> - @nodes = {} - @edges = [] - @snapshots = [] # previous graph states TODO to be implemented - @edgeFactory = new EdgeFactory() - -Graph.prototype = -### - add a node - @id the node's ID (string or number) - @content (optional, dictionary) can contain any information that is - being interpreted by the layout algorithm or the graph - representation -### - addNode: (id, content) -> - # testing if node is already existing in the graph - if @nodes[id] == undefined - @nodes[id] = new Graph.Node id, content - @nodes[id] - - addEdge: (source, target, style) -> - s = @addNode source - t = @addNode target - var edge = @edgeFactory.build s, t - jQuery.extend edge.style, style - s.edges.push edge - @edges.push edge - # NOTE: Even directed edges are added to both nodes. - t.edges.push edge - - # TODO to be implemented - # Preserve a copy of the graph state (nodes, positions, ...) - # @comment a comment describing the state - snapShot: (comment) -> - ###/* FIXME - var graph = new Graph() - graph.nodes = jQuery.extend(true, {}, @nodes) - graph.edges = jQuery.extend(true, {}, @edges) - @snapshots.push({comment: comment, graph: graph}) - */ - ### - - removeNode: (id) -> - delete @nodes[id] - for i = 0; i < @edges.length; i++ - if @edges[i].source.id == id || @edges[i].target.id == id - @edges.splice(i, 1) - i-- - -/* - * Node - */ -Graph.Node = (id, node) -> - node = node || {} - node.id = id - node.edges = [] - node.hide = -> - @hidden = true - @shape && @shape.hide() # FIXME this is representation specific code and should be elsewhere */ - for(i in @edges) - (@edges[i].source.id == id || @edges[i].target == id) && @edges[i].hide && @edges[i].hide() - - node.show = -> - @hidden = false - @shape && @shape.show() - for(i in @edges) - (@edges[i].source.id == id || @edges[i].target == id) && @edges[i].show && @edges[i].show() - - node - -Graph.Node.prototype = { } - -### - Renderer base class -### -Graph.Renderer = { } - -### - Renderer implementation using RaphaelJS -### -Graph.Renderer.Raphael = (element, graph, width, height) -> - @width = width || 400 - @height = height || 400 - var selfRef = this - @r = Raphael element, @width, @height - @radius = 40 # max dimension of a node - @graph = graph - @mouse_in = false - - # TODO default node rendering - if(!@graph.render) { - @graph.render = -> - return - } - } - - /* - * Dragging - */ - @isDrag = false - @dragger = (e) -> - @dx = e.clientX - @dy = e.clientY - selfRef.isDrag = this - @set && @set.animate "fill-opacity": .1, 200 && @set.toFront() - e.preventDefault && e.preventDefault() - - document.onmousemove = (e) { - e = e || window.event - if (selfRef.isDrag) { - var bBox = selfRef.isDrag.set.getBBox() - // TODO round the coordinates here (eg. for proper image representation) - var newX = e.clientX - selfRef.isDrag.dx + (bBox.x + bBox.width / 2) - var newY = e.clientY - selfRef.isDrag.dy + (bBox.y + bBox.height / 2) - /* prevent shapes from being dragged out of the canvas */ - var clientX = e.clientX - (newX < 20 ? newX - 20 : newX > selfRef.width - 20 ? newX - selfRef.width + 20 : 0) - var clientY = e.clientY - (newY < 20 ? newY - 20 : newY > selfRef.height - 20 ? newY - selfRef.height + 20 : 0) - selfRef.isDrag.set.translate(clientX - Math.round(selfRef.isDrag.dx), clientY - Math.round(selfRef.isDrag.dy)) - // console.log(clientX - Math.round(selfRef.isDrag.dx), clientY - Math.round(selfRef.isDrag.dy)) - for (var i in selfRef.graph.edges) { - selfRef.graph.edges[i].connection && selfRef.graph.edges[i].connection.draw() - } - //selfRef.r.safari() - selfRef.isDrag.dx = clientX - selfRef.isDrag.dy = clientY - } - } - document.onmouseup = -> - selfRef.isDrag && selfRef.isDrag.set.animate({"fill-opacity": .6}, 500) - selfRef.isDrag = false - } - @draw() -} -Graph.Renderer.Raphael.prototype = { - translate: (point) { - return [ - (point[0] - @graph.layoutMinX) * @factorX + @radius, - (point[1] - @graph.layoutMinY) * @factorY + @radius - ] - }, - - rotate: (point, length, angle) { - var dx = length * Math.cos(angle) - var dy = length * Math.sin(angle) - return [point[0]+dx, point[1]+dy] - }, - - draw: -> - @factorX = (@width - 2 * @radius) / (@graph.layoutMaxX - @graph.layoutMinX) - @factorY = (@height - 2 * @radius) / (@graph.layoutMaxY - @graph.layoutMinY) - for (i in @graph.nodes) { - @drawNode(@graph.nodes[i]) - } - for (var i = 0; i < @graph.edges.length; i++) { - @drawEdge(@graph.edges[i]) - } - }, - - drawNode: (node) { - var point = @translate([node.layoutPosX, node.layoutPosY]) - node.point = point - - /* if node has already been drawn, move the nodes */ - if(node.shape) { - var oBBox = node.shape.getBBox() - var opoint = { x: oBBox.x + oBBox.width / 2, y: oBBox.y + oBBox.height / 2} - node.shape.translate(Math.round(point[0] - opoint.x), Math.round(point[1] - opoint.y)) - @r.safari() - return node - }/* else, draw new nodes */ - - var shape - - /* if a node renderer is provided by the user, then use it - or the default render instead */ - if(!node.render) { - node.render = (r, node) { - /* the default node drawing */ - var color = Raphael.getColor() - var ellipse = r.ellipse(0, 0, 30, 20).attr({fill: color, stroke: color, "stroke-width": 2}) - /* set DOM node ID */ - ellipse.node.id = node.label || node.id - shape = r.set(). - push(ellipse). - push(r.text(0, 30, node.label || node.id)) - return shape - } - } - /* or check for an ajax representation of the nodes */ - if(node.shapes) { - // TODO ajax representation evaluation - } - - shape = node.render(@r, node).hide() - - shape.attr({"fill-opacity": .6}) - /* re-reference to the node an element belongs to, needed for dragging all elements of a node */ - shape.items.forEach((item){ item.set = shape; item.node.style.cursor = "move"; }) - shape.mousedown(@dragger) - - var box = shape.getBBox() - shape.translate(Math.round(point[0]-(box.x+box.width/2)),Math.round(point[1]-(box.y+box.height/2))) - //console.log(box,point) - node.hidden || shape.show() - node.shape = shape - }, - drawEdge: (edge) { - /* if this edge already exists the other way around and is undirected */ - if(edge.backedge) - return - if(edge.source.hidden || edge.target.hidden) { - edge.connection && edge.connection.fg.hide() | edge.connection.bg && edge.connection.bg.hide() - return - } - /* if edge already has been drawn, only refresh the edge */ - if(!edge.connection) { - edge.style && edge.style.callback && edge.style.callback(edge); // TODO move this somewhere else - edge.connection = @r.connection(edge.source.shape, edge.target.shape, edge.style) - return - } - //FIXME showing doesn't work well - edge.connection.fg.show() - edge.connection.bg && edge.connection.bg.show() - edge.connection.draw() - } -} -Graph.Layout = {} -Graph.Layout.Spring = (graph) { - @graph = graph - @iterations = 500 - @maxRepulsiveForceDistance = 6 - @k = 2 - @c = 0.01 - @maxVertexMovement = 0.5 - @layout() -} -Graph.Layout.Spring.prototype = { - layout: -> - @layoutPrepare() - for (var i = 0; i < @iterations; i++) { - @layoutIteration() - } - @layoutCalcBounds() - }, - - layoutPrepare: -> - for (i in @graph.nodes) { - var node = @graph.nodes[i] - node.layoutPosX = 0 - node.layoutPosY = 0 - node.layoutForceX = 0 - node.layoutForceY = 0 - } - - }, - - layoutCalcBounds: -> - var minx = Infinity, maxx = -Infinity, miny = Infinity, maxy = -Infinity - - for (i in @graph.nodes) { - var x = @graph.nodes[i].layoutPosX - var y = @graph.nodes[i].layoutPosY - - if(x > maxx) maxx = x - if(x < minx) minx = x - if(y > maxy) maxy = y - if(y < miny) miny = y - } - - @graph.layoutMinX = minx - @graph.layoutMaxX = maxx - @graph.layoutMinY = miny - @graph.layoutMaxY = maxy - }, - - layoutIteration: -> - // Forces on nodes due to node-node repulsions - - var prev = new Array() - for(var c in @graph.nodes) { - var node1 = @graph.nodes[c] - for (var d in prev) { - var node2 = @graph.nodes[prev[d]] - @layoutRepulsive(node1, node2) - - } - prev.push(c) - } - - // Forces on nodes due to edge attractions - for (var i = 0; i < @graph.edges.length; i++) { - var edge = @graph.edges[i] - @layoutAttractive(edge); - } - - // Move by the given force - for (i in @graph.nodes) { - var node = @graph.nodes[i] - var xmove = @c * node.layoutForceX - var ymove = @c * node.layoutForceY - - var max = @maxVertexMovement - if(xmove > max) xmove = max - if(xmove < -max) xmove = -max - if(ymove > max) ymove = max - if(ymove < -max) ymove = -max - - node.layoutPosX += xmove - node.layoutPosY += ymove - node.layoutForceX = 0 - node.layoutForceY = 0 - } - }, - - layoutRepulsive: (node1, node2) { - var dx = node2.layoutPosX - node1.layoutPosX - var dy = node2.layoutPosY - node1.layoutPosY - var d2 = dx * dx + dy * dy - if(d2 < 0.01) { - dx = 0.1 * Math.random() + 0.1 - dy = 0.1 * Math.random() + 0.1 - var d2 = dx * dx + dy * dy - } - var d = Math.sqrt(d2) - if(d < @maxRepulsiveForceDistance) { - var repulsiveForce = @k * @k / d - node2.layoutForceX += repulsiveForce * dx / d - node2.layoutForceY += repulsiveForce * dy / d - node1.layoutForceX -= repulsiveForce * dx / d - node1.layoutForceY -= repulsiveForce * dy / d - } - }, - - layoutAttractive: (edge) { - var node1 = edge.source - var node2 = edge.target - - var dx = node2.layoutPosX - node1.layoutPosX - var dy = node2.layoutPosY - node1.layoutPosY - var d2 = dx * dx + dy * dy - if(d2 < 0.01) { - dx = 0.1 * Math.random() + 0.1 - dy = 0.1 * Math.random() + 0.1 - var d2 = dx * dx + dy * dy - } - var d = Math.sqrt(d2) - if(d > @maxRepulsiveForceDistance) { - d = @maxRepulsiveForceDistance - d2 = d * d - } - var attractiveForce = (d2 - @k * @k) / @k - if(edge.attraction == undefined) edge.attraction = 1 - attractiveForce *= Math.log(edge.attraction) * 0.5 + 1 - - node2.layoutForceX -= attractiveForce * dx / d - node2.layoutForceY -= attractiveForce * dy / d - node1.layoutForceX += attractiveForce * dx / d - node1.layoutForceY += attractiveForce * dy / d - } -} - -Graph.Layout.Ordered = (graph, order) { - @graph = graph - @order = order - @layout() -} -Graph.Layout.Ordered.prototype = { - layout: -> - @layoutPrepare() - @layoutCalcBounds() - }, - - layoutPrepare: (order) { - for (i in @graph.nodes) { - var node = @graph.nodes[i] - node.layoutPosX = 0 - node.layoutPosY = 0 - } - var counter = 0 - for (i in @order) { - var node = @order[i] - node.layoutPosX = counter - node.layoutPosY = Math.random() - counter++ - } - }, - - layoutCalcBounds: -> - var minx = Infinity, maxx = -Infinity, miny = Infinity, maxy = -Infinity - - for (i in @graph.nodes) { - var x = @graph.nodes[i].layoutPosX - var y = @graph.nodes[i].layoutPosY - - if(x > maxx) maxx = x - if(x < minx) minx = x - if(y > maxy) maxy = y - if(y < miny) miny = y - } - - @graph.layoutMinX = minx - @graph.layoutMaxX = maxx - - @graph.layoutMinY = miny - @graph.layoutMaxY = maxy - } -} - -/* - * usefull JavaScript extensions, - */ - - log(a) {console.log&&console.log(a);} - -/* - * Raphael Tooltip Plugin - * - attaches an element as a tooltip to another element - * - * Usage example, adding a rectangle as a tooltip to a circle: - * - * paper.circle(100,100,10).tooltip(paper.rect(0,0,20,30)) - * - * If you want to use more shapes, you'll have to put them into a set. - * - */ -Raphael.el.tooltip = (tp) { - @tp = tp - @tp.o = {x: 0, y: 0} - @tp.hide() - @hover( - (event){ - @mousemove((event){ - @tp.translate(event.clientX - - @tp.o.x,event.clientY - @tp.o.y) - @tp.o = {x: event.clientX, y: event.clientY} - }) - @tp.show().toFront() - }, - (event){ - @tp.hide() - @unmousemove() - }) - return this -} - -/* For IE */ -if (!Array.prototype.forEach) -{ - Array.prototype.forEach = (fun /*, thisp*/) - { - var len = @length - if (typeof fun != "") - throw new TypeError() - - var thisp = arguments[1] - for (var i = 0; i < len; i++) - { - if (i in this) - fun.call(thisp, this[i], i, this) - } - } -} diff --git a/addons/web_process/static/lib/dracula/dracula_graph.js b/addons/web_process/static/lib/dracula/dracula_graph.js deleted file mode 100644 index 28269986e78..00000000000 --- a/addons/web_process/static/lib/dracula/dracula_graph.js +++ /dev/null @@ -1,527 +0,0 @@ -/* - * Dracula Graph Layout and Drawing Framework 0.0.3alpha - * (c) 2010 Philipp Strathausen , http://strathausen.eu - * Contributions by Jake Stothard . - * - * based on the Graph JavaScript framework, version 0.0.1 - * (c) 2006 Aslak Hellesoy - * (c) 2006 Dave Hoover - * - * Ported from Graph::Layouter::Spring in - * http://search.cpan.org/~pasky/Graph-Layderer-0.02/ - * The algorithm is based on a spring-style layouter of a Java-based social - * network tracker PieSpy written by Paul Mutton . - * - * This code is freely distributable under the MIT license. Commercial use is - * hereby granted without any cost or restriction. - * - * Links: - * - * Graph Dracula JavaScript Framework: - * http://graphdracula.net - * - /*--------------------------------------------------------------------------*/ - -/* - * Edge Factory - */ -var AbstractEdge = function() { -} -AbstractEdge.prototype = { - hide: function() { - this.connection.fg.hide(); - this.connection.bg && this.bg.connection.hide(); - } -}; -var EdgeFactory = function() { - this.template = new AbstractEdge(); - this.template.style = new Object(); - this.template.style.directed = false; - this.template.weight = 1; -}; -EdgeFactory.prototype = { - build: function(source, target) { - var e = jQuery.extend(true, {}, this.template); - e.source = source; - e.target = target; - return e; - } -}; - -/* - * Graph - */ -var Graph = function() { - this.nodes = {}; - this.edges = []; - this.snapshots = []; // previous graph states TODO to be implemented - this.edgeFactory = new EdgeFactory(); -}; -Graph.prototype = { - /* - * add a node - * @id the node's ID (string or number) - * @content (optional, dictionary) can contain any information that is - * being interpreted by the layout algorithm or the graph - * representation - */ - addNode: function(id, content) { - /* testing if node is already existing in the graph */ - if(this.nodes[id] == undefined) { - this.nodes[id] = new Graph.Node(id, content); - } - return this.nodes[id]; - }, - - addEdge: function(source, target, style) { - var s = this.addNode(source); - var t = this.addNode(target); - var edge = this.edgeFactory.build(s, t); - jQuery.extend(edge.style,style); - s.edges.push(edge); - this.edges.push(edge); - // NOTE: Even directed edges are added to both nodes. - t.edges.push(edge); - }, - - /* TODO to be implemented - * Preserve a copy of the graph state (nodes, positions, ...) - * @comment a comment describing the state - */ - snapShot: function(comment) { - /* FIXME - var graph = new Graph(); - graph.nodes = jQuery.extend(true, {}, this.nodes); - graph.edges = jQuery.extend(true, {}, this.edges); - this.snapshots.push({comment: comment, graph: graph}); - */ - }, - removeNode: function(id) { - delete this.nodes[id]; - for(var i = 0; i < this.edges.length; i++) { - if (this.edges[i].source.id == id || this.edges[i].target.id == id) { - this.edges.splice(i, 1); - i--; - } - } - } -}; - -/* - * Node - */ -Graph.Node = function(id, node){ - node = node || {}; - node.id = id; - node.edges = []; - node.hide = function() { - this.hidden = true; - this.shape && this.shape.hide(); /* FIXME this is representation specific code and should be elsewhere */ - for(i in this.edges) - (this.edges[i].source.id == id || this.edges[i].target == id) && this.edges[i].hide && this.edges[i].hide(); - }; - node.show = function() { - this.hidden = false; - this.shape && this.shape.show(); - for(i in this.edges) - (this.edges[i].source.id == id || this.edges[i].target == id) && this.edges[i].show && this.edges[i].show(); - }; - return node; -}; -Graph.Node.prototype = { -}; - -/* - * Renderer base class - */ -Graph.Renderer = {}; - -/* - * Renderer implementation using RaphaelJS - */ -Graph.Renderer.Raphael = function(element, graph, width, height) { - this.width = width || 800; - this.height = height || 800; - var selfRef = this; - this.r = Raphael(element, this.width, this.height); - this.radius = 40; /* max dimension of a node */ - this.graph = graph; - this.mouse_in = false; - - /* TODO default node rendering function */ - if(!this.graph.render) { - this.graph.render = function() { - return; - } - } - - /* - * Dragging - */ - this.isDrag = false; - this.dragger = function (e) { - this.dx = e.clientX; - this.dy = e.clientY; - selfRef.isDrag = this; - this.set && this.set.animate({"fill-opacity": .1}, 200); - e.preventDefault && e.preventDefault(); - }; - - var d = document.getElementById(element); - d.onmousemove = function (e) { - e = e || window.event; - if (selfRef.isDrag) { - var bBox = selfRef.isDrag.set.getBBox(); - // TODO round the coordinates here (eg. for proper image representation) - var newX = e.clientX - selfRef.isDrag.dx + (bBox.x + bBox.width / 2); - var newY = e.clientY - selfRef.isDrag.dy + (bBox.y + bBox.height / 2); - /* prevent shapes from being dragged out of the canvas */ - var clientX = e.clientX - (newX < 20 ? newX - 20 : newX > selfRef.width - 20 ? newX - selfRef.width + 20 : 0); - var clientY = e.clientY - (newY < 20 ? newY - 20 : newY > selfRef.height - 20 ? newY - selfRef.height + 20 : 0); - selfRef.isDrag.set.translate(clientX - Math.round(selfRef.isDrag.dx), clientY - Math.round(selfRef.isDrag.dy)); - // console.log(clientX - Math.round(selfRef.isDrag.dx), clientY - Math.round(selfRef.isDrag.dy)); - for (var i in selfRef.graph.edges) { - selfRef.graph.edges[i].connection && selfRef.graph.edges[i].connection.draw(); - } - //selfRef.r.safari(); - selfRef.isDrag.dx = clientX; - selfRef.isDrag.dy = clientY; - } - }; - d.onmouseup = function () { - selfRef.isDrag && selfRef.isDrag.set.animate({"fill-opacity": .6}, 500); - selfRef.isDrag = false; - }; - this.draw(); -}; -Graph.Renderer.Raphael.prototype = { - translate: function(point) { - return [ - (point[0] - this.graph.layoutMinX) * this.factorX + this.radius, - (point[1] - this.graph.layoutMinY) * this.factorY + this.radius - ]; - }, - - rotate: function(point, length, angle) { - var dx = length * Math.cos(angle); - var dy = length * Math.sin(angle); - return [point[0]+dx, point[1]+dy]; - }, - - draw: function() { - this.factorX = (this.width - 2 * this.radius) / (this.graph.layoutMaxX - this.graph.layoutMinX); - this.factorY = (this.height - 2 * this.radius) / (this.graph.layoutMaxY - this.graph.layoutMinY); - for (i in this.graph.nodes) { - this.drawNode(this.graph.nodes[i]); - } - for (var i = 0; i < this.graph.edges.length; i++) { - this.drawEdge(this.graph.edges[i]); - } - }, - - drawNode: function(node) { - var point = this.translate([node.layoutPosX, node.layoutPosY]); - node.point = point; - - /* if node has already been drawn, move the nodes */ - if(node.shape) { - var oBBox = node.shape.getBBox(); - var opoint = { x: oBBox.x + oBBox.width / 2, y: oBBox.y + oBBox.height / 2}; - node.shape.translate(Math.round(point[0] - opoint.x), Math.round(point[1] - opoint.y)); - this.r.safari(); - return node; - }/* else, draw new nodes */ - - var shape; - - /* if a node renderer function is provided by the user, then use it - or the default render function instead */ - if(!node.render) { - node.render = function(r, node) { - /* the default node drawing */ - var color = Raphael.getColor(); - var ellipse = r.ellipse(0, 0, 30, 20).attr({fill: color, stroke: color, "stroke-width": 2}); - /* set DOM node ID */ - ellipse.node.id = node.label || node.id; - shape = r.set(). - push(ellipse). - push(r.text(0, 30, node.label || node.id)); - return shape; - } - } - /* or check for an ajax representation of the nodes */ - if(node.shapes) { - // TODO ajax representation evaluation - } - - shape = node.render(this.r, node).hide(); - - shape.attr({"fill-opacity": .6}); - /* re-reference to the node an element belongs to, needed for dragging all elements of a node */ - shape.items.forEach(function(item){ item.set = shape; item.node.style.cursor = "move"; }); - shape.mousedown(this.dragger); - - var box = shape.getBBox(); - shape.translate(Math.round(point[0]-(box.x+box.width/2)),Math.round(point[1]-(box.y+box.height/2))) - //console.log(box,point); - node.hidden || shape.show(); - node.shape = shape; - }, - drawEdge: function(edge) { - /* if this edge already exists the other way around and is undirected */ - if(edge.backedge) - return; - if(edge.source.hidden || edge.target.hidden) { - edge.connection && edge.connection.fg.hide() | edge.connection.bg && edge.connection.bg.hide(); - return; - } - /* if edge already has been drawn, only refresh the edge */ - if(!edge.connection) { - edge.style && edge.style.callback && edge.style.callback(edge); // TODO move this somewhere else - edge.connection = this.r.connection(edge.source.shape, edge.target.shape, edge.style); - return; - } - //FIXME showing doesn't work well - edge.connection.fg.show(); - edge.connection.bg && edge.connection.bg.show(); - edge.connection.draw(); - } -}; -Graph.Layout = {}; -Graph.Layout.Spring = function(graph) { - this.graph = graph; - this.iterations = 500; - this.maxRepulsiveForceDistance = 6; - this.k = 2; - this.c = 0.01; - this.maxVertexMovement = 0.5; - this.layout(); -}; -Graph.Layout.Spring.prototype = { - layout: function() { - this.layoutPrepare(); - for (var i = 0; i < this.iterations; i++) { - this.layoutIteration(); - } - this.layoutCalcBounds(); - }, - - layoutPrepare: function() { - for (i in this.graph.nodes) { - var node = this.graph.nodes[i]; - node.layoutPosX = 0; - node.layoutPosY = 0; - node.layoutForceX = 0; - node.layoutForceY = 0; - } - - }, - - layoutCalcBounds: function() { - var minx = Infinity, maxx = -Infinity, miny = Infinity, maxy = -Infinity; - - for (i in this.graph.nodes) { - var x = this.graph.nodes[i].layoutPosX; - var y = this.graph.nodes[i].layoutPosY; - - if(x > maxx) maxx = x; - if(x < minx) minx = x; - if(y > maxy) maxy = y; - if(y < miny) miny = y; - } - - this.graph.layoutMinX = minx; - this.graph.layoutMaxX = maxx; - this.graph.layoutMinY = miny; - this.graph.layoutMaxY = maxy; - }, - - layoutIteration: function() { - // Forces on nodes due to node-node repulsions - - var prev = new Array(); - for(var c in this.graph.nodes) { - var node1 = this.graph.nodes[c]; - for (var d in prev) { - var node2 = this.graph.nodes[prev[d]]; - this.layoutRepulsive(node1, node2); - - } - prev.push(c); - } - - // Forces on nodes due to edge attractions - for (var i = 0; i < this.graph.edges.length; i++) { - var edge = this.graph.edges[i]; - this.layoutAttractive(edge); - } - - // Move by the given force - for (i in this.graph.nodes) { - var node = this.graph.nodes[i]; - var xmove = this.c * node.layoutForceX; - var ymove = this.c * node.layoutForceY; - - var max = this.maxVertexMovement; - if(xmove > max) xmove = max; - if(xmove < -max) xmove = -max; - if(ymove > max) ymove = max; - if(ymove < -max) ymove = -max; - - node.layoutPosX += xmove; - node.layoutPosY += ymove; - node.layoutForceX = 0; - node.layoutForceY = 0; - } - }, - - layoutRepulsive: function(node1, node2) { - if (typeof node1 == 'undefined' || typeof node2 == 'undefined') - return; - var dx = node2.layoutPosX - node1.layoutPosX; - var dy = node2.layoutPosY - node1.layoutPosY; - var d2 = dx * dx + dy * dy; - if(d2 < 0.01) { - dx = 0.1 * Math.random() + 0.1; - dy = 0.1 * Math.random() + 0.1; - var d2 = dx * dx + dy * dy; - } - var d = Math.sqrt(d2); - if(d < this.maxRepulsiveForceDistance) { - var repulsiveForce = this.k * this.k / d; - node2.layoutForceX += repulsiveForce * dx / d; - node2.layoutForceY += repulsiveForce * dy / d; - node1.layoutForceX -= repulsiveForce * dx / d; - node1.layoutForceY -= repulsiveForce * dy / d; - } - }, - - layoutAttractive: function(edge) { - var node1 = edge.source; - var node2 = edge.target; - - var dx = node2.layoutPosX - node1.layoutPosX; - var dy = node2.layoutPosY - node1.layoutPosY; - var d2 = dx * dx + dy * dy; - if(d2 < 0.01) { - dx = 0.1 * Math.random() + 0.1; - dy = 0.1 * Math.random() + 0.1; - var d2 = dx * dx + dy * dy; - } - var d = Math.sqrt(d2); - if(d > this.maxRepulsiveForceDistance) { - d = this.maxRepulsiveForceDistance; - d2 = d * d; - } - var attractiveForce = (d2 - this.k * this.k) / this.k; - if(edge.attraction == undefined) edge.attraction = 1; - attractiveForce *= Math.log(edge.attraction) * 0.5 + 1; - - node2.layoutForceX -= attractiveForce * dx / d; - node2.layoutForceY -= attractiveForce * dy / d; - node1.layoutForceX += attractiveForce * dx / d; - node1.layoutForceY += attractiveForce * dy / d; - } -}; - -Graph.Layout.Ordered = function(graph, order) { - this.graph = graph; - this.order = order; - this.layout(); -}; -Graph.Layout.Ordered.prototype = { - layout: function() { - this.layoutPrepare(); - this.layoutCalcBounds(); - }, - - layoutPrepare: function(order) { - for (i in this.graph.nodes) { - var node = this.graph.nodes[i]; - node.layoutPosX = 0; - node.layoutPosY = 0; - } - var counter = 0; - for (i in this.order) { - var node = this.order[i]; - node.layoutPosX = counter; - node.layoutPosY = Math.random(); - counter++; - } - }, - - layoutCalcBounds: function() { - var minx = Infinity, maxx = -Infinity, miny = Infinity, maxy = -Infinity; - - for (i in this.graph.nodes) { - var x = this.graph.nodes[i].layoutPosX; - var y = this.graph.nodes[i].layoutPosY; - - if(x > maxx) maxx = x; - if(x < minx) minx = x; - if(y > maxy) maxy = y; - if(y < miny) miny = y; - } - - this.graph.layoutMinX = minx; - this.graph.layoutMaxX = maxx; - - this.graph.layoutMinY = miny; - this.graph.layoutMaxY = maxy; - } -}; - -/* - * usefull JavaScript extensions, - */ - -function log(a) {console.log&&console.log(a);} - -/* - * Raphael Tooltip Plugin - * - attaches an element as a tooltip to another element - * - * Usage example, adding a rectangle as a tooltip to a circle: - * - * paper.circle(100,100,10).tooltip(paper.rect(0,0,20,30)); - * - * If you want to use more shapes, you'll have to put them into a set. - * - */ -Raphael.el.tooltip = function (tp) { - this.tp = tp; - this.tp.o = {x: 0, y: 0}; - this.tp.hide(); - this.hover( - function(event){ - this.mousemove(function(event){ - this.tp.translate(event.clientX - - this.tp.o.x,event.clientY - this.tp.o.y); - this.tp.o = {x: event.clientX, y: event.clientY}; - }); - this.tp.show().toFront(); - }, - function(event){ - this.tp.hide(); - this.unmousemove(); - }); - return this; -}; - -/* For IE */ -if (!Array.prototype.forEach) -{ - Array.prototype.forEach = function(fun /*, thisp*/) - { - var len = this.length; - if (typeof fun != "function") - throw new TypeError(); - - var thisp = arguments[1]; - for (var i = 0; i < len; i++) - { - if (i in this) - fun.call(thisp, this[i], i, this); - } - }; -} diff --git a/addons/web_process/static/src/css/process.css b/addons/web_process/static/src/css/process.css deleted file mode 100644 index dde01f26ea5..00000000000 --- a/addons/web_process/static/src/css/process.css +++ /dev/null @@ -1,73 +0,0 @@ - -a.cta-a { - float: left; - padding: 5px 10px; - border: 1px solid #ccc; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - background: #eeeded url(/web_process/static/src/img/cta-a.gif) repeat-x; - box-shadow: 0 1px 0 #fff; - -moz-box-shadow: 0 1px 0 #fff; - -webkit-box-shadow: 0 1px 0 #fff; - color: #8c8c8c; - font-size: 0.9em; - text-transform: uppercase; - font-weight: bold; - text-shadow: #fff 0 1px 0; - margin: 2px; -} - -a.cta-a span { - float: left; - padding: 7px 0 5px 5px; - background-position: 0 50%; - background-repeat: no-repeat; - cursor: pointer; -} - -a.cta-a strong { - display: block; - color: #393939; -} - -.process_h1 { - background:url("/web_process/static/src/img/sep-a.gif") repeat-x scroll 0 90% transparent; - font-size:2em; - font-weight:normal; - padding:0 0 5px 5px; - line-height: 1.2; -} - -.process-links { - padding: 5px 10px; - text-align: center; - display: table; - margin: auto; -} - -.process-links a.cta-a { - display: table-cell; -} - -.oe_process { - height: 20px; - margin-top:8px; - padding: 0; - width: 24px; - cursor: pointer; - display: block; - background: url(/web/static/src/img/iconset-a-help.png) no-repeat center center; - float: left; -} - -.process-help-text { - float: left; - padding:5px 10px; - min-height:56px; - font-size: 120%; -} - -td.process_fields,button.toggle_fields span:last-child { - display: none; -} diff --git a/addons/web_process/static/src/img/ToolOval.jpg b/addons/web_process/static/src/img/ToolOval.jpg deleted file mode 100644 index c30f15a07d2..00000000000 Binary files a/addons/web_process/static/src/img/ToolOval.jpg and /dev/null differ diff --git a/addons/web_process/static/src/img/ToolShowGrid.jpg b/addons/web_process/static/src/img/ToolShowGrid.jpg deleted file mode 100644 index 8285acc8aac..00000000000 Binary files a/addons/web_process/static/src/img/ToolShowGrid.jpg and /dev/null differ diff --git a/addons/web_process/static/src/img/ToolShowGrid.png b/addons/web_process/static/src/img/ToolShowGrid.png deleted file mode 100644 index ea530671b97..00000000000 Binary files a/addons/web_process/static/src/img/ToolShowGrid.png and /dev/null differ diff --git a/addons/web_process/static/src/img/button-a-a.png b/addons/web_process/static/src/img/button-a-a.png deleted file mode 100644 index bd046bbbef7..00000000000 Binary files a/addons/web_process/static/src/img/button-a-a.png and /dev/null differ diff --git a/addons/web_process/static/src/img/cta-a.gif b/addons/web_process/static/src/img/cta-a.gif deleted file mode 100644 index daa561e29f5..00000000000 Binary files a/addons/web_process/static/src/img/cta-a.gif and /dev/null differ diff --git a/addons/web_process/static/src/img/grid_10.jpg b/addons/web_process/static/src/img/grid_10.jpg deleted file mode 100644 index 5254207b964..00000000000 Binary files a/addons/web_process/static/src/img/grid_10.jpg and /dev/null differ diff --git a/addons/web_process/static/src/img/iconset-a-help.gif b/addons/web_process/static/src/img/iconset-a-help.gif deleted file mode 100644 index 5400acec57b..00000000000 Binary files a/addons/web_process/static/src/img/iconset-a-help.gif and /dev/null differ diff --git a/addons/web_process/static/src/img/node-current.png b/addons/web_process/static/src/img/node-current.png deleted file mode 100644 index 51f86b04c78..00000000000 Binary files a/addons/web_process/static/src/img/node-current.png and /dev/null differ diff --git a/addons/web_process/static/src/img/node-gray.png b/addons/web_process/static/src/img/node-gray.png deleted file mode 100644 index 972013540cf..00000000000 Binary files a/addons/web_process/static/src/img/node-gray.png and /dev/null differ diff --git a/addons/web_process/static/src/img/node-subflow-gray.png b/addons/web_process/static/src/img/node-subflow-gray.png deleted file mode 100644 index ffafe1bd681..00000000000 Binary files a/addons/web_process/static/src/img/node-subflow-gray.png and /dev/null differ diff --git a/addons/web_process/static/src/img/node-subflow.png b/addons/web_process/static/src/img/node-subflow.png deleted file mode 100644 index fd2a480204d..00000000000 Binary files a/addons/web_process/static/src/img/node-subflow.png and /dev/null differ diff --git a/addons/web_process/static/src/img/node.png b/addons/web_process/static/src/img/node.png deleted file mode 100644 index 853ac85cd56..00000000000 Binary files a/addons/web_process/static/src/img/node.png and /dev/null differ diff --git a/addons/web_process/static/src/img/port.gif b/addons/web_process/static/src/img/port.gif deleted file mode 100644 index 1a3f97815e7..00000000000 Binary files a/addons/web_process/static/src/img/port.gif and /dev/null differ diff --git a/addons/web_process/static/src/img/sep-a.gif b/addons/web_process/static/src/img/sep-a.gif deleted file mode 100644 index 5a064f21e89..00000000000 Binary files a/addons/web_process/static/src/img/sep-a.gif and /dev/null differ diff --git a/addons/web_process/static/src/img/window_bg.png b/addons/web_process/static/src/img/window_bg.png deleted file mode 100644 index 864aed8a40b..00000000000 Binary files a/addons/web_process/static/src/img/window_bg.png and /dev/null differ diff --git a/addons/web_process/static/src/img/window_toolbar.png b/addons/web_process/static/src/img/window_toolbar.png deleted file mode 100644 index 77c30b79d82..00000000000 Binary files a/addons/web_process/static/src/img/window_toolbar.png and /dev/null differ diff --git a/addons/web_process/static/src/js/process.js b/addons/web_process/static/src/js/process.js deleted file mode 100644 index c2192a9a10a..00000000000 --- a/addons/web_process/static/src/js/process.js +++ /dev/null @@ -1,291 +0,0 @@ -openerp.web_process = function (instance) { - var QWeb = instance.web.qweb, - _t = instance.web._t; - instance.web.ViewManager.include({ - start: function() { - var _super = this._super(); - this.process_check(); - this.process_help = this.action ? this.action.help : 'Help: Not Defined'; - this.model = this.dataset.model; - if(this.action) this.process_model = this.action.res_model; - else this.process_model = this.model; - return _super; - }, - process_check: function() { - var self = this, - grandparent = this.getParent() && this.getParent().getParent(), - view = this.views[this.views_src[0].view_type], - $process_view = this.$el.find('.oe_process'); - if (!(grandparent instanceof instance.web.WebClient) || - !(view.view_type === this.views_src[0].view_type - && view.view_id === this.views_src[0].view_id)) { - $process_view.hide(); - return; - } - $process_view.click(function() { - self.initialize_process_view(); - }); - }, - initialize_process_view: function() { - var self = this; - this.record_id = false; - if(this.active_view == 'form') { - this.record_id = this.views[this.active_view].controller.datarecord.id; - } - - $.when(this.help(), this.get_process_object()).pipe(function(help, process) { - self.process_help = help; - if(process && process.length) { - if(process.length > 1) { - self.process_selection = process; - } else { - self.process_id = process[0][0], - self.process_title = process[0][1]; - } - } - return $.Deferred().resolve(); - }).pipe(function() { - var def = $.Deferred(); - if(self.process_id) { - self.graph_get().done(function(res) { - self.process_notes = res.notes; - self.process_title = res.name; - self.process_subflows = _(res.nodes).chain() - .filter(function (node) { return node['subflow'] !== false; }) - .uniq(false, function (node) { return node['subflow'][0]; }).value(); - self.process_related = res.related; - def.resolve(res); - }); - } else def.resolve(); - return def.promise(); - }).done(function(res) { - $.when(self.render_process_view()).done(function() { - if(res) self.draw_process_graph(res); - }); - }); - }, - graph_get: function() { - var self = this; - var def = $.Deferred(); - this.process_id = parseInt(this.process_id, 10); - - this.process_dataset - .call("graph_get",[this.process_id, this.model || this.dataset.model, this.record_id, [80,80,150,100]]) - .done(function(res) { - self.process_dataset - .call("search_by_model",[self.model || self.dataset.model,self.session.context]) - .done( - function(r) { - res['related'] = r; - def.resolve(res); - }); - }); - return def.promise(); - }, - help : function() { - var def = $.Deferred(); - if(!this.subflow_model) { - def.resolve(this.action ? (this.action.help!=false ? this.action.help : 'Help: Not Defined') : 'Help: Not Defined'); - } else { - var dataset = new instance.web.DataSetSearch(this, "ir.actions.act_window", this.session.context, []); - dataset - .read_slice(['help'], - { - domain: [ - ['res_model', '=', this.subflow_model], - ['name', 'ilike', this.subflow_name] - ] - } - ).done(function(res) { - def.resolve(res.help || 'Help: Not Defined'); - }); - } - return def.promise(); - }, - get_process_object : function() { - var self = this, - def = $.Deferred(); - if(this.process_id) - return def.resolve().promise(); - - this.process_dataset = new instance.web.DataSet(this, "process.process", this.session.context); - this.process_dataset - .call("search_by_model", [self.process_model,self.session.context]) - .done(function(res) { - if (!res.length) { - self.process_model = false; - self.get_process_object().done(def.resolve); - } - else { - def.resolve(res); - } - }) - .fail(def.reject); - return def.promise(); - }, - render_process_view : function() { - this.$el.html(QWeb.render("ProcessView", this)); - var self = this; - this.$el.find('#edit_process').click(function() { - self.edit_process_view(); - }); - var $parent = this.getParent().$el; - $parent.find('#change_process').click(function() { - self.process_selection = false, - self.process_id = $parent.find('#select_process').val(), - self.process_title = $.trim($parent.find('#select_process option:selected').text()); - self.initialize_process_view(); - }); - - this.$el.find(".process_subflow").click(function() { - self.process_id = this.id; - self.initialize_process_view(); - }); - }, - draw_process_graph : function(res) { - var self = this, - process_graph = new Graph(); - var process_renderer = function(r, n) { - var clip_rect = "".concat(n.node.x,",",n.node.y,",150,100"); - - //Image part - var bg = n.node.kind == "subflow" ? "node-subflow" : "node"; - bg = n.node.gray ? bg + "-gray" : bg; - bg = n.node.active ? 'node-current': bg; - - var img_src = '/web_process/static/src/img/'+ bg + '.png'; - - r['image'](img_src, n.node.x, n.node.y,150, 100) - .attr({"clip-rect": clip_rect}) - .mousedown(function() { - return false; - }); - //Node - var process_node = r['rect'](n.node.x, n.node.y, 150, 100).attr({stroke: "none"}); - // Node text - var process_node_text = r.text(n.node.x, n.node.y, (n.node.name)) - .attr({"fill": "#fff", "font-weight": "bold", "cursor": "pointer"}); - process_node_text.translate((process_node.getBBox().width / 2) + 5, 10); - if(n.node.subflow) { - process_node_text.click(function() { - self.process_id = n.node.subflow[0]; - self.subflow_model = n.node.model; - self.subflow_name = n.node.name; - self.initialize_process_view(); - }); - } - //Node Description - var new_notes = n.node.notes; - if(n.node.notes.length > 25) { - var to; - var temp_str = new_notes = ''; - var from = to = 0; - while (1) { - from = 25; - temp_str = n.node.notes.substr(to ,25); - if (temp_str.lastIndexOf(" ") < 25 && temp_str.length >= 25) { - from = temp_str.lastIndexOf(" "); - } - new_notes += "\n" + n.node.notes.substr(to , from); - if(new_notes.length > n.node.notes.length) break; - to += from; - } - } - - if(n.node.res) - new_notes = n.node.res.name + '\n' + new_notes; - - r.text(n.node.x+85, n.node.y+50, (new_notes)); - r['image']('/web/static/src/img/icons/gtk-info.png', n.node.x+20, n.node.y+70, 16, 16) - .attr({"cursor": "pointer", "title": "Help"}) - .click(function() { - window.open(n.node.url || "http://doc.openerp.com/v6.0/index.php?model=" + n.node.model); - }); - - if(n.node.menu) { - r['image']('/web/static/src/img/icons/gtk-jump-to.png', n.node.x+115, n.node.y+70, 16, 16) - .attr({"cursor": "pointer", "title": n.node.menu.name}) - .click(function() { - self.jump_to_view(n.node.res_model, n.node.menu.id); - }); - } - - var process_set = r.set().push(process_node); - process_set.mousedown(function() { - return false; - }); - return process_set; - }; - - _.each(res['nodes'],function(node, node_id) { - node['res_model'] = self.model, - node['res_id'] = false, - node['id'] = node_id; - process_graph.addNode(node.id, {node: node,render: process_renderer}); - }); - - _.each(res['transitions'], function(transitions) { - var src = res['nodes'][transitions['source']]; - var dst = res['nodes'][transitions['target']]; - // make active - transitions['active'] = src.active && !dst.gray; - process_graph.addEdge(src.id, dst.id, {directed : true}); - }); - var width = $(document).width(); - var height = $(document).height(); - var layouter = new Graph.Layout.Ordered(process_graph); - var render_process_graph = new Graph.Renderer.Raphael('process_canvas', process_graph, width, height); - }, - jump_to_view: function(model, id) { - var self = this; - var dataset = new instance.web.DataSet(this, 'ir.values', this.session.context); - dataset.call('get', - ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context], - function(res) { - var action = res[0][res[0].length - 1]; - self.rpc("/web/action/load", { - action_id: action.id, - context: dataset.context - }, function(result) { - var action_manager = new instance.web.ActionManager(self); - action_manager.replace(self.$el); - action_manager.do_action(result.result); - }); - }); - }, - edit_process_view: function() { - var self = this; - var action_manager = new instance.web.ActionManager(this); - var dialog = new instance.web.Dialog(this, { - width: 800, - buttons : [ - {text: _t("Cancel"), click: function() { $(this).dialog('destroy'); }}, - {text: _t("Save"), click: function() { - var form_view = action_manager.inner_widget.views.form.controller; - - form_view.do_save(function() { - self.initialize_process_view(); - }); - $(this).dialog('destroy'); - }} - ] - }).open(); - - action_manager.appendTo(dialog.$el); - action_manager.do_action({ - res_model : 'process.process', - res_id: self.process_id, - views : [[false, 'form']], - type : 'ir.actions.act_window', - flags : { - search_view: false, - sidebar : false, - views_switcher : false, - action_buttons : false, - pager: false - } - }); - } - }); -}; -// vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax: diff --git a/addons/web_process/static/src/xml/web_process.xml b/addons/web_process/static/src/xml/web_process.xml deleted file mode 100644 index 7bf2ba1d93b..00000000000 --- a/addons/web_process/static/src/xml/web_process.xml +++ /dev/null @@ -1,114 +0,0 @@ -