From 0968f5bb60f075e687211891414c32fa1bf372a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 13:40:19 +0200 Subject: [PATCH 01/30] Initial import of complete codemirror --- js/codemirror/LICENSE | 19 + js/codemirror/README.md | 6 + js/codemirror/compress.html | 83 + js/codemirror/css/baboon.png | Bin 0 -> 23299 bytes js/codemirror/css/baboon_vector.svg | 153 ++ js/codemirror/css/docs.css | 157 ++ js/codemirror/css/font.js | 18 + js/codemirror/demo/activeline.html | 71 + js/codemirror/demo/complete.html | 79 + js/codemirror/demo/complete.js | 150 ++ js/codemirror/demo/marker.html | 53 + js/codemirror/demo/mustache.html | 57 + js/codemirror/demo/resize.html | 38 + js/codemirror/demo/search.html | 106 + js/codemirror/index.html | 224 ++ js/codemirror/internals.html | 382 ++++ js/codemirror/lib/codemirror.css | 56 + js/codemirror/lib/codemirror.js | 2018 ++++++++++++++++++ js/codemirror/lib/overlay.js | 51 + js/codemirror/manual.html | 797 +++++++ js/codemirror/mode/clike/clike.css | 7 + js/codemirror/mode/clike/clike.js | 187 ++ js/codemirror/mode/clike/index.html | 101 + js/codemirror/mode/css/css.css | 9 + js/codemirror/mode/css/css.js | 124 ++ js/codemirror/mode/css/index.html | 56 + js/codemirror/mode/diff/diff.css | 3 + js/codemirror/mode/diff/diff.js | 13 + js/codemirror/mode/diff/index.html | 99 + js/codemirror/mode/haskell/haskell.css | 25 + js/codemirror/mode/haskell/haskell.js | 242 +++ js/codemirror/mode/haskell/index.html | 59 + js/codemirror/mode/htmlmixed/htmlmixed.js | 74 + js/codemirror/mode/htmlmixed/index.html | 54 + js/codemirror/mode/javascript/index.html | 78 + js/codemirror/mode/javascript/javascript.css | 6 + js/codemirror/mode/javascript/javascript.js | 348 +++ js/codemirror/mode/php/index.html | 52 + js/codemirror/mode/php/php.js | 83 + js/codemirror/mode/plsql/index.html | 63 + js/codemirror/mode/plsql/plsql.css | 33 + js/codemirror/mode/plsql/plsql.js | 218 ++ js/codemirror/mode/python/LICENSE.txt | 21 + js/codemirror/mode/python/index.html | 123 ++ js/codemirror/mode/python/python.css | 23 + js/codemirror/mode/python/python.js | 318 +++ js/codemirror/mode/rst/index.html | 526 +++++ js/codemirror/mode/rst/rst.css | 77 + js/codemirror/mode/rst/rst.js | 335 +++ js/codemirror/mode/smalltalk/index.html | 56 + js/codemirror/mode/smalltalk/smalltalk.css | 5 + js/codemirror/mode/smalltalk/smalltalk.js | 122 ++ js/codemirror/mode/stex/index.html | 96 + js/codemirror/mode/stex/stex.css | 20 + js/codemirror/mode/stex/stex.js | 167 ++ js/codemirror/mode/xml/index.html | 42 + js/codemirror/mode/xml/xml.css | 7 + js/codemirror/mode/xml/xml.js | 206 ++ js/codemirror/oldrelease.html | 140 ++ js/codemirror/test/index.html | 29 + js/codemirror/test/test.js | 248 +++ 61 files changed, 9013 insertions(+) create mode 100644 js/codemirror/LICENSE create mode 100644 js/codemirror/README.md create mode 100644 js/codemirror/compress.html create mode 100644 js/codemirror/css/baboon.png create mode 100644 js/codemirror/css/baboon_vector.svg create mode 100644 js/codemirror/css/docs.css create mode 100644 js/codemirror/css/font.js create mode 100644 js/codemirror/demo/activeline.html create mode 100644 js/codemirror/demo/complete.html create mode 100644 js/codemirror/demo/complete.js create mode 100644 js/codemirror/demo/marker.html create mode 100644 js/codemirror/demo/mustache.html create mode 100644 js/codemirror/demo/resize.html create mode 100644 js/codemirror/demo/search.html create mode 100644 js/codemirror/index.html create mode 100644 js/codemirror/internals.html create mode 100644 js/codemirror/lib/codemirror.css create mode 100644 js/codemirror/lib/codemirror.js create mode 100644 js/codemirror/lib/overlay.js create mode 100644 js/codemirror/manual.html create mode 100644 js/codemirror/mode/clike/clike.css create mode 100644 js/codemirror/mode/clike/clike.js create mode 100644 js/codemirror/mode/clike/index.html create mode 100644 js/codemirror/mode/css/css.css create mode 100644 js/codemirror/mode/css/css.js create mode 100644 js/codemirror/mode/css/index.html create mode 100644 js/codemirror/mode/diff/diff.css create mode 100644 js/codemirror/mode/diff/diff.js create mode 100644 js/codemirror/mode/diff/index.html create mode 100644 js/codemirror/mode/haskell/haskell.css create mode 100644 js/codemirror/mode/haskell/haskell.js create mode 100644 js/codemirror/mode/haskell/index.html create mode 100644 js/codemirror/mode/htmlmixed/htmlmixed.js create mode 100644 js/codemirror/mode/htmlmixed/index.html create mode 100644 js/codemirror/mode/javascript/index.html create mode 100644 js/codemirror/mode/javascript/javascript.css create mode 100644 js/codemirror/mode/javascript/javascript.js create mode 100644 js/codemirror/mode/php/index.html create mode 100644 js/codemirror/mode/php/php.js create mode 100644 js/codemirror/mode/plsql/index.html create mode 100644 js/codemirror/mode/plsql/plsql.css create mode 100644 js/codemirror/mode/plsql/plsql.js create mode 100644 js/codemirror/mode/python/LICENSE.txt create mode 100644 js/codemirror/mode/python/index.html create mode 100644 js/codemirror/mode/python/python.css create mode 100644 js/codemirror/mode/python/python.js create mode 100644 js/codemirror/mode/rst/index.html create mode 100644 js/codemirror/mode/rst/rst.css create mode 100644 js/codemirror/mode/rst/rst.js create mode 100644 js/codemirror/mode/smalltalk/index.html create mode 100644 js/codemirror/mode/smalltalk/smalltalk.css create mode 100644 js/codemirror/mode/smalltalk/smalltalk.js create mode 100644 js/codemirror/mode/stex/index.html create mode 100644 js/codemirror/mode/stex/stex.css create mode 100644 js/codemirror/mode/stex/stex.js create mode 100644 js/codemirror/mode/xml/index.html create mode 100644 js/codemirror/mode/xml/xml.css create mode 100644 js/codemirror/mode/xml/xml.js create mode 100644 js/codemirror/oldrelease.html create mode 100644 js/codemirror/test/index.html create mode 100644 js/codemirror/test/test.js diff --git a/js/codemirror/LICENSE b/js/codemirror/LICENSE new file mode 100644 index 0000000000..3f7c0bb187 --- /dev/null +++ b/js/codemirror/LICENSE @@ -0,0 +1,19 @@ +Copyright (C) 2011 by Marijn Haverbeke + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/js/codemirror/README.md b/js/codemirror/README.md new file mode 100644 index 0000000000..624b5409b0 --- /dev/null +++ b/js/codemirror/README.md @@ -0,0 +1,6 @@ +# CodeMirror 2 + +CodeMirror 2 is a rewrite of [CodeMirror +1](http://github.com/marijnh/CodeMirror). The docs live +[here](http://codemirror.net/2/manual.html), and the project page is +[http://codemirror.net/2/](http://codemirror.net/2/). diff --git a/js/codemirror/compress.html b/js/codemirror/compress.html new file mode 100644 index 0000000000..4ffca2a555 --- /dev/null +++ b/js/codemirror/compress.html @@ -0,0 +1,83 @@ + + + + CodeMirror: Compression Helper + + + + + +

{ } CodeMirror

+ +
+/* Script compression
+   helper */
+
+ +

To optimize loading CodeMirror, especially when including a + bunch of different modes, it is recommended that you combine and + minify (and preferably also gzip) the scripts. This page makes + those first two steps very easy. Simply select the version and + scripts you need in the form below, and + click Compress to download the minified script + file.

+ +
+ +

Version:

+ +

+ +

+ with UglifyJS +

+ +

Custom code to add to the compressed file:

+
+ + + + + + + diff --git a/js/codemirror/css/baboon.png b/js/codemirror/css/baboon.png new file mode 100644 index 0000000000000000000000000000000000000000..55d97f70b817ff2b78ebb409bf34a5147fe40d07 GIT binary patch literal 23299 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

#6335mO-CwW+nmUD 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 literal 0 HcmV?d00001 diff --git a/js/codemirror/css/baboon_vector.svg b/js/codemirror/css/baboon_vector.svg new file mode 100644 index 0000000000..dc1667af91 --- /dev/null +++ b/js/codemirror/css/baboon_vector.svg @@ -0,0 +1,153 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/js/codemirror/css/docs.css b/js/codemirror/css/docs.css new file mode 100644 index 0000000000..c1b99dfa39 --- /dev/null +++ b/js/codemirror/css/docs.css @@ -0,0 +1,157 @@ +body { + font-family: Arial, sans-serif; + line-height: 1.5; + max-width: 64.3em; + margin: 3em auto; + padding: 0 1em; +} +body.droid { + font-family: Droid Sans, Arial, sans-serif; +} + +h1 { + letter-spacing: -3px; + font-size: 3.23em; + font-weight: bold; + margin: 0; +} + +h2 { + font-size: 1.23em; + font-weight: bold; + margin: .5em 0; + letter-spacing: -1px; +} + +h3 { + font-size: 1em; + font-weight: bold; + margin: .4em 0; +} + +pre { + background-color: #eee; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; + border-radius: 6px; + padding: 1em; +} + +pre.code { + margin: 0 1em; +} + +.grey { + font-size: 2.2em; + padding: .5em 1em; + line-height: 1.2em; + margin-top: .5em; + position: relative; +} + +img.logo { + position: absolute; + right: -25px; + bottom: 4px; +} + +a:link, a:visited, .quasilink { + color: #df0019; + cursor: pointer; + text-decoration: none; +} + +a:hover, .quasilink:hover { + color: #800004; +} + +h1 a:link, h1 a:visited, h1 a:hover { + color: black; +} + +ul { + margin: 0; + padding-left: 1.2em; +} + +a.download { + color: white; + background-color: #df0019; + width: 100%; + display: block; + text-align: center; + font-size: 1.23em; + font-weight: bold; + text-decoration: none; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; + border-radius: 6px; + padding: .5em 0; + margin-bottom: 1em; +} + +a.download:hover { + background-color: #bb0010; +} + +.rel { + margin-bottom: 0; +} + +.rel-note { + color: #777; + font-size: .9em; + margin-top: .1em; +} + +.logo-braces { + color: #df0019; + position: relative; + top: -4px; +} + +.blk { + float: left; +} + +.left { + width: 37em; + padding-right: 6.53em; + padding-bottom: 1em; +} + +.left1 { + width: 15.24em; + padding-right: 6.45em; +} + +.left2 { + width: 15.24em; +} + +.right { + width: 20.68em; +} + +.leftbig { + width: 42.44em; + padding-right: 6.53em; +} + +.rightsmall { + width: 15.24em; +} + +.clear:after { + visibility: hidden; + display: block; + font-size: 0; + content: " "; + clear: both; + height: 0; +} +.clear { display: inline-block; } +/* start commented backslash hack \*/ +* html .clear { height: 1%; } +.clear { display: block; } +/* close commented backslash hack */ diff --git a/js/codemirror/css/font.js b/js/codemirror/css/font.js new file mode 100644 index 0000000000..58b559aa62 --- /dev/null +++ b/js/codemirror/css/font.js @@ -0,0 +1,18 @@ +function waitForStyles() { + for (var i = 0; i < document.styleSheets.length; i++) + if (/googleapis/.test(document.styleSheets[i].href)) + return document.body.className += " droid"; + setTimeout(waitForStyles, 100); +} + +document.body.style.display = "none"; +setTimeout(function() { + document.body.style.display = ""; + if (/AppleWebKit/.test(navigator.userAgent) && /iP[oa]d|iPhone/.test(navigator.userAgent)) return; + var link = document.createElement("LINK"); + link.type = "text/css"; + link.rel = "stylesheet"; + link.href = "http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"; + document.documentElement.getElementsByTagName("HEAD")[0].appendChild(link); + waitForStyles(); +}, 30); diff --git a/js/codemirror/demo/activeline.html b/js/codemirror/demo/activeline.html new file mode 100644 index 0000000000..7a169663e7 --- /dev/null +++ b/js/codemirror/demo/activeline.html @@ -0,0 +1,71 @@ + + + + CodeMirror 2: Active Line Demo + + + + + + + + + +

CodeMirror 2: Active Line Demo

+ +
+ + + +

Styling the current cursor line.

+ + + diff --git a/js/codemirror/demo/complete.html b/js/codemirror/demo/complete.html new file mode 100644 index 0000000000..4dfef30b29 --- /dev/null +++ b/js/codemirror/demo/complete.html @@ -0,0 +1,79 @@ + + + + CodeMirror 2: Autocomplete Demo + + + + + + + + + +

CodeMirror 2: Autocomplete demo

+ +
+ +

Press ctrl-space to activate autocompletion. See +the code to figure out how it works.

+ + + + diff --git a/js/codemirror/demo/complete.js b/js/codemirror/demo/complete.js new file mode 100644 index 0000000000..29b7c26c7c --- /dev/null +++ b/js/codemirror/demo/complete.js @@ -0,0 +1,150 @@ +(function () { + // Minimal event-handling wrapper. + function stopEvent() { + if (this.preventDefault) {this.preventDefault(); this.stopPropagation();} + else {this.returnValue = false; this.cancelBubble = true;} + } + function addStop(event) { + if (!event.stop) event.stop = stopEvent; + return event; + } + function connect(node, type, handler) { + function wrapHandler(event) {handler(addStop(event || window.event));} + if (typeof node.addEventListener == "function") + node.addEventListener(type, wrapHandler, false); + else + node.attachEvent("on" + type, wrapHandler); + } + + function forEach(arr, f) { + for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]); + } + + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + onKeyEvent: function(i, e) { + // Hook into ctrl-space + if (e.keyCode == 32 && (e.ctrlKey || e.metaKey) && !e.altKey) { + e.stop(); + return startComplete(); + } + } + }); + + function startComplete() { + // We want a single cursor position. + if (editor.somethingSelected()) return; + // Find the token at the cursor + var cur = editor.getCursor(false), token = editor.getTokenAt(cur), tprop = token; + // If it's not a 'word-style' token, ignore the token. + if (!/^[\w$_]*$/.test(token.string)) { + token = tprop = {start: cur.ch, end: cur.ch, string: "", state: token.state, + className: token.string == "." ? "js-property" : null}; + } + // If it is a property, find out what it is a property of. + while (tprop.className == "js-property") { + tprop = editor.getTokenAt({line: cur.line, ch: tprop.start}); + if (tprop.string != ".") return; + tprop = editor.getTokenAt({line: cur.line, ch: tprop.start}); + if (!context) var context = []; + context.push(tprop); + } + var completions = getCompletions(token, context); + if (!completions.length) return; + function insert(str) { + editor.replaceRange(str, {line: cur.line, ch: token.start}, {line: cur.line, ch: token.end}); + } + // When there is only one completion, use it directly. + if (completions.length == 1) {insert(completions[0]); return true;} + + // Build the select widget + var complete = document.createElement("div"); + complete.className = "completions"; + var sel = complete.appendChild(document.createElement("select")); + sel.multiple = true; + for (var i = 0; i < completions.length; ++i) { + var opt = sel.appendChild(document.createElement("option")); + opt.appendChild(document.createTextNode(completions[i])); + } + sel.firstChild.selected = true; + sel.size = Math.min(10, completions.length); + var pos = editor.cursorCoords(); + complete.style.left = pos.x + "px"; + complete.style.top = pos.yBot + "px"; + document.body.appendChild(complete); + // Hack to hide the scrollbar. + if (completions.length <= 10) + complete.style.width = (sel.clientWidth - 1) + "px"; + + var done = false; + function close() { + if (done) return; + done = true; + complete.parentNode.removeChild(complete); + } + function pick() { + insert(sel.options[sel.selectedIndex].value); + close(); + setTimeout(function(){editor.focus();}, 50); + } + connect(sel, "blur", close); + connect(sel, "keydown", function(event) { + var code = event.keyCode; + // Enter and space + if (code == 13 || code == 32) {event.stop(); pick();} + // Escape + else if (code == 27) {event.stop(); close(); editor.focus();} + else if (code != 38 && code != 40) {close(); editor.focus(); setTimeout(startComplete, 50);} + }); + connect(sel, "dblclick", pick); + + sel.focus(); + // Opera sometimes ignores focusing a freshly created node + if (window.opera) setTimeout(function(){if (!done) sel.focus();}, 100); + return true; + } + + var stringProps = ("charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight " + + "toUpperCase toLowerCase split concat match replace search").split(" "); + var arrayProps = ("length concat join splice push pop shift unshift slice reverse sort indexOf " + + "lastIndexOf every some filter forEach map reduce reduceRight ").split(" "); + var funcProps = "prototype apply call bind".split(" "); + var keywords = ("break case catch continue debugger default delete do else false finally for function " + + "if in instanceof new null return switch throw true try typeof var void while with").split(" "); + + function getCompletions(token, context) { + var found = [], start = token.string; + function maybeAdd(str) { + if (str.indexOf(start) == 0) found.push(str); + } + function gatherCompletions(obj) { + if (typeof obj == "string") forEach(stringProps, maybeAdd); + else if (obj instanceof Array) forEach(arrayProps, maybeAdd); + else if (obj instanceof Function) forEach(funcProps, maybeAdd); + for (var name in obj) maybeAdd(name); + } + + if (context) { + // If this is a property, see if it belongs to some object we can + // find in the current environment. + var obj = context.pop(), base; + if (obj.className == "js-variable") + base = window[obj.string]; + else if (obj.className == "js-string") + base = ""; + else if (obj.className == "js-atom") + base = 1; + while (base != null && context.length) + base = base[context.pop().string]; + if (base != null) gatherCompletions(base); + } + else { + // If not, just look in the window object and any local scope + // (reading into JS mode internals to get at the local variables) + for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name); + gatherCompletions(window); + forEach(keywords, maybeAdd); + } + return found; + } +})(); diff --git a/js/codemirror/demo/marker.html b/js/codemirror/demo/marker.html new file mode 100644 index 0000000000..7b3a2ba9d4 --- /dev/null +++ b/js/codemirror/demo/marker.html @@ -0,0 +1,53 @@ + + + + CodeMirror 2: Breakpoint Demo + + + + + + + + + +

CodeMirror 2: Breakpoint demo

+ +
+ +

Click the line-number gutter to add or remove 'breakpoints'.

+ + + + + diff --git a/js/codemirror/demo/mustache.html b/js/codemirror/demo/mustache.html new file mode 100644 index 0000000000..6541f10592 --- /dev/null +++ b/js/codemirror/demo/mustache.html @@ -0,0 +1,57 @@ + + + + CodeMirror 2: Overlay Parser Demo + + + + + + + + + + +

CodeMirror 2: Overlay Parser Demo

+ +
+ + + +

Demonstration of a mode that parses HTML, highlighting + the Mustache templating + directives inside of it by using the code + in overlay.js. View + source to see the 15 lines of code needed to accomplish this.

+ + + diff --git a/js/codemirror/demo/resize.html b/js/codemirror/demo/resize.html new file mode 100644 index 0000000000..0022044d29 --- /dev/null +++ b/js/codemirror/demo/resize.html @@ -0,0 +1,38 @@ + + + + CodeMirror 2: Autoresize Demo + + + + + + + + + +

CodeMirror 2: Autoresize demo

+ +
+ +

By setting a single CSS property, CodeMirror can be made to +automatically resize to fit the content. Use max-height +to prevent it from growing past a given point (on halfway modern +browsers).

+ + + + + diff --git a/js/codemirror/demo/search.html b/js/codemirror/demo/search.html new file mode 100644 index 0000000000..5fe8c9d0b4 --- /dev/null +++ b/js/codemirror/demo/search.html @@ -0,0 +1,106 @@ + + + + CodeMirror 2: Search/Replace Demo + + + + + + + + + +

CodeMirror 2: Search/Replace Demo

+ +
+ + or + it by + + + + +

Demonstration of search/replace functionality and marking + text.

+ + + diff --git a/js/codemirror/index.html b/js/codemirror/index.html new file mode 100644 index 0000000000..c60ede49bb --- /dev/null +++ b/js/codemirror/index.html @@ -0,0 +1,224 @@ + + + + CodeMirror + + + + + + +

{ } CodeMirror

+ +
+/* In-browser code editing
+   made bearable */
+
+ +
+ +

CodeMirror is a JavaScript library that can + be used to create a relatively pleasant editor interface for + code-like content ― computer programs, HTML markup, and + similar. If a mode has been written for the language you are + editing, the code will be coloured, and the editor will optionally + help you with indentation.

+ +

This is the project page for CodeMirror 2, the currently more + actively developed, and recommended + version. CodeMirror 1 is still available + from here.

+ + + +

Getting the code

+ +

All of CodeMirror is released under a MIT-style license. To get it, you can download + the latest + release or the current development + snapshot as zip files. To create a custom minified script file, + you can use the compression API.

+ +

We use git for version control. + The main repository can be fetched in this way:

+ +
git clone http://marijnhaverbeke.nl/git/codemirror2
+ +

CodeMirror can also be found on GitHub at marijnh/CodeMirror2. + If you plan to hack on the code and contribute patches, the best way + to do it is to create a GitHub fork, and send pull requests.

+ +

Documentation

+ +

The manual is your first stop for + learning how to use this library. It starts with a quick explanation + of how to use the editor, and then describes all of the (many) + options and methods that CodeMirror exposes.

+ +

For those who want to learn more about the code, there is + an overview of the internals available. + The source code + itself is, for the most part, also well commented.

+ +

Support and bug reports

+ +

There is + a Google + group (a sort of mailing list/newsgroup thing) for discussion + and news related to CodeMirror. Reporting bugs is best done + on github. + You can also e-mail me + directly: Marijn + Haverbeke.

+ +

Supported browsers

+ +

The following browsers are able to run CodeMirror:

+ +
    +
  • Firefox 2 or higher
  • +
  • Chrome, any version
  • +
  • Safari 3 or higher
  • +
  • Internet Explorer 6 or higher
  • +
  • Opera 9 or higher (with some key-handling problems on OS X)
  • +
+ +

I am not actively testing against every new browser release, and + vendors have a habit of introducing bugs all the time, so I am + relying on the community to tell me when something breaks. + See here for information on how to contact + me.

+ +
+ +
+ + Download the latest release + +

Make a donation

+ +
    +
  • Paypal
  • +
  • Bank
  • +
+ + + +

Releases:

+ +

26-05-2011: Version 2.01:

+
    +
  • Add a Smalltalk mode.
  • +
  • Add a reStructuredText mode.
  • +
  • Add a Python mode.
  • +
  • Add a PL/SQL mode.
  • +
  • coordsChar now works
  • +
  • Fix a problem where onCursorActivity interfered with onChange.
  • +
  • Fix a number of scrolling and mouse-click-position glitches.
  • +
  • Pass information about the changed lines to onChange.
  • +
  • Support cmd-up/down on OS X.
  • +
  • Add triple-click line selection.
  • +
  • Don't handle shift when changing the selection through the API.
  • +
  • Support "nocursor" mode for readOnly option.
  • +
  • Add an onHighlightComplete option.
  • +
  • Fix the context menu for Firefox.
  • +
+ +

28-03-2011: Version 2.0:

+

CodeMirror 2 is a complete rewrite that's + faster, smaller, simpler to use, and less dependent on browser + quirks. See this + and this + for more information. + +

28-03-2011: Version 1.0:

+
    +
  • Fix error when debug history overflows.
  • +
  • Refine handling of C# verbatim strings.
  • +
  • Fix some issues with JavaScript indentation.
  • +
+ +

22-02-2011: Version 2.0 beta 2:

+

Somewhate more mature API, lots of bugs shaken out. + +

17-02-2011: Version 0.94:

+
    +
  • tabMode: "spaces" was modified slightly (now indents when something is selected).
  • +
  • Fixes a bug that would cause the selection code to break on some IE versions.
  • +
  • Disabling spell-check on WebKit browsers now works.
  • +
+ +

08-02-2011: Version 2.0 beta 1:

+

CodeMirror 2 is a complete rewrite of + CodeMirror, no longer depending on an editable frame.

+ +

19-01-2011: Version 0.93:

+
    +
  • Added a Regular Expression parser.
  • +
  • Fixes to the PHP parser.
  • +
  • Support for regular expression in search/replace.
  • +
  • Add save method to instances created with fromTextArea.
  • +
  • Add support for MS T-SQL in the SQL parser.
  • +
  • Support use of CSS classes for highlighting brackets.
  • +
  • Fix yet another hang with line-numbering in hidden editors.
  • +
+ +

Older releases...

+ +
+ +
 
+ +
+ + +
+ + + + + + diff --git a/js/codemirror/internals.html b/js/codemirror/internals.html new file mode 100644 index 0000000000..6a9dba4c95 --- /dev/null +++ b/js/codemirror/internals.html @@ -0,0 +1,382 @@ + + + + CodeMirror: Internals + + + + + + +

{ } CodeMirror

+ +
+/* (Re-) Implementing A Syntax-
+   Highlighting Editor in JavaScript */
+
+ +
+ +

+ Topic: JavaScript, code editor implementation
+ Author: Marijn Haverbeke
+ Date: March 2nd 2011 +

+ +

This is a followup to +my Brutal Odyssey to the +Dark Side of the DOM Tree story. That one describes the +mind-bending process of implementing (what would become) CodeMirror 1. +This one describes the internals of CodeMirror 2, a complete rewrite +and rethink of the old code base. I wanted to give this piece another +Hunter Thompson copycat subtitle, but somehow that would be out of +place—the process this time around was one of straightforward +engineering, requiring no serious mind-bending whatsoever.

+ +

So, what is wrong with CodeMirror 1? I'd estimate, by mailing list +activity and general search-engine presence, that it has been +integrated into about a thousand systems by now. The most prominent +one, since a few weeks, +being Google +code's project hosting. It works, and it's being used widely. + +

Still, I did not start replacing it because I was bored. CodeMirror +1 was heavily reliant on designMode +or contentEditable (depending on the browser). Neither of +these are well specified (HTML5 tries +to specify +their basics), and, more importantly, they tend to be one of the more +obscure and buggy areas of browser functionality—CodeMirror, by using +this functionality in a non-typical way, was constantly running up +against browser bugs. WebKit wouldn't show an empty line at the end of +the document, and in some releases would suddenly get unbearably slow. +Firefox would show the cursor in the wrong place. Internet Explorer +would insist on linkifying everything that looked like a URL or email +address, a behaviour that can't be turned off. Some bugs I managed to +work around (which was often a frustrating, painful process), others, +such as the Firefox cursor placement, I gave up on, and had to tell +user after user that they were known problems, but not something I +could help.

+ +

Also, there is the fact that designMode (which seemed +to be less buggy than contentEditable in Webkit and +Firefox, and was thus used by CodeMirror 1 in those browsers) requires +a frame. Frames are another tricky area. It takes some effort to +prevent getting tripped up by domain restrictions, they don't +initialize synchronously, behave strangely in response to the back +button, and, on several browsers, can't be moved around the DOM +without having them re-initialize. They did provide a very nice way to +namespace the library, though—CodeMirror 1 could freely pollute the +namespace inside the frame.

+ +

Finally, working with an editable document means working with +selection in arbitrary DOM structures. Internet Explorer (8 and +before) has an utterly different (and awkward) selection API than all +of the other browsers, and even among the different implementations of +document.selection, details about how exactly a selection +is represented vary quite a bit. Add to that the fact that Opera's +selection support tended to be very buggy until recently, and you can +imagine why CodeMirror 1 contains 700 lines of selection-handling +code.

+ +

And that brings us to the main issue with the CodeMirror 1 +code base: The proportion of browser-bug-workarounds to real +application code was getting dangerously high. By building on top of a +few dodgy features, I put the system in a vulnerable position—any +incompatibility and bugginess in these features, I had to paper over +with my own code. Not only did I have to do some serious stunt-work to +get it to work on older browsers (as detailed in the +previous story), things +also kept breaking in newly released versions, requiring me to come up +with new scary hacks in order to keep up. This was starting +to lose its appeal.

+ +

General Approach

+ +

What CodeMirror 2 does is try to sidestep most of the hairy hacks +that came up in version 1. I owe a lot to the +ACE editor for inspiration on how to +approach this.

+ +

I absolutely did not want to be completely reliant on key events to +generate my input. Every JavaScript programmer knows that key event +information is horrible and incomplete. Some people (most awesomely +Mihai Bazon with Ymacs) have been able +to build more or less functioning editors by directly reading key +events, but it takes a lot of work (the kind of never-ending, fragile +work I described earlier), and will never be able to properly support +things like multi-keystoke international character input.

+ +

So what I do is focus a hidden textarea, and let the browser +believe that the user is typing into that. What we show to the user is +a DOM structure we built to represent his document. If this is updated +quickly enough, and shows some kind of believable cursor, it feels +like a real text-input control.

+ +

Another big win is that this DOM representation does not have to +span the whole document. Some CodeMirror 1 users insisted that they +needed to put a 30 thousand line XML document into CodeMirror. Putting +all that into the DOM takes a while, especially since, for some +reason, an editable DOM tree is slower than a normal one on most +browsers. If we have full control over what we show, we must only +ensure that the visible part of the document has been added, and can +do the rest only when needed. (Fortunately, the onscroll +event works almost the same on all browsers, and lends itself well to +displaying things only as they are scrolled into view.)

+ +

Input

+ +

ACE uses its hidden textarea only as a text input shim, and does +all cursor movement and things like text deletion itself by directly +handling key events. CodeMirror's way is to let the browser do its +thing as much as possible, and not, for example, define its own set of +key bindings. One way to do this would have been to have the whole +document inside the hidden textarea, and after each key event update +the display DOM to reflect what's in that textarea.

+ +

That'd be simple, but it is not realistic. For even medium-sized +document the editor would be constantly munging huge strings, and get +terribly slow. What CodeMirror 2 does is put the current selection, +along with an extra line on the top and on the bottom, into the +textarea.

+ +

This means that the arrow keys (and their ctrl-variations), home, +end, etcetera, do not have to be handled specially. We just read the +cursor position in the textarea, and update our cursor to match it. +Also, copy and paste work pretty much for free, and people get their +native key bindings, without any special work on my part. For example, +I have emacs key bindings configured for Chrome and Firefox. There is +no way for a script to detect this.

+ +

Of course, since only a small part of the document sits in the +textarea, keys like page up and ctrl-end won't do the right thing. +CodeMirror is catching those events and handling them itself.

+ +

Selection

+ +

Getting and setting the selection range of a textarea in modern +browsers is trivial—you just use the selectionStart +and selectionEnd properties. On IE you have to do some +insane stuff with temporary ranges and compensating for the fact that +moving the selection by a 'character' will treat \r\n as a single +character, but even there it is possible to build functions that +reliably set and get the selection range.

+ +

But consider this typical case: When I'm somewhere in my document, +press shift, and press the up arrow, something gets selected. Then, if +I, still holding shift, press the up arrow again, the top of my +selection is adjusted. The selection remembers where its head +and its anchor are, and moves the head when we shift-move. +This is a generally accepted property of selections, and done right by +every editing component built in the past twenty years.

+ +

But not something that the browser selection APIs expose.

+ +

Great. So when someone creates an 'upside-down' selection, the next +time CodeMirror has to update the textarea, it'll re-create the +selection as an 'upside-up' selection, with the anchor at the top, and +the next cursor motion will behave in an unexpected way—our second +up-arrow press in the example above will not do anything, since it is +interpreted in exactly the same way as the first.

+ +

No problem. We'll just, ehm, detect that the selection is +upside-down (you can tell by the way it was created), and then, when +an upside-down selection is present, and a cursor-moving key is +pressed in combination with shift, we quickly collapse the selection +in the textarea to its start, allow the key to take effect, and then +combine its new head with its old anchor to get the real +selection.

+ +

In short, scary hacks could not be avoided entirely in CodeMirror +2.

+ +

And, the observant reader might ask, how do you even know that a +key combo is a cursor-moving combo, if you claim you support any +native key bindings? Well, we don't, but we can learn. The editor +keeps a set known cursor-movement combos (initialized to the +predictable defaults), and updates this set when it observes that +pressing a certain key had (only) the effect of moving the cursor. +This, of course, doesn't work if the first time the key is used was +for extending an inverted selection, but it works most of the +time.

+ +

Intelligent Updating

+ +

One thing that always comes up when you have a complicated internal +state that's reflected in some user-visible external representation +(in this case, the displayed code and the textarea's content) is +keeping the two in sync. The naive way is to just update the display +every time you change your state, but this is not only error prone +(you'll forget), it also easily leads to duplicate work on big, +composite operations. Then you start passing around flags indicating +whether the display should be updated in an attempt to be efficient +again and, well, at that point you might as well give up completely.

+ +

I did go down that road, but then switched to a much simpler model: +simply keep track of all the things that have been changed during an +action, and then, only at the end, use this information to update the +user-visible display.

+ +

CodeMirror uses a concept of operations, which start by +calling a specific set-up function that clears the state and end by +calling another function that reads this state and does the required +updating. Most event handlers, and all the user-visible methods that +change state are wrapped like this. There's a method +called operation that accepts a function, and returns +another function that wraps the given function as an operation.

+ +

It's trivial to extend this (as CodeMirror does) to detect nesting, +and, when an operation is started inside an operation, simply +increment the nesting count, and only do the updating when this count +reaches zero again.

+ +

If we have a set of changed ranges and know the currently shown +range, we can (with some awkward code to deal with the fact that +changes can add and remove lines, so we're dealing with a changing +coordinate system) construct a map of the ranges that were left +intact. We can then compare this map with the part of the document +that's currently visible (based on scroll offset and editor height) to +determine whether something needs to be updated.

+ +

CodeMirror uses two update algorithms—a full refresh, where it just +discards the whole part of the DOM that contains the edited text and +rebuilds it, and a patch algorithm, where it uses the information +about changed and intact ranges to update only the out-of-date parts +of the DOM. When more than 30 percent (which is the current heuristic, +might change) of the lines need to be updated, the full refresh is +chosen (since it's faster to do than painstakingly finding and +updating all the changed lines), in the other case it does the +patching (so that, if you scroll a line or select another character, +the whole screen doesn't have to be re-rendered).

+ +

All updating uses innerHTML rather than direct DOM +manipulation, since that still seems to be by far the fastest way to +build documents. There's a per-line function that combines the +highlighting, marking, and +selection info for that line into a snippet of HTML. The patch updater +uses this to reset individual lines, the refresh updater builds an +HTML chunk for the whole visible document at once, and then uses a +single innerHTML update to do the refresh.

+ +

Parsers can be Simple

+ +

When I wrote CodeMirror 1, I +thought interruptable +parsers were a hugely scary and complicated thing, and I used a +bunch of heavyweight abstractions to keep this supposed complexity +under control: parsers +were iterators +that consumed input from another iterator, and used funny +closure-resetting tricks to copy and resume themselves.

+ +

This made for a rather nice system, in that parsers formed strictly +separate modules, and could be composed in predictable ways. +Unfortunately, it was quite slow (stacking three or four iterators on +top of each other), and extremely intimidating to people not used to a +functional programming style.

+ +

With a few small changes, however, we can keep all those +advantages, but simplify the API and make the whole thing less +indirect and inefficient. CodeMirror +2's mode API uses explicit state +objects, and makes the parser/tokenizer a function that simply takes a +state and a character stream abstraction, advances the stream one +token, and returns the way the token should be styled. This state may +be copied, optionally in a mode-defined way, in order to be able to +continue a parse at a given point. Even someone who's never touched a +lambda in his life can understand this approach. Additionally, far +fewer objects are allocated in the course of parsing now.

+ +

The biggest speedup comes from the fact that the parsing no longer +has to touch the DOM though. In CodeMirror 1, on an older browser, you +could see the parser work its way through the document, +managing some twenty lines in each 50-millisecond time slice it got. It +was reading its input from the DOM, and updating the DOM as it went +along, which any experienced JavaScript programmer will immediately +spot as a recipe for slowness. In CodeMirror 2, the parser usually +finishes the whole document in a single 100-millisecond time slice—it +manages some 1500 lines during that time on Chrome. All it has to do +is munge strings, so there is no real reason for it to be slow +anymore.

+ +

What Gives?

+ +

Given all this, what can you expect from CodeMirror 2? First, the +good:

+ +
    + +
  • Small. the base library is some 32k when minified +now, 12k when gzipped. It's smaller than its own logo.
  • + +
  • Lightweight. CodeMirror 2 initializes very +quickly, and does almost no work when it is not focused. This means +you can treat it almost like a textarea, have multiple instances on a +page without trouble.
  • + +
  • Huge document support. Since highlighting is +really fast, and no DOM structure is being built for non-visible +content, you don't have to worry about locking up your browser when a +user enters a megabyte-sized document.
  • + +
  • Extended API. Some things kept coming up in the +mailing list, such as marking pieces of text or lines, which were +extremely hard to do with CodeMirror 1. The new version has proper +support for these built in.
  • + +
  • Tab support. Tabs inside editable documents were, +for some reason, a no-go. At least six different people announced they +were going to add tab support to CodeMirror 1, none survived (I mean, +none delivered a working version). CodeMirror 2 no longer removes tabs +from your document.
  • + +
  • Sane styling. iframe nodes aren't +really known for respecting document flow. Now that an editor instance +is a plain div element, it is much easier to size it to +fit the surrounding elements. You don't even have to make it scroll if +you do not want to.
  • + +
+ +

Then, the bad:

+ +
    + +
  • No line-wrapping. I'd have liked to get +line-wrapping to work, but it doesn't match the model I'm using very +well. It is important that cursor movement in the textarea matches +what you see on the screen, and it seems to be impossible to have the +lines wrapped the same in the textarea and the normal DOM.
  • + +
  • Some cursor flakiness. The textarea hack does not +really do justice to the complexity of cursor handling—a selection is +typically more than just an offset into a string. For example, if you +use the up and down arrow keys to move to a shorter line and then +back, you'll end up in your old position in most editor controls, but +CodeMirror 2 currently doesn't remember the 'real' cursor column in +this case. These can be worked around on a case-by-case basis, but +I haven't put much energy into that yet.
  • + +
+ +
+ +
 
+ + + + diff --git a/js/codemirror/lib/codemirror.css b/js/codemirror/lib/codemirror.css new file mode 100644 index 0000000000..e9db4eb49e --- /dev/null +++ b/js/codemirror/lib/codemirror.css @@ -0,0 +1,56 @@ +.CodeMirror { + overflow: auto; + height: 300px; + line-height: 1em; + font-family: monospace; +} + +.CodeMirror-gutter { + position: absolute; left: 0; top: 0; + background-color: #f7f7f7; + border-right: 1px solid #eee; + min-width: 2em; + height: 100%; +} +.CodeMirror-gutter-text { + color: #aaa; + text-align: right; + padding: .4em .2em .4em .4em; +} +.CodeMirror-lines { + padding: .4em; +} + +.CodeMirror pre { + -moz-border-radius: 0; + -webkit-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + border-width: 0; margin: 0; padding: 0; background: transparent; + font-family: inherit; +} + +.CodeMirror textarea { + font-family: monospace !important; +} + +.CodeMirror-cursor { + z-index: 10; + position: absolute; + visibility: hidden; + border-left: 1px solid black !important; +} +.CodeMirror-focused .CodeMirror-cursor { + visibility: visible; +} + +span.CodeMirror-selected { + background: #ccc !important; + color: HighlightText !important; +} +.CodeMirror-focused span.CodeMirror-selected { + background: Highlight !important; +} + +.CodeMirror-matchingbracket {color: #0f0 !important;} +.CodeMirror-nonmatchingbracket {color: #f22 !important;} diff --git a/js/codemirror/lib/codemirror.js b/js/codemirror/lib/codemirror.js new file mode 100644 index 0000000000..23fadb6c74 --- /dev/null +++ b/js/codemirror/lib/codemirror.js @@ -0,0 +1,2018 @@ +// All functions that need access to the editor's state live inside +// the CodeMirror function. Below that, at the bottom of the file, +// some utilities are defined. + +// CodeMirror is the only global var we claim +var CodeMirror = (function() { + // This is the function that produces an editor instance. It's + // closure is used to store the editor state. + function CodeMirror(place, givenOptions) { + // Determine effective options based on given values and defaults. + var options = {}, defaults = CodeMirror.defaults; + for (var opt in defaults) + if (defaults.hasOwnProperty(opt)) + options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt]; + + var targetDocument = options["document"]; + // The element in which the editor lives. Takes care of scrolling + // (if enabled). + var wrapper = targetDocument.createElement("div"); + wrapper.className = "CodeMirror"; + // Work around http://www.quirksmode.org/bugreports/archives/2006/09/Overflow_Hidden_not_hiding.html + if (window.ActiveXObject && /MSIE [1-7]\b/.test(navigator.userAgent)) + wrapper.style.position = "relative"; + // This mess creates the base DOM structure for the editor. + wrapper.innerHTML = + '
' + // Set to the height of the text, causes scrolling + '
' + + '
' + // Moved around its parent to cover visible view + '
' + + '
' + // Wraps and hides input textarea + '
' + + // Provides positioning relative to (visible) text origin + '
' + + '
 
' + // Absolutely positioned blinky cursor + '
'; // This DIV contains the actual code + if (place.appendChild) place.appendChild(wrapper); else place(wrapper); + // I've never seen more elegant code in my life. + var code = wrapper.firstChild, measure = code.firstChild, mover = measure.nextSibling, + gutter = mover.firstChild, gutterText = gutter.firstChild, + inputDiv = gutter.nextSibling, input = inputDiv.firstChild, + lineSpace = inputDiv.nextSibling.firstChild, cursor = lineSpace.firstChild, lineDiv = cursor.nextSibling; + if (options.tabindex != null) input.tabindex = options.tabindex; + if (!options.gutter && !options.lineNumbers) gutter.style.display = "none"; + + // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval. + var poll = new Delayed(), highlight = new Delayed(), blinker; + + // mode holds a mode API object. lines an array of Line objects + // (see Line constructor), work an array of lines that should be + // parsed, and history the undo history (instance of History + // constructor). + var mode, lines = [new Line("")], work, history = new History(), focused; + loadMode(); + // The selection. These are always maintained to point at valid + // positions. Inverted is used to remember that the user is + // selecting bottom-to-top. + var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false}; + // Selection-related flags. shiftSelecting obviously tracks + // whether the user is holding shift. reducedSelection is a hack + // to get around the fact that we can't create inverted + // selections. See below. + var shiftSelecting, reducedSelection, lastDoubleClick; + // Variables used by startOperation/endOperation to track what + // happened during the operation. + var updateInput, changes, textChanged, selectionChanged, leaveInputAlone; + // Current visible range (may be bigger than the view window). + var showingFrom = 0, showingTo = 0, lastHeight = 0, curKeyId = null; + // editing will hold an object describing the things we put in the + // textarea, to help figure out whether something changed. + // bracketHighlighted is used to remember that a backet has been + // marked. + var editing, bracketHighlighted; + // Tracks the maximum line length so that the horizontal scrollbar + // can be kept static when scrolling. + var maxLine = ""; + + // Initialize the content. Somewhat hacky (delayed prepareInput) + // to work around browser issues. + operation(function(){setValue(options.value || ""); updateInput = false;})(); + setTimeout(prepareInput, 20); + + // Register our event handlers. + connect(wrapper, "mousedown", operation(onMouseDown)); + // Gecko browsers fire contextmenu *after* opening the menu, at + // which point we can't mess with it anymore. Context menu is + // handled in onMouseDown for Gecko. + if (!gecko) connect(wrapper, "contextmenu", operation(onContextMenu)); + connect(code, "dblclick", operation(onDblClick)); + connect(wrapper, "scroll", function() {updateDisplay([]); if (options.onScroll) options.onScroll(instance);}); + connect(window, "resize", function() {updateDisplay(true);}); + connect(input, "keyup", operation(onKeyUp)); + connect(input, "keydown", operation(onKeyDown)); + connect(input, "keypress", operation(onKeyPress)); + connect(input, "focus", onFocus); + connect(input, "blur", onBlur); + + connect(wrapper, "dragenter", function(e){e.stop();}); + connect(wrapper, "dragover", function(e){e.stop();}); + connect(wrapper, "drop", operation(onDrop)); + connect(wrapper, "paste", function(){focusInput(); fastPoll();}); + connect(input, "paste", function(){fastPoll();}); + connect(input, "cut", function(){fastPoll();}); + + if (targetDocument.activeElement == input) onFocus(); + else onBlur(); + + function isLine(l) {return l >= 0 && l < lines.length;} + // The instance object that we'll return. Mostly calls out to + // local functions in the CodeMirror function. Some do some extra + // range checking and/or clipping. operation is used to wrap the + // call so that changes it makes are tracked, and the display is + // updated afterwards. + var instance = { + getValue: getValue, + setValue: operation(setValue), + getSelection: getSelection, + replaceSelection: operation(replaceSelection), + focus: function(){focusInput(); onFocus(); fastPoll();}, + setOption: function(option, value) { + options[option] = value; + if (option == "lineNumbers" || option == "gutter") gutterChanged(); + else if (option == "mode" || option == "indentUnit") loadMode(); + else if (option == "readOnly" && value == "nocursor") input.blur(); + }, + getOption: function(option) {return options[option];}, + undo: operation(undo), + redo: operation(redo), + indentLine: operation(function(n) {if (isLine(n)) indentLine(n, "smart");}), + historySize: function() {return {undo: history.done.length, redo: history.undone.length};}, + matchBrackets: operation(function(){matchBrackets(true);}), + getTokenAt: function(pos) { + pos = clipPos(pos); + return lines[pos.line].getTokenAt(mode, getStateBefore(pos.line), pos.ch); + }, + cursorCoords: function(start){ + if (start == null) start = sel.inverted; + return pageCoords(start ? sel.from : sel.to); + }, + charCoords: function(pos){return pageCoords(clipPos(pos));}, + coordsChar: function(coords) { + var off = eltOffset(lineSpace); + var line = clipLine(Math.min(lines.length - 1, showingFrom + Math.floor((coords.y - off.top) / lineHeight()))); + return clipPos({line: line, ch: charFromX(clipLine(line), coords.x - off.left)}); + }, + getSearchCursor: function(query, pos, caseFold) {return new SearchCursor(query, pos, caseFold);}, + markText: operation(function(a, b, c){return operation(markText(a, b, c));}), + setMarker: addGutterMarker, + clearMarker: removeGutterMarker, + setLineClass: operation(setLineClass), + lineInfo: lineInfo, + addWidget: function(pos, node, scroll) { + var pos = localCoords(clipPos(pos), true); + node.style.top = (showingFrom * lineHeight() + pos.yBot + paddingTop()) + "px"; + node.style.left = (pos.x + paddingLeft()) + "px"; + code.appendChild(node); + if (scroll) + scrollIntoView(pos.x, pos.yBot, pos.x + node.offsetWidth, pos.yBot + node.offsetHeight); + }, + + lineCount: function() {return lines.length;}, + getCursor: function(start) { + if (start == null) start = sel.inverted; + return copyPos(start ? sel.from : sel.to); + }, + somethingSelected: function() {return !posEq(sel.from, sel.to);}, + setCursor: operation(function(line, ch) { + if (ch == null && typeof line.line == "number") setCursor(line.line, line.ch); + else setCursor(line, ch); + }), + setSelection: operation(function(from, to) {setSelection(clipPos(from), clipPos(to || from));}), + getLine: function(line) {if (isLine(line)) return lines[line].text;}, + setLine: operation(function(line, text) { + if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: lines[line].text.length}); + }), + removeLine: operation(function(line) { + if (isLine(line)) replaceRange("", {line: line, ch: 0}, clipPos({line: line+1, ch: 0})); + }), + replaceRange: operation(replaceRange), + getRange: function(from, to) {return getRange(clipPos(from), clipPos(to));}, + + operation: function(f){return operation(f)();}, + refresh: function(){updateDisplay(true);}, + getInputField: function(){return input;}, + getWrapperElement: function(){return wrapper;} + }; + + function setValue(code) { + history = null; + var top = {line: 0, ch: 0}; + updateLines(top, {line: lines.length - 1, ch: lines[lines.length-1].text.length}, + splitLines(code), top, top); + history = new History(); + } + function getValue(code) { + var text = []; + for (var i = 0, l = lines.length; i < l; ++i) + text.push(lines[i].text); + return text.join("\n"); + } + + function onMouseDown(e) { + var ld = lastDoubleClick; lastDoubleClick = null; + // First, see if this is a click in the gutter + for (var n = e.target(); n != wrapper; n = n.parentNode) + if (n.parentNode == gutterText) { + if (options.onGutterClick) + options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom); + return e.stop(); + } + + if (gecko && e.button() == 3) onContextMenu(e); + if (e.button() != 1) return; + // For button 1, if it was clicked inside the editor + // (posFromMouse returning non-null), we have to adjust the + // selection. + var start = posFromMouse(e), last = start, going; + if (!start) {if (e.target() == wrapper) e.stop(); return;} + + if (!focused) onFocus(); + e.stop(); + if (ld && +new Date - ld < 400) return selectLine(start.line); + + setCursor(start.line, start.ch, true); + // And then we have to see if it's a drag event, in which case + // the dragged-over text must be selected. + function end() { + focusInput(); + updateInput = true; + move(); up(); + } + function extend(e) { + var cur = posFromMouse(e, true); + if (cur && !posEq(cur, last)) { + if (!focused) onFocus(); + last = cur; + setSelectionUser(start, cur); + updateInput = false; + var visible = visibleLines(); + if (cur.line >= visible.to || cur.line < visible.from) + going = setTimeout(operation(function(){extend(e);}), 150); + } + } + + var move = connect(targetDocument, "mousemove", operation(function(e) { + clearTimeout(going); + e.stop(); + extend(e); + }), true); + var up = connect(targetDocument, "mouseup", operation(function(e) { + clearTimeout(going); + var cur = posFromMouse(e); + if (cur) setSelectionUser(start, cur); + e.stop(); + end(); + }), true); + } + function onDblClick(e) { + var pos = posFromMouse(e); + if (!pos) return; + selectWordAt(pos); + e.stop(); + lastDoubleClick = +new Date; + } + function onDrop(e) { + var pos = posFromMouse(e, true), files = e.e.dataTransfer.files; + if (!pos || options.readOnly) return; + if (files && files.length && window.FileReader && window.File) { + var n = files.length, text = Array(n), read = 0; + for (var i = 0; i < n; ++i) loadFile(files[i], i); + function loadFile(file, i) { + var reader = new FileReader; + reader.onload = function() { + text[i] = reader.result; + if (++read == n) replaceRange(text.join(""), clipPos(pos), clipPos(pos)); + }; + reader.readAsText(file); + } + } + else { + try { + var text = e.e.dataTransfer.getData("Text"); + if (text) replaceRange(text, pos, pos); + } + catch(e){} + } + } + function onKeyDown(e) { + if (!focused) onFocus(); + + var code = e.e.keyCode; + // Tries to detect ctrl on non-mac, cmd on mac. + var mod = (mac ? e.e.metaKey : e.e.ctrlKey) && !e.e.altKey, anyMod = e.e.ctrlKey || e.e.altKey || e.e.metaKey; + if (code == 16 || e.e.shiftKey) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from); + else shiftSelecting = null; + // First give onKeyEvent option a chance to handle this. + if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e.e))) return; + + if (code == 33 || code == 34) {scrollPage(code == 34); return e.stop();} // page up/down + if (mod && ((code == 36 || code == 35) || // ctrl-home/end + mac && (code == 38 || code == 40))) { // cmd-up/down + scrollEnd(code == 36 || code == 38); return e.stop(); + } + if (mod && code == 65) {selectAll(); return e.stop();} // ctrl-a + if (!options.readOnly) { + if (!anyMod && code == 13) {return;} // enter + if (!anyMod && code == 9 && handleTab(e.e.shiftKey)) return e.stop(); // tab + if (mod && code == 90) {undo(); return e.stop();} // ctrl-z + if (mod && ((e.e.shiftKey && code == 90) || code == 89)) {redo(); return e.stop();} // ctrl-shift-z, ctrl-y + } + + // Key id to use in the movementKeys map. We also pass it to + // fastPoll in order to 'self learn'. We need this because + // reducedSelection, the hack where we collapse the selection to + // its start when it is inverted and a movement key is pressed + // (and later restore it again), shouldn't be used for + // non-movement keys. + curKeyId = (mod ? "c" : "") + code; + if (sel.inverted && movementKeys.hasOwnProperty(curKeyId)) { + var range = selRange(input); + if (range) { + reducedSelection = {anchor: range.start}; + setSelRange(input, range.start, range.start); + } + } + fastPoll(curKeyId); + } + function onKeyUp(e) { + if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e.e))) return; + if (reducedSelection) { + reducedSelection = null; + updateInput = true; + } + if (e.e.keyCode == 16) shiftSelecting = null; + } + function onKeyPress(e) { + if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e.e))) return; + if (options.electricChars && mode.electricChars) { + var ch = String.fromCharCode(e.e.charCode == null ? e.e.keyCode : e.e.charCode); + if (mode.electricChars.indexOf(ch) > -1) + setTimeout(operation(function() {indentLine(sel.to.line, "smart");}), 50); + } + var code = e.e.keyCode; + // Re-stop tab and enter. Necessary on some browsers. + if (code == 13) {if (!options.readOnly) handleEnter(); e.stop();} + else if (!e.e.ctrlKey && !e.e.altKey && !e.e.metaKey && code == 9 && options.tabMode != "default") e.stop(); + else fastPoll(curKeyId); + } + + function onFocus() { + if (options.readOnly == "nocursor") return; + if (!focused && options.onFocus) options.onFocus(instance); + focused = true; + slowPoll(); + if (wrapper.className.search(/\bCodeMirror-focused\b/) == -1) + wrapper.className += " CodeMirror-focused"; + restartBlink(); + } + function onBlur() { + if (focused && options.onBlur) options.onBlur(instance); + clearInterval(blinker); + shiftSelecting = null; + focused = false; + wrapper.className = wrapper.className.replace(" CodeMirror-focused", ""); + } + + // Replace the range from from to to by the strings in newText. + // Afterwards, set the selection to selFrom, selTo. + function updateLines(from, to, newText, selFrom, selTo) { + if (history) { + var old = []; + for (var i = from.line, e = to.line + 1; i < e; ++i) old.push(lines[i].text); + history.addChange(from.line, newText.length, old); + while (history.done.length > options.undoDepth) history.done.shift(); + } + updateLinesNoUndo(from, to, newText, selFrom, selTo); + } + function unredoHelper(from, to) { + var change = from.pop(); + if (change) { + var replaced = [], end = change.start + change.added; + for (var i = change.start; i < end; ++i) replaced.push(lines[i].text); + to.push({start: change.start, added: change.old.length, old: replaced}); + var pos = clipPos({line: change.start + change.old.length - 1, + ch: editEnd(replaced[replaced.length-1], change.old[change.old.length-1])}); + updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: lines[end-1].text.length}, change.old, pos, pos); + } + } + function undo() {unredoHelper(history.done, history.undone);} + function redo() {unredoHelper(history.undone, history.done);} + + function updateLinesNoUndo(from, to, newText, selFrom, selTo) { + var recomputeMaxLength = false, maxLineLength = maxLine.length; + for (var i = from.line; i < to.line; ++i) { + if (lines[i].text.length == maxLineLength) {recomputeMaxLength = true; break;} + } + + var nlines = to.line - from.line, firstLine = lines[from.line], lastLine = lines[to.line]; + // First adjust the line structure, taking some care to leave highlighting intact. + if (firstLine == lastLine) { + if (newText.length == 1) + firstLine.replace(from.ch, to.ch, newText[0]); + else { + lastLine = firstLine.split(to.ch, newText[newText.length-1]); + var spliceargs = [from.line + 1, nlines]; + firstLine.replace(from.ch, firstLine.text.length, newText[0]); + for (var i = 1, e = newText.length - 1; i < e; ++i) spliceargs.push(new Line(newText[i])); + spliceargs.push(lastLine); + lines.splice.apply(lines, spliceargs); + } + } + else if (newText.length == 1) { + firstLine.replace(from.ch, firstLine.text.length, newText[0] + lastLine.text.slice(to.ch)); + lines.splice(from.line + 1, nlines); + } + else { + var spliceargs = [from.line + 1, nlines - 1]; + firstLine.replace(from.ch, firstLine.text.length, newText[0]); + lastLine.replace(0, to.ch, newText[newText.length-1]); + for (var i = 1, e = newText.length - 1; i < e; ++i) spliceargs.push(new Line(newText[i])); + lines.splice.apply(lines, spliceargs); + } + + + for (var i = from.line, e = i + newText.length; i < e; ++i) { + var l = lines[i].text; + if (l.length > maxLineLength) { + maxLine = l; maxLineLength = l.length; + recomputeMaxLength = false; + } + } + if (recomputeMaxLength) { + maxLineLength = 0; + for (var i = 0, e = lines.length; i < e; ++i) { + var l = lines[i].text; + if (l.length > maxLineLength) { + maxLineLength = l.length; maxLine = l; + } + } + } + + // Add these lines to the work array, so that they will be + // highlighted. Adjust work lines if lines were added/removed. + var newWork = [], lendiff = newText.length - nlines - 1; + for (var i = 0, l = work.length; i < l; ++i) { + var task = work[i]; + if (task < from.line) newWork.push(task); + else if (task > to.line) newWork.push(task + lendiff); + } + if (newText.length) newWork.push(from.line); + work = newWork; + startWorker(100); + // Remember that these lines changed, for updating the display + changes.push({from: from.line, to: to.line + 1, diff: lendiff}); + textChanged = {from: from, to: to, text: newText}; + + // Update the selection + function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;} + setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line)); + + // Make sure the scroll-size div has the correct height. + code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + "px"; + } + + function replaceRange(code, from, to) { + from = clipPos(from); + if (!to) to = from; else to = clipPos(to); + code = splitLines(code); + function adjustPos(pos) { + if (posLess(pos, from)) return pos; + if (!posLess(to, pos)) return end; + var line = pos.line + code.length - (to.line - from.line) - 1; + var ch = pos.ch; + if (pos.line == to.line) + ch += code[code.length-1].length - (to.ch - (to.line == from.line ? from.ch : 0)); + return {line: line, ch: ch}; + } + var end; + replaceRange1(code, from, to, function(end1) { + end = end1; + return {from: adjustPos(sel.from), to: adjustPos(sel.to)}; + }); + return end; + } + function replaceSelection(code, collapse) { + replaceRange1(splitLines(code), sel.from, sel.to, function(end) { + if (collapse == "end") return {from: end, to: end}; + else if (collapse == "start") return {from: sel.from, to: sel.from}; + else return {from: sel.from, to: end}; + }); + } + function replaceRange1(code, from, to, computeSel) { + var endch = code.length == 1 ? code[0].length + from.ch : code[code.length-1].length; + var newSel = computeSel({line: from.line + code.length - 1, ch: endch}); + updateLines(from, to, code, newSel.from, newSel.to); + } + + function getRange(from, to) { + var l1 = from.line, l2 = to.line; + if (l1 == l2) return lines[l1].text.slice(from.ch, to.ch); + var code = [lines[l1].text.slice(from.ch)]; + for (var i = l1 + 1; i < l2; ++i) code.push(lines[i].text); + code.push(lines[l2].text.slice(0, to.ch)); + return code.join("\n"); + } + function getSelection() { + return getRange(sel.from, sel.to); + } + + var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll + function slowPoll() { + if (pollingFast) return; + poll.set(2000, function() { + startOperation(); + readInput(); + if (focused) slowPoll(); + endOperation(); + }); + } + function fastPoll(keyId) { + var missed = false; + pollingFast = true; + function p() { + startOperation(); + var changed = readInput(); + if (changed == "moved" && keyId) movementKeys[keyId] = true; + if (!changed && !missed) {missed = true; poll.set(80, p);} + else {pollingFast = false; slowPoll();} + endOperation(); + } + poll.set(20, p); + } + + // Inspects the textarea, compares its state (content, selection) + // to the data in the editing variable, and updates the editor + // content or cursor if something changed. + function readInput() { + if (leaveInputAlone) return; + var changed = false, text = input.value, sr = selRange(input); + if (!sr) return false; + var changed = editing.text != text, rs = reducedSelection; + var moved = changed || sr.start != editing.start || sr.end != (rs ? editing.start : editing.end); + if (!moved && !rs) return false; + if (changed) { + shiftSelecting = reducedSelection = null; + if (options.readOnly) {updateInput = true; return "changed";} + } + + // Compute selection start and end based on start/end offsets in textarea + function computeOffset(n, startLine) { + var pos = 0; + for (;;) { + var found = text.indexOf("\n", pos); + if (found == -1 || (text.charAt(found-1) == "\r" ? found - 1 : found) >= n) + return {line: startLine, ch: n - pos}; + ++startLine; + pos = found + 1; + } + } + var from = computeOffset(sr.start, editing.from), + to = computeOffset(sr.end, editing.from); + // Here we have to take the reducedSelection hack into account, + // so that you can, for example, press shift-up at the start of + // your selection and have the right thing happen. + if (rs) { + from = sr.start == rs.anchor ? to : from; + to = shiftSelecting ? sel.to : sr.start == rs.anchor ? from : to; + if (!posLess(from, to)) { + reducedSelection = null; + sel.inverted = false; + var tmp = from; from = to; to = tmp; + } + } + + // In some cases (cursor on same line as before), we don't have + // to update the textarea content at all. + if (from.line == to.line && from.line == sel.from.line && from.line == sel.to.line && !shiftSelecting) + updateInput = false; + + // Magic mess to extract precise edited range from the changed + // string. + if (changed) { + var start = 0, end = text.length, len = Math.min(end, editing.text.length); + var c, line = editing.from, nl = -1; + while (start < len && (c = text.charAt(start)) == editing.text.charAt(start)) { + ++start; + if (c == "\n") {line++; nl = start;} + } + var ch = nl > -1 ? start - nl : start, endline = editing.to - 1, edend = editing.text.length; + for (;;) { + c = editing.text.charAt(edend); + if (c == "\n") endline--; + if (text.charAt(end) != c) {++end; ++edend; break;} + if (edend <= start || end <= start) break; + --end; --edend; + } + var nl = editing.text.lastIndexOf("\n", edend - 1), endch = nl == -1 ? edend : edend - nl - 1; + updateLines({line: line, ch: ch}, {line: endline, ch: endch}, splitLines(text.slice(start, end)), from, to); + if (line != endline || from.line != line) updateInput = true; + } + else setSelection(from, to); + + editing.text = text; editing.start = sr.start; editing.end = sr.end; + return changed ? "changed" : moved ? "moved" : false; + } + + // Set the textarea content and selection range to match the + // editor state. + function prepareInput() { + var text = []; + var from = Math.max(0, sel.from.line - 1), to = Math.min(lines.length, sel.to.line + 2); + for (var i = from; i < to; ++i) text.push(lines[i].text); + text = input.value = text.join(lineSep); + var startch = sel.from.ch, endch = sel.to.ch; + for (var i = from; i < sel.from.line; ++i) + startch += lineSep.length + lines[i].text.length; + for (var i = from; i < sel.to.line; ++i) + endch += lineSep.length + lines[i].text.length; + editing = {text: text, from: from, to: to, start: startch, end: endch}; + setSelRange(input, startch, reducedSelection ? startch : endch); + } + function focusInput() { + if (options.readOnly != "nocursor") input.focus(); + } + + function scrollCursorIntoView() { + var cursor = localCoords(sel.inverted ? sel.from : sel.to); + return scrollIntoView(cursor.x, cursor.y, cursor.x, cursor.yBot); + } + function scrollIntoView(x1, y1, x2, y2) { + var pl = paddingLeft(), pt = paddingTop(), lh = lineHeight(); + y1 += pt; y2 += pt; x1 += pl; x2 += pl; + var screen = wrapper.clientHeight, screentop = wrapper.scrollTop, scrolled = false, result = true; + if (y1 < screentop) {wrapper.scrollTop = Math.max(0, y1 - 2*lh); scrolled = true;} + else if (y2 > screentop + screen) {wrapper.scrollTop = y2 + lh - screen; scrolled = true;} + + var screenw = wrapper.clientWidth, screenleft = wrapper.scrollLeft; + if (x1 < screenleft) {wrapper.scrollLeft = Math.max(0, x1 - 10); scrolled = true;} + else if (x2 > screenw + screenleft) { + wrapper.scrollLeft = x2 + 10 - screenw; + scrolled = true; + if (x2 > code.clientWidth) result = false; + } + if (scrolled && options.onScroll) options.onScroll(instance); + return result; + } + + function visibleLines() { + var lh = lineHeight(), top = wrapper.scrollTop - paddingTop(); + return {from: Math.min(lines.length, Math.max(0, Math.floor(top / lh))), + to: Math.min(lines.length, Math.ceil((top + wrapper.clientHeight) / lh))}; + } + // Uses a set of changes plus the current scroll position to + // determine which DOM updates have to be made, and makes the + // updates. + function updateDisplay(changes) { + if (!wrapper.clientWidth) { + showingFrom = showingTo = 0; + return; + } + // First create a range of theoretically intact lines, and punch + // holes in that using the change info. + var intact = changes === true ? [] : [{from: showingFrom, to: showingTo, domStart: 0}]; + for (var i = 0, l = changes.length || 0; i < l; ++i) { + var change = changes[i], intact2 = [], diff = change.diff || 0; + for (var j = 0, l2 = intact.length; j < l2; ++j) { + var range = intact[j]; + if (change.to <= range.from) + intact2.push({from: range.from + diff, to: range.to + diff, domStart: range.domStart}); + else if (range.to <= change.from) + intact2.push(range); + else { + if (change.from > range.from) + intact2.push({from: range.from, to: change.from, domStart: range.domStart}) + if (change.to < range.to) + intact2.push({from: change.to + diff, to: range.to + diff, + domStart: range.domStart + (change.to - range.from)}); + } + } + intact = intact2; + } + + // Then, determine which lines we'd want to see, and which + // updates have to be made to get there. + var visible = visibleLines(); + var from = Math.min(showingFrom, Math.max(visible.from - 3, 0)), + to = Math.min(lines.length, Math.max(showingTo, visible.to + 3)), + updates = [], domPos = 0, domEnd = showingTo - showingFrom, pos = from, changedLines = 0; + + for (var i = 0, l = intact.length; i < l; ++i) { + var range = intact[i]; + if (range.to <= from) continue; + if (range.from >= to) break; + if (range.domStart > domPos || range.from > pos) { + updates.push({from: pos, to: range.from, domSize: range.domStart - domPos, domStart: domPos}); + changedLines += range.from - pos; + } + pos = range.to; + domPos = range.domStart + (range.to - range.from); + } + if (domPos != domEnd || pos != to) { + changedLines += Math.abs(to - pos); + updates.push({from: pos, to: to, domSize: domEnd - domPos, domStart: domPos}); + } + + if (!updates.length) return; + lineDiv.style.display = "none"; + // If more than 30% of the screen needs update, just do a full + // redraw (which is quicker than patching) + if (changedLines > (visible.to - visible.from) * .3) + refreshDisplay(from = Math.max(visible.from - 10, 0), to = Math.min(visible.to + 7, lines.length)); + // Otherwise, only update the stuff that needs updating. + else + patchDisplay(updates); + lineDiv.style.display = ""; + + // Position the mover div to align with the lines it's supposed + // to be showing (which will cover the visible display) + var different = from != showingFrom || to != showingTo || lastHeight != wrapper.clientHeight; + showingFrom = from; showingTo = to; + mover.style.top = (from * lineHeight()) + "px"; + if (different) { + lastHeight = wrapper.clientHeight; + code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + "px"; + updateGutter(); + } + + var textWidth = stringWidth(maxLine); + lineSpace.style.width = textWidth > wrapper.clientWidth ? textWidth + "px" : ""; + + // Since this is all rather error prone, it is honoured with the + // only assertion in the whole file. + if (lineDiv.childNodes.length != showingTo - showingFrom) + throw new Error("BAD PATCH! " + JSON.stringify(updates) + " size=" + (showingTo - showingFrom) + + " nodes=" + lineDiv.childNodes.length); + updateCursor(); + } + + function refreshDisplay(from, to) { + var html = [], start = {line: from, ch: 0}, inSel = posLess(sel.from, start) && !posLess(sel.to, start); + for (var i = from; i < to; ++i) { + var ch1 = null, ch2 = null; + if (inSel) { + ch1 = 0; + if (sel.to.line == i) {inSel = false; ch2 = sel.to.ch;} + } + else if (sel.from.line == i) { + if (sel.to.line == i) {ch1 = sel.from.ch; ch2 = sel.to.ch;} + else {inSel = true; ch1 = sel.from.ch;} + } + html.push(lines[i].getHTML(ch1, ch2, true)); + } + lineDiv.innerHTML = html.join(""); + } + function patchDisplay(updates) { + // Slightly different algorithm for IE (badInnerHTML), since + // there .innerHTML on PRE nodes is dumb, and discards + // whitespace. + var sfrom = sel.from.line, sto = sel.to.line, off = 0, + scratch = badInnerHTML && targetDocument.createElement("div"); + for (var i = 0, e = updates.length; i < e; ++i) { + var rec = updates[i]; + var extra = (rec.to - rec.from) - rec.domSize; + var nodeAfter = lineDiv.childNodes[rec.domStart + rec.domSize + off] || null; + if (badInnerHTML) + for (var j = Math.max(-extra, rec.domSize); j > 0; --j) + lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild); + else if (extra) { + for (var j = Math.max(0, extra); j > 0; --j) + lineDiv.insertBefore(targetDocument.createElement("pre"), nodeAfter); + for (var j = Math.max(0, -extra); j > 0; --j) + lineDiv.removeChild(nodeAfter ? nodeAfter.previousSibling : lineDiv.lastChild); + } + var node = lineDiv.childNodes[rec.domStart + off], inSel = sfrom < rec.from && sto >= rec.from; + for (var j = rec.from; j < rec.to; ++j) { + var ch1 = null, ch2 = null; + if (inSel) { + ch1 = 0; + if (sto == j) {inSel = false; ch2 = sel.to.ch;} + } + else if (sfrom == j) { + if (sto == j) {ch1 = sel.from.ch; ch2 = sel.to.ch;} + else {inSel = true; ch1 = sel.from.ch;} + } + if (badInnerHTML) { + scratch.innerHTML = lines[j].getHTML(ch1, ch2, true); + lineDiv.insertBefore(scratch.firstChild, nodeAfter); + } + else { + node.innerHTML = lines[j].getHTML(ch1, ch2, false); + node.className = lines[j].className || ""; + node = node.nextSibling; + } + } + off += extra; + } + } + + function updateGutter() { + if (!options.gutter && !options.lineNumbers) return; + var hText = mover.offsetHeight, hEditor = wrapper.clientHeight; + gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + "px"; + var html = []; + for (var i = showingFrom; i < showingTo; ++i) { + var marker = lines[i].gutterMarker; + var text = options.lineNumbers ? i + options.firstLineNumber : null; + if (marker && marker.text) + text = marker.text.replace("%N%", text != null ? text : ""); + else if (text == null) + text = "\u00a0"; + html.push((marker && marker.style ? '
' : "
"), text, "
"); + } + gutter.style.display = "none"; + gutterText.innerHTML = html.join(""); + var minwidth = String(lines.length).length, firstNode = gutterText.firstChild, val = eltText(firstNode), pad = ""; + while (val.length + pad.length < minwidth) pad += "\u00a0"; + if (pad) firstNode.insertBefore(targetDocument.createTextNode(pad), firstNode.firstChild); + gutter.style.display = ""; + lineSpace.style.marginLeft = gutter.offsetWidth + "px"; + } + function updateCursor() { + var head = sel.inverted ? sel.from : sel.to; + var x = charX(head.line, head.ch) + "px", y = (head.line - showingFrom) * lineHeight() + "px"; + inputDiv.style.top = y; + if (posEq(sel.from, sel.to)) { + cursor.style.top = y; cursor.style.left = x; + cursor.style.display = ""; + } + else cursor.style.display = "none"; + } + + function setSelectionUser(from, to) { + var sh = shiftSelecting && clipPos(shiftSelecting); + if (sh) { + if (posLess(sh, from)) from = sh; + else if (posLess(to, sh)) to = sh; + } + setSelection(from, to); + } + // Update the selection. Last two args are only used by + // updateLines, since they have to be expressed in the line + // numbers before the update. + function setSelection(from, to, oldFrom, oldTo) { + if (posEq(sel.from, from) && posEq(sel.to, to)) return; + if (posLess(to, from)) {var tmp = to; to = from; from = tmp;} + + var startEq = posEq(sel.to, to), endEq = posEq(sel.from, from); + if (posEq(from, to)) sel.inverted = false; + else if (startEq && !endEq) sel.inverted = true; + else if (endEq && !startEq) sel.inverted = false; + + // Some ugly logic used to only mark the lines that actually did + // see a change in selection as changed, rather than the whole + // selected range. + if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;} + if (posEq(from, to)) { + if (!posEq(sel.from, sel.to)) + changes.push({from: oldFrom, to: oldTo + 1}); + } + else if (posEq(sel.from, sel.to)) { + changes.push({from: from.line, to: to.line + 1}); + } + else { + if (!posEq(from, sel.from)) { + if (from.line < oldFrom) + changes.push({from: from.line, to: Math.min(to.line, oldFrom) + 1}); + else + changes.push({from: oldFrom, to: Math.min(oldTo, from.line) + 1}); + } + if (!posEq(to, sel.to)) { + if (to.line < oldTo) + changes.push({from: Math.max(oldFrom, from.line), to: oldTo + 1}); + else + changes.push({from: Math.max(from.line, oldTo), to: to.line + 1}); + } + } + sel.from = from; sel.to = to; + selectionChanged = true; + } + function setCursor(line, ch, user) { + var pos = clipPos({line: line, ch: ch || 0}); + (user ? setSelectionUser : setSelection)(pos, pos); + } + + function clipLine(n) {return Math.max(0, Math.min(n, lines.length-1));} + function clipPos(pos) { + if (pos.line < 0) return {line: 0, ch: 0}; + if (pos.line >= lines.length) return {line: lines.length-1, ch: lines[lines.length-1].text.length}; + var ch = pos.ch, linelen = lines[pos.line].text.length; + if (ch == null || ch > linelen) return {line: pos.line, ch: linelen}; + else if (ch < 0) return {line: pos.line, ch: 0}; + else return pos; + } + + function scrollPage(down) { + var linesPerPage = Math.floor(wrapper.clientHeight / lineHeight()), head = sel.inverted ? sel.from : sel.to; + setCursor(head.line + (Math.max(linesPerPage - 1, 1) * (down ? 1 : -1)), head.ch, true); + } + function scrollEnd(top) { + setCursor(top ? 0 : lines.length - 1, true); + } + function selectAll() { + var endLine = lines.length - 1; + setSelection({line: 0, ch: 0}, {line: endLine, ch: lines[endLine].text.length}); + } + function selectWordAt(pos) { + var line = lines[pos.line].text; + var start = pos.ch, end = pos.ch; + while (start > 0 && /\w/.test(line.charAt(start - 1))) --start; + while (end < line.length && /\w/.test(line.charAt(end))) ++end; + setSelectionUser({line: pos.line, ch: start}, {line: pos.line, ch: end}); + } + function selectLine(line) { + setSelectionUser({line: line, ch: 0}, {line: line, ch: lines[line].text.length}); + } + function handleEnter() { + replaceSelection("\n", "end"); + if (options.enterMode != "flat") + indentLine(sel.from.line, options.enterMode == "keep" ? "prev" : "smart"); + } + function handleTab(shift) { + shiftSelecting = null; + switch (options.tabMode) { + case "default": + return false; + case "indent": + for (var i = sel.from.line, e = sel.to.line; i <= e; ++i) indentLine(i, "smart"); + break; + case "classic": + if (posEq(sel.from, sel.to)) { + if (shift) indentLine(sel.from.line, "smart"); + else replaceSelection("\t", "end"); + break; + } + case "shift": + for (var i = sel.from.line, e = sel.to.line; i <= e; ++i) indentLine(i, shift ? "subtract" : "add"); + break; + } + return true; + } + + function indentLine(n, how) { + if (how == "smart") { + if (!mode.indent) how = "prev"; + else var state = getStateBefore(n); + } + + var line = lines[n], curSpace = line.indentation(), curSpaceString = line.text.match(/^\s*/)[0], indentation; + if (how == "prev") { + if (n) indentation = lines[n-1].indentation(); + else indentation = 0; + } + else if (how == "smart") indentation = mode.indent(state, line.text.slice(curSpaceString.length)); + else if (how == "add") indentation = curSpace + options.indentUnit; + else if (how == "subtract") indentation = curSpace - options.indentUnit; + indentation = Math.max(0, indentation); + var diff = indentation - curSpace; + + if (!diff) { + if (sel.from.line != n && sel.to.line != n) return; + var indentString = curSpaceString; + } + else { + var indentString = "", pos = 0; + if (options.indentWithTabs) + for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += "\t";} + while (pos < indentation) {++pos; indentString += " ";} + } + + replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length}); + } + + function loadMode() { + mode = CodeMirror.getMode(options, options.mode); + for (var i = 0, l = lines.length; i < l; ++i) + lines[i].stateAfter = null; + work = [0]; + startWorker(); + } + function gutterChanged() { + var visible = options.gutter || options.lineNumbers; + gutter.style.display = visible ? "" : "none"; + if (visible) updateGutter(); + else lineDiv.parentNode.style.marginLeft = 0; + } + + function markText(from, to, className) { + from = clipPos(from); to = clipPos(to); + var accum = []; + function add(line, from, to, className) { + var line = lines[line], mark = line.addMark(from, to, className); + mark.line = line; + accum.push(mark); + } + if (from.line == to.line) add(from.line, from.ch, to.ch, className); + else { + add(from.line, from.ch, null, className); + for (var i = from.line + 1, e = to.line; i < e; ++i) + add(i, 0, null, className); + add(to.line, 0, to.ch, className); + } + changes.push({from: from.line, to: to.line + 1}); + return function() { + var start, end; + for (var i = 0; i < accum.length; ++i) { + var mark = accum[i], found = indexOf(lines, mark.line); + mark.line.removeMark(mark); + if (found > -1) { + if (start == null) start = found; + end = found; + } + } + if (start != null) changes.push({from: start, to: end + 1}); + }; + } + + function addGutterMarker(line, text, className) { + if (typeof line == "number") line = lines[clipLine(line)]; + line.gutterMarker = {text: text, style: className}; + updateGutter(); + return line; + } + function removeGutterMarker(line) { + if (typeof line == "number") line = lines[clipLine(line)]; + line.gutterMarker = null; + updateGutter(); + } + function setLineClass(line, className) { + if (typeof line == "number") { + var no = line; + line = lines[clipLine(line)]; + } + else { + var no = indexOf(lines, line); + if (no == -1) return null; + } + if (line.className != className) { + line.className = className; + changes.push({from: no, to: no + 1}); + } + return line; + } + + function lineInfo(line) { + if (typeof line == "number") { + var n = line; + line = lines[line]; + if (!line) return null; + } + else { + var n = indexOf(lines, line); + if (n == -1) return null; + } + var marker = line.gutterMarker; + return {line: n, text: line.text, markerText: marker && marker.text, markerClass: marker && marker.style}; + } + + function stringWidth(str) { + measure.innerHTML = "
x
"; + measure.firstChild.firstChild.firstChild.nodeValue = str; + return measure.firstChild.firstChild.offsetWidth || 10; + } + // These are used to go from pixel positions to character + // positions, taking varying character widths into account. + function charX(line, pos) { + if (pos == 0) return 0; + measure.innerHTML = "
" + lines[line].getHTML(null, null, false, pos) + "
"; + return measure.firstChild.firstChild.offsetWidth; + } + function charFromX(line, x) { + if (x <= 0) return 0; + var lineObj = lines[line], text = lineObj.text; + function getX(len) { + measure.innerHTML = "
" + lineObj.getHTML(null, null, false, len) + "
"; + return measure.firstChild.firstChild.offsetWidth; + } + var from = 0, fromX = 0, to = text.length, toX; + // Guess a suitable upper bound for our search. + var estimated = Math.min(to, Math.ceil(x / stringWidth("x"))); + for (;;) { + var estX = getX(estimated); + if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2)); + else {toX = estX; to = estimated; break;} + } + if (x > toX) return to; + // Try to guess a suitable lower bound as well. + estimated = Math.floor(to * 0.8); estX = getX(estimated); + if (estX < x) {from = estimated; fromX = estX;} + // Do a binary search between these bounds. + for (;;) { + if (to - from <= 1) return (toX - x > x - fromX) ? from : to; + var middle = Math.ceil((from + to) / 2), middleX = getX(middle); + if (middleX > x) {to = middle; toX = middleX;} + else {from = middle; fromX = middleX;} + } + } + + function localCoords(pos, inLineWrap) { + var lh = lineHeight(), line = pos.line - (inLineWrap ? showingFrom : 0); + return {x: charX(pos.line, pos.ch), y: line * lh, yBot: (line + 1) * lh}; + } + function pageCoords(pos) { + var local = localCoords(pos, true), off = eltOffset(lineSpace); + return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot}; + } + + function lineHeight() { + var nlines = lineDiv.childNodes.length; + if (nlines) return (lineDiv.offsetHeight / nlines) || 1; + measure.innerHTML = "
x
"; + return measure.firstChild.offsetHeight || 1; + } + function paddingTop() {return lineSpace.offsetTop;} + function paddingLeft() {return lineSpace.offsetLeft;} + + function posFromMouse(e, liberal) { + var offW = eltOffset(wrapper, true), x = e.e.clientX, y = e.e.clientY; + // This is a mess of a heuristic to try and determine whether a + // scroll-bar was clicked or not, and to return null if one was + // (and !liberal). + if (!liberal && (x - offW.left > wrapper.clientWidth || y - offW.top > wrapper.clientHeight)) + return null; + var offL = eltOffset(lineSpace, true); + var line = showingFrom + Math.floor((y - offL.top) / lineHeight()); + return clipPos({line: line, ch: charFromX(clipLine(line), x - offL.left)}); + } + function onContextMenu(e) { + var pos = posFromMouse(e); + if (!pos || window.opera) return; // Opera is difficult. + if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to)) + setCursor(pos.line, pos.ch); + + var oldCSS = input.style.cssText; + input.style.cssText = "position: fixed; width: 30px; height: 30px; top: " + (e.pageY() - 1) + + "px; left: " + (e.pageX() - 1) + "px; z-index: 1000; background: white; " + + "border-width: 0; outline: none; overflow: hidden;"; + var val = input.value = getSelection(); + focusInput(); + setSelRange(input, 0, input.value.length); + leaveInputAlone = true; + function rehide() { + if (input.value != val) operation(replaceSelection)(input.value, "end"); + input.style.cssText = oldCSS; + leaveInputAlone = false; + prepareInput(); + slowPoll(); + } + + if (gecko) { + e.stop() + var mouseup = connect(window, "mouseup", function() { + mouseup(); + setTimeout(rehide, 20); + }, true); + } + else { + setTimeout(rehide, 50); + } + } + + // Cursor-blinking + function restartBlink() { + clearInterval(blinker); + var on = true; + cursor.style.visibility = ""; + blinker = setInterval(function() { + cursor.style.visibility = (on = !on) ? "" : "hidden"; + }, 650); + } + + var matching = {"(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<"}; + function matchBrackets(autoclear) { + var head = sel.inverted ? sel.from : sel.to, line = lines[head.line], pos = head.ch - 1; + var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)]; + if (!match) return; + var ch = match.charAt(0), forward = match.charAt(1) == ">", d = forward ? 1 : -1, st = line.styles; + for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2) + if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;} + + var stack = [line.text.charAt(pos)], re = /[(){}[\]]/; + function scan(line, from, to) { + if (!line.text) return; + var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur; + for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) { + var text = st[i]; + if (st[i+1] != null && st[i+1] != style) {pos += d * text.length; continue;} + for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) { + if (pos >= from && pos < to && re.test(cur = text.charAt(j))) { + var match = matching[cur]; + if (match.charAt(1) == ">" == forward) stack.push(cur); + else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false}; + else if (!stack.length) return {pos: pos, match: true}; + } + } + } + } + for (var i = head.line, e = forward ? Math.min(i + 50, lines.length) : Math.max(-1, i - 50); i != e; i+=d) { + var line = lines[i], first = i == head.line; + var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length); + if (found) { + var style = found.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket"; + var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style), + two = markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style); + var clear = operation(function(){one(); two();}); + if (autoclear) setTimeout(clear, 800); + else bracketHighlighted = clear; + break; + } + } + } + + // Finds the line to start with when starting a parse. Tries to + // find a line with a stateAfter, so that it can start with a + // valid state. If that fails, it returns the line with the + // smallest indentation, which tends to need the least context to + // parse correctly. + function findStartLine(n) { + var minindent, minline; + for (var search = n, lim = n - 40; search > lim; --search) { + if (search == 0) return 0; + var line = lines[search-1]; + if (line.stateAfter) return search; + var indented = line.indentation(); + if (minline == null || minindent > indented) { + minline = search; + minindent = indented; + } + } + return minline; + } + function getStateBefore(n) { + var start = findStartLine(n), state = start && lines[start-1].stateAfter; + if (!state) state = startState(mode); + else state = copyState(mode, state); + for (var i = start; i < n; ++i) { + var line = lines[i]; + line.highlight(mode, state); + line.stateAfter = copyState(mode, state); + } + if (!lines[n].stateAfter) work.push(n); + return state; + } + function highlightWorker() { + var end = +new Date + options.workTime; + var didSomething = false; + while (work.length) { + if (!lines[showingFrom].stateAfter) var task = showingFrom; + else var task = work.pop(); + if (task >= lines.length) continue; + didSomething = true; + var start = findStartLine(task), state = start && lines[start-1].stateAfter; + if (state) state = copyState(mode, state); + else state = startState(mode); + + for (var i = start, l = lines.length; i < l; ++i) { + var line = lines[i], hadState = line.stateAfter; + if (+new Date > end) { + work.push(i); + startWorker(options.workDelay); + changes.push({from: task, to: i}); + return; + } + var changed = line.highlight(mode, state); + line.stateAfter = copyState(mode, state); + if (hadState && !changed && line.text) break; + } + changes.push({from: task, to: i}); + } + if (didSomething && options.onHighlightComplete) + options.onHighlightComplete(instance); + } + function startWorker(time) { + if (!work.length) return; + highlight.set(time, operation(highlightWorker)); + } + + // Operations are used to wrap changes in such a way that each + // change won't have to update the cursor and display (which would + // be awkward, slow, and error-prone), but instead updates are + // batched and then all combined and executed at once. + function startOperation() { + updateInput = null; changes = []; textChanged = selectionChanged = false; + } + function endOperation() { + var reScroll = false; + if (selectionChanged) reScroll = !scrollCursorIntoView(); + if (changes.length) updateDisplay(changes); + else if (selectionChanged) updateCursor(); + if (reScroll) scrollCursorIntoView(); + if (selectionChanged) restartBlink(); + + // updateInput can be set to a boolean value to force/prevent an + // update. + if (!leaveInputAlone && (updateInput === true || (updateInput !== false && selectionChanged))) + prepareInput(); + + if (selectionChanged && options.matchBrackets) + setTimeout(operation(function() { + if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;} + matchBrackets(false); + }), 20); + var tc = textChanged; // textChanged can be reset by cursoractivity callback + if (selectionChanged && options.onCursorActivity) + options.onCursorActivity(instance); + if (tc && options.onChange && instance) + options.onChange(instance, tc); + } + var nestedOperation = 0; + function operation(f) { + return function() { + if (!nestedOperation++) startOperation(); + try {var result = f.apply(this, arguments);} + finally {if (!--nestedOperation) endOperation();} + return result; + }; + } + + function SearchCursor(query, pos, caseFold) { + this.atOccurrence = false; + if (caseFold == null) caseFold = typeof query == "string" && query == query.toLowerCase(); + + if (pos && typeof pos == "object") pos = clipPos(pos); + else pos = {line: 0, ch: 0}; + this.pos = {from: pos, to: pos}; + + // The matches method is filled in based on the type of query. + // It takes a position and a direction, and returns an object + // describing the next occurrence of the query, or null if no + // more matches were found. + if (typeof query != "string") // Regexp match + this.matches = function(reverse, pos) { + if (reverse) { + var line = lines[pos.line].text.slice(0, pos.ch), match = line.match(query), start = 0; + while (match) { + var ind = line.indexOf(match[0]); + start += ind; + line = line.slice(ind + 1); + var newmatch = line.match(query); + if (newmatch) match = newmatch; + else break; + } + } + else { + var line = lines[pos.line].text.slice(pos.ch), match = line.match(query), + start = match && pos.ch + line.indexOf(match[0]); + } + if (match) + return {from: {line: pos.line, ch: start}, + to: {line: pos.line, ch: start + match[0].length}, + match: match}; + }; + else { // String query + if (caseFold) query = query.toLowerCase(); + var fold = caseFold ? function(str){return str.toLowerCase();} : function(str){return str;}; + var target = query.split("\n"); + // Different methods for single-line and multi-line queries + if (target.length == 1) + this.matches = function(reverse, pos) { + var line = fold(lines[pos.line].text), len = query.length, match; + if (reverse ? (pos.ch >= len && (match = line.lastIndexOf(query, pos.ch - len)) != -1) + : (match = line.indexOf(query, pos.ch)) != -1) + return {from: {line: pos.line, ch: match}, + to: {line: pos.line, ch: match + len}}; + }; + else + this.matches = function(reverse, pos) { + var ln = pos.line, idx = (reverse ? target.length - 1 : 0), match = target[idx], line = fold(lines[ln].text); + var offsetA = (reverse ? line.indexOf(match) + match.length : line.lastIndexOf(match)); + if (reverse ? offsetA >= pos.ch || offsetA != match.length + : offsetA <= pos.ch || offsetA != line.length - match.length) + return; + for (;;) { + if (reverse ? !ln : ln == lines.length - 1) return; + line = fold(lines[ln += reverse ? -1 : 1].text); + match = target[reverse ? --idx : ++idx]; + if (idx > 0 && idx < target.length - 1) { + if (line != match) return; + else continue; + } + var offsetB = (reverse ? line.lastIndexOf(match) : line.indexOf(match) + match.length); + if (reverse ? offsetB != line.length - match.length : offsetB != match.length) + return; + var start = {line: pos.line, ch: offsetA}, end = {line: ln, ch: offsetB}; + return {from: reverse ? end : start, to: reverse ? start : end}; + } + }; + } + } + + SearchCursor.prototype = { + findNext: function() {return this.find(false);}, + findPrevious: function() {return this.find(true);}, + + find: function(reverse) { + var self = this, pos = clipPos(reverse ? this.pos.from : this.pos.to); + function savePosAndFail(line) { + var pos = {line: line, ch: 0}; + self.pos = {from: pos, to: pos}; + self.atOccurrence = false; + return false; + } + + for (;;) { + if (this.pos = this.matches(reverse, pos)) { + this.atOccurrence = true; + return this.pos.match || true; + } + if (reverse) { + if (!pos.line) return savePosAndFail(0); + pos = {line: pos.line-1, ch: lines[pos.line-1].text.length}; + } + else { + if (pos.line == lines.length - 1) return savePosAndFail(lines.length); + pos = {line: pos.line+1, ch: 0}; + } + } + }, + + from: function() {if (this.atOccurrence) return copyPos(this.pos.from);}, + to: function() {if (this.atOccurrence) return copyPos(this.pos.to);} + }; + + return instance; + } // (end of function CodeMirror) + + // The default configuration options. + CodeMirror.defaults = { + value: "", + mode: null, + indentUnit: 2, + indentWithTabs: false, + tabMode: "classic", + enterMode: "indent", + electricChars: true, + onKeyEvent: null, + lineNumbers: false, + gutter: false, + firstLineNumber: 1, + readOnly: false, + onChange: null, + onCursorActivity: null, + onGutterClick: null, + onHighlightComplete: null, + onFocus: null, onBlur: null, onScroll: null, + matchBrackets: false, + workTime: 100, + workDelay: 200, + undoDepth: 40, + tabindex: null, + document: window.document + }; + + // Known modes, by name and by MIME + var modes = {}, mimeModes = {}; + CodeMirror.defineMode = function(name, mode) { + if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name; + modes[name] = mode; + }; + CodeMirror.defineMIME = function(mime, spec) { + mimeModes[mime] = spec; + }; + CodeMirror.getMode = function(options, spec) { + if (typeof spec == "string" && mimeModes.hasOwnProperty(spec)) + spec = mimeModes[spec]; + if (typeof spec == "string") + var mname = spec, config = {}; + else if (spec != null) + var mname = spec.name, config = spec; + var mfactory = modes[mname]; + if (!mfactory) { + if (window.console) console.warn("No mode " + mname + " found, falling back to plain text."); + return CodeMirror.getMode(options, "text/plain"); + } + return mfactory(options, config || {}); + } + CodeMirror.listModes = function() { + var list = []; + for (var m in modes) + if (modes.propertyIsEnumerable(m)) list.push(m); + return list; + }; + CodeMirror.listMIMEs = function() { + var list = []; + for (var m in mimeModes) + if (mimeModes.propertyIsEnumerable(m)) list.push(m); + return list; + }; + + CodeMirror.fromTextArea = function(textarea, options) { + if (!options) options = {}; + options.value = textarea.value; + if (!options.tabindex && textarea.tabindex) + options.tabindex = textarea.tabindex; + + function save() {textarea.value = instance.getValue();} + if (textarea.form) { + // Deplorable hack to make the submit method do the right thing. + var rmSubmit = connect(textarea.form, "submit", save, true); + if (typeof textarea.form.submit == "function") { + var realSubmit = textarea.form.submit; + function wrappedSubmit() { + save(); + textarea.form.submit = realSubmit; + textarea.form.submit(); + textarea.form.submit = wrappedSubmit; + } + textarea.form.submit = wrappedSubmit; + } + } + + textarea.style.display = "none"; + var instance = CodeMirror(function(node) { + textarea.parentNode.insertBefore(node, textarea.nextSibling); + }, options); + instance.save = save; + instance.toTextArea = function() { + save(); + textarea.parentNode.removeChild(instance.getWrapperElement()); + textarea.style.display = ""; + if (textarea.form) { + rmSubmit(); + if (typeof textarea.form.submit == "function") + textarea.form.submit = realSubmit; + } + }; + return instance; + }; + + // Utility functions for working with state. Exported because modes + // sometimes need to do this. + function copyState(mode, state) { + if (state === true) return state; + if (mode.copyState) return mode.copyState(state); + var nstate = {}; + for (var n in state) { + var val = state[n]; + if (val instanceof Array) val = val.concat([]); + nstate[n] = val; + } + return nstate; + } + CodeMirror.startState = startState; + function startState(mode, a1, a2) { + return mode.startState ? mode.startState(a1, a2) : true; + } + CodeMirror.copyState = copyState; + + // The character stream used by a mode's parser. + function StringStream(string) { + this.pos = this.start = 0; + this.string = string; + } + StringStream.prototype = { + eol: function() {return this.pos >= this.string.length;}, + sol: function() {return this.pos == 0;}, + peek: function() {return this.string.charAt(this.pos);}, + next: function() { + if (this.pos < this.string.length) + return this.string.charAt(this.pos++); + }, + eat: function(match) { + var ch = this.string.charAt(this.pos); + if (typeof match == "string") var ok = ch == match; + else var ok = ch && (match.test ? match.test(ch) : match(ch)); + if (ok) {++this.pos; return ch;} + }, + eatWhile: function(match) { + var start = this.start; + while (this.eat(match)){} + return this.pos > start; + }, + eatSpace: function() { + var start = this.pos; + while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos; + return this.pos > start; + }, + skipToEnd: function() {this.pos = this.string.length;}, + skipTo: function(ch) { + var found = this.string.indexOf(ch, this.pos); + if (found > -1) {this.pos = found; return true;} + }, + backUp: function(n) {this.pos -= n;}, + column: function() {return countColumn(this.string, this.start);}, + indentation: function() {return countColumn(this.string);}, + match: function(pattern, consume, caseInsensitive) { + if (typeof pattern == "string") { + function cased(str) {return caseInsensitive ? str.toLowerCase() : str;} + if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) { + if (consume !== false) this.pos += pattern.length; + return true; + } + } + else { + var match = this.string.slice(this.pos).match(pattern); + if (match && consume !== false) this.pos += match[0].length; + return match; + } + }, + current: function(){return this.string.slice(this.start, this.pos);} + }; + + // Line objects. These hold state related to a line, including + // highlighting info (the styles array). + function Line(text, styles) { + this.styles = styles || [text, null]; + this.stateAfter = null; + this.text = text; + this.marked = this.gutterMarker = this.className = null; + } + Line.prototype = { + // Replace a piece of a line, keeping the styles around it intact. + replace: function(from, to, text) { + var st = [], mk = this.marked; + copyStyles(0, from, this.styles, st); + if (text) st.push(text, null); + copyStyles(to, this.text.length, this.styles, st); + this.styles = st; + this.text = this.text.slice(0, from) + text + this.text.slice(to); + this.stateAfter = null; + if (mk) { + var diff = text.length - (to - from), end = this.text.length; + function fix(n) {return n <= Math.min(to, to + diff) ? n : n + diff;} + for (var i = 0; i < mk.length; ++i) { + var mark = mk[i], del = false; + if (mark.from >= end) del = true; + else {mark.from = fix(mark.from); if (mark.to != null) mark.to = fix(mark.to);} + if (del || mark.from >= mark.to) {mk.splice(i, 1); i--;} + } + } + }, + // Split a line in two, again keeping styles intact. + split: function(pos, textBefore) { + var st = [textBefore, null]; + copyStyles(pos, this.text.length, this.styles, st); + return new Line(textBefore + this.text.slice(pos), st); + }, + addMark: function(from, to, style) { + var mk = this.marked, mark = {from: from, to: to, style: style}; + if (this.marked == null) this.marked = []; + this.marked.push(mark); + this.marked.sort(function(a, b){return a.from - b.from;}); + return mark; + }, + removeMark: function(mark) { + var mk = this.marked; + if (!mk) return; + for (var i = 0; i < mk.length; ++i) + if (mk[i] == mark) {mk.splice(i, 1); break;} + }, + // Run the given mode's parser over a line, update the styles + // array, which contains alternating fragments of text and CSS + // classes. + highlight: function(mode, state) { + var stream = new StringStream(this.text), st = this.styles, pos = 0; + var changed = false, curWord = st[0], prevWord; + if (this.text == "" && mode.blankLine) mode.blankLine(state); + while (!stream.eol()) { + var style = mode.token(stream, state); + var substr = this.text.slice(stream.start, stream.pos); + stream.start = stream.pos; + if (pos && st[pos-1] == style) + st[pos-2] += substr; + else if (substr) { + if (!changed && (st[pos+1] != style || (pos && st[pos-2] != prevWord))) changed = true; + st[pos++] = substr; st[pos++] = style; + prevWord = curWord; curWord = st[pos]; + } + // Give up when line is ridiculously long + if (stream.pos > 5000) { + st[pos++] = this.text.slice(stream.pos); st[pos++] = null; + break; + } + } + if (st.length != pos) {st.length = pos; changed = true;} + if (pos && st[pos-2] != prevWord) changed = true; + return changed; + }, + // Fetch the parser token for a given character. Useful for hacks + // that want to inspect the mode state (say, for completion). + getTokenAt: function(mode, state, ch) { + var txt = this.text, stream = new StringStream(txt); + while (stream.pos < ch && !stream.eol()) { + stream.start = stream.pos; + var style = mode.token(stream, state); + } + return {start: stream.start, + end: stream.pos, + string: stream.current(), + className: style || null, + state: state}; + }, + indentation: function() {return countColumn(this.text);}, + // Produces an HTML fragment for the line, taking selection, + // marking, and highlighting into account. + getHTML: function(sfrom, sto, includePre, endAt) { + var html = []; + if (includePre) + html.push(this.className ? '
': "
");
+      function span(text, style) {
+        if (!text) return;
+        if (style) html.push('', htmlEscape(text), "");
+        else html.push(htmlEscape(text));
+      }
+      var st = this.styles, allText = this.text, marked = this.marked;
+      if (sfrom == sto) sfrom = null;
+      var len = allText.length;
+      if (endAt != null) len = Math.min(endAt, len);
+
+      if (!allText && endAt == null)
+        span(" ", sfrom != null && sto == null ? "CodeMirror-selected" : null);
+      else if (!marked && sfrom == null)
+        for (var i = 0, ch = 0; ch < len; i+=2) {
+          var str = st[i], l = str.length;
+          if (ch + l > len) str = str.slice(0, len - ch);
+          ch += l;
+          span(str, st[i+1]);
+        }
+      else {
+        var pos = 0, i = 0, text = "", style, sg = 0;
+        var markpos = -1, mark = null;
+        function nextMark() {
+          if (marked) {
+            markpos += 1;
+            mark = (markpos < marked.length) ? marked[markpos] : null;
+          }
+        }
+        nextMark();
+        while (pos < len) {
+          var upto = len;
+          var extraStyle = "";
+          if (sfrom != null) {
+            if (sfrom > pos) upto = sfrom;
+            else if (sto == null || sto > pos) {
+              extraStyle = " CodeMirror-selected";
+              if (sto != null) upto = Math.min(upto, sto);
+            }
+          }
+          while (mark && mark.to != null && mark.to <= pos) nextMark();
+          if (mark) {
+            if (mark.from > pos) upto = Math.min(upto, mark.from);
+            else {
+              extraStyle += " " + mark.style;
+              if (mark.to != null) upto = Math.min(upto, mark.to);
+            }
+          }
+          for (;;) {
+            var end = pos + text.length;
+            var apliedStyle = style;
+            if (extraStyle) apliedStyle = style ? style + extraStyle : extraStyle;
+            span(end > upto ? text.slice(0, upto - pos) : text, apliedStyle);
+            if (end >= upto) {text = text.slice(upto - pos); pos = upto; break;}
+            pos = end;
+            text = st[i++]; style = st[i++];
+          }
+        }
+        if (sfrom != null && sto == null) span(" ", "CodeMirror-selected");
+      }
+      if (includePre) html.push("
"); + return html.join(""); + } + }; + // Utility used by replace and split above + function copyStyles(from, to, source, dest) { + for (var i = 0, pos = 0, state = 0; pos < to; i+=2) { + var part = source[i], end = pos + part.length; + if (state == 0) { + if (end > from) dest.push(part.slice(from - pos, Math.min(part.length, to - pos)), source[i+1]); + if (end >= from) state = 1; + } + else if (state == 1) { + if (end > to) dest.push(part.slice(0, to - pos), source[i+1]); + else dest.push(part, source[i+1]); + } + pos = end; + } + } + + // The history object 'chunks' changes that are made close together + // and at almost the same time into bigger undoable units. + function History() { + this.time = 0; + this.done = []; this.undone = []; + } + History.prototype = { + addChange: function(start, added, old) { + this.undone.length = 0; + var time = +new Date, last = this.done[this.done.length - 1]; + if (time - this.time > 400 || !last || + last.start > start + added || last.start + last.added < start - last.added + last.old.length) + this.done.push({start: start, added: added, old: old}); + else { + var oldoff = 0; + if (start < last.start) { + for (var i = last.start - start - 1; i >= 0; --i) + last.old.unshift(old[i]); + last.added += last.start - start; + last.start = start; + } + else if (last.start < start) { + oldoff = start - last.start; + added += oldoff; + } + for (var i = last.added - oldoff, e = old.length; i < e; ++i) + last.old.push(old[i]); + if (last.added < added) last.added = added; + } + this.time = time; + } + }; + + // Event stopping compatibility wrapper. + function stopEvent() { + if (this.preventDefault) {this.preventDefault(); this.stopPropagation();} + else {this.returnValue = false; this.cancelBubble = true;} + } + // Ensure an event has a stop method. + function addStop(event) { + if (!event.stop) event.stop = stopEvent; + return event; + } + + // Event wrapper, exposing the few operations we need. + function Event(orig) {this.e = orig;} + Event.prototype = { + stop: function() {stopEvent.call(this.e);}, + target: function() {return this.e.target || this.e.srcElement;}, + button: function() { + if (this.e.which) return this.e.which; + else if (this.e.button & 1) return 1; + else if (this.e.button & 2) return 3; + else if (this.e.button & 4) return 2; + }, + pageX: function() { + if (this.e.pageX != null) return this.e.pageX; + var doc = this.target().ownerDocument; + return this.e.clientX + doc.body.scrollLeft + doc.documentElement.scrollLeft; + }, + pageY: function() { + if (this.e.pageY != null) return this.e.pageY; + var doc = this.target().ownerDocument; + return this.e.clientY + doc.body.scrollTop + doc.documentElement.scrollTop; + } + }; + + // Event handler registration. If disconnect is true, it'll return a + // function that unregisters the handler. + function connect(node, type, handler, disconnect) { + function wrapHandler(event) {handler(new Event(event || window.event));} + if (typeof node.addEventListener == "function") { + node.addEventListener(type, wrapHandler, false); + if (disconnect) return function() {node.removeEventListener(type, wrapHandler, false);}; + } + else { + node.attachEvent("on" + type, wrapHandler); + if (disconnect) return function() {node.detachEvent("on" + type, wrapHandler);}; + } + } + + function Delayed() {this.id = null;} + Delayed.prototype = {set: function(ms, f) {clearTimeout(this.id); this.id = setTimeout(f, ms);}}; + + // Some IE versions don't preserve whitespace when setting the + // innerHTML of a PRE tag. + var badInnerHTML = (function() { + var pre = document.createElement("pre"); + pre.innerHTML = " "; return !pre.innerHTML; + })(); + + var gecko = /gecko\/\d{7}/i.test(navigator.userAgent); + + var lineSep = "\n"; + // Feature-detect whether newlines in textareas are converted to \r\n + (function () { + var te = document.createElement("textarea"); + te.value = "foo\nbar"; + if (te.value.indexOf("\r") > -1) lineSep = "\r\n"; + }()); + + var tabSize = 8; + var mac = /Mac/.test(navigator.platform); + var movementKeys = {}; + for (var i = 35; i <= 40; ++i) + movementKeys[i] = movementKeys["c" + i] = true; + + // Counts the column offset in a string, taking tabs into account. + // Used mostly to find indentation. + function countColumn(string, end) { + if (end == null) { + end = string.search(/[^\s\u00a0]/); + if (end == -1) end = string.length; + } + for (var i = 0, n = 0; i < end; ++i) { + if (string.charAt(i) == "\t") n += tabSize - (n % tabSize); + else ++n; + } + return n; + } + + // Find the position of an element by following the offsetParent chain. + // If screen==true, it returns screen (rather than page) coordinates. + function eltOffset(node, screen) { + var doc = node.ownerDocument.body; + var x = 0, y = 0, hitDoc = false; + for (var n = node; n; n = n.offsetParent) { + x += n.offsetLeft; y += n.offsetTop; + // Fixed-position elements don't have the document in their offset chain + if (n == doc) hitDoc = true; + } + var e = screen && hitDoc ? null : doc; + for (var n = node.parentNode; n != e; n = n.parentNode) + if (n.scrollLeft != null) { x -= n.scrollLeft; y -= n.scrollTop;} + return {left: x, top: y}; + } + // Get a node's text content. + function eltText(node) { + return node.textContent || node.innerText || node.nodeValue || ""; + } + + // Operations on {line, ch} objects. + function posEq(a, b) {return a.line == b.line && a.ch == b.ch;} + function posLess(a, b) {return a.line < b.line || (a.line == b.line && a.ch < b.ch);} + function copyPos(x) {return {line: x.line, ch: x.ch};} + + function htmlEscape(str) { + return str.replace(/[<>&]/g, function(str) { + return str == "&" ? "&" : str == "<" ? "<" : ">"; + }); + } + + // Used to position the cursor after an undo/redo by finding the + // last edited character. + function editEnd(from, to) { + if (!to) return from ? from.length : 0; + if (!from) return to.length; + for (var i = from.length, j = to.length; i >= 0 && j >= 0; --i, --j) + if (from.charAt(i) != to.charAt(j)) break; + return j + 1; + } + + function indexOf(collection, elt) { + if (collection.indexOf) return collection.indexOf(elt); + for (var i = 0, e = collection.length; i < e; ++i) + if (collection[i] == elt) return i; + return -1; + } + + // See if "".split is the broken IE version, if so, provide an + // alternative way to split lines. + if ("\n\nb".split(/\n/).length != 3) + var splitLines = function(string) { + var pos = 0, nl, result = []; + while ((nl = string.indexOf("\n", pos)) > -1) { + result.push(string.slice(pos, string.charAt(nl-1) == "\r" ? nl - 1 : nl)); + pos = nl + 1; + } + result.push(string.slice(pos)); + return result; + }; + else + var splitLines = function(string){return string.split(/\r?\n/);}; + + // Sane model of finding and setting the selection in a textarea + if (window.getSelection) { + var selRange = function(te) { + try {return {start: te.selectionStart, end: te.selectionEnd};} + catch(e) {return null;} + }; + var setSelRange = function(te, start, end) { + try {te.setSelectionRange(start, end);} + catch(e) {} // Fails on Firefox when textarea isn't part of the document + }; + } + // IE model. Don't ask. + else { + var selRange = function(te) { + try {var range = te.ownerDocument.selection.createRange();} + catch(e) {return null;} + if (!range || range.parentElement() != te) return null; + var val = te.value, len = val.length, localRange = te.createTextRange(); + localRange.moveToBookmark(range.getBookmark()); + var endRange = te.createTextRange(); + endRange.collapse(false); + + if (localRange.compareEndPoints("StartToEnd", endRange) > -1) + return {start: len, end: len}; + + var start = -localRange.moveStart("character", -len); + for (var i = val.indexOf("\r"); i > -1 && i < start; i = val.indexOf("\r", i+1), start++) {} + + if (localRange.compareEndPoints("EndToEnd", endRange) > -1) + return {start: start, end: len}; + + var end = -localRange.moveEnd("character", -len); + for (var i = val.indexOf("\r"); i > -1 && i < end; i = val.indexOf("\r", i+1), end++) {} + return {start: start, end: end}; + }; + var setSelRange = function(te, start, end) { + var range = te.createTextRange(); + range.collapse(true); + var endrange = range.duplicate(); + var newlines = 0, txt = te.value; + for (var pos = txt.indexOf("\n"); pos > -1 && pos < start; pos = txt.indexOf("\n", pos + 1)) + ++newlines; + range.move("character", start - newlines); + for (; pos > -1 && pos < end; pos = txt.indexOf("\n", pos + 1)) + ++newlines; + endrange.move("character", end - newlines); + range.setEndPoint("EndToEnd", endrange); + range.select(); + }; + } + + CodeMirror.defineMode("null", function() { + return {token: function(stream) {stream.skipToEnd();}}; + }); + CodeMirror.defineMIME("text/plain", "null"); + + return CodeMirror; +})(); diff --git a/js/codemirror/lib/overlay.js b/js/codemirror/lib/overlay.js new file mode 100644 index 0000000000..c4cdf9fc84 --- /dev/null +++ b/js/codemirror/lib/overlay.js @@ -0,0 +1,51 @@ +// Utility function that allows modes to be combined. The mode given +// as the base argument takes care of most of the normal mode +// functionality, but a second (typically simple) mode is used, which +// can override the style of text. Both modes get to parse all of the +// text, but when both assign a non-null style to a piece of code, the +// overlay wins, unless the combine argument was true, in which case +// the styles are combined. + +CodeMirror.overlayParser = function(base, overlay, combine) { + return { + startState: function() { + return { + base: CodeMirror.startState(base), + overlay: CodeMirror.startState(overlay), + basePos: 0, baseCur: null, + overlayPos: 0, overlayCur: null + }; + }, + copyState: function(state) { + return { + base: CodeMirror.copyState(base, state.base), + overlay: CodeMirror.copyState(overlay, state.overlay), + basePos: state.basePos, baseCur: null, + overlayPos: state.overlayPos, overlayCur: null + }; + }, + + token: function(stream, state) { + if (stream.start == state.basePos) { + state.baseCur = base.token(stream, state.base); + state.basePos = stream.pos; + } + if (stream.start == state.overlayPos) { + stream.pos = stream.start; + state.overlayCur = overlay.token(stream, state.overlay); + state.overlayPos = stream.pos; + } + stream.pos = Math.min(state.basePos, state.overlayPos); + if (stream.eol()) state.basePos = state.overlayPos = 0; + + if (state.overlayCur == null) return state.baseCur; + if (state.baseCur != null && combine) return state.baseCur + " " + state.overlayCur; + else return state.overlayCur; + }, + + indent: function(state, textAfter) { + return base.indent(state.base, textAfter); + }, + electricChars: base.electricChars + }; +}; diff --git a/js/codemirror/manual.html b/js/codemirror/manual.html new file mode 100644 index 0000000000..25e6225b89 --- /dev/null +++ b/js/codemirror/manual.html @@ -0,0 +1,797 @@ + + + + CodeMirror: User Manual + + + + + + +

{ } CodeMirror

+ +
+/* User manual and
+   reference guide */
+
+ +
+ +

Overview

+ +

CodeMirror is a code-editor component that can be embedded in + Web pages. It provides only the editor component, no + accompanying buttons + (see CodeMirror + UI for a drop-in button bar), auto-completion, or other IDE + functionality. It does provide a rich API on top of which such + functionality can be straightforwardly implemented.

+ +

CodeMirror works with language-specific modes. Modes are + JavaScript programs that help color (and optionally indent) text + written in a given language. The distribution comes with a few + modes (see the mode/ directory), and it isn't hard + to write new ones for other languages.

+ +

Basic Usage

+ +

The easiest way to use CodeMirror is to simply load the script + and style sheet found under lib/ in the distribution, + plus the script and style sheet for the mode(s) you want to use. + (See also the compresion helper.) For + example:

+ +
<script src="lib/codemirror.js"></script>
+<link rel="stylesheet" href="lib/codemirror.css">
+<script src="mode/javascript/javascript.js"></script>
+<link rel="stylesheet" href="mode/javascript/javascript.css">
+ +

Having done this, an editor instance can be created like + this:

+ +
var myCodeMirror = CodeMirror(document.body);
+ +

The editor will be appended to the document body, will start + empty, and will use the mode that we loaded. To have more control + over the new editor, a configuration object can be passed + to CodeMirror as a second argument:

+ +
var myCodeMirror = CodeMirror(document.body, {
+  value: "function myScript(){return 100;}\n",
+  mode:  "javascript"
+});
+ +

This will initialize the editor with a piece of code already in + it, and explicitly tell it to use the JavaScript mode (which is + useful when multiple modes are loaded). + See below for a full discussion of the + configuration options that CodeMirror accepts.

+ +

In cases where you don't want to append the editor to an + element, and need more control over the way it is inserted, the + first argument to the CodeMirror function can also + be a function that, when given a DOM element, inserts it into the + document somewhere. This could be used to, for example, replace a + textarea with a real editor:

+ +
var myCodeMirror = CodeMirror(function(elt) {
+  myTextArea.parentNode.replaceChild(elt, myTextArea);
+}, {value: myTextArea.value});
+ +

However, for this use case, which is a common way to use + CodeMirror, the library provides a much more powerful + shortcut:

+ +
var myCodeMirror = CodeMirror.fromTextArea(myTextArea);
+ +

This will, among other things, ensure that the textarea's value + is updated when the form (if it is part of a form) is submitted. + See the API reference for a full + description of this method.

+ +

Configuration

+ +

Both the CodeMirror function and + its fromTextArea method take as second (optional) + argument an object containing configuration options. Any option + not supplied like this will be taken + from CodeMirror.defaults, an object containing the + default options. You can update this object to change the defaults + on your page.

+ +

Options are not checked in any way, so setting bogus option + values is bound to lead to odd errors.

+ +

Note: CodeMirror + 2 does not support + line-wrapping. I would have very much liked to support it, but it + combines extremely poorly with the way the editor is + implemented.

+ +

These are the supported options:

+ +
+
value (string)
+
The starting value of the editor.
+ +
mode (string or object)
+
The mode to use. When not given, this will default to the + first mode that was loaded. It may be a string, which either + simply names the mode or is + a MIME type + associated with the mode. Alternatively, it may be an object + containing configuration options for the mode, with + a name property that names the mode (for + example {name: "javascript", json: true}). The demo + pages for each mode contain information about what configuration + parameters the mode supports. You can ask CodeMirror which modes + and MIME types are loaded with + the CodeMirror.listModes + and CodeMirror.listMIMEs functions.
+ +
indentUnit (integer)
+
How many spaces a block (whatever that means in the edited + language) should be indented. The default is 2.
+ +
indentWithTabs (boolean)
+
Whether, when indenting, the first N*8 spaces should be + replaced by N tabs. Default is false.
+ +
tabMode (string)
+
Determines what happens when the user presses the tab key. + Must be one of the following: +
+
"classic" (the default)
+
When nothing is selected, insert a tab. Otherwise, + behave like the "shift" mode. (When shift is + held, this behaves like the "indent" mode.)
+
"shift"
+
Indent all selected lines by + one indentUnit. + If shift was held while pressing tab, un-indent all selected + lines one unit.
+
"indent"
+
Indent the line the 'correctly', based on its syntactic + context. Only works if the + mode supports it.
+
"default"
+
Do not capture tab presses, let the browser apply its + default behaviour (which usually means it skips to the next + control).
+
+ +
enterMode (string)
+
Determines whether and how new lines are indented when the + enter key is pressed. The following modes are supported: +
+
"indent" (the default)
+
Use the mode's indentation rules to give the new line + the correct indentation.
+
"keep"
+
Indent the line the same as the previous line.
+
"flat"
+
Do not indent the new line.
+
+ +
electricChars (boolean)
+
Configures whether the editor should re-indent the current + line when a character is typed that might change its proper + indentation (only works if the mode supports indentation). + Default is true.
+ +
lineNumbers (boolean)
+
Whether to show line numbers to the left of the editor.
+ +
firstLineNumber (integer)
+
At which number to start counting lines. Default is 1.
+ +
gutter (boolean)
+
Can be used to force a 'gutter' (empty space on the left of + the editor) to be shown even when no line numbers are active. + This is useful for setting markers.
+ +
readOnly (boolean)
+
This disables editing of the editor content by the user. + (Changes through API functions will still be possible.) If you + also want to disable the cursor, use "nocursor" as + a value for this option, instead of true.
+ +
onChange (function)
+
When given, this function will be called every time the + content of the editor is changed. It will be given the editor + instance as only argument.
+ +
onCursorActivity (function)
+
Like onChange, but will also be called when the + cursor moves without any changes being made.
+ +
onGutterClick (function)
+
When given, will be called whenever the editor gutter (the + line-number area) is clicked. Will be given the editor instance + as first argument, and the (zero-based) number of the line that + was clicked as second argument.
+ +
onFocus, onBlur (function)
+
The given functions will be called whenever the editor is + focused or unfocused.
+ +
onScroll (function)
+
When given, will be called whenever the editor is + scrolled.
+ +
onHighlightComplete (function)
+
Whenever the editor's content has been fully highlighted, + this function (if given) will be called. It'll be given a single + argument, the editor instance.
+ +
matchBrackets (boolean)
+
Determines whether brackets are matched whenever the cursor + is moved next to a bracket.
+ +
workTime, workDelay (number)
+
Highlighting is done by a pseudo background-thread that will + work for workTime milliseconds, and then use + timeout to sleep for workDelay milliseconds. The + defaults are 200 and 300, you can change these options to make + the highlighting more or less aggressive.
+ +
undoDepth (integer)
+
The maximum number of undo levels that the editor stores. + Defaults to 40.
+ +
tabindex (integer)
+
The tab + index to assign to the editor. If not given, no tab index + will be assigned.
+ +
document (DOM document)
+
Use this if you want to display the editor in another DOM. + By default it will use the global document + object.
+ +
onKeyEvent (function)
+
This provides a rather low-level hook into CodeMirror's key + handling. If provided, this function will be called on + every keydown, keyup, + and keypress event that CodeMirror captures. It + will be passed two arguments, the editor instance and the key + event. This key event is pretty much the raw key event, except + that a stop() method is always added to it. You + could feed it to, for example, jQuery.Event to + further normalize it.
This function can inspect the key + event, and handle it if it wants to. It may return true to tell + CodeMirror to ignore the event. Be wary that, on some browsers, + stopping a keydown does not stop + the keypress from firing, whereas on others it + does. If you respond to an event, you should probably inspect + its type property and only do something when it + is keydown (or keypress for actions + that need character data).
+
+ +

Customized Styling

+ +

Up to a certain extent, CodeMirror's look can be changed by + modifying style sheet files. The style sheets supplied by modes + simply provide the colors for that mode, and can be adapted in a + very straightforward way. To style the editor itself, it is + possible to alter or override the styles defined + in codemirror.css.

+ +

Some care must be taken there, since a lot of the rules in this + file are necessary to have CodeMirror function properly. Adjusting + colors should be safe, of course, and with some care a lot of + other things can be changed as well. The CSS classes defined in + this file serve the following roles:

+ +
+
CodeMirror
+
The outer element of the editor. This determines whether the + editor scrolls (overflow: auto + fixed height). Can + also be used to set styles that should hold for everything + inside the editor, or to set a background.
+ +
CodeMirror-focused
+
Whenever the editor is focused, the top element gets this + class. This is used to hide the cursor and give the selection a + different color when the editor is not focused.
+ +
CodeMirror-gutter
+
Use this for giving a background or a border to the editor + gutter. Don't set any padding here, + use CodeMirror-gutter-text for that. By default, + the gutter is 'fluid', meaning it will adjust its width to the + maximum line number or line marker width. You can also set a + fixed width if you want.
+ +
CodeMirror-gutter-text
+
Used to style the actual line numbers. For the numbers to + line up, you'll want this style to use exactly the same font and + vertical padding as normal edited text, as per + the CodeMirror-lines class.
+ +
CodeMirror-lines
+
The visible lines. If this has vertical + padding, CodeMirror-gutter should have the same + padding.
+ +
CodeMirror-cursor
+
The cursor is a block element that is absolutely positioned. + You can make it look whichever way you want.
+ +
CodeMirror-selected
+
The selection is represented by span elements + with this class.
+ +
CodeMirror-matchingbracket, + CodeMirror-nonmatchingbracket
+
These are used to style matched (or unmatched) brackets.
+
+ +

The actual lines, as well as the cursor, are represented + by pre elements. By default no text styling (such as + bold) that might change line height is applied. If you do want + such effects, you'll have to give CodeMirror pre a + fixed height. Also, you must still take care that character width + is constant.

+ +

If your page's style sheets do funky things to + all div or pre elements (you probably + shouldn't do that), you'll have to define rules to cancel these + effects out again for elements under the CodeMirror + class.

+ +

Programming API

+ +

A lot of CodeMirror features are only available through its API. + This has the disadvantage that you need to do work to enable them, + and the advantage that CodeMirror will fit seamlessly into your + application.

+ +

Whenever points in the document are represented, the API uses + objects with line and ch properties. + Both are zero-based. CodeMirror makes sure to 'clip' any positions + passed by client code so that they fit inside the document, so you + shouldn't worry too much about sanitizing your coordinates. If you + give ch a value of null, or don't + specify it, it will be replaced with the length of the specified + line.

+ +
+
getValue() → string
+
Get the current editor content.
+
setValue(string)
+
Set the editor content.
+ +
getSelection() → string
+
Get the currently selected code.
+
replaceSelection(string)
+
Replace the selection with the given string.
+ +
focus()
+
Give the editor focus.
+ +
setOption(option, value)
+
Change the configuration of the editor. option + should the name of an option, + and value should be a valid value for that + option.
+
getOption(option) → value
+
Retrieves the current value of the given option for this + editor instance.
+ +
cursorCoords(start) → object
+
Returns an {x, y, yBot} object containing the + coordinates of the cursor relative to the top-left corner of the + page. yBot is the coordinate of the bottom of the + cursor. start is a boolean indicating whether you + want the start or the end of the selection.
+
charCoords(pos) → object
+
Like cursorCoords, but returns the position of + an arbitrary characters. pos should be + a {line, ch} object.
+
coordsChar(object) → pos
+
Given an {x, y} object (in page coordinates), + returns the {line, ch} position that corresponds to + it.
+ +
undo()
+
Undo one edit (if any undo events are stored).
+
redo()
+
Redo one undone edit.
+
historySize() → object
+
Returns an object with {undo, redo} properties, + both of which hold integers, indicating the amount of stored + undo and redo operations.
+ +
indentLine(line)
+
Reset the given line's indentation to the indentation + prescribed by the mode.
+ +
getSearchCursor(query, start, caseFold) → cursor
+
Used to implement search/replace + functionality. query can be a regular expression or + a string (only strings will match across lines—if they contain + newlines). start provides the starting position of + the search. It can be a {line, ch} object, or can + be left off to default to the start of the + document. caseFold is only relevant when matching a + string. It will cause the search to be case-insensitive. A + search cursor has the following methods: +
+
findNext(), findPrevious() → boolean
+
Search forward or backward from the current position. + The return value indicates whether a match was found. If + matching a regular expression, the return value will be the + array returned by the match method, in case you + want to extract matched groups.
+
from(), to() → object
+
These are only valid when the last call + to findNext or findPrevious did + not return false. They will return {line, ch} + objects pointing at the start and end of the match.
+
+ +
getTokenAt(pos) → object
+
Retrieves information about the token the current mode found + at the given position (a {line, ch} object). The + returned object has the following properties: +
+
start
The character (on the given line) at which the token starts.
+
end
The character at which the token ends.
+
string
The token's string.
+
className
The class the mode assigned + to the token. (Can be null when no class was assigned.)
+
+ +
markText(from, to, className) → function
+
Can be used to mark a range of text with a specific CSS + class name. from and to should + be {line, ch} objects. The method will return a + function that can be called to remove the marking.
+ +
setMarker(line, text, className) → lineHandle
+
Add a gutter marker for the given line. Gutter markers are + shown in the line-number area (instead of the number for this + line). Both text and className are + optional. Setting text to a Unicode character like + ● tends to give a nice effect. To put a picture in the gutter, + set text to a space and className to + something that sets a background image. If you + specify text, the given text (which may contain + HTML) will, by default, replace the line number for that line. + If this is not what you want, you can include the + string %N% in the text, which will be replaced by + the line number.
+
clearMarker(line)
+
Clears a marker created + with setMarker. line can be either a + number or a handle returned by setMarker (since a + number may now refer to a different line if something was added + or deleted).
+
setLineClass(line, className) → lineHandle
+
Set a CSS class name for the given line. line + can be a number or a line handle (as returned + by setMarker or this function). + Pass null to clear the class for a line.
+ +
lineInfo(line) → object
+
Returns the line number, text content, and marker status of + the given line, which can be either a number or a handle + returned by setMarker. The returned object has the + structure {line, text, markerText, markerClass}.
+ +
addWidget(pos, node, scrollIntoView)
+
Puts node, which should be an absolutely + positioned DOM node, into the editor, positioned right below the + given {line, ch} position. + When scrollIntoView is true, the editor will ensure + that the entire node is visible (if possible). To remove the + widget again, simply use DOM methods (move it somewhere else, or + call removeChild on its parent).
+ +
matchBrackets()
+
Force matching-bracket-highlighting to happen.
+ +
lineCount() → number
+
Get the number of lines in the editor.
+ +
getCursor(start) → object
+
start is a boolean indicating whether the start + or the end of the selection must be retrieved. If it is not + given, the current cursor pos, i.e. the side of the selection + that would move if you pressed an arrow key, is chosen. + A {line, ch} object will be returned.
+
somethingSelected() → boolean
+
Return true if any text is selected.
+
setCursor(pos)
+
Set the cursor position. You can either pass a + single {line, ch} object, or the line and the + character as two separate parameters.
+
setSelection(start, end)
+
Set the selection range. start + and end should be {line, ch} objects.
+ +
getLine(n) → string
+
Get the content of line n.
+
setLine(n, text)
+
Set the content of line n.
+
removeLine(n)
+
Remove the given line from the document.
+ +
getRange(from, to) → string +
Get the text between the given points in the editor, which + should be {line, ch} objects.
+
replaceRange(string, from, to)
+
Replace the part of the document between from + and to with the given string. from + and to must be {line, ch} + objects. to can be left off to simply insert the + string at position from.
+
+ +

The following are more low-level methods:

+ +
+
operation(func) → result
+
CodeMirror internally buffers changes and only updates its + DOM structure after it has finished performing some operation. + If you need to perform a lot of operations on a CodeMirror + instance, you can call this method with a function argument. It + will call the function, buffering up all changes, and only doing + the expensive update after the function returns. This can be a + lot faster. The return value from this method will be the return + value of your function.
+ +
refresh()
+
If your code does something to change the size of the editor + element (window resizes are already listened for), or unhides + it, you should probably follow up by calling this method to + ensure CodeMirror is still looking as intended.
+ +
getInputField() → textarea
+
Returns the hiden textarea used to read input.
+
getWrapperElement() → node
+
Returns the DOM node that represents the editor. Remove this + from your tree to delete an editor instance.
+
+ +

Finally, the CodeMirror object + itself has a method fromTextArea. This takes a + textarea DOM node as first argument and an optional configuration + object as second. It will replace the textarea with a CodeMirror + instance, and wire up the form of that textarea (if any) to make + sure the editor contents are put into the textarea when the form + is submitted. A CodeMirror instance created this way has two + additional methods:

+ +
+
save()
+
Copy the content of the editor into the textarea.
+ +
toTextArea()
+
Remove the editor, and restore the original textarea (with + the editor's current content).
+
+ +

Writing CodeMirror Modes

+ +

Modes typically consist of a JavaScript file and a CSS file. + The CSS file (see, for + example javascript.css) + defines the classes that will be used to style the syntactic + elements of the code, and the script contains the logic to + actually assign these classes to the right pieces of text.

+ +

You'll usually want to use some kind of prefix for your CSS + classes, so that they are unlikely to clash with other classes, + both those used by other modes and those defined by the page in + which CodeMirror is embedded.

+ +

The mode script should + call CodeMirror.defineMode to register itself with + CodeMirror. This function takes two arguments. The first should be + the name of the mode, for which you should use a lowercase string, + preferably one that is also the name of the files that define the + mode (i.e. "xml" is defined xml.js). The + second argument should be a function that, given a CodeMirror + configuration object (the thing passed to + the CodeMirror function) and a mode configuration + object (as in the mode + option), returns a mode object.

+ +

Typically, you should use this second argument + to defineMode as your module scope function (modes + should not leak anything into the global scope!), i.e. write your + whole mode inside this function.

+ +

The main responsibility of a mode script is parsing + the content of the editor. Depending on the language and the + amount of functionality desired, this can be done in really easy + or extremely complicated ways. Some parsers can be stateless, + meaning that they look at one element (token) of the code + at a time, with no memory of what came before. Most, however, will + need to remember something. This is done by using a state + object, which is an object that can be mutated every time a + new token is read.

+ +

Modes that use a state must define + a startState method on their mode object. This is a + function of no arguments that produces a state object to be used + at the start of a document.

+ +

The most important part of a mode object is + its token(stream, state) method. All modes must + define this method. It should read one token from the stream it is + given as an argument, optionally update its state, and return a + CSS class string, or null for tokens that do not have + to be styled.

+ +

By default, blank lines are simply skipped when + tokenizing a document. For languages that have significant blank + lines, you can define a blankLine(state) method on + your mode that will get called whenever a blank line is passed + over, so that it can update the parser state.

+ +

The stream object encapsulates a line of code + (tokens may never span lines) and our current position in that + line. It has the following API:

+ +
+
eol() → boolean
+
Returns true only if the stream is at the end of the + line.
+
sol() → boolean
+
Returns true only if the stream is at the start of the + line.
+ +
peek() → character
+
Returns the next character in the stream without advancing + it. Will return undefined at the end of the + line.
+
next() → character
+
Returns the next character in the stream and advances it. + Also returns undefined when no more characters are + available.
+ +
eat(match) → character
+
match can be a character, a regular expression, + or a function that takes a character and returns a boolean. If + the next character in the stream 'matches' the given argument, + it is consumed and returned. Otherwise, undefined + is returned.
+
eatWhile(match) → boolean
+
Repeatedly calls eat with the given argument, + until it fails. Returns true if any characters were eaten.
+
eatSpace() → boolean
+
Shortcut for eatWhile when matching + white-space.
+
skipToEnd()
+
Moves the position to the end of the line.
+
skipTo(ch) → boolean
+
Skips to the next occurrence of the given character, if + found. Returns true if the character was found.
+
match(pattern, consume, caseFold) → boolean
+
Act like a + multi-character eat—if consume is true + or not given—or a look-ahead that doesn't update the stream + position—if it is false. pattern can be either a + string or a regular expression starting with ^. + When it is a string, caseFold can be set to true to + make the match case-insensitive. When successfully matching a + regular expression, the returned value will be the array + returned by match, in case you need to extract + matched groups.
+ +
backUp(n)
+
Backs up the stream n characters. Backing it up + further than the start of the current token will cause things to + break, so be careful.
+
column() → integer
+
Returns the column (taking into account tabs) at which the + current token starts. Can be used to find out whether a token + starts a new line.
+
indentation() → integer
+
Tells you how far the current line has been indented, in + spaces. Corrects for tab characters.
+ +
current() → string
+
Get the string between the start of the current token and + the current stream position.
+
+ +

Because state object are mutated, and CodeMirror + needs to keep valid versions of a state around so that it can + restart a parse at any line, copies must be made of state objects. + The default algorithm used is that a new state object is created, + which gets all the properties of the old object. Any properties + which hold arrays get a copy of these arrays (since arrays tend to + be used as mutable stacks). When this is not correct, for example + because a mode mutates non-array properties of its state object, a + mode object should define a copyState method, + which is given a state and should return a safe copy of that + state.

+ +

If you want your mode to provide smart indentation + (see entermode + and tabMode when they + have a value of "indent"), you must define + an indent(state, textAfter) method on your mode + object.

+ +

The indentation method should inspect the given state object, + and optionally the textAfter string, which contains + the text on the line that is being indented, and return an + integer, the amount of spaces to indent. It should usually take + the indentUnit + option into account.

+ +

Finally, a mode may define + an electricChars property, which should hold a string + containing all the characters that should trigger the behaviour + described for + the electricChars + option.

+ +

So, to summarize, a mode must provide + a token method, and it may + provide startState, copyState, + and indent methods. For an example of a trivial mode, + see the diff mode, for a more + involved example, see + the JavaScript + mode.

+ +

Sometimes, it is useful for modes to nest—to have one + mode delegate work to another mode. An example of this kind of + mode is the mixed-mode HTML + mode. To implement such nesting, it is usually necessary to + create mode objects and copy states yourself. To create a mode + object, there are CodeMirror.getMode(options, + parserConfig), where the first argument is a configuration + object as passed to the mode constructor function, and the second + argument is a mode specification as in + the mode option. To copy a + state object, call CodeMirror.copyState(mode, state), + where mode is the mode that created the given + state.

+ +

To make indentation work properly in a nested parser, it is + advisable to give the startState method of modes that + are intended to be nested an optional argument that provides the + base indentation for the block of code. The JavaScript and CSS + parser do this, for example, to allow JavaScript and CSS code + inside the mixed-mode HTML mode to be properly indented.

+ +

Finally, it is possible to associate your mode, or a certain + configuration of your mode, with + a MIME type. For + example, the JavaScript mode associates itself + with text/javascript, and its JSON variant + with application/json. To do this, + call CodeMirror.defineMIME(mime, modeSpec), + where modeSpec can be a string or object specifying a + mode, as in the mode + option.

+ +
+ +
 
+ + + + + diff --git a/js/codemirror/mode/clike/clike.css b/js/codemirror/mode/clike/clike.css new file mode 100644 index 0000000000..052010f9db --- /dev/null +++ b/js/codemirror/mode/clike/clike.css @@ -0,0 +1,7 @@ +span.c-like-keyword {color: #90b;} +span.c-like-number {color: #291;} +span.c-like-comment {color: #a70;} +span.c-like-string {color: #a22;} +span.c-like-preprocessor {color: #049;} +span.c-like-var {color: #22b;} +span.c-like-annotation {color: #666;} diff --git a/js/codemirror/mode/clike/clike.js b/js/codemirror/mode/clike/clike.js new file mode 100644 index 0000000000..73f418e707 --- /dev/null +++ b/js/codemirror/mode/clike/clike.js @@ -0,0 +1,187 @@ +CodeMirror.defineMode("clike", function(config, parserConfig) { + var indentUnit = config.indentUnit, keywords = parserConfig.keywords, + cpp = parserConfig.useCPP, multiLineStrings = parserConfig.multiLineStrings, + $vars = parserConfig.$vars, atAnnotations = parserConfig.atAnnotations; + var isOperatorChar = /[+\-*&%=<>!?|]/; + + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + + var type; + function ret(tp, style) { + type = tp; + return style; + } + + function tokenBase(stream, state) { + var ch = stream.next(); + if (ch == '"' || ch == "'") + return chain(stream, state, tokenString(ch)); + else if (/[\[\]{}\(\),;\:\.]/.test(ch)) + return ret(ch); + else if (ch == "#" && cpp && state.startOfLine) { + stream.skipToEnd(); + return ret("directive", "c-like-preprocessor"); + } + else if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/) + return ret("number", "c-like-number"); + } + else if (ch == "/") { + if (stream.eat("*")) { + return chain(stream, state, tokenComment); + } + else if (stream.eat("/")) { + stream.skipToEnd(); + return ret("comment", "c-like-comment"); + } + else { + stream.eatWhile(isOperatorChar); + return ret("operator"); + } + } + else if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return ret("operator"); + } + else if (atAnnotations && ch == "@") { + stream.eatWhile(/[\w\$_]/); + return ret("annotation", "c-like-annotation"); + } + else if ($vars && ch == "$") { + stream.eatWhile(/[\w\$_]/); + return ret("word", "c-like-var"); + } + else { + stream.eatWhile(/[\w\$_]/); + if (keywords && keywords.propertyIsEnumerable(stream.current())) return ret("keyword", "c-like-keyword"); + return ret("word", "c-like-word"); + } + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) {end = true; break;} + escaped = !escaped && next == "\\"; + } + if (end || !(escaped || multiLineStrings)) + state.tokenize = tokenBase; + return ret("string", "c-like-string"); + }; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return ret("comment", "c-like-comment"); + } + + function Context(indented, column, type, align, prev) { + this.indented = indented; + this.column = column; + this.type = type; + this.align = align; + this.prev = prev; + } + + function pushContext(state, col, type) { + return state.context = new Context(state.indented, col, type, null, state.context); + } + function popContext(state) { + return state.context = state.context.prev; + } + + // Interface + + return { + startState: function(basecolumn) { + return { + tokenize: tokenBase, + context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), + indented: 0, + startOfLine: true + }; + }, + + token: function(stream, state) { + var ctx = state.context; + if (stream.sol()) { + if (ctx.align == null) ctx.align = false; + state.indented = stream.indentation(); + state.startOfLine = true; + } + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + if (type == "comment") return style; + if (ctx.align == null) ctx.align = true; + + if ((type == ";" || type == ":") && ctx.type == "statement") popContext(state); + else if (type == "{") pushContext(state, stream.column(), "}"); + else if (type == "[") pushContext(state, stream.column(), "]"); + else if (type == "(") pushContext(state, stream.column(), ")"); + else if (type == "}") { + if (ctx.type == "statement") ctx = popContext(state); + if (ctx.type == "}") ctx = popContext(state); + if (ctx.type == "statement") ctx = popContext(state); + } + else if (type == ctx.type) popContext(state); + else if (ctx.type == "}" || ctx.type == "top") pushContext(state, stream.column(), "statement"); + state.startOfLine = false; + return style; + }, + + indent: function(state, textAfter) { + if (state.tokenize != tokenBase) return 0; + var firstChar = textAfter && textAfter.charAt(0), ctx = state.context, closing = firstChar == ctx.type; + if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit); + else if (ctx.align) return ctx.column + (closing ? 0 : 1); + else return ctx.indented + (closing ? 0 : indentUnit); + }, + + electricChars: "{}" + }; +}); + +(function() { + function keywords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + var cKeywords = "auto if break int case long char register continue return default short do sizeof " + + "double static else struct entry switch extern typedef float union for unsigned " + + "goto while enum void const signed volatile"; + + CodeMirror.defineMIME("text/x-csrc", { + name: "clike", + useCPP: true, + keywords: keywords(cKeywords) + }); + CodeMirror.defineMIME("text/x-c++src", { + name: "clike", + useCPP: true, + keywords: keywords(cKeywords + " asm dynamic_cast namespace reinterpret_cast try bool explicit new " + + "static_cast typeid catch false operator template typename class friend private " + + "this using const_cast inline public throw virtual delete mutable protected true " + + "wchar_t") + }); + CodeMirror.defineMIME("text/x-java", { + name: "clike", + atAnnotations: true, + keywords: keywords("abstract assert boolean break byte case catch char class const continue default " + + "do double else enum extends false final finally float for goto if implements import " + + "instanceof int interface long native new null package private protected public " + + "return short static strictfp super switch synchronized this throw throws transient " + + "true try void volatile while") + }); +}()); diff --git a/js/codemirror/mode/clike/index.html b/js/codemirror/mode/clike/index.html new file mode 100644 index 0000000000..0836535d28 --- /dev/null +++ b/js/codemirror/mode/clike/index.html @@ -0,0 +1,101 @@ + + + + CodeMirror 2: C-like mode + + + + + + + + +

CodeMirror 2: C-like mode

+ +
+ + + +

Simple mode that tries to handle C-like languages as well as it + can. Takes two configuration parameters: keywords, an + object whose property names are the keywords in the language, + and useCPP, which determines whether C preprocessor + directives are recognized.

+ +

MIME types defined: text/x-csrc + (C code), text/x-c++src (C++ + code), text/x-java (Java code).

+ + diff --git a/js/codemirror/mode/css/css.css b/js/codemirror/mode/css/css.css new file mode 100644 index 0000000000..02d40ecb2b --- /dev/null +++ b/js/codemirror/mode/css/css.css @@ -0,0 +1,9 @@ +span.css-at {color: #708;} +span.css-unit {color: #281;} +span.css-value {color: #708;} +span.css-identifier {color: black;} +span.css-selector {color: #11B;} +span.css-important {color: #00F;} +span.css-colorcode {color: #299;} +span.css-comment {color: #A70;} +span.css-string {color: #A22;} diff --git a/js/codemirror/mode/css/css.js b/js/codemirror/mode/css/css.js new file mode 100644 index 0000000000..5faad7b2fc --- /dev/null +++ b/js/codemirror/mode/css/css.js @@ -0,0 +1,124 @@ +CodeMirror.defineMode("css", function(config) { + var indentUnit = config.indentUnit, type; + function ret(style, tp) {type = tp; return style;} + + function tokenBase(stream, state) { + var ch = stream.next(); + if (ch == "@") {stream.eatWhile(/\w/); return ret("css-at", stream.current());} + else if (ch == "/" && stream.eat("*")) { + state.tokenize = tokenCComment; + return tokenCComment(stream, state); + } + else if (ch == "<" && stream.eat("!")) { + state.tokenize = tokenSGMLComment; + return tokenSGMLComment(stream, state); + } + else if (ch == "=") ret(null, "compare"); + else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare"); + else if (ch == "\"" || ch == "'") { + state.tokenize = tokenString(ch); + return state.tokenize(stream, state); + } + else if (ch == "#") { + stream.eatWhile(/\w/); + return ret("css-selector", "hash"); + } + else if (ch == "!") { + stream.match(/^\s*\w*/); + return ret("css-important", "important"); + } + else if (/\d/.test(ch)) { + stream.eatWhile(/[\w.%]/); + return ret("css-unit", "unit"); + } + else if (/[,.+>*\/]/.test(ch)) { + return ret(null, "select-op"); + } + else if (/[;{}:\[\]]/.test(ch)) { + return ret(null, ch); + } + else { + stream.eatWhile(/[\w\\\-_]/); + return ret("css-identifier", "identifier"); + } + } + + function tokenCComment(stream, state) { + var maybeEnd = false, ch; + while ((ch = stream.next()) != null) { + if (maybeEnd && ch == "/") { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return ret("css-comment", "comment"); + } + + function tokenSGMLComment(stream, state) { + var dashes = 0, ch; + while ((ch = stream.next()) != null) { + if (dashes >= 2 && ch == ">") { + state.tokenize = tokenBase; + break; + } + dashes = (ch == "-") ? dashes + 1 : 0; + } + return ret("css-comment", "comment"); + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, ch; + while ((ch = stream.next()) != null) { + if (ch == quote && !escaped) + break; + escaped = !escaped && ch == "\\"; + } + if (!escaped) state.tokenize = tokenBase; + return ret("css-string", "string"); + }; + } + + return { + startState: function(base) { + return {tokenize: tokenBase, + baseIndent: base || 0, + stack: []}; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + + var context = state.stack[state.stack.length-1]; + if (type == "hash" && context == "rule") style = "css-colorcode"; + else if (style == "css-identifier") { + if (context == "rule") style = "css-value"; + else if (!context || context == "@media{") style = "css-selector"; + } + + if (context == "rule" && /^[\{\};]$/.test(type)) + state.stack.pop(); + if (type == "{") { + if (context == "@media") state.stack[state.stack.length-1] = "@media{"; + else state.stack.push("{"); + } + else if (type == "}") state.stack.pop(); + else if (type == "@media") state.stack.push("@media"); + else if (context != "rule" && context != "@media" && type != "comment") state.stack.push("rule"); + return style; + }, + + indent: function(state, textAfter) { + var n = state.stack.length; + if (/^\}/.test(textAfter)) + n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1; + return state.baseIndent + n * indentUnit; + }, + + electricChars: "}" + }; +}); + +CodeMirror.defineMIME("text/css", "css"); diff --git a/js/codemirror/mode/css/index.html b/js/codemirror/mode/css/index.html new file mode 100644 index 0000000000..ad895610f2 --- /dev/null +++ b/js/codemirror/mode/css/index.html @@ -0,0 +1,56 @@ + + + + CodeMirror 2: CSS mode + + + + + + + + +

CodeMirror 2: CSS mode

+
+ + +

MIME types defined: text/css.

+ + + diff --git a/js/codemirror/mode/diff/diff.css b/js/codemirror/mode/diff/diff.css new file mode 100644 index 0000000000..60c1379ed9 --- /dev/null +++ b/js/codemirror/mode/diff/diff.css @@ -0,0 +1,3 @@ +span.diff-rangeinfo {color: #a0b;} +span.diff-minus {color: #a22;} +span.diff-plus {color: #2b2;} diff --git a/js/codemirror/mode/diff/diff.js b/js/codemirror/mode/diff/diff.js new file mode 100644 index 0000000000..619d74e2af --- /dev/null +++ b/js/codemirror/mode/diff/diff.js @@ -0,0 +1,13 @@ +CodeMirror.defineMode("diff", function() { + return { + token: function(stream) { + var ch = stream.next(); + stream.skipToEnd(); + if (ch == "+") return "diff-plus"; + if (ch == "-") return "diff-minus"; + if (ch == "@") return "diff-rangeinfo"; + } + }; +}); + +CodeMirror.defineMIME("text/x-diff", "diff"); diff --git a/js/codemirror/mode/diff/index.html b/js/codemirror/mode/diff/index.html new file mode 100644 index 0000000000..2748f2fa8c --- /dev/null +++ b/js/codemirror/mode/diff/index.html @@ -0,0 +1,99 @@ + + + + CodeMirror 2: Diff mode + + + + + + + + +

CodeMirror 2: Diff mode

+
+ + +

MIME types defined: text/x-diff.

+ + + diff --git a/js/codemirror/mode/haskell/haskell.css b/js/codemirror/mode/haskell/haskell.css new file mode 100644 index 0000000000..41f9155563 --- /dev/null +++ b/js/codemirror/mode/haskell/haskell.css @@ -0,0 +1,25 @@ +span.hs-char, +span.hs-float, +span.hs-integer, +span.hs-string {color: #762;} + +span.hs-comment {color: #262;font-style: italic;} +span.hs-pragma {color: #555;font-style: italic;} + +span.hs-special, +span.hs-varid, +span.hs-varsym {color: #000;} + +span.hs-conid, +span.hs-consym {color: #b11;} + +span.hs-qualifier {color: #555;} + +span.hs-reservedid, +span.hs-reservedop {color: #730;} + +span.hs-prelude-varid, +span.hs-prelude-varsym {color: #30a;} +span.hs-prelude-conid {color: #b11;} + +span.hs-error {background-color: #fdd;} diff --git a/js/codemirror/mode/haskell/haskell.js b/js/codemirror/mode/haskell/haskell.js new file mode 100644 index 0000000000..759ff602c9 --- /dev/null +++ b/js/codemirror/mode/haskell/haskell.js @@ -0,0 +1,242 @@ +CodeMirror.defineMode("haskell", function(cmCfg, modeCfg) { + + function switchState(source, setState, f) { + setState(f); + return f(source, setState); + } + + // These should all be Unicode extended, as per the Haskell 2010 report + var smallRE = /[a-z_]/; + var largeRE = /[A-Z]/; + var digitRE = /[0-9]/; + var hexitRE = /[0-9A-Fa-f]/; + var octitRE = /[0-7]/; + var idRE = /[a-z_A-Z0-9']/; + var symbolRE = /[-!#$%&*+.\/<=>?@\\^|~:]/; + var specialRE = /[(),;[\]`{}]/; + var whiteCharRE = /[ \t\v\f]/; // newlines are handled in tokenizer + + function normal(source, setState) { + if (source.eatWhile(whiteCharRE)) { + return null; + } + + var ch = source.next(); + if (specialRE.test(ch)) { + if (ch == '{' && source.eat('-')) { + var t = "hs-comment"; + if (source.eat('#')) { + t = "hs-pragma"; + } + return switchState(source, setState, ncomment(t, 1)); + } + return "hs-special"; + } + + if (ch == '\'') { + if (source.eat('\\')) { + source.next(); // should handle other escapes here + } + else { + source.next(); + } + if (source.eat('\'')) { + return "hs-char"; + } + return "hs-error"; + } + + if (ch == '"') { + return switchState(source, setState, stringLiteral); + } + + if (largeRE.test(ch)) { + source.eatWhile(idRE); + if (source.eat('.')) { + return "hs-qualifier"; + } + return "hs-conid"; + } + + if (smallRE.test(ch)) { + source.eatWhile(idRE); + return "hs-varid"; + } + + if (digitRE.test(ch)) { + if (ch == '0') { + if (source.eat(/[xX]/)) { + source.eatWhile(hexitRE); // should require at least 1 + return "hs-integer"; + } + if (source.eat(/[oO]/)) { + source.eatWhile(octitRE); // should require at least 1 + return "hs-integer"; + } + } + source.eatWhile(digitRE); + var t = "hs-integer"; + if (source.eat('.')) { + t = "hs-float"; + source.eatWhile(digitRE); // should require at least 1 + } + if (source.eat(/[eE]/)) { + t = "hs-float"; + source.eat(/[-+]/); + source.eatWhile(digitRE); // should require at least 1 + } + return t; + } + + if (symbolRE.test(ch)) { + if (ch == '-' && source.eat(/-/)) { + source.eatWhile(/-/); + if (!source.eat(symbolRE)) { + source.skipToEnd(); + return "hs-comment"; + } + } + var t = "hs-varsym"; + if (ch == ':') { + t = "hs-consym"; + } + source.eatWhile(symbolRE); + return t; + } + + return "hs-error"; + } + + function ncomment(type, nest) { + if (nest == 0) { + return normal; + } + return function(source, setState) { + var currNest = nest; + while (!source.eol()) { + var ch = source.next(); + if (ch == '{' && source.eat('-')) { + ++currNest; + } + else if (ch == '-' && source.eat('}')) { + --currNest; + if (currNest == 0) { + setState(normal); + return type; + } + } + } + setState(ncomment(type, currNest)); + return type; + } + } + + function stringLiteral(source, setState) { + while (!source.eol()) { + var ch = source.next(); + if (ch == '"') { + setState(normal); + return "hs-string"; + } + if (ch == '\\') { + if (source.eol() || source.eat(whiteCharRE)) { + setState(stringGap); + return "hs-string"; + } + if (source.eat('&')) { + } + else { + source.next(); // should handle other escapes here + } + } + } + setState(normal); + return "hs-error"; + } + + function stringGap(source, setState) { + if (source.eat('\\')) { + return switchState(source, setState, stringLiteral); + } + source.next(); + setState(normal); + return "hs-error"; + } + + + var wellKnownWords = (function() { + var wkw = {}; + function setType(t) { + return function () { + for (var i = 0; i < arguments.length; i++) + wkw[arguments[i]] = t; + } + } + + setType("hs-reservedid")( + "case", "class", "data", "default", "deriving", "do", "else", "foreign", + "if", "import", "in", "infix", "infixl", "infixr", "instance", "let", + "module", "newtype", "of", "then", "type", "where", "_"); + + setType("hs-reservedop")( + "\.\.", ":", "::", "=", "\\", "\"", "<-", "->", "@", "~", "=>"); + + setType("hs-prelude-varsym")( + "!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<=", "=<<", + "==", ">", ">=", ">>", ">>=", "^", "^^", "||", "*", "**"); + + setType("hs-prelude-conid")( + "Bool", "Bounded", "Char", "Double", "EQ", "Either", "Enum", "Eq", + "False", "FilePath", "Float", "Floating", "Fractional", "Functor", "GT", + "IO", "IOError", "Int", "Integer", "Integral", "Just", "LT", "Left", + "Maybe", "Monad", "Nothing", "Num", "Ord", "Ordering", "Rational", "Read", + "ReadS", "Real", "RealFloat", "RealFrac", "Right", "Show", "ShowS", + "String", "True"); + + setType("hs-prelude-varid")( + "abs", "acos", "acosh", "all", "and", "any", "appendFile", "asTypeOf", + "asin", "asinh", "atan", "atan2", "atanh", "break", "catch", "ceiling", + "compare", "concat", "concatMap", "const", "cos", "cosh", "curry", + "cycle", "decodeFloat", "div", "divMod", "drop", "dropWhile", "either", + "elem", "encodeFloat", "enumFrom", "enumFromThen", "enumFromThenTo", + "enumFromTo", "error", "even", "exp", "exponent", "fail", "filter", + "flip", "floatDigits", "floatRadix", "floatRange", "floor", "fmap", + "foldl", "foldl1", "foldr", "foldr1", "fromEnum", "fromInteger", + "fromIntegral", "fromRational", "fst", "gcd", "getChar", "getContents", + "getLine", "head", "id", "init", "interact", "ioError", "isDenormalized", + "isIEEE", "isInfinite", "isNaN", "isNegativeZero", "iterate", "last", + "lcm", "length", "lex", "lines", "log", "logBase", "lookup", "map", + "mapM", "mapM_", "max", "maxBound", "maximum", "maybe", "min", "minBound", + "minimum", "mod", "negate", "not", "notElem", "null", "odd", "or", + "otherwise", "pi", "pred", "print", "product", "properFraction", + "putChar", "putStr", "putStrLn", "quot", "quotRem", "read", "readFile", + "readIO", "readList", "readLn", "readParen", "reads", "readsPrec", + "realToFrac", "recip", "rem", "repeat", "replicate", "return", "reverse", + "round", "scaleFloat", "scanl", "scanl1", "scanr", "scanr1", "seq", + "sequence", "sequence_", "show", "showChar", "showList", "showParen", + "showString", "shows", "showsPrec", "significand", "signum", "sin", + "sinh", "snd", "span", "splitAt", "sqrt", "subtract", "succ", "sum", + "tail", "take", "takeWhile", "tan", "tanh", "toEnum", "toInteger", + "toRational", "truncate", "uncurry", "undefined", "unlines", "until", + "unwords", "unzip", "unzip3", "userError", "words", "writeFile", "zip", + "zip3", "zipWith", "zipWith3"); + + return wkw; + })(); + + + + return { + startState: function () { return { f: normal }; }, + copyState: function (s) { return { f: s.f }; }, + + token: function(stream, state) { + var t = state.f(stream, function(s) { state.f = s; }); + var w = stream.current(); + return (w in wellKnownWords) ? wellKnownWords[w] : t; + } + }; + +}); + +CodeMirror.defineMIME("text/x-haskell", "haskell"); diff --git a/js/codemirror/mode/haskell/index.html b/js/codemirror/mode/haskell/index.html new file mode 100644 index 0000000000..0bf34d5703 --- /dev/null +++ b/js/codemirror/mode/haskell/index.html @@ -0,0 +1,59 @@ + + + + CodeMirror 2: Haskell mode + + + + + + + + +

CodeMirror 2: Haskell mode

+ +
+ + + +

MIME types defined: text/x-haskell.

+ + diff --git a/js/codemirror/mode/htmlmixed/htmlmixed.js b/js/codemirror/mode/htmlmixed/htmlmixed.js new file mode 100644 index 0000000000..1de5c9ee81 --- /dev/null +++ b/js/codemirror/mode/htmlmixed/htmlmixed.js @@ -0,0 +1,74 @@ +CodeMirror.defineMode("htmlmixed", function(config, parserConfig) { + var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true}); + var jsMode = CodeMirror.getMode(config, "javascript"); + var cssMode = CodeMirror.getMode(config, "css"); + + function html(stream, state) { + var style = htmlMode.token(stream, state.htmlState); + if (style == "xml-tag" && stream.current() == ">" && state.htmlState.context) { + if (/^script$/i.test(state.htmlState.context.tagName)) { + state.token = javascript; + state.localState = jsMode.startState(htmlMode.indent(state.htmlState, "")); + } + else if (/^style$/i.test(state.htmlState.context.tagName)) { + state.token = css; + state.localState = cssMode.startState(htmlMode.indent(state.htmlState, "")); + } + } + return style; + } + function maybeBackup(stream, pat, style) { + var cur = stream.current(); + var close = cur.search(pat); + if (close > -1) stream.backUp(cur.length - close); + return style; + } + function javascript(stream, state) { + if (stream.match(/^<\/\s*script\s*>/i, false)) { + state.token = html; + state.curState = null; + return html(stream, state); + } + return maybeBackup(stream, /<\/\s*script\s*>/, + jsMode.token(stream, state.localState)); + } + function css(stream, state) { + if (stream.match(/^<\/\s*style\s*>/i, false)) { + state.token = html; + state.localState = null; + return html(stream, state); + } + return maybeBackup(stream, /<\/\s*style\s*>/, + cssMode.token(stream, state.localState)); + } + + return { + startState: function() { + var state = htmlMode.startState(); + return {token: html, localState: null, htmlState: state}; + }, + + copyState: function(state) { + if (state.localState) + var local = CodeMirror.copyState(state.token == css ? cssMode : jsMode, state.localState); + return {token: state.token, localState: local, htmlState: CodeMirror.copyState(htmlMode, state.htmlState)}; + }, + + token: function(stream, state) { + return state.token(stream, state); + }, + + indent: function(state, textAfter) { + if (state.token == html || /^\s*<\//.test(textAfter)) + return htmlMode.indent(state.htmlState, textAfter); + else if (state.token == javascript) + return jsMode.indent(state.localState, textAfter); + else + return cssMode.indent(state.localState, textAfter); + }, + + electricChars: "/{}:" + } +}); + +CodeMirror.defineMIME("text/html", "htmlmixed"); diff --git a/js/codemirror/mode/htmlmixed/index.html b/js/codemirror/mode/htmlmixed/index.html new file mode 100644 index 0000000000..c661c98d54 --- /dev/null +++ b/js/codemirror/mode/htmlmixed/index.html @@ -0,0 +1,54 @@ + + + + CodeMirror 2: HTML mixed mode + + + + + + + + + + + + + +

CodeMirror 2: HTML mixed mode

+
+ + +

The HTML mixed mode depends on the XML, JavaScript, and CSS modes.

+ +

MIME types defined: text/html + (redefined, only takes effect if you load this parser after the + XML parser).

+ + + diff --git a/js/codemirror/mode/javascript/index.html b/js/codemirror/mode/javascript/index.html new file mode 100644 index 0000000000..7b528e041d --- /dev/null +++ b/js/codemirror/mode/javascript/index.html @@ -0,0 +1,78 @@ + + + + CodeMirror 2: JavaScript mode + + + + + + + + +

CodeMirror 2: JavaScript mode

+ +
+ + + +

JavaScript mode supports a single configuration + option, json, which will set the mode to expect JSON + data rather than a JavaScript program.

+ +

MIME types defined: text/javascript, application/json.

+ + diff --git a/js/codemirror/mode/javascript/javascript.css b/js/codemirror/mode/javascript/javascript.css new file mode 100644 index 0000000000..84fb1dfd4f --- /dev/null +++ b/js/codemirror/mode/javascript/javascript.css @@ -0,0 +1,6 @@ +span.js-keyword {color: #90b;} +span.js-atom {color: #291;} +span.js-variabledef {color: #00f;} +span.js-localvariable {color: #049;} +span.js-comment {color: #a70;} +span.js-string {color: #a22;} diff --git a/js/codemirror/mode/javascript/javascript.js b/js/codemirror/mode/javascript/javascript.js new file mode 100644 index 0000000000..0652165911 --- /dev/null +++ b/js/codemirror/mode/javascript/javascript.js @@ -0,0 +1,348 @@ +CodeMirror.defineMode("javascript", function(config, parserConfig) { + var indentUnit = config.indentUnit; + var jsonMode = parserConfig.json; + + // Tokenizer + + var keywords = function(){ + function kw(type) {return {type: type, style: "js-keyword"};} + var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"); + var operator = kw("operator"), atom = {type: "atom", style: "js-atom"}; + return { + "if": A, "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B, + "return": C, "break": C, "continue": C, "new": C, "delete": C, "throw": C, + "var": kw("var"), "function": kw("function"), "catch": kw("catch"), + "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"), + "in": operator, "typeof": operator, "instanceof": operator, + "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom + }; + }(); + + var isOperatorChar = /[+\-*&%=<>!?|]/; + + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + + function nextUntilUnescaped(stream, end) { + var escaped = false, next; + while ((next = stream.next()) != null) { + if (next == end && !escaped) + return false; + escaped = !escaped && next == "\\"; + } + return escaped; + } + + // Used as scratch variables to communicate multiple values without + // consing up tons of objects. + var type, content; + function ret(tp, style, cont) { + type = tp; content = cont; + return style; + } + + function jsTokenBase(stream, state) { + var ch = stream.next(); + if (ch == '"' || ch == "'") + return chain(stream, state, jsTokenString(ch)); + else if (/[\[\]{}\(\),;\:\.]/.test(ch)) + return ret(ch); + else if (ch == "0" && stream.eat(/x/i)) { + stream.eatWhile(/[\da-f]/i); + return ret("number", "js-atom"); + } + else if (/\d/.test(ch)) { + stream.match(/^\d*(?:\.\d*)?(?:e[+\-]?\d+)?/); + return ret("number", "js-atom"); + } + else if (ch == "/") { + if (stream.eat("*")) { + return chain(stream, state, jsTokenComment); + } + else if (stream.eat("/")) { + stream.skipToEnd(); + return ret("comment", "js-comment"); + } + else if (state.reAllowed) { + nextUntilUnescaped(stream, "/"); + stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla + return ret("regexp", "js-string"); + } + else { + stream.eatWhile(isOperatorChar); + return ret("operator", null, stream.current()); + } + } + else if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return ret("operator", null, stream.current()); + } + else { + stream.eatWhile(/[\w\$_]/); + var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word]; + return known ? ret(known.type, known.style, word) : + ret("variable", "js-variable", word); + } + } + + function jsTokenString(quote) { + return function(stream, state) { + if (!nextUntilUnescaped(stream, quote)) + state.tokenize = jsTokenBase; + return ret("string", "js-string"); + }; + } + + function jsTokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = jsTokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return ret("comment", "js-comment"); + } + + // Parser + + var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true}; + + function JSLexical(indented, column, type, align, prev, info) { + this.indented = indented; + this.column = column; + this.type = type; + this.prev = prev; + this.info = info; + if (align != null) this.align = align; + } + + function inScope(state, varname) { + for (var v = state.localVars; v; v = v.next) + if (v.name == varname) return true; + } + + function parseJS(state, style, type, content, stream) { + var cc = state.cc; + // Communicate our context to the combinators. + // (Less wasteful than consing up a hundred closures on every call.) + cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; + + if (!state.lexical.hasOwnProperty("align")) + state.lexical.align = true; + + while(true) { + var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement; + if (combinator(type, content)) { + while(cc.length && cc[cc.length - 1].lex) + cc.pop()(); + if (cx.marked) return cx.marked; + if (type == "variable" && inScope(state, content)) return "js-localvariable"; + return style; + } + } + } + + // Combinator utils + + var cx = {state: null, column: null, marked: null, cc: null}; + function pass() { + for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]); + } + function cont() { + pass.apply(null, arguments); + return true; + } + function register(varname) { + var state = cx.state; + if (state.context) { + cx.marked = "js-variabledef"; + for (var v = state.localVars; v; v = v.next) + if (v.name == varname) return; + state.localVars = {name: varname, next: state.localVars}; + } + } + + // Combinators + + var defaultVars = {name: "this", next: {name: "arguments"}}; + function pushcontext() { + if (!cx.state.context) cx.state.localVars = defaultVars; + cx.state.context = {prev: cx.state.context, vars: cx.state.localVars}; + } + function popcontext() { + cx.state.localVars = cx.state.context.vars; + cx.state.context = cx.state.context.prev; + } + function pushlex(type, info) { + var result = function() { + var state = cx.state; + state.lexical = new JSLexical(state.indented, cx.stream.column(), type, null, state.lexical, info) + }; + result.lex = true; + return result; + } + function poplex() { + var state = cx.state; + if (state.lexical.prev) { + if (state.lexical.type == ")") + state.indented = state.lexical.indented; + state.lexical = state.lexical.prev; + } + } + poplex.lex = true; + + function expect(wanted) { + return function expecting(type) { + if (type == wanted) return cont(); + else if (wanted == ";") return pass(); + else return cont(arguments.callee); + }; + } + + function statement(type) { + if (type == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex); + if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex); + if (type == "keyword b") return cont(pushlex("form"), statement, poplex); + if (type == "{") return cont(pushlex("}"), block, poplex); + if (type == ";") return cont(); + if (type == "function") return cont(functiondef); + if (type == "for") return cont(pushlex("form"), expect("("), pushlex(")"), forspec1, expect(")"), + poplex, statement, poplex); + if (type == "variable") return cont(pushlex("stat"), maybelabel); + if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"), + block, poplex, poplex); + if (type == "case") return cont(expression, expect(":")); + if (type == "default") return cont(expect(":")); + if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"), + statement, poplex, popcontext); + return pass(pushlex("stat"), expression, expect(";"), poplex); + } + function expression(type) { + if (atomicTypes.hasOwnProperty(type)) return cont(maybeoperator); + if (type == "function") return cont(functiondef); + if (type == "keyword c") return cont(expression); + if (type == "(") return cont(pushlex(")"), expression, expect(")"), poplex, maybeoperator); + if (type == "operator") return cont(expression); + if (type == "[") return cont(pushlex("]"), commasep(expression, "]"), poplex, maybeoperator); + if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator); + return cont(); + } + function maybeoperator(type, value) { + if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator); + if (type == "operator") return cont(expression); + if (type == ";") return; + if (type == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator); + if (type == ".") return cont(property, maybeoperator); + if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator); + } + function maybelabel(type) { + if (type == ":") return cont(poplex, statement); + return pass(maybeoperator, expect(";"), poplex); + } + function property(type) { + if (type == "variable") {cx.marked = "js-property"; return cont();} + } + function objprop(type) { + if (type == "variable") cx.marked = "js-property"; + if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression); + } + function commasep(what, end) { + function proceed(type) { + if (type == ",") return cont(what, proceed); + if (type == end) return cont(); + return cont(expect(end)); + } + return function commaSeparated(type) { + if (type == end) return cont(); + else return pass(what, proceed); + }; + } + function block(type) { + if (type == "}") return cont(); + return pass(statement, block); + } + function vardef1(type, value) { + if (type == "variable"){register(value); return cont(vardef2);} + return cont(); + } + function vardef2(type, value) { + if (value == "=") return cont(expression, vardef2); + if (type == ",") return cont(vardef1); + } + function forspec1(type) { + if (type == "var") return cont(vardef1, forspec2); + if (type == ";") return pass(forspec2); + if (type == "variable") return cont(formaybein); + return pass(forspec2); + } + function formaybein(type, value) { + if (value == "in") return cont(expression); + return cont(maybeoperator, forspec2); + } + function forspec2(type, value) { + if (type == ";") return cont(forspec3); + if (value == "in") return cont(expression); + return cont(expression, expect(";"), forspec3); + } + function forspec3(type) { + if (type != ")") cont(expression); + } + function functiondef(type, value) { + if (type == "variable") {register(value); return cont(functiondef);} + if (type == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, statement, popcontext); + } + function funarg(type, value) { + if (type == "variable") {register(value); return cont();} + } + + // Interface + + return { + startState: function(basecolumn) { + return { + tokenize: jsTokenBase, + reAllowed: true, + cc: [], + lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false), + localVars: null, + context: null, + indented: 0 + }; + }, + + token: function(stream, state) { + if (stream.sol()) { + if (!state.lexical.hasOwnProperty("align")) + state.lexical.align = false; + state.indented = stream.indentation(); + } + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + if (type == "comment") return style; + state.reAllowed = type == "operator" || type == "keyword c" || type.match(/^[\[{}\(,;:]$/); + return parseJS(state, style, type, content, stream); + }, + + indent: function(state, textAfter) { + if (state.tokenize != jsTokenBase) return 0; + var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, + type = lexical.type, closing = firstChar == type; + if (type == "vardef") return lexical.indented + 4; + else if (type == "form" && firstChar == "{") return lexical.indented; + else if (type == "stat" || type == "form") return lexical.indented + indentUnit; + else if (lexical.info == "switch" && !closing) + return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit); + else if (lexical.align) return lexical.column + (closing ? 0 : 1); + else return lexical.indented + (closing ? 0 : indentUnit); + }, + + electricChars: ":{}" + }; +}); + +CodeMirror.defineMIME("text/javascript", "javascript"); +CodeMirror.defineMIME("application/json", {name: "javascript", json: true}); diff --git a/js/codemirror/mode/php/index.html b/js/codemirror/mode/php/index.html new file mode 100644 index 0000000000..020e248982 --- /dev/null +++ b/js/codemirror/mode/php/index.html @@ -0,0 +1,52 @@ + + + + CodeMirror 2: PHP mode + + + + + + + + + + + + + + + +

CodeMirror 2: PHP mode

+ +
+ + + +

Simple HTML/PHP mode based on + the C-like mode. Depends on XML, + JavaScript, CSS, and C-like modes.

+ +

MIME types defined: application/x-httpd-php.

+ + diff --git a/js/codemirror/mode/php/php.js b/js/codemirror/mode/php/php.js new file mode 100644 index 0000000000..a23538f6b8 --- /dev/null +++ b/js/codemirror/mode/php/php.js @@ -0,0 +1,83 @@ +(function() { + function keywords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + var phpKeywords = + keywords("abstract and array as break case catch cfunction class clone const continue declare " + + "default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends " + + "final for foreach function global goto if implements interface instanceof namespace " + + "new or private protected public static switch throw try use var while xor"); + + CodeMirror.defineMode("php", function(config, parserConfig) { + var htmlMode = CodeMirror.getMode(config, "text/html"); + var jsMode = CodeMirror.getMode(config, "text/javascript"); + var cssMode = CodeMirror.getMode(config, "text/css"); + var phpMode = CodeMirror.getMode(config, {name: "clike", keywords: phpKeywords, multiLineStrings: true, $vars: true}); + + function dispatch(stream, state) { // TODO open PHP inside text/css + if (state.curMode == htmlMode) { + var style = htmlMode.token(stream, state.curState); + if (style == "xml-processing" && /^<\?/.test(stream.current())) { + state.curMode = phpMode; + state.curState = state.php; + state.curClose = /^\?>/; + } + else if (style == "xml-tag" && stream.current() == ">" && state.curState.context) { + if (/^script$/i.test(state.curState.context.tagName)) { + state.curMode = jsMode; + state.curState = jsMode.startState(htmlMode.indent(state.curState, "")); + state.curClose = /^<\/\s*script\s*>/i; + } + else if (/^style$/i.test(state.curState.context.tagName)) { + state.curMode = cssMode; + state.curState = cssMode.startState(htmlMode.indent(state.curState, "")); + state.curClose = /^<\/\s*style\s*>/i; + } + } + return style; + } + else if (stream.match(state.curClose, false)) { + state.curMode = htmlMode; + state.curState = state.html; + state.curClose = null; + return dispatch(stream, state); + } + else return state.curMode.token(stream, state.curState); + } + + return { + startState: function() { + var html = htmlMode.startState(); + return {html: html, + php: phpMode.startState(), + curMode: htmlMode, + curState: html, + curClose: null} + }, + + copyState: function(state) { + var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), + php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; + if (state.curState == html) cur = htmlNew; + else if (state.curState == php) cur = phpNew; + else cur = CodeMirror.copyState(state.curMode, state.curState); + return {html: htmlNew, php: phpNew, curMode: state.curMode, curState: cur, curClose: state.curClose}; + }, + + token: dispatch, + + indent: function(state, textAfter) { + if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) || + (state.curMode == phpMode && /^\?>/.test(textAfter))) + return htmlMode.indent(state.html, textAfter); + return state.curMode.indent(state.curState, textAfter); + }, + + electricChars: "/{}:" + } + }); +})(); + +CodeMirror.defineMIME("application/x-httpd-php", "php"); diff --git a/js/codemirror/mode/plsql/index.html b/js/codemirror/mode/plsql/index.html new file mode 100644 index 0000000000..b554160bec --- /dev/null +++ b/js/codemirror/mode/plsql/index.html @@ -0,0 +1,63 @@ + + + + CodeMirror 2: Oracle PL/SQL mode + + + + + + + + +

CodeMirror 2: Oracle PL/SQL mode

+ +
+ + + +

+ Simple mode that handles Oracle PL/SQL language (and Oracle SQL, of course). +

+ +

MIME type defined: text/x-plsql + (PLSQL code) + diff --git a/js/codemirror/mode/plsql/plsql.css b/js/codemirror/mode/plsql/plsql.css new file mode 100644 index 0000000000..77e8ab9b86 --- /dev/null +++ b/js/codemirror/mode/plsql/plsql.css @@ -0,0 +1,33 @@ +span.plsql-keyword { + color: blue; +} +span.plsql-var { + color: red; +} +span.plsql-comment { + color: #AA7700; +} +span.plsql-string { + color: green; +} +span.plsql-operator { + color: blue; +} +span.plsql-word { + color: black; +} +span.plsql-function { + color: darkorange; +} +span.plsql-sqlplus { + color: darkorange; +} +span.plsql-type { + color: purple; +} +span.plsql-separator { + color: #666666; +} +span.plsql-number { + color: darkcyan; +} diff --git a/js/codemirror/mode/plsql/plsql.js b/js/codemirror/mode/plsql/plsql.js new file mode 100644 index 0000000000..5e25944cae --- /dev/null +++ b/js/codemirror/mode/plsql/plsql.js @@ -0,0 +1,218 @@ +CodeMirror.defineMode("plsql", function(config, parserConfig) { + var indentUnit = config.indentUnit, + keywords = parserConfig.keywords, + functions = parserConfig.functions, + types = parserConfig.types, + sqlplus = parserConfig.sqlplus, + multiLineStrings = parserConfig.multiLineStrings; + var isOperatorChar = /[+\-*&%=<>!?:\/|]/; + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + + var type; + function ret(tp, style) { + type = tp; + return style; + } + + function tokenBase(stream, state) { + var ch = stream.next(); + // start of string? + if (ch == '"' || ch == "'") + return chain(stream, state, tokenString(ch)); + // is it one of the special signs []{}().,;? Seperator? + else if (/[\[\]{}\(\),;\.]/.test(ch)) + return ret(ch); + // start of a number value? + else if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/) + return ret("number", "plsql-number"); + } + // multi line comment or simple operator? + else if (ch == "/") { + if (stream.eat("*")) { + return chain(stream, state, tokenComment); + } + else { + stream.eatWhile(isOperatorChar); + return ret("operator", "plsql-operator"); + } + } + // single line comment or simple operator? + else if (ch == "-") { + if (stream.eat("-")) { + stream.skipToEnd(); + return ret("comment", "plsql-comment"); + } + else { + stream.eatWhile(isOperatorChar); + return ret("operator", "plsql-operator"); + } + } + // pl/sql variable? + else if (ch == "@" || ch == "$") { + stream.eatWhile(/[\w\d\$_]/); + return ret("word", "plsql-var"); + } + // is it a operator? + else if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return ret("operator", "plsql-operator"); + } + else { + // get the whole word + stream.eatWhile(/[\w\$_]/); + // is it one of the listed keywords? + if (keywords && keywords.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "plsql-keyword"); + // is it one of the listed functions? + if (functions && functions.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "plsql-function"); + // is it one of the listed types? + if (types && types.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "plsql-type"); + // is it one of the listed sqlplus keywords? + if (sqlplus && sqlplus.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "plsql-sqlplus"); + // default: just a "word" + return ret("word", "plsql-word"); + } + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) {end = true; break;} + escaped = !escaped && next == "\\"; + } + if (end || !(escaped || multiLineStrings)) + state.tokenize = tokenBase; + return ret("string", "plsql-string"); + }; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return ret("comment", "plsql-comment"); + } + + // Interface + + return { + startState: function(basecolumn) { + return { + tokenize: tokenBase, + indented: 0, + startOfLine: true + }; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + return style; + } + }; +}); + +(function() { + function keywords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + var cKeywords = "abort accept access add all alter and any array arraylen as asc assert assign at attributes audit " + + "authorization avg " + + "base_table begin between binary_integer body boolean by " + + "case cast char char_base check close cluster clusters colauth column comment commit compress connect " + + "connected constant constraint crash create current currval cursor " + + "data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete " + + "desc digits dispose distinct do drop " + + "else elsif enable end entry escape exception exception_init exchange exclusive exists exit external " + + "fast fetch file for force form from function " + + "generic goto grant group " + + "having " + + "identified if immediate in increment index indexes indicator initial initrans insert interface intersect " + + "into is " + + "key " + + "level library like limited local lock log logging long loop " + + "master maxextents maxtrans member minextents minus mislabel mode modify multiset " + + "new next no noaudit nocompress nologging noparallel not nowait number_base " + + "object of off offline on online only open option or order out " + + "package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior " + + "private privileges procedure public " + + "raise range raw read rebuild record ref references refresh release rename replace resource restrict return " + + "returning reverse revoke rollback row rowid rowlabel rownum rows run " + + "savepoint schema segment select separate session set share snapshot some space split sql start statement " + + "storage subtype successful synonym " + + "tabauth table tables tablespace task terminate then to trigger truncate type " + + "union unique unlimited unrecoverable unusable update use using " + + "validate value values variable view views " + + "when whenever where while with work"; + + var cFunctions = "abs acos add_months ascii asin atan atan2 average " + + "bfilename " + + "ceil chartorowid chr concat convert cos cosh count " + + "decode deref dual dump dup_val_on_index " + + "empty error exp " + + "false floor found " + + "glb greatest " + + "hextoraw " + + "initcap instr instrb isopen " + + "last_day least lenght lenghtb ln lower lpad ltrim lub " + + "make_ref max min mod months_between " + + "new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower " + + "nls_sort nls_upper nlssort no_data_found notfound null nvl " + + "others " + + "power " + + "rawtohex reftohex round rowcount rowidtochar rpad rtrim " + + "sign sin sinh soundex sqlcode sqlerrm sqrt stddev substr substrb sum sysdate " + + "tan tanh to_char to_date to_label to_multi_byte to_number to_single_byte translate true trunc " + + "uid upper user userenv " + + "variance vsize"; + + var cTypes = "bfile blob " + + "character clob " + + "dec " + + "float " + + "int integer " + + "mlslabel " + + "natural naturaln nchar nclob number numeric nvarchar2 " + + "real rowtype " + + "signtype smallint string " + + "varchar varchar2"; + + var cSqlplus = "appinfo arraysize autocommit autoprint autorecovery autotrace " + + "blockterminator break btitle " + + "cmdsep colsep compatibility compute concat copycommit copytypecheck " + + "define describe " + + "echo editfile embedded escape exec execute " + + "feedback flagger flush " + + "heading headsep " + + "instance " + + "linesize lno loboffset logsource long longchunksize " + + "markup " + + "native newpage numformat numwidth " + + "pagesize pause pno " + + "recsep recsepchar release repfooter repheader " + + "serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber " + + "sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix " + + "tab term termout time timing trimout trimspool ttitle " + + "underline " + + "verify version " + + "wrap"; + + CodeMirror.defineMIME("text/x-plsql", { + name: "plsql", + keywords: keywords(cKeywords), + functions: keywords(cFunctions), + types: keywords(cTypes), + sqlplus: keywords(cSqlplus) + }); +}()); diff --git a/js/codemirror/mode/python/LICENSE.txt b/js/codemirror/mode/python/LICENSE.txt new file mode 100644 index 0000000000..918866b42a --- /dev/null +++ b/js/codemirror/mode/python/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2010 Timothy Farrell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/js/codemirror/mode/python/index.html b/js/codemirror/mode/python/index.html new file mode 100644 index 0000000000..e9640e9e48 --- /dev/null +++ b/js/codemirror/mode/python/index.html @@ -0,0 +1,123 @@ + + + + CodeMirror 2: Python mode + + + + + + + + +

CodeMirror 2: Python mode

+ +
+ +

Configuration Options:

+
    +
  • version - 2/3 - The version of Python to recognize. Default is 2.
  • +
  • singleLineStringErrors - true/false - If you have a single-line string that is not terminated at the end of the line, this will show subsequent lines as errors if true, otherwise it will consider the newline as the end of the string. Default is false.
  • +
+ +

MIME types defined: text/x-python.

+ + diff --git a/js/codemirror/mode/python/python.css b/js/codemirror/mode/python/python.css new file mode 100644 index 0000000000..353fd963a1 --- /dev/null +++ b/js/codemirror/mode/python/python.css @@ -0,0 +1,23 @@ +span.py-delimiter, +span.py-special {color: #666666;} + +span.py-operator {color: #666666;} + +span.py-error {background-color: #660000; color: #FFFFFF;} + +span.py-keyword {color: #770088; font-weight: bold;} + +span.py-number {color: #228811;} + +span.py-identifier, +span.py-func {color: black;} + +span.py-type, +span.py-decorator {color: #0000FF;} + +span.py-comment {color: #AA7700;} + +span.py-string, +span.py-bytes, +span.py-raw, +span.py-unicode {color: #AA2222;} \ No newline at end of file diff --git a/js/codemirror/mode/python/python.js b/js/codemirror/mode/python/python.js new file mode 100644 index 0000000000..373f51ce07 --- /dev/null +++ b/js/codemirror/mode/python/python.js @@ -0,0 +1,318 @@ +CodeMirror.defineMode("python", function(conf) { + var ERRORCLASS = 'py-error'; + + function wordRegexp(words) { + return new RegExp("^((" + words.join(")|(") + "))\\b"); + } + + var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!]"); + var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]'); + var doubleOperators = new RegExp("^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"); + var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"); + var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"); + var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"); + + var wordOperators = wordRegexp(['and', 'or', 'not', 'is', 'in']); + var commonkeywords = ['as', 'assert', 'break', 'class', 'continue', + 'def', 'del', 'elif', 'else', 'except', 'finally', + 'for', 'from', 'global', 'if', 'import', + 'lambda', 'pass', 'raise', 'return', + 'try', 'while', 'with', 'yield']; + var commontypes = ['bool', 'classmethod', 'complex', 'dict', 'enumerate', + 'float', 'frozenset', 'int', 'list', 'object', + 'property', 'reversed', 'set', 'slice', 'staticmethod', + 'str', 'super', 'tuple', 'type']; + var py2 = {'types': ['basestring', 'buffer', 'file', 'long', 'unicode', + 'xrange'], + 'keywords': ['exec', 'print']}; + var py3 = {'types': ['bytearray', 'bytes', 'filter', 'map', 'memoryview', + 'open', 'range', 'zip'], + 'keywords': ['nonlocal']}; + + if (!!conf.mode.version && parseInt(conf.mode.version, 10) === 3) { + commonkeywords = commonkeywords.concat(py3.keywords); + commontypes = commontypes.concat(py3.types); + var stringPrefixes = new RegExp("^(([rb]|(br))?('{3}|\"{3}|['\"]))", "i"); + } else { + commonkeywords = commonkeywords.concat(py2.keywords); + commontypes = commontypes.concat(py2.types); + var stringPrefixes = new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i"); + } + var keywords = wordRegexp(commonkeywords); + var types = wordRegexp(commontypes); + + // tokenizers + function tokenBase(stream, state) { + // Handle scope changes + if (stream.sol()) { + var scopeOffset = state.scopes[0].offset; + if (stream.eatSpace()) { + var lineOffset = stream.indentation(); + if (lineOffset > scopeOffset) { + return 'py-indent'; + } else if (lineOffset < scopeOffset) { + return 'py-dedent'; + } + return 'whitespace'; + } else { + if (scopeOffset > 0) { + dedent(stream, state); + } + } + } + if (stream.eatSpace()) { + return 'py-space'; + } + + var ch = stream.peek(); + + // Handle Comments + if (ch === '#') { + stream.skipToEnd(); + return 'py-comment'; + } + + // Handle Number Literals + if (stream.match(/^[0-9\.]/, false)) { + var floatLiteral = false; + // Floats + if (stream.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)) { floatLiteral = true; } + if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; } + if (stream.match(/^\.\d+/)) { floatLiteral = true; } + if (floatLiteral) { + // Float literals may be "imaginary" + stream.eat(/J/i); + return 'py-literal'; + } + // Integers + var intLiteral = false; + // Hex + if (stream.match(/^0x[0-9a-f]+/i)) { intLiteral = true; } + // Binary + if (stream.match(/^0b[01]+/i)) { intLiteral = true; } + // Octal + if (stream.match(/^0o[0-7]+/i)) { intLiteral = true; } + // Decimal + if (stream.match(/^[1-9]\d*(e[\+\-]?\d+)?/)) { + // Decimal literals may be "imaginary" + stream.eat(/J/i); + // TODO - Can you have imaginary longs? + intLiteral = true; + } + // Zero by itself with no other piece of number. + if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; } + if (intLiteral) { + // Integer literals may be "long" + stream.eat(/L/i); + return 'py-literal'; + } + } + + // Handle Strings + if (stream.match(stringPrefixes)) { + state.tokenize = tokenStringFactory(stream.current()); + return state.tokenize(stream, state); + } + + // Handle operators and Delimiters + if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) { + return 'py-delimiter'; + } + if (stream.match(doubleOperators) + || stream.match(singleOperators) + || stream.match(wordOperators)) { + return 'py-operator'; + } + if (stream.match(singleDelimiters)) { + return 'py-delimiter'; + } + + if (stream.match(types)) { + return 'py-type'; + } + + if (stream.match(keywords)) { + return 'py-keyword'; + } + + if (stream.match(identifiers)) { + return 'py-identifier'; + } + + // Handle non-detected items + stream.next(); + return ERRORCLASS; + } + + function tokenStringFactory(delimiter) { + while ('rub'.indexOf(delimiter[0].toLowerCase()) >= 0) { + delimiter = delimiter.substr(1); + } + var delim_re = new RegExp(delimiter); + var singleline = delimiter.length == 1; + var OUTCLASS = 'py-string'; + + return function tokenString(stream, state) { + while (!stream.eol()) { + stream.eatWhile(/[^'"\\]/); + if (stream.eat('\\')) { + stream.next(); + if (singleline && stream.eol()) { + return OUTCLASS; + } + } else if (stream.match(delim_re)) { + state.tokenize = tokenBase; + return OUTCLASS; + } else { + stream.eat(/['"]/); + } + } + if (singleline) { + if (conf.mode.singleLineStringErrors) { + OUTCLASS = ERRORCLASS + } else { + state.tokenize = tokenBase; + } + } + return OUTCLASS; + }; + } + + function indent(stream, state, type) { + type = type || 'py'; + var indentUnit = 0; + if (type === 'py') { + for (var i = 0; i < state.scopes.length; ++i) { + if (state.scopes[i].type === 'py') { + indentUnit = state.scopes[i].offset + conf.indentUnit; + break; + } + } + } else { + indentUnit = stream.column() + stream.current().length; + } + state.scopes.unshift({ + offset: indentUnit, + type: type + }); + } + + function dedent(stream, state) { + if (state.scopes.length == 1) return; + if (state.scopes[0].type === 'py') { + var _indent = stream.indentation(); + var _indent_index = -1; + for (var i = 0; i < state.scopes.length; ++i) { + if (_indent === state.scopes[i].offset) { + _indent_index = i; + break; + } + } + if (_indent_index === -1) { + return true; + } + while (state.scopes[0].offset !== _indent) { + state.scopes.shift(); + } + return false + } else { + state.scopes.shift(); + return false; + } + } + + function tokenLexer(stream, state) { + var style = state.tokenize(stream, state); + var current = stream.current(); + + // Handle '.' connected identifiers + if (current === '.') { + style = state.tokenize(stream, state); + current = stream.current(); + if (style === 'py-identifier') { + return 'py-identifier'; + } else { + return ERRORCLASS; + } + } + + // Handle decorators + if (current === '@') { + style = state.tokenize(stream, state); + current = stream.current(); + if (style === 'py-identifier' + || current === '@staticmethod' + || current === '@classmethod') { + return 'py-decorator'; + } else { + return ERRORCLASS; + } + } + + // Handle scope changes. + if (current === 'pass' || current === 'return') { + state.dedent += 1; + } + if ((current === ':' && !state.lambda && state.scopes[0].type == 'py') + || style === 'py-indent') { + indent(stream, state); + } + var delimiter_index = '[({'.indexOf(current); + if (delimiter_index !== -1) { + indent(stream, state, '])}'.slice(delimiter_index, delimiter_index+1)); + } + if (style === 'py-dedent') { + if (dedent(stream, state)) { + return ERRORCLASS; + } + } + delimiter_index = '])}'.indexOf(current); + if (delimiter_index !== -1) { + if (dedent(stream, state)) { + return ERRORCLASS; + } + } + if (state.dedent > 0 && stream.eol() && state.scopes[0].type == 'py') { + if (state.scopes.length > 1) state.scopes.shift(); + state.dedent -= 1; + } + + return style; + } + + var external = { + startState: function(basecolumn) { + return { + tokenize: tokenBase, + scopes: [{offset:basecolumn || 0, type:'py'}], + lastToken: null, + lambda: false, + dedent: 0 + }; + }, + + token: function(stream, state) { + var style = tokenLexer(stream, state); + + state.lastToken = {style:style, content: stream.current()}; + + if (stream.eol() && stream.lambda) { + state.lambda = false; + } + + return style; + }, + + indent: function(state, textAfter) { + if (state.tokenize != tokenBase) { + return 0; + } + + return state.scopes[0].offset; + } + + }; + return external; +}); + +CodeMirror.defineMIME("text/x-python", "python"); diff --git a/js/codemirror/mode/rst/index.html b/js/codemirror/mode/rst/index.html new file mode 100644 index 0000000000..0831dff46f --- /dev/null +++ b/js/codemirror/mode/rst/index.html @@ -0,0 +1,526 @@ + + + + CodeMirror 2: reStructuredText mode + + + + + + + + +

CodeMirror 2: reStructuredText mode

+ +
+ + +

The reStructuredText mode supports one configuration parameter:

+
+
verbatim (string)
+
A name or MIME type of a mode that will be used for highlighting + verbatim blocks. By default, reStructuredText mode uses uniform color + for whole block of verbatim text if no mode is given.
+
+

If python mode is available (not a part of CodeMirror 2 yet), + it will be used for highlighting blocks containing Python/IPython terminal + sessions (blocks starting with >>> (for Python) or + In [num]: (for IPython). + +

MIME types defined: text/x-rst.

+ + + diff --git a/js/codemirror/mode/rst/rst.css b/js/codemirror/mode/rst/rst.css new file mode 100644 index 0000000000..90ba05e30b --- /dev/null +++ b/js/codemirror/mode/rst/rst.css @@ -0,0 +1,77 @@ + +span.rst-emphasis { + font-style: italic; +} + +span.rst-strong { + font-weight: bold; +} + +span.rst-interpreted { + color: #33cc66; +} + +span.rst-inline { + color: #3399cc; +} + +span.rst-role { + color: #666699; +} + +span.rst-list { + color: #cc0099; + font-weight: bold; +} + +span.rst-body { + color: #6699cc; +} + +span.rst-verbatim { + color: #3366ff; +} + +span.rst-comment { + color: #aa7700; +} + +span.rst-directive { + font-weight: bold; + color: #3399ff; +} + +span.rst-hyperlink { + font-weight: bold; + color: #3366ff; +} + +span.rst-footnote { + font-weight: bold; + color: #3333ff; +} + +span.rst-citation { + font-weight: bold; + color: #3300ff; +} + +span.rst-replacement { + color: #9933cc; +} + +span.rst-section { + font-weight: bold; + color: #cc0099; +} + +span.rst-directive-marker { + font-weight: bold; + color: #3399ff; +} + +span.rst-verbatim-marker { + font-weight: bold; + color: #9900ff; +} + diff --git a/js/codemirror/mode/rst/rst.js b/js/codemirror/mode/rst/rst.js new file mode 100644 index 0000000000..8dd5f281b8 --- /dev/null +++ b/js/codemirror/mode/rst/rst.js @@ -0,0 +1,335 @@ + +CodeMirror.defineMode('rst', function(config, options) { + function setState(state, fn, ctx) { + state.fn = fn; + setCtx(state, ctx); + } + + function setCtx(state, ctx) { + state.ctx = ctx || {}; + } + + function setNormal(state, ch) { + if (ch && (typeof ch !== 'string')) { + var str = ch.current(); + ch = str[str.length-1]; + } + + setState(state, normal, {back: ch}); + } + + function hasMode(mode) { + if (mode) { + var modes = CodeMirror.listModes(); + + for (var i in modes) { + if (modes[i] == mode) { + return true; + } + } + } + + return false; + } + + function getMode(mode) { + if (hasMode(mode)) { + return CodeMirror.getMode(config, mode); + } else { + return null; + } + } + + var verbatimMode = getMode(options.verbatim); + var pythonMode = getMode('python'); + + var reSection = /^[!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]/; + var reDirective = /^\s*\w([-:.\w]*\w)?::(\s|$)/; + var reHyperlink = /^\s*_[\w-]+:(\s|$)/; + var reFootnote = /^\s*\[(\d+|#)\](\s|$)/; + var reCitation = /^\s*\[[A-Za-z][\w-]*\](\s|$)/; + var reFootnoteRef = /^\[(\d+|#)\]_/; + var reCitationRef = /^\[[A-Za-z][\w-]*\]_/; + var reDirectiveMarker = /^\.\.(\s|$)/; + var reVerbatimMarker = /^::\s*$/; + var rePreInline = /^[-\s"([{/:.,;!?\\_]/; + var reEnumeratedList = /^\s*((\d+|[A-Za-z#])[.)]|\((\d+|[A-Z-a-z#])\))\s/; + var reBulletedList = /^\s*[-\+\*]\s/; + var reExamples = /^\s+(>>>|In \[\d+\]:)\s/; + + function normal(stream, state) { + var ch, sol, i; + + if (stream.eat(/\\/)) { + ch = stream.next(); + setNormal(state, ch); + return null; + } + + sol = stream.sol(); + + if (sol && (ch = stream.eat(reSection))) { + for (i = 0; stream.eat(ch); i++); + + if (i >= 3 && stream.match(/^\s*$/)) { + setNormal(state, null); + return 'rst-section'; + } else { + stream.backUp(i + 1); + } + } + + if (sol && stream.match(reDirectiveMarker)) { + if (!stream.eol()) { + setState(state, directive); + } + + return 'rst-directive-marker'; + } + + if (stream.match(reVerbatimMarker)) { + if (!verbatimMode) { + setState(state, verbatim); + } else { + var mode = verbatimMode; + + setState(state, verbatim, { + mode: mode, + local: mode.startState() + }); + } + + return 'rst-verbatim-marker'; + } + + if (sol && stream.match(reExamples, false)) { + if (!pythonMode) { + setState(state, verbatim); + return 'rst-verbatim-marker'; + } else { + var mode = pythonMode; + + setState(state, verbatim, { + mode: mode, + local: mode.startState() + }); + + return null; + } + } + + if (sol && (stream.match(reEnumeratedList) || + stream.match(reBulletedList))) { + setNormal(state, stream); + return 'rst-list'; + } + + function testBackward(re) { + return sol || !state.ctx.back || re.test(state.ctx.back); + } + + function testForward(re) { + return stream.eol() || stream.match(re, false); + } + + function testInline(re) { + return stream.match(re) && testBackward(/\W/) && testForward(/\W/); + } + + if (testInline(reFootnoteRef)) { + setNormal(state, stream); + return 'rst-footnote'; + } + + if (testInline(reCitationRef)) { + setNormal(state, stream); + return 'rst-citation'; + } + + ch = stream.next(); + + if (testBackward(rePreInline)) { + if ((ch === ':' || ch === '|') && stream.eat(/\S/)) { + var token; + + if (ch === ':') { + token = 'rst-role'; + } else { + token = 'rst-replacement'; + } + + setState(state, inline, { + ch: ch, + wide: false, + prev: null, + token: token + }); + + return token; + } + + if (ch === '*' || ch === '`') { + var orig = ch, + wide = false; + + ch = stream.next(); + + if (ch == orig) { + wide = true; + ch = stream.next(); + } + + if (ch && !/\s/.test(ch)) { + var token; + + if (orig === '*') { + token = wide ? 'rst-strong' : 'rst-emphasis'; + } else { + token = wide ? 'rst-inline' : 'rst-interpreted'; + } + + setState(state, inline, { + ch: orig, // inline() has to know what to search for + wide: wide, // are we looking for `ch` or `chch` + prev: null, // terminator must not be preceeded with whitespace + token: token // I don't want to recompute this all the time + }); + + return token; + } + } + } + + setNormal(state, ch); + return null; + } + + function inline(stream, state) { + var ch = stream.next(), + token = state.ctx.token; + + function finish(ch) { + state.ctx.prev = ch; + return token; + } + + if (ch != state.ctx.ch) { + return finish(ch); + } + + if (/\s/.test(state.ctx.prev)) { + return finish(ch); + } + + if (state.ctx.wide) { + ch = stream.next(); + + if (ch != state.ctx.ch) { + return finish(ch); + } + } + + if (!stream.eol() && !rePostInline.test(stream.peek())) { + if (state.ctx.wide) { + stream.backUp(1); + } + + return finish(ch); + } + + setState(state, normal); + setNormal(state, ch); + + return token; + } + + function directive(stream, state) { + var token = null; + + if (stream.match(reDirective)) { + token = 'rst-directive'; + } else if (stream.match(reHyperlink)) { + token = 'rst-hyperlink'; + } else if (stream.match(reFootnote)) { + token = 'rst-footnote'; + } else if (stream.match(reCitation)) { + token = 'rst-citation'; + } else { + stream.eatSpace(); + + if (stream.eol()) { + setNormal(state, stream); + return null; + } else { + stream.skipToEnd(); + setState(state, comment); + return 'rst-comment'; + } + } + + setState(state, body, {start: true}); + return token; + } + + function body(stream, state) { + var token = 'rst-body'; + + if (!state.ctx.start || stream.sol()) { + return block(stream, state, token); + } + + stream.skipToEnd(); + setCtx(state); + + return token; + } + + function comment(stream, state) { + return block(stream, state, 'rst-comment'); + } + + function verbatim(stream, state) { + if (!verbatimMode) { + return block(stream, state, 'rst-verbatim'); + } else { + if (stream.sol()) { + if (!stream.eatSpace()) { + setNormal(state, stream); + } + + return null; + } + + return verbatimMode.token(stream, state.ctx.local); + } + } + + function block(stream, state, token) { + if (stream.eol() || stream.eatSpace()) { + stream.skipToEnd(); + return token; + } else { + setNormal(state, stream); + return null; + } + } + + return { + startState: function() { + return {fn: normal, ctx: {}}; + }, + + copyState: function(state) { + return {fn: state.fn, ctx: state.ctx}; + }, + + token: function(stream, state) { + var token = state.fn(stream, state); + return token; + } + }; +}); + +CodeMirror.defineMIME("text/x-rst", "rst"); + diff --git a/js/codemirror/mode/smalltalk/index.html b/js/codemirror/mode/smalltalk/index.html new file mode 100644 index 0000000000..fe56b58911 --- /dev/null +++ b/js/codemirror/mode/smalltalk/index.html @@ -0,0 +1,56 @@ + + + + CodeMirror 2: Smalltalk mode + + + + + + + + +

CodeMirror 2: Smalltalk mode

+ +
+ + + +

Simple Smalltalk mode.

+ +

MIME types defined: text/x-stsrc.

+ + diff --git a/js/codemirror/mode/smalltalk/smalltalk.css b/js/codemirror/mode/smalltalk/smalltalk.css new file mode 100644 index 0000000000..7c2daa49dc --- /dev/null +++ b/js/codemirror/mode/smalltalk/smalltalk.css @@ -0,0 +1,5 @@ +span.st-keyword {color: #90b;} +span.st-number {color: #291;} +span.st-comment {color: #a70;} +span.st-string {color: #a22;} +span.st-var {color: #22b;} diff --git a/js/codemirror/mode/smalltalk/smalltalk.js b/js/codemirror/mode/smalltalk/smalltalk.js new file mode 100644 index 0000000000..763f70de88 --- /dev/null +++ b/js/codemirror/mode/smalltalk/smalltalk.js @@ -0,0 +1,122 @@ +CodeMirror.defineMode("smalltalk", function(config, parserConfig) { + var keywords = {"true": 1, "false": 1, nil: 1, self: 1, "super": 1, thisContext: 1}; + var indentUnit = config.indentUnit; + + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + + var type; + function ret(tp, style) { + type = tp; + return style; + } + + function tokenBase(stream, state) { + var ch = stream.next(); + if (ch == '"') + return chain(stream, state, tokenComment(ch)); + else if (ch == "'") + return chain(stream, state, tokenString(ch)); + else if (ch == "#") { + stream.eatWhile(/[\w\$_]/); + return ret("string", "st-string"); + } + else if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/) + return ret("number", "st-number"); + } + else if (/[\[\]()]/.test(ch)) { + return ret(ch, null); + } + else { + stream.eatWhile(/[\w\$_]/); + if (keywords && keywords.propertyIsEnumerable(stream.current())) return ret("keyword", "st-keyword"); + return ret("word", "st-word"); + } + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) {end = true; break;} + escaped = !escaped && next == "\\"; + } + if (end || !(escaped)) + state.tokenize = tokenBase; + return ret("string", "st-string"); + }; + } + + function tokenComment(quote) { + return function(stream, state) { + var next, end = false; + while ((next = stream.next()) != null) { + if (next == quote) {end = true; break;} + } + if (end) + state.tokenize = tokenBase; + return ret("comment", "st-comment"); + }; + } + + function Context(indented, column, type, align, prev) { + this.indented = indented; + this.column = column; + this.type = type; + this.align = align; + this.prev = prev; + } + + function pushContext(state, col, type) { + return state.context = new Context(state.indented, col, type, null, state.context); + } + function popContext(state) { + return state.context = state.context.prev; + } + + // Interface + + return { + startState: function(basecolumn) { + return { + tokenize: tokenBase, + context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), + indented: 0, + startOfLine: true + }; + }, + + token: function(stream, state) { + var ctx = state.context; + if (stream.sol()) { + if (ctx.align == null) ctx.align = false; + state.indented = stream.indentation(); + state.startOfLine = true; + } + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + if (type == "comment") return style; + if (ctx.align == null) ctx.align = true; + + if (type == "[") pushContext(state, stream.column(), "]"); + else if (type == "(") pushContext(state, stream.column(), ")"); + else if (type == ctx.type) popContext(state); + state.startOfLine = false; + return style; + }, + + indent: function(state, textAfter) { + if (state.tokenize != tokenBase) return 0; + var firstChar = textAfter && textAfter.charAt(0), ctx = state.context, closing = firstChar == ctx.type; + if (ctx.align) return ctx.column + (closing ? 0 : 1); + else return ctx.indented + (closing ? 0 : indentUnit); + }, + + electricChars: "]" + }; +}); + +CodeMirror.defineMIME("text/x-stsrc", {name: "smalltalk"}); diff --git a/js/codemirror/mode/stex/index.html b/js/codemirror/mode/stex/index.html new file mode 100644 index 0000000000..73b07ac13e --- /dev/null +++ b/js/codemirror/mode/stex/index.html @@ -0,0 +1,96 @@ + + + + CodeMirror 2: sTeX mode + + + + + + + + +

CodeMirror 2: sTeX mode

+
+ + +

MIME types defined: text/stex.

+ + + diff --git a/js/codemirror/mode/stex/stex.css b/js/codemirror/mode/stex/stex.css new file mode 100644 index 0000000000..64b975e98d --- /dev/null +++ b/js/codemirror/mode/stex/stex.css @@ -0,0 +1,20 @@ +span.css-at {color: #708;} +span.css-unit {color: #281;} +span.css-value {color: #708;} +span.css-identifier {color: black;} +span.css-selector {color: #11B;} +span.css-important {color: #00F;} +span.css-colorcode {color: #299;} +span.css-comment {color: #A70;} +span.css-string {color: #A22;} + +span.stex-unit { color: #281; } +span.stex-identifier { color: black; } +span.stex-slash { color: #FAA; } +span.stex-command { color: #00F; } +span.stex-comment { color: #A70; } +span.stex-import { color: #00F; } +span.stex-filepath { color: #852626; } +span.stex-module { color: #852626; } +span.stex-error { text-decoration: underline; color: red; } +span.stex-string { color: #A22; } diff --git a/js/codemirror/mode/stex/stex.js b/js/codemirror/mode/stex/stex.js new file mode 100644 index 0000000000..3106e3be0c --- /dev/null +++ b/js/codemirror/mode/stex/stex.js @@ -0,0 +1,167 @@ +/* + * Author: Constantin Jucovschi (c.jucovschi@jacobs-university.de) + * Licence: MIT + */ + +CodeMirror.defineMode("stex", function(cmCfg, modeCfg) +{ + function pushCommand(state, command) { + state.cmdState.push(command); + } + + function peekCommand(state) { + if (state.cmdState.length>0) + return state.cmdState[state.cmdState.length-1]; + else + return null; + } + + function popCommand(state) { + if (state.cmdState.length>0) { + var plug = state.cmdState.pop(); + plug.closeBracket(); + } + } + + function applyMostPowerful(state) { + var context = state.cmdState; + for (var i = context.length - 1; i >= 0; i--) { + var plug = context[i]; + if (plug.name=="DEFAULT") + continue; + return plug.styleIdentifier(); + } + return "stex-identifier"; + } + + function addPluginPattern(pluginName, cmdStyle, brackets, styles) { + return function () { + this.name=pluginName; + this.bracketNo = 0; + this.style=cmdStyle; + this.styles = styles; + this.brackets = brackets; + + this.styleIdentifier = function(content) { + if (this.bracketNo<=this.styles.length) + return this.styles[this.bracketNo-1]; + else + return null; + }; + this.openBracket = function(content) { + this.bracketNo++; + return "stex-bracket"; + }; + this.closeBracket = function(content) { + }; + } + } + + var plugins = new Array(); + + plugins["importmodule"] = addPluginPattern("importmodule", "stex-command", "{[", ["stex-filepath", "stex-module"]); + plugins["documentclass"] = addPluginPattern("documentclass", "stex-command", "{[", ["", "stex-unit"]); + plugins["usepackage"] = addPluginPattern("documentclass", "stex-command", "[", ["stex-unit"]); + plugins["begin"] = addPluginPattern("documentclass", "stex-command", "[", ["stex-unit"]); + plugins["end"] = addPluginPattern("documentclass", "stex-command", "[", ["stex-unit"]); + + plugins["DEFAULT"] = function () { + this.name="DEFAULT"; + this.style="stex-command"; + + this.styleIdentifier = function(content) { + }; + this.openBracket = function(content) { + }; + this.closeBracket = function(content) { + }; + }; + + function setState(state, f) { + state.f = f; + } + + function normal(source, state) { + if (source.match(/^\\[a-z]+/)) { + var cmdName = source.current(); + cmdName = cmdName.substr(1, cmdName.length-1); + var plug = plugins[cmdName]; + if (typeof(plug) == 'undefined') { + plug = plugins["DEFAULT"]; + } + plug = new plug(); + pushCommand(state, plug); + setState(state, beginParams); + return plug.style; + } + + var ch = source.next(); + if (ch == "%") { + setState(state, inCComment); + return "stex-comment"; + } + else if (ch=='}' || ch==']') { + plug = peekCommand(state); + if (plug) { + plug.closeBracket(ch); + setState(state, beginParams); + } else + return "stex-error"; + return "stex-bracket"; + } else if (ch=='{' || ch=='[') { + plug = plugins["DEFAULT"]; + plug = new plug(); + pushCommand(state, plug); + return "stex-bracket"; + } + else if (/\d/.test(ch)) { + source.eatWhile(/[\w.%]/); + return "stex-unit"; + } + else { + source.eatWhile(/[\w-_]/); + return applyMostPowerful(state); + } + } + + function inCComment(source, state) { + source.skipToEnd(); + setState(state, normal); + return "css-comment"; + } + + function beginParams(source, state) { + var ch = source.peek(); + if (ch == '{' || ch == '[') { + var lastPlug = peekCommand(state); + var style = lastPlug.openBracket(ch); + source.eat(ch); + setState(state, normal); + return "stex-bracket"; + } + if (/[ \t\r]/.test(ch)) { + source.eat(ch); + return null; + } + setState(state, normal); + lastPlug = peekCommand(state); + if (lastPlug) { + popCommand(state); + } + return normal(source, state); + } + + return { + startState: function() { return { f:normal, cmdState:[] }; }, + copyState: function(s) { return { f: s.f, cmdState: s.cmdState.slice(0, s.cmdState.length) }; }, + + token: function(stream, state) { + var t = state.f(stream, state); + var w = stream.current(); + return t; + } + }; +}); + + +CodeMirror.defineMIME("text/x-stex", "stex"); diff --git a/js/codemirror/mode/xml/index.html b/js/codemirror/mode/xml/index.html new file mode 100644 index 0000000000..5ad7c63fe8 --- /dev/null +++ b/js/codemirror/mode/xml/index.html @@ -0,0 +1,42 @@ + + + + CodeMirror 2: XML mode + + + + + + + + +

CodeMirror 2: XML mode

+
+ +

The XML mode supports two configuration parameters:

+
+
htmlMode (boolean)
+
This switches the mode to parse HTML instead of XML. This + means attributes do not have to be quoted, and some elements + (such as br) do not require a closing tag.
+
alignCDATA (boolean)
+
Setting this to true will force the opening tag of CDATA + blocks to not be indented.
+
+ +

MIME types defined: application/xml, text/html.

+ + diff --git a/js/codemirror/mode/xml/xml.css b/js/codemirror/mode/xml/xml.css new file mode 100644 index 0000000000..86845faa63 --- /dev/null +++ b/js/codemirror/mode/xml/xml.css @@ -0,0 +1,7 @@ +span.xml-tag {color: #a0b;} +span.xml-attribute {color: #281;} +span.xml-attname {color: #00f;} +span.xml-comment {color: #a70;} +span.xml-cdata {color: #48a;} +span.xml-processing {color: #999;} +span.xml-entity {color: #a22;} diff --git a/js/codemirror/mode/xml/xml.js b/js/codemirror/mode/xml/xml.js new file mode 100644 index 0000000000..1d92c4e7b8 --- /dev/null +++ b/js/codemirror/mode/xml/xml.js @@ -0,0 +1,206 @@ +CodeMirror.defineMode("xml", function(config, parserConfig) { + var indentUnit = config.indentUnit; + var Kludges = parserConfig.htmlMode ? { + autoSelfClosers: {"br": true, "img": true, "hr": true, "link": true, "input": true, + "meta": true, "col": true, "frame": true, "base": true, "area": true}, + doNotIndent: {"pre": true, "!cdata": true}, + allowUnquoted: true + } : {autoSelfClosers: {}, doNotIndent: {"!cdata": true}, allowUnquoted: false}; + var alignCDATA = parserConfig.alignCDATA; + + // Return variables for tokenizers + var tagName, type; + + function inText(stream, state) { + function chain(parser) { + state.tokenize = parser; + return parser(stream, state); + } + + var ch = stream.next(); + if (ch == "<") { + if (stream.eat("!")) { + if (stream.eat("[")) { + if (stream.match("CDATA[")) return chain(inBlock("xml-cdata", "]]>")); + else return null; + } + else if (stream.match("--")) return chain(inBlock("xml-comment", "-->")); + else if (stream.match("DOCTYPE")) { + stream.eatWhile(/[\w\._\-]/); + return chain(inBlock("xml-doctype", ">")); + } + else return null; + } + else if (stream.eat("?")) { + stream.eatWhile(/[\w\._\-]/); + state.tokenize = inBlock("xml-processing", "?>"); + return "xml-processing"; + } + else { + type = stream.eat("/") ? "closeTag" : "openTag"; + stream.eatSpace(); + tagName = ""; + var c; + while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c; + state.tokenize = inTag; + return "xml-tag"; + } + } + else if (ch == "&") { + stream.eatWhile(/[^;]/); + stream.eat(";"); + return "xml-entity"; + } + else { + stream.eatWhile(/[^&<]/); + return null; + } + } + + function inTag(stream, state) { + var ch = stream.next(); + if (ch == ">" || (ch == "/" && stream.eat(">"))) { + state.tokenize = inText; + type = ch == ">" ? "endTag" : "selfcloseTag"; + return "xml-tag"; + } + else if (ch == "=") { + type = "equals"; + return null; + } + else if (/[\'\"]/.test(ch)) { + state.tokenize = inAttribute(ch); + return state.tokenize(stream, state); + } + else { + stream.eatWhile(/[^\s\u00a0=<>\"\'\/?]/); + return "xml-word"; + } + } + + function inAttribute(quote) { + return function(stream, state) { + while (!stream.eol()) { + if (stream.next() == quote) { + state.tokenize = inTag; + break; + } + } + return "xml-attribute"; + }; + } + + function inBlock(style, terminator) { + return function(stream, state) { + while (!stream.eol()) { + if (stream.match(terminator)) { + state.tokenize = inText; + break; + } + stream.next(); + } + return style; + }; + } + + var curState, setStyle; + function pass() { + for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]); + } + function cont() { + pass.apply(null, arguments); + return true; + } + + function pushContext(tagName, startOfLine) { + var noIndent = Kludges.doNotIndent.hasOwnProperty(tagName) || (curState.context && curState.context.noIndent); + curState.context = { + prev: curState.context, + tagName: tagName, + indent: curState.indented, + startOfLine: startOfLine, + noIndent: noIndent + }; + } + function popContext() { + if (curState.context) curState.context = curState.context.prev; + } + + function element(type) { + if (type == "openTag") {curState.tagName = tagName; return cont(attributes, endtag(curState.startOfLine));} + else if (type == "closeTag") {popContext(); return cont(endclosetag);} + else if (type == "xml-cdata") { + if (!curState.context || curState.context.name != "!cdata") pushContext("!cdata"); + if (curState.tokenize == inText) popContext(); + return cont(); + } + else return cont(); + } + function endtag(startOfLine) { + return function(type) { + if (type == "selfcloseTag" || + (type == "endTag" && Kludges.autoSelfClosers.hasOwnProperty(curState.tagName.toLowerCase()))) + return cont(); + if (type == "endTag") {pushContext(curState.tagName, startOfLine); return cont();} + return cont(); + }; + } + function endclosetag(type) { + if (type == "endTag") return cont(); + return pass(); + } + + function attributes(type) { + if (type == "xml-word") {setStyle = "xml-attname"; return cont(attributes);} + if (type == "equals") return cont(attvalue, attributes); + return pass(); + } + function attvalue(type) { + if (type == "xml-word" && Kludges.allowUnquoted) {setStyle = "xml-attribute"; return cont();} + if (type == "xml-attribute") return cont(); + return pass(); + } + + return { + startState: function() { + return {tokenize: inText, cc: [], indented: 0, startOfLine: true, tagName: null, context: null}; + }, + + token: function(stream, state) { + if (stream.sol()) { + state.startOfLine = true; + state.indented = stream.indentation(); + } + if (stream.eatSpace()) return null; + + setStyle = type = tagName = null; + var style = state.tokenize(stream, state); + if ((style || type) && style != "xml-comment") { + curState = state; + while (true) { + var comb = state.cc.pop() || element; + if (comb(type || style)) break; + } + } + state.startOfLine = false; + return setStyle || style; + }, + + indent: function(state, textAfter) { + var context = state.context; + if (context && context.noIndent) return 0; + if (alignCDATA && / + + + CodeMirror + + + + + + +

{ } CodeMirror

+ +
+/* Old release history */
+
+
+ +

17-12-2010: Version 0.92:

+
    +
  • Make CodeMirror work in XHTML documents.
  • +
  • Fix bug in handling of backslashes in Python strings.
  • +
  • The styleNumbers option is now officially + supported and documented.
  • +
  • onLineNumberClick option added.
  • +
  • More consistent names onLoad and + onCursorActivity callbacks. Old names still work, but + are deprecated.
  • +
  • Add a Freemarker mode.
  • +
+ +

11-11-2010: Version 0.91:

+
    +
  • Adds support for Java.
  • +
  • Small additions to the PHP and SQL parsers.
  • +
  • Work around various Webkit issues.
  • +
  • Fix toTextArea to update the code in the textarea.
  • +
  • Add a noScriptCaching option (hack to ease development).
  • +
  • Make sub-modes of HTML mixed mode configurable.
  • +
+ +

02-10-2010: Version 0.9:

+
    +
  • Add support for searching backwards.
  • +
  • There are now parsers for Scheme, XQuery, and OmetaJS.
  • +
  • Makes height: "dynamic" more robust.
  • +
  • Fixes bug where paste did not work on OS X.
  • +
  • Add a enterMode and electricChars options to make indentation even more customizable.
  • +
  • Add firstLineNumber option.
  • +
  • Fix bad handling of @media rules by the CSS parser.
  • +
  • Take a new, more robust approach to working around the invisible-last-line bug in WebKit.
  • +
+ +

22-07-2010: Version 0.8:

+
    +
  • Add a cursorCoords method to find the screen + coordinates of the cursor.
  • +
  • A number of fixes and support for more syntax in the PHP parser.
  • +
  • Fix indentation problem with JSON-mode JS parser in Webkit.
  • +
  • Add a minification UI.
  • +
  • Support a height: dynamic mode, where the editor's + height will adjust to the size of its content.
  • +
  • Better support for IME input mode.
  • +
  • Fix JavaScript parser getting confused when seeing a no-argument + function call.
  • +
  • Have CSS parser see the difference between selectors and other + identifiers.
  • +
  • Fix scrolling bug when pasting in a horizontally-scrolled + editor.
  • +
  • Support toTextArea method in instances created with + fromTextArea.
  • +
  • Work around new Opera cursor bug that causes the cursor to jump + when pressing backspace at the end of a line.
  • +
+ +

27-04-2010: Version + 0.67:

+

More consistent page-up/page-down behaviour + across browsers. Fix some issues with hidden editors looping forever + when line-numbers were enabled. Make PHP parser parse + "\\" correctly. Have jumpToLine work on + line handles, and add cursorLine function to fetch the + line handle where the cursor currently is. Add new + setStylesheet function to switch style-sheets in a + running editor.

+ +

01-03-2010: Version + 0.66:

+

Adds removeLine method to API. + Introduces the PLSQL parser. + Marks XML errors by adding (rather than replacing) a CSS class, so + that they can be disabled by modifying their style. Fixes several + selection bugs, and a number of small glitches.

+ +

12-11-2009: Version + 0.65:

+

Add support for having both line-wrapping and + line-numbers turned on, make paren-highlighting style customisable + (markParen and unmarkParen config + options), work around a selection bug that Opera + reintroduced in version 10.

+ +

23-10-2009: Version + 0.64:

+

Solves some issues introduced by the + paste-handling changes from the previous release. Adds + setSpellcheck, setTextWrapping, + setIndentUnit, setUndoDepth, + setTabMode, and setLineNumbers to + customise a running editor. Introduces an SQL parser. Fixes a few small + problems in the Python + parser. And, as usual, add workarounds for various newly discovered + browser incompatibilities.

+ +

31-08-2009: Version +0.63:

+

Overhaul of paste-handling (less fragile), fixes for several +serious IE8 issues (cursor jumping, end-of-document bugs) and a number +of small problems.

+ +

30-05-2009: Version +0.62:

+

Introduces Python +and Lua parsers. Add +setParser (on-the-fly mode changing) and +clearHistory methods. Make parsing passes time-based +instead of lines-based (see the passTime option).

+ + + + diff --git a/js/codemirror/test/index.html b/js/codemirror/test/index.html new file mode 100644 index 0000000000..a3ad057da1 --- /dev/null +++ b/js/codemirror/test/index.html @@ -0,0 +1,29 @@ + + + + CodeMirror 2: Test Suite + + + + + + + + +

CodeMirror 2: Test Suite

+ +

A limited set of programmatic sanity tests for CodeMirror.

+ +

+
+    
+
+    
+  
+
diff --git a/js/codemirror/test/test.js b/js/codemirror/test/test.js
new file mode 100644
index 0000000000..af18b5b4a8
--- /dev/null
+++ b/js/codemirror/test/test.js
@@ -0,0 +1,248 @@
+var tests = [];
+
+test("fromTextArea", function() {
+  var te = document.getElementById("code");
+  te.value = "CONTENT";
+  var cm = CodeMirror.fromTextArea(te);
+  is(!te.offsetHeight);
+  eq(cm.getValue(), "CONTENT");
+  cm.setValue("foo\nbar");
+  eq(cm.getValue(), "foo\nbar");
+  cm.save();
+  is(/^foo\r?\nbar$/.test(te.value));
+  cm.setValue("xxx");
+  cm.toTextArea();
+  is(te.offsetHeight);
+  eq(te.value, "xxx");
+});
+
+testCM("getRange", function(cm) {
+  eq(cm.getLine(0), "1234");
+  eq(cm.getLine(1), "5678");
+  eq(cm.getLine(2), null);
+  eq(cm.getLine(-1), null);
+  eq(cm.getRange({line: 0, ch: 0}, {line: 0, ch: 3}), "123");
+  eq(cm.getRange({line: 0, ch: -1}, {line: 0, ch: 200}), "1234");
+  eq(cm.getRange({line: 0, ch: 2}, {line: 1, ch: 2}), "34\n56");
+  eq(cm.getRange({line: 1, ch: 2}, {line: 100, ch: 0}), "78");
+}, {value: "1234\n5678"});
+
+testCM("replaceRange", function(cm) {
+  eq(cm.getValue(), "");
+  cm.replaceRange("foo\n", {line: 0, ch: 0});
+  eq(cm.getValue(), "foo\n");
+  cm.replaceRange("a\nb", {line: 0, ch: 1});
+  eq(cm.getValue(), "fa\nboo\n");
+  eq(cm.lineCount(), 3);
+  cm.replaceRange("xyzzy", {line: 0, ch: 0}, {line: 1, ch: 1});
+  eq(cm.getValue(), "xyzzyoo\n");
+  cm.replaceRange("abc", {line: 0, ch: 0}, {line: 10, ch: 0});
+  eq(cm.getValue(), "abc");
+  eq(cm.lineCount(), 1);
+});
+
+testCM("selection", function(cm) {
+  cm.setSelection({line: 0, ch: 4}, {line: 2, ch: 2});
+  is(cm.somethingSelected());
+  eq(cm.getSelection(), "11\n222222\n33");
+  eqPos(cm.getCursor(false), {line: 2, ch: 2});
+  eqPos(cm.getCursor(true), {line: 0, ch: 4});
+  cm.setSelection({line: 1, ch: 0});
+  is(!cm.somethingSelected());
+  eq(cm.getSelection(), "");
+  eqPos(cm.getCursor(true), {line: 1, ch: 0});
+  cm.replaceSelection("abc");
+  eq(cm.getSelection(), "abc");
+  eq(cm.getValue(), "111111\nabc222222\n333333");
+  cm.replaceSelection("def", "end");
+  eq(cm.getSelection(), "");
+  eqPos(cm.getCursor(true), {line: 1, ch: 3});
+  cm.setCursor({line: 2, ch: 1});
+  eqPos(cm.getCursor(true), {line: 2, ch: 1});
+  cm.setCursor(1, 2);
+  eqPos(cm.getCursor(true), {line: 1, ch: 2});
+}, {value: "111111\n222222\n333333"});
+
+testCM("lines", function(cm) {
+  eq(cm.getLine(0), "111111");
+  eq(cm.getLine(1), "222222");
+  eq(cm.getLine(-1), null);
+  cm.removeLine(1);
+  cm.setLine(1, "abc");
+  eq(cm.getValue(), "111111\nabc");
+}, {value: "111111\n222222\n333333"});
+
+testCM("indent", function(cm) {
+  cm.indentLine(1);
+  eq(cm.getLine(1), "   blah();");
+  cm.setOption("indentUnit", 8);
+  cm.indentLine(1);
+  eq(cm.getLine(1), "\tblah();");
+}, {value: "if (x) {\nblah();\n}", indentUnit: 3, indentWithTabs: true});
+
+test("defaults", function() {
+  var olddefaults = CodeMirror.defaults, defs = CodeMirror.defaults = {};
+  for (var opt in olddefaults) defs[opt] = olddefaults[opt];
+  defs.indentUnit = 5;
+  defs.value = "uu";
+  defs.enterMode = "keep";
+  defs.tabindex = 55;
+  var place = document.getElementById("testground"), cm = CodeMirror(place);
+  try {
+    eq(cm.getOption("indentUnit"), 5);
+    cm.setOption("indentUnit", 10);
+    eq(defs.indentUnit, 5);
+    eq(cm.getValue(), "uu");
+    eq(cm.getOption("enterMode"), "keep");
+    eq(cm.getInputField().tabindex, 55);
+  }
+  finally {
+    CodeMirror.defaults = olddefaults;
+    place.removeChild(cm.getWrapperElement());
+  }
+});
+
+testCM("lineInfo", function(cm) {
+  eq(cm.lineInfo(-1), null);
+  var lh = cm.setMarker(1, "FOO", "bar");
+  var info = cm.lineInfo(1);
+  eq(info.text, "222222");
+  eq(info.markerText, "FOO");
+  eq(info.markerClass, "bar");
+  eq(info.line, 1);
+  eq(cm.lineInfo(2).markerText, null);
+  cm.clearMarker(lh);
+  eq(cm.lineInfo(1).markerText, null);
+}, {value: "111111\n222222\n333333"});
+
+testCM("coords", function(cm) {
+  cm.getWrapperElement().style.height = "100px";
+  var content = [];
+  for (var i = 0; i < 200; ++i) content.push("------------------------------" + i);
+  cm.setValue(content.join("\n"));
+  var top = cm.charCoords({line: 0, ch: 0});
+  var bot = cm.charCoords({line: 200, ch: 30});
+  is(top.x < bot.x);
+  is(top.y < bot.y);
+  is(top.y < top.yBot);
+  cm.getWrapperElement().scrollTop = 100;
+  cm.refresh();
+  var top2 = cm.charCoords({line: 0, ch: 0});
+  is(top.y > top2.y);
+  eq(top.x, top2.x);
+});
+
+testCM("coordsChar", function(cm) {
+  var content = [];
+  for (var i = 0; i < 70; ++i) content.push("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
+  cm.setValue(content.join("\n"));
+  for (var x = 0; x < 35; x += 2) {
+    for (var y = 0; y < 70; y += 5) {
+      cm.setCursor(y, x);
+      var pos = cm.coordsChar(cm.charCoords({line: y, ch: x}));
+      eq(pos.line, y);
+      eq(pos.ch, x);
+    }
+  }
+});
+
+testCM("undo", function(cm) {
+  cm.setLine(0, "def");
+  eq(cm.historySize().undo, 1);
+  cm.undo();
+  eq(cm.getValue(), "abc");
+  eq(cm.historySize().undo, 0);
+  eq(cm.historySize().redo, 1);
+  cm.redo();
+  eq(cm.getValue(), "def");
+  eq(cm.historySize().undo, 1);
+  eq(cm.historySize().redo, 0);
+  cm.setValue("1\n\n\n2");
+  eq(cm.historySize().undo, 0);
+  for (var i = 0; i < 20; ++i) {
+    cm.replaceRange("a", {line: 0, ch: 0});
+    cm.replaceRange("b", {line: 3, ch: 0});
+  }
+  eq(cm.historySize().undo, 40);
+  for (var i = 0; i < 38; ++i) cm.undo();
+  eq(cm.historySize().undo, 2);
+  eq(cm.historySize().redo, 38);
+  eq(cm.getValue(), "a1\n\n\nb2");
+  cm.setOption("undoDepth", 10);
+  for (var i = 0; i < 20; ++i) {
+    cm.replaceRange("a", {line: 0, ch: 0});
+    cm.replaceRange("b", {line: 3, ch: 0});
+  }
+  eq(cm.historySize().undo, 10);
+}, {value: "abc"});
+
+testCM("undoMultiLine", function(cm) {
+  cm.replaceRange("x", {line:0, ch: 0});
+  cm.replaceRange("y", {line:1, ch: 0});
+  cm.undo();
+  eq(cm.getValue(), "abc\ndef\nghi");
+  cm.replaceRange("y", {line:1, ch: 0});
+  cm.replaceRange("x", {line:0, ch: 0});
+  cm.undo();
+  eq(cm.getValue(), "abc\ndef\nghi");
+  cm.replaceRange("y", {line:2, ch: 0});
+  cm.replaceRange("x", {line:1, ch: 0});
+  cm.replaceRange("z", {line:2, ch: 0});
+  cm.undo();
+  eq(cm.getValue(), "abc\ndef\nghi");
+}, {value: "abc\ndef\nghi"});
+
+// Scaffolding
+
+function htmlEscape(str) {
+  return str.replace(/[<&]/g, function(str) {return str == "&" ? "&" : "<";});
+}
+function forEach(arr, f) {
+  for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);
+}
+
+function Failure(why) {this.message = why;}
+
+function test(name, run) {tests.push({name: name, func: run});}
+function testCM(name, run, opts) {
+  test(name, function() {
+    var place = document.getElementById("testground"), cm = CodeMirror(place, opts);
+    try {run(cm);}
+    finally {place.removeChild(cm.getWrapperElement());}
+  });
+}
+
+function runTests() {
+  var failures = [], run = 0;
+  for (var i = 0; i < tests.length; ++i) {
+    var test = tests[i];
+    try {test.func();}
+    catch(e) {
+      if (e instanceof Failure)
+        failures.push({type: "failure", test: test.name, text: e.message});
+      else
+        failures.push({type: "error", test: test.name, text: e.toString()});
+    }
+    run++;
+  }
+  var html = [run + " tests run."];
+  if (failures.length)
+    forEach(failures, function(fail) {
+      html.push(fail.test + ': ' + htmlEscape(fail.text) + "");
+    });
+  else html.push('All passed.');
+  document.getElementById("output").innerHTML = html.join("\n");
+}
+
+function eq(a, b, msg) {
+  if (a != b) throw new Failure(a + " != " + b + (msg ? " (" + msg + ")" : ""));
+}
+function eqPos(a, b, msg) {
+  eq(a.line, b.line, msg);
+  eq(a.ch, b.ch, msg);
+}
+function is(a, msg) {
+  if (!a) throw new Failure("assertion failed" + (msg ? " (" + msg + ")" : ""));
+}
+
+window.onload = runTests;

From 28f97eb3c14d928e04cd9410dfabc5af85b80812 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= 
Date: Thu, 2 Jun 2011 14:24:16 +0200
Subject: [PATCH 02/30] Hook CodeMirror to SQL editor

---
 js/functions.js                         |   7 ++
 libraries/header_scripts.inc.php        |   3 +
 themes/original/css/theme_right.css.php | 101 ++++++++++++++++++++++++
 themes/pmahomme/css/theme_right.css.php | 101 ++++++++++++++++++++++++
 4 files changed, 212 insertions(+)

diff --git a/js/functions.js b/js/functions.js
index be5a8bbc40..c78c9e44cd 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -2370,3 +2370,10 @@ $(document).ready(function() {
         }); // end $.PMA_confirm()
     }); //end of Drop Table Ajax action
 }) // end of $(document).ready() for Drop Table
+
+$(document).ready(function() {
+    var elm = $('#sqlquery');
+    if (elm) {
+        var myCodeMirror = CodeMirror.fromTextArea(elm[0], {lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-plsql"});
+    }
+})
diff --git a/libraries/header_scripts.inc.php b/libraries/header_scripts.inc.php
index c25aa990ea..7315fa54e8 100644
--- a/libraries/header_scripts.inc.php
+++ b/libraries/header_scripts.inc.php
@@ -39,6 +39,9 @@ if (isset($GLOBALS['db'])) {
     $params['db'] = $GLOBALS['db'];
 }
 $GLOBALS['js_include'][] = 'messages.php' . PMA_generate_common_url($params);
+$GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js';
+/* We should rather use/define MySQL mode here */
+$GLOBALS['js_include'][] = 'codemirror/mode/plsql/plsql.js';
 
 /**
  * Here we add a timestamp when loading the file, so that users who
diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php
index 406dc9d8e9..6365100bff 100644
--- a/themes/original/css/theme_right.css.php
+++ b/themes/original/css/theme_right.css.php
@@ -1771,3 +1771,104 @@ fieldset .disabled-field td {
     -webkit-box-sizing: border-box;
 }
 
+.CodeMirror {
+  line-height: 1em;
+  font-family: monospace;
+  background: white;
+  border: 1px solid black;
+}
+
+.CodeMirror-scroll {
+  height: auto;
+  overflow-y: auto;
+  overflow-x: auto;
+  max-height: 30em;
+}
+
+.CodeMirror-gutter {
+  position: absolute; left: 0; top: 0;
+  background-color: #f7f7f7;
+  border-right: 1px solid #eee;
+  min-width: 2em;
+  height: 100%;
+}
+.CodeMirror-gutter-text {
+  color: #aaa;
+  text-align: right;
+  padding: .4em .2em .4em .4em;
+}
+.CodeMirror-lines {
+  padding: .4em;
+}
+
+.CodeMirror pre {
+  -moz-border-radius: 0;
+  -webkit-border-radius: 0;
+  -o-border-radius: 0;
+  border-radius: 0;
+  border-width: 0; margin: 0; padding: 0; background: transparent;
+  font-family: inherit;
+  font-size: inherit;
+  padding: 0; margin: 0;
+}
+
+.CodeMirror textarea {
+  font-family: inherit !important;
+  font-size: inherit !important;
+}
+
+.CodeMirror-cursor {
+  z-index: 10;
+  position: absolute;
+  visibility: hidden;
+  border-left: 1px solid black !important;
+}
+.CodeMirror-focused .CodeMirror-cursor {
+  visibility: visible;
+}
+
+span.CodeMirror-selected {
+  background: #ccc !important;
+  color: HighlightText !important;
+}
+.CodeMirror-focused span.CodeMirror-selected {
+  background: Highlight !important;
+}
+
+.CodeMirror-matchingbracket {color: #0f0 !important;}
+.CodeMirror-nonmatchingbracket {color: #f22 !important;}
+
+
+span.plsql-keyword {
+    color: blue;
+}
+span.plsql-var {
+    color: red;
+}
+span.plsql-comment {
+    color: #AA7700;
+}
+span.plsql-string {
+    color: green;
+}
+span.plsql-operator {
+    color: blue;
+}
+span.plsql-word {
+    color: black;
+}
+span.plsql-function {
+    color: darkorange;
+}
+span.plsql-sqlplus {
+    color: darkorange;
+}
+span.plsql-type {
+    color: purple;
+}
+span.plsql-separator {
+    color: #666666;
+}
+span.plsql-number {
+    color: darkcyan;
+}
diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php
index 5d6c66b3fe..5934a8cd76 100644
--- a/themes/pmahomme/css/theme_right.css.php
+++ b/themes/pmahomme/css/theme_right.css.php
@@ -2115,3 +2115,104 @@ fieldset .disabled-field td {
     margin:             0 6px;
 }
 
+.CodeMirror {
+  line-height: 1em;
+  font-family: monospace;
+  background: white;
+  border: 1px solid black;
+}
+
+.CodeMirror-scroll {
+  height: auto;
+  overflow-y: auto;
+  overflow-x: auto;
+  max-height: 30em;
+}
+
+.CodeMirror-gutter {
+  position: absolute; left: 0; top: 0;
+  background-color: #f7f7f7;
+  border-right: 1px solid #eee;
+  min-width: 2em;
+  height: 100%;
+}
+.CodeMirror-gutter-text {
+  color: #aaa;
+  text-align: right;
+  padding: .4em .2em .4em .4em;
+}
+.CodeMirror-lines {
+  padding: .4em;
+}
+
+.CodeMirror pre {
+  -moz-border-radius: 0;
+  -webkit-border-radius: 0;
+  -o-border-radius: 0;
+  border-radius: 0;
+  border-width: 0; margin: 0; padding: 0; background: transparent;
+  font-family: inherit;
+  font-size: inherit;
+  padding: 0; margin: 0;
+}
+
+.CodeMirror textarea {
+  font-family: inherit !important;
+  font-size: inherit !important;
+}
+
+.CodeMirror-cursor {
+  z-index: 10;
+  position: absolute;
+  visibility: hidden;
+  border-left: 1px solid black !important;
+}
+.CodeMirror-focused .CodeMirror-cursor {
+  visibility: visible;
+}
+
+span.CodeMirror-selected {
+  background: #ccc !important;
+  color: HighlightText !important;
+}
+.CodeMirror-focused span.CodeMirror-selected {
+  background: Highlight !important;
+}
+
+.CodeMirror-matchingbracket {color: #0f0 !important;}
+.CodeMirror-nonmatchingbracket {color: #f22 !important;}
+
+
+span.plsql-keyword {
+    color: blue;
+}
+span.plsql-var {
+    color: red;
+}
+span.plsql-comment {
+    color: #AA7700;
+}
+span.plsql-string {
+    color: green;
+}
+span.plsql-operator {
+    color: blue;
+}
+span.plsql-word {
+    color: black;
+}
+span.plsql-function {
+    color: darkorange;
+}
+span.plsql-sqlplus {
+    color: darkorange;
+}
+span.plsql-type {
+    color: purple;
+}
+span.plsql-separator {
+    color: #666666;
+}
+span.plsql-number {
+    color: darkcyan;
+}

From 4c84ece64d32626fa137bf4b5fb8cd073b00cedd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= 
Date: Thu, 2 Jun 2011 14:37:10 +0200
Subject: [PATCH 03/30] Initial implementation of MySQL mode in CodeMirror,
 based on our list of keywords

---
 js/codemirror/mode/mysql/index.html |  68 ++++++++++++++
 js/codemirror/mode/mysql/mysql.css  |  33 +++++++
 js/codemirror/mode/mysql/mysql.js   | 139 ++++++++++++++++++++++++++++
 3 files changed, 240 insertions(+)
 create mode 100644 js/codemirror/mode/mysql/index.html
 create mode 100644 js/codemirror/mode/mysql/mysql.css
 create mode 100644 js/codemirror/mode/mysql/mysql.js

diff --git a/js/codemirror/mode/mysql/index.html b/js/codemirror/mode/mysql/index.html
new file mode 100644
index 0000000000..c9bb251f66
--- /dev/null
+++ b/js/codemirror/mode/mysql/index.html
@@ -0,0 +1,68 @@
+
+
+  
+    CodeMirror 2: MySQL mode
+    
+    
+    
+    
+    
+    
+  
+  
+    

CodeMirror 2: MySQL mode

+ +
+ + + +

+ Simple mode that handles MySQL language. +

+ +

MIME type defined: text/x-mysql + (MySQL code) + diff --git a/js/codemirror/mode/mysql/mysql.css b/js/codemirror/mode/mysql/mysql.css new file mode 100644 index 0000000000..a03411a4a3 --- /dev/null +++ b/js/codemirror/mode/mysql/mysql.css @@ -0,0 +1,33 @@ +span.mysql-keyword { + color: blue; +} +span.mysql-var { + color: red; +} +span.mysql-comment { + color: #AA7700; +} +span.mysql-string { + color: green; +} +span.mysql-operator { + color: blue; +} +span.mysql-word { + color: black; +} +span.mysql-function { + color: darkorange; +} +span.mysql-sqlplus { + color: darkorange; +} +span.mysql-type { + color: purple; +} +span.mysql-separator { + color: #666666; +} +span.mysql-number { + color: darkcyan; +} diff --git a/js/codemirror/mode/mysql/mysql.js b/js/codemirror/mode/mysql/mysql.js new file mode 100644 index 0000000000..4ab900fb53 --- /dev/null +++ b/js/codemirror/mode/mysql/mysql.js @@ -0,0 +1,139 @@ +CodeMirror.defineMode("mysql", function(config, parserConfig) { + var indentUnit = config.indentUnit, + keywords = parserConfig.keywords, + functions = parserConfig.functions, + types = parserConfig.types, + multiLineStrings = parserConfig.multiLineStrings; + var isOperatorChar = /[+\-*&%=<>!?:\/|]/; + function chain(stream, state, f) { + state.tokenize = f; + return f(stream, state); + } + + var type; + function ret(tp, style) { + type = tp; + return style; + } + + function tokenBase(stream, state) { + var ch = stream.next(); + // start of string? + if (ch == '"' || ch == "'" || ch == '`') + return chain(stream, state, tokenString(ch)); + // is it one of the special signs []{}().,;? Seperator? + else if (/[\[\]{}\(\),;\.]/.test(ch)) + return ret(ch); + // start of a number value? + else if (/\d/.test(ch)) { + stream.eatWhile(/[\w\.]/) + return ret("number", "mysql-number"); + } + // multi line comment or simple operator? + else if (ch == "/") { + if (stream.eat("*")) { + return chain(stream, state, tokenComment); + } + else { + stream.eatWhile(isOperatorChar); + return ret("operator", "mysql-operator"); + } + } + // single line comment or simple operator? + else if (ch == "-") { + if (stream.eat("-")) { + stream.skipToEnd(); + return ret("comment", "mysql-comment"); + } + else { + stream.eatWhile(isOperatorChar); + return ret("operator", "mysql-operator"); + } + } + // pl/sql variable? + else if (ch == "@" || ch == "$") { + stream.eatWhile(/[\w\d\$_]/); + return ret("word", "mysql-var"); + } + // is it a operator? + else if (isOperatorChar.test(ch)) { + stream.eatWhile(isOperatorChar); + return ret("operator", "mysql-operator"); + } + else { + // get the whole word + stream.eatWhile(/[\w\$_]/); + // is it one of the listed keywords? + if (keywords && keywords.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "mysql-keyword"); + // is it one of the listed functions? + if (functions && functions.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "mysql-function"); + // is it one of the listed types? + if (types && types.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "mysql-type"); + // default: just a "word" + return ret("word", "mysql-word"); + } + } + + function tokenString(quote) { + return function(stream, state) { + var escaped = false, next, end = false; + while ((next = stream.next()) != null) { + if (next == quote && !escaped) {end = true; break;} + escaped = !escaped && next == "\\"; + } + if (end || !(escaped || multiLineStrings)) + state.tokenize = tokenBase; + return ret("string", "mysql-string"); + }; + } + + function tokenComment(stream, state) { + var maybeEnd = false, ch; + while (ch = stream.next()) { + if (ch == "/" && maybeEnd) { + state.tokenize = tokenBase; + break; + } + maybeEnd = (ch == "*"); + } + return ret("comment", "mysql-comment"); + } + + // Interface + + return { + startState: function(basecolumn) { + return { + tokenize: tokenBase, + indented: 0, + startOfLine: true + }; + }, + + token: function(stream, state) { + if (stream.eatSpace()) return null; + var style = state.tokenize(stream, state); + return style; + } + }; +}); + +(function() { + function keywords(str) { + var obj = {}, words = str.split(" "); + for (var i = 0; i < words.length; ++i) obj[words[i]] = true; + return obj; + } + var cKeywords = "accessible action add after against aggregate algorithm all alter analyse analyze and as asc autocommit auto_increment avg_row_length backup begin between binlog both by cascade case change changed charset check checksum collate collation column columns comment commit committed compressed concurrent constraint contains convert create cross current_timestamp database databases day day_hour day_minute day_second definer delayed delay_key_write delete desc describe deterministic distinct distinctrow div do drop dumpfile duplicate dynamic else enclosed end engine engines escape escaped events execute exists explain extended fast fields file first fixed flush for force foreign from full fulltext function gemini gemini_spin_retries global grant grants group having heap high_priority hosts hour hour_minute hour_second identified if ignore in index indexes infile inner insert insert_id insert_method interval into invoker is isolation join key keys kill last_insert_id leading left like limit linear lines load local lock locks logs low_priority maria master master_connect_retry master_host master_log_file master_log_pos master_password master_port master_user match max_connections_per_hour max_queries_per_hour max_rows max_updates_per_hour max_user_connections medium merge minute minute_second min_rows mode modify month mrg_myisam myisam names natural no not null offset on open optimize option optionally or order outer outfile pack_keys page page_checksum partial partition partitions password primary privileges procedure process processlist purge quick raid0 raid_chunks raid_chunksize raid_type range read read_only read_write references regexp reload rename repair repeatable replace replication reset restore restrict return returns revoke right rlike rollback row rows row_format second security select separator serializable session share show shutdown slave soname sounds sql sql_auto_is_null sql_big_result sql_big_selects sql_big_tables sql_buffer_result sql_cache sql_calc_found_rows sql_log_bin sql_log_off sql_log_update sql_low_priority_updates sql_max_join_size sql_no_cache sql_quote_show_create sql_safe_updates sql_select_limit sql_slave_skip_counter sql_small_result sql_warnings start starting status stop storage straight_join string striped super table tables temporary terminated then to trailing transactional truncate type types uncommitted union unique unlock update usage use using values variables view when where with work write xor"; + + var cFunctions = "abs acos adddate addtime aes_decrypt aes_encrypt area asbinary ascii asin astext atan atan2 avg bdmpolyfromtext bdmpolyfromwkb bdpolyfromtext bdpolyfromwkb benchmark bin bit_and bit_count bit_length bit_or bit_xor boundary buffer cast ceil ceiling centroid char character_length charset char_length coalesce coercibility collation compress concat concat_ws connection_id contains conv convert convert_tz convexhull cos cot count crc32 crosses curdate current_date current_time current_timestamp current_user curtime database date datediff date_add date_diff date_format date_sub day dayname dayofmonth dayofweek dayofyear decode default degrees des_decrypt des_encrypt difference dimension disjoint distance elt encode encrypt endpoint envelope equals exp export_set exteriorring extract extractvalue field find_in_set floor format found_rows from_days from_unixtime geomcollfromtext geomcollfromwkb geometrycollection geometrycollectionfromtext geometrycollectionfromwkb geometryfromtext geometryfromwkb geometryn geometrytype geomfromtext geomfromwkb get_format get_lock glength greatest group_concat group_unique_users hex hour if ifnull inet_aton inet_ntoa insert instr interiorringn intersection intersects interval isclosed isempty isnull isring issimple is_free_lock is_used_lock last_day last_insert_id lcase least left length linefromtext linefromwkb linestring linestringfromtext linestringfromwkb ln load_file localtime localtimestamp locate log log10 log2 lower lpad ltrim makedate maketime make_set master_pos_wait max mbrcontains mbrdisjoint mbrequal mbrintersects mbroverlaps mbrtouches mbrwithin md5 microsecond mid min minute mlinefromtext mlinefromwkb mod month monthname mpointfromtext mpointfromwkb mpolyfromtext mpolyfromwkb multilinestring multilinestringfromtext multilinestringfromwkb multipoint multipointfromtext multipointfromwkb multipolygon multipolygonfromtext multipolygonfromwkb name_const now nullif numgeometries numinteriorrings numpoints oct octet_length old_password ord overlaps password period_add period_diff pi point pointfromtext pointfromwkb pointn pointonsurface polyfromtext polyfromwkb polygon polygonfromtext polygonfromwkb position pow power quarter quote radians rand related release_lock repeat replace reverse right round row_count rpad rtrim schema second sec_to_time session_user sha sha1 sign sin sleep soundex space sqrt srid startpoint std stddev stddev_pop stddev_samp strcmp str_to_date subdate substr substring substring_index subtime sum symdifference sysdate system_user tan time timediff timestamp timestampadd timestampdiff time_format time_to_sec touches to_days trim truncate ucase uncompress uncompressed_length unhex unique_users unix_timestamp updatexml upper user utc_date utc_time utc_timestamp uuid variance var_pop var_samp version week weekday weekofyear within x y year"; + + var cTypes = "bigint binary bit blob bool boolean char character date datetime dec decimal double enum float float4 float8 geometry geometrycollection int int1 int2 int3 int4 int8 integer linestring long longblob longtext mediumblob mediumint mediumtext middleint multilinestring multipoint multipolygon nchar numeric point polygon real serial set smallint text time timestamp tinyblob tinyint tinytext varbinary varchar"; + + CodeMirror.defineMIME("text/x-mysql", { + name: "mysql", + keywords: keywords(cKeywords), + functions: keywords(cFunctions), + types: keywords(cTypes) + }); +}()); From a6b4e3a4b95a03d9e65bea42a63ec1c73d4d6b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 14:37:31 +0200 Subject: [PATCH 04/30] Use MySQL mode instead of plsql --- js/functions.js | 2 +- libraries/header_scripts.inc.php | 2 +- themes/original/css/theme_right.css.php | 23 ++++++++++------------- themes/pmahomme/css/theme_right.css.php | 23 ++++++++++------------- 4 files changed, 22 insertions(+), 28 deletions(-) diff --git a/js/functions.js b/js/functions.js index c78c9e44cd..d55ad5e49e 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2374,6 +2374,6 @@ $(document).ready(function() { $(document).ready(function() { var elm = $('#sqlquery'); if (elm) { - var myCodeMirror = CodeMirror.fromTextArea(elm[0], {lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-plsql"}); + var myCodeMirror = CodeMirror.fromTextArea(elm[0], {lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-mysql"}); } }) diff --git a/libraries/header_scripts.inc.php b/libraries/header_scripts.inc.php index 7315fa54e8..98b28c4be8 100644 --- a/libraries/header_scripts.inc.php +++ b/libraries/header_scripts.inc.php @@ -41,7 +41,7 @@ if (isset($GLOBALS['db'])) { $GLOBALS['js_include'][] = 'messages.php' . PMA_generate_common_url($params); $GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js'; /* We should rather use/define MySQL mode here */ -$GLOBALS['js_include'][] = 'codemirror/mode/plsql/plsql.js'; +$GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js'; /** * Here we add a timestamp when loading the file, so that users who diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 6365100bff..5b2d373651 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -1839,36 +1839,33 @@ span.CodeMirror-selected { .CodeMirror-nonmatchingbracket {color: #f22 !important;} -span.plsql-keyword { +span.mysql-keyword { color: blue; } -span.plsql-var { +span.mysql-var { color: red; } -span.plsql-comment { +span.mysql-comment { color: #AA7700; } -span.plsql-string { +span.mysql-string { color: green; } -span.plsql-operator { +span.mysql-operator { color: blue; } -span.plsql-word { +span.mysql-word { color: black; } -span.plsql-function { +span.mysql-function { color: darkorange; } -span.plsql-sqlplus { - color: darkorange; -} -span.plsql-type { +span.mysql-type { color: purple; } -span.plsql-separator { +span.mysql-separator { color: #666666; } -span.plsql-number { +span.mysql-number { color: darkcyan; } diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 5934a8cd76..63d0eeed9e 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -2183,36 +2183,33 @@ span.CodeMirror-selected { .CodeMirror-nonmatchingbracket {color: #f22 !important;} -span.plsql-keyword { +span.mysql-keyword { color: blue; } -span.plsql-var { +span.mysql-var { color: red; } -span.plsql-comment { +span.mysql-comment { color: #AA7700; } -span.plsql-string { +span.mysql-string { color: green; } -span.plsql-operator { +span.mysql-operator { color: blue; } -span.plsql-word { +span.mysql-word { color: black; } -span.plsql-function { +span.mysql-function { color: darkorange; } -span.plsql-sqlplus { - color: darkorange; -} -span.plsql-type { +span.mysql-type { color: purple; } -span.plsql-separator { +span.mysql-separator { color: #666666; } -span.plsql-number { +span.mysql-number { color: darkcyan; } From 896f8debeca0a7adc825de9074322b576639fa93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 14:40:48 +0200 Subject: [PATCH 05/30] Handle missing attributes --- js/codemirror/mode/mysql/mysql.js | 14 ++++++++++---- themes/original/css/theme_right.css.php | 3 +++ themes/pmahomme/css/theme_right.css.php | 3 +++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/js/codemirror/mode/mysql/mysql.js b/js/codemirror/mode/mysql/mysql.js index 4ab900fb53..704825e403 100644 --- a/js/codemirror/mode/mysql/mysql.js +++ b/js/codemirror/mode/mysql/mysql.js @@ -3,6 +3,7 @@ CodeMirror.defineMode("mysql", function(config, parserConfig) { keywords = parserConfig.keywords, functions = parserConfig.functions, types = parserConfig.types, + attributes = parserConfig.attributes, multiLineStrings = parserConfig.multiLineStrings; var isOperatorChar = /[+\-*&%=<>!?:\/|]/; function chain(stream, state, f) { @@ -69,6 +70,8 @@ CodeMirror.defineMode("mysql", function(config, parserConfig) { if (functions && functions.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "mysql-function"); // is it one of the listed types? if (types && types.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "mysql-type"); + // is it one of the listed attributes? + if (attributes && attributes.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "mysql-attribute"); // default: just a "word" return ret("word", "mysql-word"); } @@ -124,16 +127,19 @@ CodeMirror.defineMode("mysql", function(config, parserConfig) { for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } - var cKeywords = "accessible action add after against aggregate algorithm all alter analyse analyze and as asc autocommit auto_increment avg_row_length backup begin between binlog both by cascade case change changed charset check checksum collate collation column columns comment commit committed compressed concurrent constraint contains convert create cross current_timestamp database databases day day_hour day_minute day_second definer delayed delay_key_write delete desc describe deterministic distinct distinctrow div do drop dumpfile duplicate dynamic else enclosed end engine engines escape escaped events execute exists explain extended fast fields file first fixed flush for force foreign from full fulltext function gemini gemini_spin_retries global grant grants group having heap high_priority hosts hour hour_minute hour_second identified if ignore in index indexes infile inner insert insert_id insert_method interval into invoker is isolation join key keys kill last_insert_id leading left like limit linear lines load local lock locks logs low_priority maria master master_connect_retry master_host master_log_file master_log_pos master_password master_port master_user match max_connections_per_hour max_queries_per_hour max_rows max_updates_per_hour max_user_connections medium merge minute minute_second min_rows mode modify month mrg_myisam myisam names natural no not null offset on open optimize option optionally or order outer outfile pack_keys page page_checksum partial partition partitions password primary privileges procedure process processlist purge quick raid0 raid_chunks raid_chunksize raid_type range read read_only read_write references regexp reload rename repair repeatable replace replication reset restore restrict return returns revoke right rlike rollback row rows row_format second security select separator serializable session share show shutdown slave soname sounds sql sql_auto_is_null sql_big_result sql_big_selects sql_big_tables sql_buffer_result sql_cache sql_calc_found_rows sql_log_bin sql_log_off sql_log_update sql_low_priority_updates sql_max_join_size sql_no_cache sql_quote_show_create sql_safe_updates sql_select_limit sql_slave_skip_counter sql_small_result sql_warnings start starting status stop storage straight_join string striped super table tables temporary terminated then to trailing transactional truncate type types uncommitted union unique unlock update usage use using values variables view when where with work write xor"; + var cKeywords = "accessible action add after against aggregate algorithm all alter analyse analyze and as asc autocommit auto_increment avg_row_length backup begin between binlog both by cascade case change changed charset check checksum collate collation column columns comment commit committed compressed concurrent constraint contains convert create cross current_timestamp database databases day day_hour day_minute day_second definer delayed delay_key_write delete desc describe deterministic distinct distinctrow div do drop dumpfile duplicate dynamic else enclosed end engine engines escape escaped events execute exists explain extended fast fields file first fixed flush for force foreign from full fulltext function gemini gemini_spin_retries global grant grants group having heap high_priority hosts hour hour_minute hour_second identified if ignore in index indexes infile inner insert insert_id insert_method interval into invoker is isolation join key keys kill last_insert_id leading left like limit linear lines load local lock locks logs low_priority maria master master_connect_retry master_host master_log_file master_log_pos master_password master_port master_user match max_connections_per_hour max_queries_per_hour max_rows max_updates_per_hour max_user_connections medium merge minute minute_second min_rows mode modify month mrg_myisam myisam names natural no not null offset on open optimize option optionally or order outer outfile pack_keys page page_checksum partial partition partitions password primary privileges procedure process processlist purge quick raid0 raid_chunks raid_chunksize raid_type range read read_only read_write references regexp reload rename repair repeatable replace replication reset restore restrict return returns revoke right rlike rollback row rows row_format second security select separator serializable session share show shutdown slave soname sounds sql sql_auto_is_null sql_big_result sql_big_selects sql_big_tables sql_buffer_result sql_cache sql_calc_found_rows sql_log_bin sql_log_off sql_log_update sql_low_priority_updates sql_max_join_size sql_no_cache sql_quote_show_create sql_safe_updates sql_select_limit sql_slave_skip_counter sql_small_result sql_warnings start starting status stop storage straight_join string striped super table tables temporary terminated then to trailing transactional truncate type types uncommitted union unique unlock update usage use using values variables view when where with work write xor year_month"; - var cFunctions = "abs acos adddate addtime aes_decrypt aes_encrypt area asbinary ascii asin astext atan atan2 avg bdmpolyfromtext bdmpolyfromwkb bdpolyfromtext bdpolyfromwkb benchmark bin bit_and bit_count bit_length bit_or bit_xor boundary buffer cast ceil ceiling centroid char character_length charset char_length coalesce coercibility collation compress concat concat_ws connection_id contains conv convert convert_tz convexhull cos cot count crc32 crosses curdate current_date current_time current_timestamp current_user curtime database date datediff date_add date_diff date_format date_sub day dayname dayofmonth dayofweek dayofyear decode default degrees des_decrypt des_encrypt difference dimension disjoint distance elt encode encrypt endpoint envelope equals exp export_set exteriorring extract extractvalue field find_in_set floor format found_rows from_days from_unixtime geomcollfromtext geomcollfromwkb geometrycollection geometrycollectionfromtext geometrycollectionfromwkb geometryfromtext geometryfromwkb geometryn geometrytype geomfromtext geomfromwkb get_format get_lock glength greatest group_concat group_unique_users hex hour if ifnull inet_aton inet_ntoa insert instr interiorringn intersection intersects interval isclosed isempty isnull isring issimple is_free_lock is_used_lock last_day last_insert_id lcase least left length linefromtext linefromwkb linestring linestringfromtext linestringfromwkb ln load_file localtime localtimestamp locate log log10 log2 lower lpad ltrim makedate maketime make_set master_pos_wait max mbrcontains mbrdisjoint mbrequal mbrintersects mbroverlaps mbrtouches mbrwithin md5 microsecond mid min minute mlinefromtext mlinefromwkb mod month monthname mpointfromtext mpointfromwkb mpolyfromtext mpolyfromwkb multilinestring multilinestringfromtext multilinestringfromwkb multipoint multipointfromtext multipointfromwkb multipolygon multipolygonfromtext multipolygonfromwkb name_const now nullif numgeometries numinteriorrings numpoints oct octet_length old_password ord overlaps password period_add period_diff pi point pointfromtext pointfromwkb pointn pointonsurface polyfromtext polyfromwkb polygon polygonfromtext polygonfromwkb position pow power quarter quote radians rand related release_lock repeat replace reverse right round row_count rpad rtrim schema second sec_to_time session_user sha sha1 sign sin sleep soundex space sqrt srid startpoint std stddev stddev_pop stddev_samp strcmp str_to_date subdate substr substring substring_index subtime sum symdifference sysdate system_user tan time timediff timestamp timestampadd timestampdiff time_format time_to_sec touches to_days trim truncate ucase uncompress uncompressed_length unhex unique_users unix_timestamp updatexml upper user utc_date utc_time utc_timestamp uuid variance var_pop var_samp version week weekday weekofyear within x y year"; + var cFunctions = "abs acos adddate addtime aes_decrypt aes_encrypt area asbinary ascii asin astext atan atan2 avg bdmpolyfromtext bdmpolyfromwkb bdpolyfromtext bdpolyfromwkb benchmark bin bit_and bit_count bit_length bit_or bit_xor boundary buffer cast ceil ceiling centroid char character_length charset char_length coalesce coercibility collation compress concat concat_ws connection_id contains conv convert convert_tz convexhull cos cot count crc32 crosses curdate current_date current_time current_timestamp current_user curtime database date datediff date_add date_diff date_format date_sub day dayname dayofmonth dayofweek dayofyear decode default degrees des_decrypt des_encrypt difference dimension disjoint distance elt encode encrypt endpoint envelope equals exp export_set exteriorring extract extractvalue field find_in_set floor format found_rows from_days from_unixtime geomcollfromtext geomcollfromwkb geometrycollection geometrycollectionfromtext geometrycollectionfromwkb geometryfromtext geometryfromwkb geometryn geometrytype geomfromtext geomfromwkb get_format get_lock glength greatest group_concat group_unique_users hex hour if ifnull inet_aton inet_ntoa insert instr interiorringn intersection intersects interval isclosed isempty isnull isring issimple is_free_lock is_used_lock last_day last_insert_id lcase least left length linefromtext linefromwkb linestring linestringfromtext linestringfromwkb ln load_file localtime localtimestamp locate log log10 log2 lower lpad ltrim makedate maketime make_set master_pos_wait max mbrcontains mbrdisjoint mbrequal mbrintersects mbroverlaps mbrtouches mbrwithin md5 microsecond mid min minute mlinefromtext mlinefromwkb mod month monthname mpointfromtext mpointfromwkb mpolyfromtext mpolyfromwkb multilinestring multilinestringfromtext multilinestringfromwkb multipoint multipointfromtext multipointfromwkb multipolygon multipolygonfromtext multipolygonfromwkb name_const now nullif numgeometries numinteriorrings numpoints oct octet_length old_password ord overlaps password period_add period_diff pi point pointfromtext pointfromwkb pointn pointonsurface polyfromtext polyfromwkb polygon polygonfromtext polygonfromwkb position pow power quarter quote radians rand related release_lock repeat replace reverse right round row_count rpad rtrim schema second sec_to_time session_user sha sha1 sign sin sleep soundex space sqrt srid startpoint std stddev stddev_pop stddev_samp strcmp str_to_date subdate substr substring substring_index subtime sum symdifference sysdate system_user tan time timediff timestamp timestampadd timestampdiff time_format time_to_sec touches to_days trim truncate ucase uncompress uncompressed_length unhex unique_users unix_timestamp updatexml upper user utc_date utc_time utc_timestamp uuid variance var_pop var_samp version week weekday weekofyear within x y year yearweek"; - var cTypes = "bigint binary bit blob bool boolean char character date datetime dec decimal double enum float float4 float8 geometry geometrycollection int int1 int2 int3 int4 int8 integer linestring long longblob longtext mediumblob mediumint mediumtext middleint multilinestring multipoint multipolygon nchar numeric point polygon real serial set smallint text time timestamp tinyblob tinyint tinytext varbinary varchar"; + var cTypes = "bigint binary bit blob bool boolean char character date datetime dec decimal double enum float float4 float8 geometry geometrycollection int int1 int2 int3 int4 int8 integer linestring long longblob longtext mediumblob mediumint mediumtext middleint multilinestring multipoint multipolygon nchar numeric point polygon real serial set smallint text time timestamp tinyblob tinyint tinytext varbinary varchar year"; + + var cAttributes = "archive ascii auto_increment bdb berkeleydb binary blackhole csv default example federated heap innobase innodb isam maria memory merge mrg_isam mrg_myisam myisam national ndb ndbcluster precision undefined unicode unsigned varying zerofill"; CodeMirror.defineMIME("text/x-mysql", { name: "mysql", keywords: keywords(cKeywords), functions: keywords(cFunctions), - types: keywords(cTypes) + types: keywords(cTypes), + attributes: keywords(cAttributes) }); }()); diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 5b2d373651..1dbe51928c 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -1863,6 +1863,9 @@ span.mysql-function { span.mysql-type { color: purple; } +span.mysql-attribute { + color: purple; +} span.mysql-separator { color: #666666; } diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 63d0eeed9e..4a60f0f37d 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -2207,6 +2207,9 @@ span.mysql-function { span.mysql-type { color: purple; } +span.mysql-attribute { + color: purple; +} span.mysql-separator { color: #666666; } From 4be1821a8fc1f6fae3163d685bec598fe7c1599b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 14:42:59 +0200 Subject: [PATCH 06/30] Remove not needed CodeMirror files --- js/codemirror/README.md | 6 - js/codemirror/compress.html | 83 -- js/codemirror/css/baboon.png | Bin 23299 -> 0 bytes js/codemirror/css/baboon_vector.svg | 153 ---- js/codemirror/css/docs.css | 157 ---- js/codemirror/css/font.js | 18 - js/codemirror/demo/activeline.html | 71 -- js/codemirror/demo/complete.html | 79 -- js/codemirror/demo/complete.js | 150 ---- js/codemirror/demo/marker.html | 53 -- js/codemirror/demo/mustache.html | 57 -- js/codemirror/demo/resize.html | 38 - js/codemirror/demo/search.html | 106 --- js/codemirror/index.html | 224 ------ js/codemirror/internals.html | 382 --------- js/codemirror/lib/codemirror.css | 56 -- js/codemirror/lib/overlay.js | 51 -- js/codemirror/manual.html | 797 ------------------- js/codemirror/mode/clike/clike.css | 7 - js/codemirror/mode/clike/clike.js | 187 ----- js/codemirror/mode/clike/index.html | 101 --- js/codemirror/mode/css/css.css | 9 - js/codemirror/mode/css/css.js | 124 --- js/codemirror/mode/css/index.html | 56 -- js/codemirror/mode/diff/diff.css | 3 - js/codemirror/mode/diff/diff.js | 13 - js/codemirror/mode/diff/index.html | 99 --- js/codemirror/mode/haskell/haskell.css | 25 - js/codemirror/mode/haskell/haskell.js | 242 ------ js/codemirror/mode/haskell/index.html | 59 -- js/codemirror/mode/htmlmixed/htmlmixed.js | 74 -- js/codemirror/mode/htmlmixed/index.html | 54 -- js/codemirror/mode/javascript/index.html | 78 -- js/codemirror/mode/javascript/javascript.css | 6 - js/codemirror/mode/javascript/javascript.js | 348 -------- js/codemirror/mode/php/index.html | 52 -- js/codemirror/mode/php/php.js | 83 -- js/codemirror/mode/plsql/index.html | 63 -- js/codemirror/mode/plsql/plsql.css | 33 - js/codemirror/mode/plsql/plsql.js | 218 ----- js/codemirror/mode/python/LICENSE.txt | 21 - js/codemirror/mode/python/index.html | 123 --- js/codemirror/mode/python/python.css | 23 - js/codemirror/mode/python/python.js | 318 -------- js/codemirror/mode/rst/index.html | 526 ------------ js/codemirror/mode/rst/rst.css | 77 -- js/codemirror/mode/rst/rst.js | 335 -------- js/codemirror/mode/smalltalk/index.html | 56 -- js/codemirror/mode/smalltalk/smalltalk.css | 5 - js/codemirror/mode/smalltalk/smalltalk.js | 122 --- js/codemirror/mode/stex/index.html | 96 --- js/codemirror/mode/stex/stex.css | 20 - js/codemirror/mode/stex/stex.js | 167 ---- js/codemirror/mode/xml/index.html | 42 - js/codemirror/mode/xml/xml.css | 7 - js/codemirror/mode/xml/xml.js | 206 ----- js/codemirror/oldrelease.html | 140 ---- js/codemirror/test/index.html | 29 - js/codemirror/test/test.js | 248 ------ 59 files changed, 6976 deletions(-) delete mode 100644 js/codemirror/README.md delete mode 100644 js/codemirror/compress.html delete mode 100644 js/codemirror/css/baboon.png delete mode 100644 js/codemirror/css/baboon_vector.svg delete mode 100644 js/codemirror/css/docs.css delete mode 100644 js/codemirror/css/font.js delete mode 100644 js/codemirror/demo/activeline.html delete mode 100644 js/codemirror/demo/complete.html delete mode 100644 js/codemirror/demo/complete.js delete mode 100644 js/codemirror/demo/marker.html delete mode 100644 js/codemirror/demo/mustache.html delete mode 100644 js/codemirror/demo/resize.html delete mode 100644 js/codemirror/demo/search.html delete mode 100644 js/codemirror/index.html delete mode 100644 js/codemirror/internals.html delete mode 100644 js/codemirror/lib/codemirror.css delete mode 100644 js/codemirror/lib/overlay.js delete mode 100644 js/codemirror/manual.html delete mode 100644 js/codemirror/mode/clike/clike.css delete mode 100644 js/codemirror/mode/clike/clike.js delete mode 100644 js/codemirror/mode/clike/index.html delete mode 100644 js/codemirror/mode/css/css.css delete mode 100644 js/codemirror/mode/css/css.js delete mode 100644 js/codemirror/mode/css/index.html delete mode 100644 js/codemirror/mode/diff/diff.css delete mode 100644 js/codemirror/mode/diff/diff.js delete mode 100644 js/codemirror/mode/diff/index.html delete mode 100644 js/codemirror/mode/haskell/haskell.css delete mode 100644 js/codemirror/mode/haskell/haskell.js delete mode 100644 js/codemirror/mode/haskell/index.html delete mode 100644 js/codemirror/mode/htmlmixed/htmlmixed.js delete mode 100644 js/codemirror/mode/htmlmixed/index.html delete mode 100644 js/codemirror/mode/javascript/index.html delete mode 100644 js/codemirror/mode/javascript/javascript.css delete mode 100644 js/codemirror/mode/javascript/javascript.js delete mode 100644 js/codemirror/mode/php/index.html delete mode 100644 js/codemirror/mode/php/php.js delete mode 100644 js/codemirror/mode/plsql/index.html delete mode 100644 js/codemirror/mode/plsql/plsql.css delete mode 100644 js/codemirror/mode/plsql/plsql.js delete mode 100644 js/codemirror/mode/python/LICENSE.txt delete mode 100644 js/codemirror/mode/python/index.html delete mode 100644 js/codemirror/mode/python/python.css delete mode 100644 js/codemirror/mode/python/python.js delete mode 100644 js/codemirror/mode/rst/index.html delete mode 100644 js/codemirror/mode/rst/rst.css delete mode 100644 js/codemirror/mode/rst/rst.js delete mode 100644 js/codemirror/mode/smalltalk/index.html delete mode 100644 js/codemirror/mode/smalltalk/smalltalk.css delete mode 100644 js/codemirror/mode/smalltalk/smalltalk.js delete mode 100644 js/codemirror/mode/stex/index.html delete mode 100644 js/codemirror/mode/stex/stex.css delete mode 100644 js/codemirror/mode/stex/stex.js delete mode 100644 js/codemirror/mode/xml/index.html delete mode 100644 js/codemirror/mode/xml/xml.css delete mode 100644 js/codemirror/mode/xml/xml.js delete mode 100644 js/codemirror/oldrelease.html delete mode 100644 js/codemirror/test/index.html delete mode 100644 js/codemirror/test/test.js diff --git a/js/codemirror/README.md b/js/codemirror/README.md deleted file mode 100644 index 624b5409b0..0000000000 --- a/js/codemirror/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# CodeMirror 2 - -CodeMirror 2 is a rewrite of [CodeMirror -1](http://github.com/marijnh/CodeMirror). The docs live -[here](http://codemirror.net/2/manual.html), and the project page is -[http://codemirror.net/2/](http://codemirror.net/2/). diff --git a/js/codemirror/compress.html b/js/codemirror/compress.html deleted file mode 100644 index 4ffca2a555..0000000000 --- a/js/codemirror/compress.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - CodeMirror: Compression Helper - - - - - -

{ } CodeMirror

- -
-/* Script compression
-   helper */
-
- -

To optimize loading CodeMirror, especially when including a - bunch of different modes, it is recommended that you combine and - minify (and preferably also gzip) the scripts. This page makes - those first two steps very easy. Simply select the version and - scripts you need in the form below, and - click Compress to download the minified script - file.

- -
- -

Version:

- -

- -

- with UglifyJS -

- -

Custom code to add to the compressed file:

-
- - - - - - - diff --git a/js/codemirror/css/baboon.png b/js/codemirror/css/baboon.png deleted file mode 100644 index 55d97f70b817ff2b78ebb409bf34a5147fe40d07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 23299 zcmXtA2RM~|*nf^qWM`JWx9se!jBH8STe3ywi4vlWP|C$=|2+k1}Z{KtL&)_oF8uIf@zuu>ohLUlz?%M3wK;qdQRG7|WEstIZd{y`L| zdBuVZenpVE#KZ5&{q(K}A_$=c{x4Jtp~C?DN0uOM>mYMqx1bQm09Pa=Bt+cP=T@Mz zqo1p|Z-D!Yb!Aor;Y6-zX;_55T+IoIV6Yth6df`|pO&Jo_lj4Y`xQxw`h63kq1gdQ2wV+9`BOW&{MU9$qEjO0G3}ueiaHZu{OP#N93A zj(hr--M@--A-;+i12@JmElh@s^Kc6?Ka}c5EC_LD^53!yzKpLNvkN39CVucnp|=A4 zQnDM1`awivv9(bXJxWAFh8d6X$|f*LYK@7BDYx)&?q?1pqM^ulOt`Nxm4B`79;*@R z$SXFC0e&T!aV4oZe<4&SRF++~At%Q17J4DywdM~P^*fl$&f;7VQ?2dC*aJbqvBUt^ zRTk$qg!NUqX%!*5rzBe_ySGB!^|i~lxw}Z!Q$1dU5zP~@T%7N4YxU>Y#qJ|i5YhKi zE!N)BC(rLocVpuPjeWF*&m>j9MVv4!yFSPf6>qb*c`*ZnOLrwag(z~+t#b2fB(Em% z`t8}L*hC8#W@p+^rLbren$Y-M*O-Wfu#4k+GASE=ohI|ZX_fDR z)I4#%h{DX|d2CTLGlO%LN$I=NY6<_oplt;PllQ%E zFXlG6FY8$!k#~=IBA@Cswd(mq?KL_o-z8SNCq0O{xL%F3QXAu|yEUp~VZopjw1}Sn z`l2xE_@KnDRq5r+PHN^$!OJeaV@SU=(y(;YOUw`l zx;;U#Pye5Y;21*>tYFFm-bM&|RG$cmm%2l4oP0`-EX0@SkxVc! zh{jx}V|ysIqn!H~=lZYxl9Cd)s3_%mr6BcR|J@#_^)&xcYEG)Es%lc&dG~Q*Vxr&L zPuZit{b~(<(*)vnE%6^dXnx7L#Pn}@_~NsLZ#kDr%s&-nO>1-il+aJrCvjf2MNaRz zP79SAT|g=h7l;&g`;D&4nwij`@u&F=sU#gn9qAY`NqmCCIkfEjyyY=kd7f3?C+TP1 zt&e?uXRs$M(q~&%kS1qGjd zD5;hhcbg=~2>L~ZhTIUGU0;99WFJ9GNJ6O|6eJT98%umR@^@=1<=L~6|NF3P@;>#508_2O(1z5!-ShcT%XXO zIS@m>0)YUL!hDP_3x1_ZBndEnNN`03y1iX3?BDVOyVkH*mSt9(J3DbTH5aQ4=9h=d z6z;4ti{EU>zql;#J1O(4f zPq;Thl>g+Wk_G1vWSK5?;432q#SRext z$4{R~b8~a~|1vN#a&d8?9-civctu}7vCcx~ik=>sRh3=xowc7C`#x}>7AISqOIL&E za=(b&9XUkRW|}{t_@K-kX79ttz;GXfh$51d=;`UV#0r-#%{*YT!<1FECAxjheswiR zsl@!vS!HEq!}-3Ro{nngPeF0VW7W=|zkSQJQL$roRvI-53sV{#8hT|_HjTrfpQxQM zUv&R=zi?(~xJ=#$tA2d&&xmoKmG*W`<;am_w-=&7!q(Dg=@)?9r%4@1U?nCF@1RvD z;+5W>oSckLOw@#3WR>;0|L&cnjK_E6+qc)(22~>VOniSt&3|EGVC-psswgAFkQaTT zc(A)s6(}+{KhLeAa^BO^Q_sKvUv`3)2nh-I6TKJNYFxAjK7z$8E3`sVt@h51r z1BsyUNi&p*ii(O)O453CPV9S$DUb5$(O-}6Xtm7o;j(N0k`6OOJ{YeB1_j-Roel^L zOwGwjhFcnF!K4lASsk$-&=$Onpx;`SabLVRG&Z^t@A0mvH=&3(qRSq4_KxYhm!e3A z)>E!}ZVHOm4#-cGLT8pqu~`S4a;P^RBjqf1q0_{*w?@yNoWyB9Q0tH(oEosLrG&1WC^ zk8y5xmWE?|e7x4Z|H1*(qtaWWl@`VNjOlZ%X(c6sHjM#%b8~ZlM%)v>d@=l4?M#|{ zK_weLGQSP=<-vMidtpIANt*?z?cT!CT!=e&Oa-yJGeTX|K$`e8)dI1c4XsQRAJO{Dy&rT~eOv^uS-K)qe<4%mHU01_|Mc72dyp|2tIF9xE3&x51(->7oaYVSm5MQ)Nc(Z@IR$T>hL% z{VZ_Eb?ly0`QjFWE)&bE_`mnNNoJRx{9H;0ic%4ug2LGEvjt|Qi>uYmC>4X%Hp!Jo&IMat>E_W6$k1F3Ljjdn1zJ?UTD9&fatwi(`CUtfQ{ z)tM@GLG(MJdfRzsOfPReN+AP#I)b#3rigOd3!?*(JNM3zT|3a7CKgnqNYvvrK1Hnl z%JvRcKFScemOUW^RnG&K&P4*&#WXau;ri(B#YMe@goLm;XnDOBxi?(a9#T*uCJv{Rq$+#Jp6AwSx#L1 z@oF-U?&B2wV(FDIySsCYt?yqOKL3#Q=|%ZJ^~MEj7g8N#+I?O|xm-50&Xc(%j+^n< zC*y)PCRGOMSXqUexWYn1P5k|(#(A7SJ(g{bUHe&QaP8Z{zm@&LdY)U#hPc~E*Bu9M zhSY281b#I-Z01EriR)wn+)ae&5RsL($itxM_PyVaB6|8#Uc7kp@+JGgzIVr)yr|v~ zB*Aq4TTaTu@54y0gbYY`D-k>sbA3*6 zQy~TJL~li$btS>x6{x7I)Gye=k-g*Hsjt26XWYI#yC-bqXO@HT}GZE%MvH{!6}~8lk79)zi}>6MYf^s3*-t%NOZ=xM=QeEfacgACj&9N66#M z^c#m$hZ-v5gHly)K%| z?%(f_Fp-Q3-n)0NA^KDm;gpqSl=b?7shQiPJ$H^@_;G8+6(b{UKR-z*^>>FV?b|N^ zp7?$!3Vl_~rdBdz?K1bl6IYu6$!>8JPEAkU4e%0Nta9$k%E}VUvU4_dUd17FHg0bG zXE{`p_Vz+MKYf~kn=GeD*m1UjAYa74Y?Xn5k~N$OSwgUet}UT|xLM`A$q?uS&wT>S zD8qMFHL}EQwHE060C~TQK8<2m@Iy$cFLb607~@t~%P%s_bSHnjPfp)E`$F24qV0I+ z#^e_C{6uJ1E0LMGxo4qVnvX~E7szYbC2BA`DX|wI28O|1NwS8XC&yy5sLZ zaOuN{b{V~&Wekt?=2 zr0Uxk{+_w996mV1WHT`)as54!Z|lFz9vR&y7i2wF)%I|NqINCJUUffRPT<^T?U#EE zzxDI;L+cbuWg4Z;WhGU6rHp@X2Xty(<3Fwi zT8is36*>8T(eMX)0woSK;q}Fbgx|3*!zD6WPEQWQ zs*icNxo3B-iI`bkKzVq2-Y_qUcr;Dj_)*+YjuRGiqVt-KP4>9I>uck@tC~Guz7$=4 zcy{1-*CWq$Y@=&i^m`|jiPGUTif{IVk(sHf8g_PeKgzC2*t~Zk=i}oeuY3|OC?s^n z1bf(ia!_Vyhf3A>NHq~HMUel7oum^=e$?LdL+Md=dU~FENAu2iE*O1BB?ci5r@hNQ zHN(zrBtZw;o`Zw$T@7kjU*+X-%q=XWOW{v??^7WLI=X_a{+^x$X=&;B_!0$)JhQ1> zjVokDyhMYyPu(p1{v=i=0c0thJHsU>m$|D1B=iy z{r&xejt_!?Y0;cl4A2Vs`Z10w{a1;Q)6MrCMn8LfLK&)Cm78PFA?jLP$PUXvrHt9? z>&WdzS~>4Ahs|c$TO*vx%ItsVzkdAsLjGTyh^S~M5J3dlCw(&0Q!v-GAtUr;)8n(b zT5Bb-9GlC8pw!L@{YX3}5$fQP&5_W&?(-V$Q z|K0xOUGX@^PZ{Zy>JICzh>uy5@>n&XVN`k*xbV$Q503j^TpM>n}0)&j>a}_Iu~(54GG4oRkS!e`-5@j*jj_R>e)$!vby} z`KbO}75`0~#*gyr^oP3}x}%l0ea@lxdgIQZza~{{1c($kI44oFt$1G#rIPZ|(`tevSX@;y~fj>UfPy%5SHpB~$x_?g9Og-;5;b9I6q|M#`@{4@O#K zKcwc^vbzkGw|7=VSeU!}S!u+mXrwHmALeDaPif2UWO!4;_}Z`f^s=%ttT=^sX95XE z(BM}d_nfX_G&y$m7XIGxiNRt@l}&ebcbj?MSsiIFqMN#*HMTq@?iFAdZ^j@!y61!W;EIEw0P~ zbF&*NM7_h*E4E>Ohkz~gej#R#?axS0O?C9EzYRFV$kiN$ql)sS>}Do3>BAm5{n_5` zge~6O`Q=N9K-+zAkC4^qpvPqtBvDx(I^hfJzrw6#u z-*HJQb7iT!qg<{1_@^*d-6xugIuyg-dEOmm#4#%THd(@8t?yK>#0$QtLj<{cZkEXq z5QhKacP@Y+=aKsBw>#r$U&|#6J*ECBcyg#8Q|hROX2mJae;XdQTsZvJ(<8N#aZ)#G z$5ZW*W$V>rcY1?G{wf`TQ1H>if<8I?gNIf*pPn4MZUNhmmzb(|nZLz?9&y^JQ``bX zJp`pNcvQyy8++pfb)ufg6_c~VRhv!$F2-8asAoyBDS3HM3U!|lAlQisVlnfGb5hj? zTU%Rrinq77mv8>&DiAFaMBxFOYCDg-PrbwW+A>4RflAv;es=UT%&g<1W!Iimc^T;J zSlK5GRosw=zQY3|4zfA!o;UrGTCMg@9mRiqM40dZkyj43dsqcD)lEgGq+=lZ)gc>p zG_+^g70{rx5FjrzwgVpZ#o;3t<`}GR|`EOA|gWjGh0KdR?Upn z)YQ`NI(+I@<>n>;ZhgP`5>uEv6r^Xew=!kR%4HN36h2pcsQKcMWSMn?oOp$+bL>WB znpF~rJ6xQc2rv{f3W~wo&zyWJ{mRXU9CCkrjrN$h;5t_0PHpp_cLG2MM}Rc^E5Hrp z_FG@2wiXuhc#X)EUn7@gc9u0f=gnTma)?GF-oO5%vV3cy0r0W=35SFrK}n1xtBePy z3#WrY3o1gqo{qxmet$oq&!{cRaPR2l%a?+eF1?6vnAz{FY>c{-)7r=z!shhdmxE(4 zP4n_)&+WwlnaG2n12~CGrzabyCEAb9g@uKNg_+semk&FpH!3_jI@)w8dHP3w+rWn1olVIDTTjEr01!&Xc_pl^KH4ua?uUflP<70Qo(j|^w;=NuX(A( z9$Y8?-F4eZ_iHQz9x~SN98e(CbvF+hkij945?~|TWTSl$^Ma6-BtNyQS8$9&Gwu|3 zwYE1VVN@+cUmL)ymX?Kyi8_#~82j_lr^g|`XK)>{c*Gd8jurZA>*XbUyb*m`_`NB3 zN%-PwcjG;Eil8cPy*#)dti#R&1==n9pB|qt%hIi|`a9R7(?gp&PlkT3xlt#T@c1!5 z?8g%hwb!3N>phx4`S|$M-u>&w^_MZj=BBN!kfP%A$%wy3S9+HRiytZ8ohhG|GwE#8 z3e|LAvo9Qf?|R0QHZZ>H&&;QUCq+fP1PzxjhV8B!nZGuCWvq7mR4I75NWQ18*yl`P z)S*1PveEMN@86n8Nyx^e&Oe2a^_Tg#K<;BN9rm(Sh3na-{O@a2ygIc(l2&WjKWIm~ zPhY+?GpY7|Vjh4$cC$KnYe7rRu^NR`!(gd-N)Q+qrvmOp_ilw&&JqIqyjlOvB z{P}Z|f8RZ1W>;?f$9`EF)ID2Olv-3P{&|c7lP?dywG@()O7)p)`x=r|fZMwIQb7ZH zERVdrd=I6Q_Bmf)Uws3EAu2i147hy>cDyKux7cny+Lc6;JQWAN_SV?gSkAoG^mKZ! zA2|ERQIadw0~GmC@m0MkFOIEhavm3?$D&`gGw8it6g>mM{bZA3G@e zVO(bN#9vA`4)v>AyO^Ad!W6o?y586Z+N)QudQ7#cRNici0r?5@>C-1s6)1b}KpWB0 z(QyK?<#S)(On(s?v=BT|DY2j0BOsKD*y<6mZVD0toXy4mOYe&CwRiTNN76_rl1r

#6335mO-CwW+nmUD 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 diff --git a/js/codemirror/css/baboon_vector.svg b/js/codemirror/css/baboon_vector.svg deleted file mode 100644 index dc1667af91..0000000000 --- a/js/codemirror/css/baboon_vector.svg +++ /dev/null @@ -1,153 +0,0 @@ - - - -image/svg+xml \ No newline at end of file diff --git a/js/codemirror/css/docs.css b/js/codemirror/css/docs.css deleted file mode 100644 index c1b99dfa39..0000000000 --- a/js/codemirror/css/docs.css +++ /dev/null @@ -1,157 +0,0 @@ -body { - font-family: Arial, sans-serif; - line-height: 1.5; - max-width: 64.3em; - margin: 3em auto; - padding: 0 1em; -} -body.droid { - font-family: Droid Sans, Arial, sans-serif; -} - -h1 { - letter-spacing: -3px; - font-size: 3.23em; - font-weight: bold; - margin: 0; -} - -h2 { - font-size: 1.23em; - font-weight: bold; - margin: .5em 0; - letter-spacing: -1px; -} - -h3 { - font-size: 1em; - font-weight: bold; - margin: .4em 0; -} - -pre { - background-color: #eee; - -moz-border-radius: 6px; - -webkit-border-radius: 6px; - border-radius: 6px; - padding: 1em; -} - -pre.code { - margin: 0 1em; -} - -.grey { - font-size: 2.2em; - padding: .5em 1em; - line-height: 1.2em; - margin-top: .5em; - position: relative; -} - -img.logo { - position: absolute; - right: -25px; - bottom: 4px; -} - -a:link, a:visited, .quasilink { - color: #df0019; - cursor: pointer; - text-decoration: none; -} - -a:hover, .quasilink:hover { - color: #800004; -} - -h1 a:link, h1 a:visited, h1 a:hover { - color: black; -} - -ul { - margin: 0; - padding-left: 1.2em; -} - -a.download { - color: white; - background-color: #df0019; - width: 100%; - display: block; - text-align: center; - font-size: 1.23em; - font-weight: bold; - text-decoration: none; - -moz-border-radius: 6px; - -webkit-border-radius: 6px; - border-radius: 6px; - padding: .5em 0; - margin-bottom: 1em; -} - -a.download:hover { - background-color: #bb0010; -} - -.rel { - margin-bottom: 0; -} - -.rel-note { - color: #777; - font-size: .9em; - margin-top: .1em; -} - -.logo-braces { - color: #df0019; - position: relative; - top: -4px; -} - -.blk { - float: left; -} - -.left { - width: 37em; - padding-right: 6.53em; - padding-bottom: 1em; -} - -.left1 { - width: 15.24em; - padding-right: 6.45em; -} - -.left2 { - width: 15.24em; -} - -.right { - width: 20.68em; -} - -.leftbig { - width: 42.44em; - padding-right: 6.53em; -} - -.rightsmall { - width: 15.24em; -} - -.clear:after { - visibility: hidden; - display: block; - font-size: 0; - content: " "; - clear: both; - height: 0; -} -.clear { display: inline-block; } -/* start commented backslash hack \*/ -* html .clear { height: 1%; } -.clear { display: block; } -/* close commented backslash hack */ diff --git a/js/codemirror/css/font.js b/js/codemirror/css/font.js deleted file mode 100644 index 58b559aa62..0000000000 --- a/js/codemirror/css/font.js +++ /dev/null @@ -1,18 +0,0 @@ -function waitForStyles() { - for (var i = 0; i < document.styleSheets.length; i++) - if (/googleapis/.test(document.styleSheets[i].href)) - return document.body.className += " droid"; - setTimeout(waitForStyles, 100); -} - -document.body.style.display = "none"; -setTimeout(function() { - document.body.style.display = ""; - if (/AppleWebKit/.test(navigator.userAgent) && /iP[oa]d|iPhone/.test(navigator.userAgent)) return; - var link = document.createElement("LINK"); - link.type = "text/css"; - link.rel = "stylesheet"; - link.href = "http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold"; - document.documentElement.getElementsByTagName("HEAD")[0].appendChild(link); - waitForStyles(); -}, 30); diff --git a/js/codemirror/demo/activeline.html b/js/codemirror/demo/activeline.html deleted file mode 100644 index 7a169663e7..0000000000 --- a/js/codemirror/demo/activeline.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - CodeMirror 2: Active Line Demo - - - - - - - - - -

CodeMirror 2: Active Line Demo

- -
- - - -

Styling the current cursor line.

- - - diff --git a/js/codemirror/demo/complete.html b/js/codemirror/demo/complete.html deleted file mode 100644 index 4dfef30b29..0000000000 --- a/js/codemirror/demo/complete.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - CodeMirror 2: Autocomplete Demo - - - - - - - - - -

CodeMirror 2: Autocomplete demo

- -
- -

Press ctrl-space to activate autocompletion. See -the code to figure out how it works.

- - - - diff --git a/js/codemirror/demo/complete.js b/js/codemirror/demo/complete.js deleted file mode 100644 index 29b7c26c7c..0000000000 --- a/js/codemirror/demo/complete.js +++ /dev/null @@ -1,150 +0,0 @@ -(function () { - // Minimal event-handling wrapper. - function stopEvent() { - if (this.preventDefault) {this.preventDefault(); this.stopPropagation();} - else {this.returnValue = false; this.cancelBubble = true;} - } - function addStop(event) { - if (!event.stop) event.stop = stopEvent; - return event; - } - function connect(node, type, handler) { - function wrapHandler(event) {handler(addStop(event || window.event));} - if (typeof node.addEventListener == "function") - node.addEventListener(type, wrapHandler, false); - else - node.attachEvent("on" + type, wrapHandler); - } - - function forEach(arr, f) { - for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]); - } - - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { - lineNumbers: true, - onKeyEvent: function(i, e) { - // Hook into ctrl-space - if (e.keyCode == 32 && (e.ctrlKey || e.metaKey) && !e.altKey) { - e.stop(); - return startComplete(); - } - } - }); - - function startComplete() { - // We want a single cursor position. - if (editor.somethingSelected()) return; - // Find the token at the cursor - var cur = editor.getCursor(false), token = editor.getTokenAt(cur), tprop = token; - // If it's not a 'word-style' token, ignore the token. - if (!/^[\w$_]*$/.test(token.string)) { - token = tprop = {start: cur.ch, end: cur.ch, string: "", state: token.state, - className: token.string == "." ? "js-property" : null}; - } - // If it is a property, find out what it is a property of. - while (tprop.className == "js-property") { - tprop = editor.getTokenAt({line: cur.line, ch: tprop.start}); - if (tprop.string != ".") return; - tprop = editor.getTokenAt({line: cur.line, ch: tprop.start}); - if (!context) var context = []; - context.push(tprop); - } - var completions = getCompletions(token, context); - if (!completions.length) return; - function insert(str) { - editor.replaceRange(str, {line: cur.line, ch: token.start}, {line: cur.line, ch: token.end}); - } - // When there is only one completion, use it directly. - if (completions.length == 1) {insert(completions[0]); return true;} - - // Build the select widget - var complete = document.createElement("div"); - complete.className = "completions"; - var sel = complete.appendChild(document.createElement("select")); - sel.multiple = true; - for (var i = 0; i < completions.length; ++i) { - var opt = sel.appendChild(document.createElement("option")); - opt.appendChild(document.createTextNode(completions[i])); - } - sel.firstChild.selected = true; - sel.size = Math.min(10, completions.length); - var pos = editor.cursorCoords(); - complete.style.left = pos.x + "px"; - complete.style.top = pos.yBot + "px"; - document.body.appendChild(complete); - // Hack to hide the scrollbar. - if (completions.length <= 10) - complete.style.width = (sel.clientWidth - 1) + "px"; - - var done = false; - function close() { - if (done) return; - done = true; - complete.parentNode.removeChild(complete); - } - function pick() { - insert(sel.options[sel.selectedIndex].value); - close(); - setTimeout(function(){editor.focus();}, 50); - } - connect(sel, "blur", close); - connect(sel, "keydown", function(event) { - var code = event.keyCode; - // Enter and space - if (code == 13 || code == 32) {event.stop(); pick();} - // Escape - else if (code == 27) {event.stop(); close(); editor.focus();} - else if (code != 38 && code != 40) {close(); editor.focus(); setTimeout(startComplete, 50);} - }); - connect(sel, "dblclick", pick); - - sel.focus(); - // Opera sometimes ignores focusing a freshly created node - if (window.opera) setTimeout(function(){if (!done) sel.focus();}, 100); - return true; - } - - var stringProps = ("charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight " + - "toUpperCase toLowerCase split concat match replace search").split(" "); - var arrayProps = ("length concat join splice push pop shift unshift slice reverse sort indexOf " + - "lastIndexOf every some filter forEach map reduce reduceRight ").split(" "); - var funcProps = "prototype apply call bind".split(" "); - var keywords = ("break case catch continue debugger default delete do else false finally for function " + - "if in instanceof new null return switch throw true try typeof var void while with").split(" "); - - function getCompletions(token, context) { - var found = [], start = token.string; - function maybeAdd(str) { - if (str.indexOf(start) == 0) found.push(str); - } - function gatherCompletions(obj) { - if (typeof obj == "string") forEach(stringProps, maybeAdd); - else if (obj instanceof Array) forEach(arrayProps, maybeAdd); - else if (obj instanceof Function) forEach(funcProps, maybeAdd); - for (var name in obj) maybeAdd(name); - } - - if (context) { - // If this is a property, see if it belongs to some object we can - // find in the current environment. - var obj = context.pop(), base; - if (obj.className == "js-variable") - base = window[obj.string]; - else if (obj.className == "js-string") - base = ""; - else if (obj.className == "js-atom") - base = 1; - while (base != null && context.length) - base = base[context.pop().string]; - if (base != null) gatherCompletions(base); - } - else { - // If not, just look in the window object and any local scope - // (reading into JS mode internals to get at the local variables) - for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name); - gatherCompletions(window); - forEach(keywords, maybeAdd); - } - return found; - } -})(); diff --git a/js/codemirror/demo/marker.html b/js/codemirror/demo/marker.html deleted file mode 100644 index 7b3a2ba9d4..0000000000 --- a/js/codemirror/demo/marker.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - CodeMirror 2: Breakpoint Demo - - - - - - - - - -

CodeMirror 2: Breakpoint demo

- -
- -

Click the line-number gutter to add or remove 'breakpoints'.

- - - - - diff --git a/js/codemirror/demo/mustache.html b/js/codemirror/demo/mustache.html deleted file mode 100644 index 6541f10592..0000000000 --- a/js/codemirror/demo/mustache.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - CodeMirror 2: Overlay Parser Demo - - - - - - - - - - -

CodeMirror 2: Overlay Parser Demo

- -
- - - -

Demonstration of a mode that parses HTML, highlighting - the Mustache templating - directives inside of it by using the code - in overlay.js. View - source to see the 15 lines of code needed to accomplish this.

- - - diff --git a/js/codemirror/demo/resize.html b/js/codemirror/demo/resize.html deleted file mode 100644 index 0022044d29..0000000000 --- a/js/codemirror/demo/resize.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - CodeMirror 2: Autoresize Demo - - - - - - - - - -

CodeMirror 2: Autoresize demo

- -
- -

By setting a single CSS property, CodeMirror can be made to -automatically resize to fit the content. Use max-height -to prevent it from growing past a given point (on halfway modern -browsers).

- - - - - diff --git a/js/codemirror/demo/search.html b/js/codemirror/demo/search.html deleted file mode 100644 index 5fe8c9d0b4..0000000000 --- a/js/codemirror/demo/search.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - CodeMirror 2: Search/Replace Demo - - - - - - - - - -

CodeMirror 2: Search/Replace Demo

- -
- - or - it by - - - - -

Demonstration of search/replace functionality and marking - text.

- - - diff --git a/js/codemirror/index.html b/js/codemirror/index.html deleted file mode 100644 index c60ede49bb..0000000000 --- a/js/codemirror/index.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - CodeMirror - - - - - - -

{ } CodeMirror

- -
-/* In-browser code editing
-   made bearable */
-
- -
- -

CodeMirror is a JavaScript library that can - be used to create a relatively pleasant editor interface for - code-like content ― computer programs, HTML markup, and - similar. If a mode has been written for the language you are - editing, the code will be coloured, and the editor will optionally - help you with indentation.

- -

This is the project page for CodeMirror 2, the currently more - actively developed, and recommended - version. CodeMirror 1 is still available - from here.

- - - -

Getting the code

- -

All of CodeMirror is released under a MIT-style license. To get it, you can download - the latest - release or the current development - snapshot as zip files. To create a custom minified script file, - you can use the compression API.

- -

We use git for version control. - The main repository can be fetched in this way:

- -
git clone http://marijnhaverbeke.nl/git/codemirror2
- -

CodeMirror can also be found on GitHub at marijnh/CodeMirror2. - If you plan to hack on the code and contribute patches, the best way - to do it is to create a GitHub fork, and send pull requests.

- -

Documentation

- -

The manual is your first stop for - learning how to use this library. It starts with a quick explanation - of how to use the editor, and then describes all of the (many) - options and methods that CodeMirror exposes.

- -

For those who want to learn more about the code, there is - an overview of the internals available. - The source code - itself is, for the most part, also well commented.

- -

Support and bug reports

- -

There is - a Google - group (a sort of mailing list/newsgroup thing) for discussion - and news related to CodeMirror. Reporting bugs is best done - on github. - You can also e-mail me - directly: Marijn - Haverbeke.

- -

Supported browsers

- -

The following browsers are able to run CodeMirror:

- -
    -
  • Firefox 2 or higher
  • -
  • Chrome, any version
  • -
  • Safari 3 or higher
  • -
  • Internet Explorer 6 or higher
  • -
  • Opera 9 or higher (with some key-handling problems on OS X)
  • -
- -

I am not actively testing against every new browser release, and - vendors have a habit of introducing bugs all the time, so I am - relying on the community to tell me when something breaks. - See here for information on how to contact - me.

- -
- -
- - Download the latest release - -

Make a donation

- -
    -
  • Paypal
  • -
  • Bank
  • -
- - - -

Releases:

- -

26-05-2011: Version 2.01:

-
    -
  • Add a Smalltalk mode.
  • -
  • Add a reStructuredText mode.
  • -
  • Add a Python mode.
  • -
  • Add a PL/SQL mode.
  • -
  • coordsChar now works
  • -
  • Fix a problem where onCursorActivity interfered with onChange.
  • -
  • Fix a number of scrolling and mouse-click-position glitches.
  • -
  • Pass information about the changed lines to onChange.
  • -
  • Support cmd-up/down on OS X.
  • -
  • Add triple-click line selection.
  • -
  • Don't handle shift when changing the selection through the API.
  • -
  • Support "nocursor" mode for readOnly option.
  • -
  • Add an onHighlightComplete option.
  • -
  • Fix the context menu for Firefox.
  • -
- -

28-03-2011: Version 2.0:

-

CodeMirror 2 is a complete rewrite that's - faster, smaller, simpler to use, and less dependent on browser - quirks. See this - and this - for more information. - -

28-03-2011: Version 1.0:

-
    -
  • Fix error when debug history overflows.
  • -
  • Refine handling of C# verbatim strings.
  • -
  • Fix some issues with JavaScript indentation.
  • -
- -

22-02-2011: Version 2.0 beta 2:

-

Somewhate more mature API, lots of bugs shaken out. - -

17-02-2011: Version 0.94:

-
    -
  • tabMode: "spaces" was modified slightly (now indents when something is selected).
  • -
  • Fixes a bug that would cause the selection code to break on some IE versions.
  • -
  • Disabling spell-check on WebKit browsers now works.
  • -
- -

08-02-2011: Version 2.0 beta 1:

-

CodeMirror 2 is a complete rewrite of - CodeMirror, no longer depending on an editable frame.

- -

19-01-2011: Version 0.93:

-
    -
  • Added a Regular Expression parser.
  • -
  • Fixes to the PHP parser.
  • -
  • Support for regular expression in search/replace.
  • -
  • Add save method to instances created with fromTextArea.
  • -
  • Add support for MS T-SQL in the SQL parser.
  • -
  • Support use of CSS classes for highlighting brackets.
  • -
  • Fix yet another hang with line-numbering in hidden editors.
  • -
- -

Older releases...

- -
- -
 
- -
- - -
- - - - - - diff --git a/js/codemirror/internals.html b/js/codemirror/internals.html deleted file mode 100644 index 6a9dba4c95..0000000000 --- a/js/codemirror/internals.html +++ /dev/null @@ -1,382 +0,0 @@ - - - - CodeMirror: Internals - - - - - - -

{ } CodeMirror

- -
-/* (Re-) Implementing A Syntax-
-   Highlighting Editor in JavaScript */
-
- -
- -

- Topic: JavaScript, code editor implementation
- Author: Marijn Haverbeke
- Date: March 2nd 2011 -

- -

This is a followup to -my Brutal Odyssey to the -Dark Side of the DOM Tree story. That one describes the -mind-bending process of implementing (what would become) CodeMirror 1. -This one describes the internals of CodeMirror 2, a complete rewrite -and rethink of the old code base. I wanted to give this piece another -Hunter Thompson copycat subtitle, but somehow that would be out of -place—the process this time around was one of straightforward -engineering, requiring no serious mind-bending whatsoever.

- -

So, what is wrong with CodeMirror 1? I'd estimate, by mailing list -activity and general search-engine presence, that it has been -integrated into about a thousand systems by now. The most prominent -one, since a few weeks, -being Google -code's project hosting. It works, and it's being used widely. - -

Still, I did not start replacing it because I was bored. CodeMirror -1 was heavily reliant on designMode -or contentEditable (depending on the browser). Neither of -these are well specified (HTML5 tries -to specify -their basics), and, more importantly, they tend to be one of the more -obscure and buggy areas of browser functionality—CodeMirror, by using -this functionality in a non-typical way, was constantly running up -against browser bugs. WebKit wouldn't show an empty line at the end of -the document, and in some releases would suddenly get unbearably slow. -Firefox would show the cursor in the wrong place. Internet Explorer -would insist on linkifying everything that looked like a URL or email -address, a behaviour that can't be turned off. Some bugs I managed to -work around (which was often a frustrating, painful process), others, -such as the Firefox cursor placement, I gave up on, and had to tell -user after user that they were known problems, but not something I -could help.

- -

Also, there is the fact that designMode (which seemed -to be less buggy than contentEditable in Webkit and -Firefox, and was thus used by CodeMirror 1 in those browsers) requires -a frame. Frames are another tricky area. It takes some effort to -prevent getting tripped up by domain restrictions, they don't -initialize synchronously, behave strangely in response to the back -button, and, on several browsers, can't be moved around the DOM -without having them re-initialize. They did provide a very nice way to -namespace the library, though—CodeMirror 1 could freely pollute the -namespace inside the frame.

- -

Finally, working with an editable document means working with -selection in arbitrary DOM structures. Internet Explorer (8 and -before) has an utterly different (and awkward) selection API than all -of the other browsers, and even among the different implementations of -document.selection, details about how exactly a selection -is represented vary quite a bit. Add to that the fact that Opera's -selection support tended to be very buggy until recently, and you can -imagine why CodeMirror 1 contains 700 lines of selection-handling -code.

- -

And that brings us to the main issue with the CodeMirror 1 -code base: The proportion of browser-bug-workarounds to real -application code was getting dangerously high. By building on top of a -few dodgy features, I put the system in a vulnerable position—any -incompatibility and bugginess in these features, I had to paper over -with my own code. Not only did I have to do some serious stunt-work to -get it to work on older browsers (as detailed in the -previous story), things -also kept breaking in newly released versions, requiring me to come up -with new scary hacks in order to keep up. This was starting -to lose its appeal.

- -

General Approach

- -

What CodeMirror 2 does is try to sidestep most of the hairy hacks -that came up in version 1. I owe a lot to the -ACE editor for inspiration on how to -approach this.

- -

I absolutely did not want to be completely reliant on key events to -generate my input. Every JavaScript programmer knows that key event -information is horrible and incomplete. Some people (most awesomely -Mihai Bazon with Ymacs) have been able -to build more or less functioning editors by directly reading key -events, but it takes a lot of work (the kind of never-ending, fragile -work I described earlier), and will never be able to properly support -things like multi-keystoke international character input.

- -

So what I do is focus a hidden textarea, and let the browser -believe that the user is typing into that. What we show to the user is -a DOM structure we built to represent his document. If this is updated -quickly enough, and shows some kind of believable cursor, it feels -like a real text-input control.

- -

Another big win is that this DOM representation does not have to -span the whole document. Some CodeMirror 1 users insisted that they -needed to put a 30 thousand line XML document into CodeMirror. Putting -all that into the DOM takes a while, especially since, for some -reason, an editable DOM tree is slower than a normal one on most -browsers. If we have full control over what we show, we must only -ensure that the visible part of the document has been added, and can -do the rest only when needed. (Fortunately, the onscroll -event works almost the same on all browsers, and lends itself well to -displaying things only as they are scrolled into view.)

- -

Input

- -

ACE uses its hidden textarea only as a text input shim, and does -all cursor movement and things like text deletion itself by directly -handling key events. CodeMirror's way is to let the browser do its -thing as much as possible, and not, for example, define its own set of -key bindings. One way to do this would have been to have the whole -document inside the hidden textarea, and after each key event update -the display DOM to reflect what's in that textarea.

- -

That'd be simple, but it is not realistic. For even medium-sized -document the editor would be constantly munging huge strings, and get -terribly slow. What CodeMirror 2 does is put the current selection, -along with an extra line on the top and on the bottom, into the -textarea.

- -

This means that the arrow keys (and their ctrl-variations), home, -end, etcetera, do not have to be handled specially. We just read the -cursor position in the textarea, and update our cursor to match it. -Also, copy and paste work pretty much for free, and people get their -native key bindings, without any special work on my part. For example, -I have emacs key bindings configured for Chrome and Firefox. There is -no way for a script to detect this.

- -

Of course, since only a small part of the document sits in the -textarea, keys like page up and ctrl-end won't do the right thing. -CodeMirror is catching those events and handling them itself.

- -

Selection

- -

Getting and setting the selection range of a textarea in modern -browsers is trivial—you just use the selectionStart -and selectionEnd properties. On IE you have to do some -insane stuff with temporary ranges and compensating for the fact that -moving the selection by a 'character' will treat \r\n as a single -character, but even there it is possible to build functions that -reliably set and get the selection range.

- -

But consider this typical case: When I'm somewhere in my document, -press shift, and press the up arrow, something gets selected. Then, if -I, still holding shift, press the up arrow again, the top of my -selection is adjusted. The selection remembers where its head -and its anchor are, and moves the head when we shift-move. -This is a generally accepted property of selections, and done right by -every editing component built in the past twenty years.

- -

But not something that the browser selection APIs expose.

- -

Great. So when someone creates an 'upside-down' selection, the next -time CodeMirror has to update the textarea, it'll re-create the -selection as an 'upside-up' selection, with the anchor at the top, and -the next cursor motion will behave in an unexpected way—our second -up-arrow press in the example above will not do anything, since it is -interpreted in exactly the same way as the first.

- -

No problem. We'll just, ehm, detect that the selection is -upside-down (you can tell by the way it was created), and then, when -an upside-down selection is present, and a cursor-moving key is -pressed in combination with shift, we quickly collapse the selection -in the textarea to its start, allow the key to take effect, and then -combine its new head with its old anchor to get the real -selection.

- -

In short, scary hacks could not be avoided entirely in CodeMirror -2.

- -

And, the observant reader might ask, how do you even know that a -key combo is a cursor-moving combo, if you claim you support any -native key bindings? Well, we don't, but we can learn. The editor -keeps a set known cursor-movement combos (initialized to the -predictable defaults), and updates this set when it observes that -pressing a certain key had (only) the effect of moving the cursor. -This, of course, doesn't work if the first time the key is used was -for extending an inverted selection, but it works most of the -time.

- -

Intelligent Updating

- -

One thing that always comes up when you have a complicated internal -state that's reflected in some user-visible external representation -(in this case, the displayed code and the textarea's content) is -keeping the two in sync. The naive way is to just update the display -every time you change your state, but this is not only error prone -(you'll forget), it also easily leads to duplicate work on big, -composite operations. Then you start passing around flags indicating -whether the display should be updated in an attempt to be efficient -again and, well, at that point you might as well give up completely.

- -

I did go down that road, but then switched to a much simpler model: -simply keep track of all the things that have been changed during an -action, and then, only at the end, use this information to update the -user-visible display.

- -

CodeMirror uses a concept of operations, which start by -calling a specific set-up function that clears the state and end by -calling another function that reads this state and does the required -updating. Most event handlers, and all the user-visible methods that -change state are wrapped like this. There's a method -called operation that accepts a function, and returns -another function that wraps the given function as an operation.

- -

It's trivial to extend this (as CodeMirror does) to detect nesting, -and, when an operation is started inside an operation, simply -increment the nesting count, and only do the updating when this count -reaches zero again.

- -

If we have a set of changed ranges and know the currently shown -range, we can (with some awkward code to deal with the fact that -changes can add and remove lines, so we're dealing with a changing -coordinate system) construct a map of the ranges that were left -intact. We can then compare this map with the part of the document -that's currently visible (based on scroll offset and editor height) to -determine whether something needs to be updated.

- -

CodeMirror uses two update algorithms—a full refresh, where it just -discards the whole part of the DOM that contains the edited text and -rebuilds it, and a patch algorithm, where it uses the information -about changed and intact ranges to update only the out-of-date parts -of the DOM. When more than 30 percent (which is the current heuristic, -might change) of the lines need to be updated, the full refresh is -chosen (since it's faster to do than painstakingly finding and -updating all the changed lines), in the other case it does the -patching (so that, if you scroll a line or select another character, -the whole screen doesn't have to be re-rendered).

- -

All updating uses innerHTML rather than direct DOM -manipulation, since that still seems to be by far the fastest way to -build documents. There's a per-line function that combines the -highlighting, marking, and -selection info for that line into a snippet of HTML. The patch updater -uses this to reset individual lines, the refresh updater builds an -HTML chunk for the whole visible document at once, and then uses a -single innerHTML update to do the refresh.

- -

Parsers can be Simple

- -

When I wrote CodeMirror 1, I -thought interruptable -parsers were a hugely scary and complicated thing, and I used a -bunch of heavyweight abstractions to keep this supposed complexity -under control: parsers -were iterators -that consumed input from another iterator, and used funny -closure-resetting tricks to copy and resume themselves.

- -

This made for a rather nice system, in that parsers formed strictly -separate modules, and could be composed in predictable ways. -Unfortunately, it was quite slow (stacking three or four iterators on -top of each other), and extremely intimidating to people not used to a -functional programming style.

- -

With a few small changes, however, we can keep all those -advantages, but simplify the API and make the whole thing less -indirect and inefficient. CodeMirror -2's mode API uses explicit state -objects, and makes the parser/tokenizer a function that simply takes a -state and a character stream abstraction, advances the stream one -token, and returns the way the token should be styled. This state may -be copied, optionally in a mode-defined way, in order to be able to -continue a parse at a given point. Even someone who's never touched a -lambda in his life can understand this approach. Additionally, far -fewer objects are allocated in the course of parsing now.

- -

The biggest speedup comes from the fact that the parsing no longer -has to touch the DOM though. In CodeMirror 1, on an older browser, you -could see the parser work its way through the document, -managing some twenty lines in each 50-millisecond time slice it got. It -was reading its input from the DOM, and updating the DOM as it went -along, which any experienced JavaScript programmer will immediately -spot as a recipe for slowness. In CodeMirror 2, the parser usually -finishes the whole document in a single 100-millisecond time slice—it -manages some 1500 lines during that time on Chrome. All it has to do -is munge strings, so there is no real reason for it to be slow -anymore.

- -

What Gives?

- -

Given all this, what can you expect from CodeMirror 2? First, the -good:

- -
    - -
  • Small. the base library is some 32k when minified -now, 12k when gzipped. It's smaller than its own logo.
  • - -
  • Lightweight. CodeMirror 2 initializes very -quickly, and does almost no work when it is not focused. This means -you can treat it almost like a textarea, have multiple instances on a -page without trouble.
  • - -
  • Huge document support. Since highlighting is -really fast, and no DOM structure is being built for non-visible -content, you don't have to worry about locking up your browser when a -user enters a megabyte-sized document.
  • - -
  • Extended API. Some things kept coming up in the -mailing list, such as marking pieces of text or lines, which were -extremely hard to do with CodeMirror 1. The new version has proper -support for these built in.
  • - -
  • Tab support. Tabs inside editable documents were, -for some reason, a no-go. At least six different people announced they -were going to add tab support to CodeMirror 1, none survived (I mean, -none delivered a working version). CodeMirror 2 no longer removes tabs -from your document.
  • - -
  • Sane styling. iframe nodes aren't -really known for respecting document flow. Now that an editor instance -is a plain div element, it is much easier to size it to -fit the surrounding elements. You don't even have to make it scroll if -you do not want to.
  • - -
- -

Then, the bad:

- -
    - -
  • No line-wrapping. I'd have liked to get -line-wrapping to work, but it doesn't match the model I'm using very -well. It is important that cursor movement in the textarea matches -what you see on the screen, and it seems to be impossible to have the -lines wrapped the same in the textarea and the normal DOM.
  • - -
  • Some cursor flakiness. The textarea hack does not -really do justice to the complexity of cursor handling—a selection is -typically more than just an offset into a string. For example, if you -use the up and down arrow keys to move to a shorter line and then -back, you'll end up in your old position in most editor controls, but -CodeMirror 2 currently doesn't remember the 'real' cursor column in -this case. These can be worked around on a case-by-case basis, but -I haven't put much energy into that yet.
  • - -
- -
- -
 
- - - - diff --git a/js/codemirror/lib/codemirror.css b/js/codemirror/lib/codemirror.css deleted file mode 100644 index e9db4eb49e..0000000000 --- a/js/codemirror/lib/codemirror.css +++ /dev/null @@ -1,56 +0,0 @@ -.CodeMirror { - overflow: auto; - height: 300px; - line-height: 1em; - font-family: monospace; -} - -.CodeMirror-gutter { - position: absolute; left: 0; top: 0; - background-color: #f7f7f7; - border-right: 1px solid #eee; - min-width: 2em; - height: 100%; -} -.CodeMirror-gutter-text { - color: #aaa; - text-align: right; - padding: .4em .2em .4em .4em; -} -.CodeMirror-lines { - padding: .4em; -} - -.CodeMirror pre { - -moz-border-radius: 0; - -webkit-border-radius: 0; - -o-border-radius: 0; - border-radius: 0; - border-width: 0; margin: 0; padding: 0; background: transparent; - font-family: inherit; -} - -.CodeMirror textarea { - font-family: monospace !important; -} - -.CodeMirror-cursor { - z-index: 10; - position: absolute; - visibility: hidden; - border-left: 1px solid black !important; -} -.CodeMirror-focused .CodeMirror-cursor { - visibility: visible; -} - -span.CodeMirror-selected { - background: #ccc !important; - color: HighlightText !important; -} -.CodeMirror-focused span.CodeMirror-selected { - background: Highlight !important; -} - -.CodeMirror-matchingbracket {color: #0f0 !important;} -.CodeMirror-nonmatchingbracket {color: #f22 !important;} diff --git a/js/codemirror/lib/overlay.js b/js/codemirror/lib/overlay.js deleted file mode 100644 index c4cdf9fc84..0000000000 --- a/js/codemirror/lib/overlay.js +++ /dev/null @@ -1,51 +0,0 @@ -// Utility function that allows modes to be combined. The mode given -// as the base argument takes care of most of the normal mode -// functionality, but a second (typically simple) mode is used, which -// can override the style of text. Both modes get to parse all of the -// text, but when both assign a non-null style to a piece of code, the -// overlay wins, unless the combine argument was true, in which case -// the styles are combined. - -CodeMirror.overlayParser = function(base, overlay, combine) { - return { - startState: function() { - return { - base: CodeMirror.startState(base), - overlay: CodeMirror.startState(overlay), - basePos: 0, baseCur: null, - overlayPos: 0, overlayCur: null - }; - }, - copyState: function(state) { - return { - base: CodeMirror.copyState(base, state.base), - overlay: CodeMirror.copyState(overlay, state.overlay), - basePos: state.basePos, baseCur: null, - overlayPos: state.overlayPos, overlayCur: null - }; - }, - - token: function(stream, state) { - if (stream.start == state.basePos) { - state.baseCur = base.token(stream, state.base); - state.basePos = stream.pos; - } - if (stream.start == state.overlayPos) { - stream.pos = stream.start; - state.overlayCur = overlay.token(stream, state.overlay); - state.overlayPos = stream.pos; - } - stream.pos = Math.min(state.basePos, state.overlayPos); - if (stream.eol()) state.basePos = state.overlayPos = 0; - - if (state.overlayCur == null) return state.baseCur; - if (state.baseCur != null && combine) return state.baseCur + " " + state.overlayCur; - else return state.overlayCur; - }, - - indent: function(state, textAfter) { - return base.indent(state.base, textAfter); - }, - electricChars: base.electricChars - }; -}; diff --git a/js/codemirror/manual.html b/js/codemirror/manual.html deleted file mode 100644 index 25e6225b89..0000000000 --- a/js/codemirror/manual.html +++ /dev/null @@ -1,797 +0,0 @@ - - - - CodeMirror: User Manual - - - - - - -

{ } CodeMirror

- -
-/* User manual and
-   reference guide */
-
- -
- -

Overview

- -

CodeMirror is a code-editor component that can be embedded in - Web pages. It provides only the editor component, no - accompanying buttons - (see CodeMirror - UI for a drop-in button bar), auto-completion, or other IDE - functionality. It does provide a rich API on top of which such - functionality can be straightforwardly implemented.

- -

CodeMirror works with language-specific modes. Modes are - JavaScript programs that help color (and optionally indent) text - written in a given language. The distribution comes with a few - modes (see the mode/ directory), and it isn't hard - to write new ones for other languages.

- -

Basic Usage

- -

The easiest way to use CodeMirror is to simply load the script - and style sheet found under lib/ in the distribution, - plus the script and style sheet for the mode(s) you want to use. - (See also the compresion helper.) For - example:

- -
<script src="lib/codemirror.js"></script>
-<link rel="stylesheet" href="lib/codemirror.css">
-<script src="mode/javascript/javascript.js"></script>
-<link rel="stylesheet" href="mode/javascript/javascript.css">
- -

Having done this, an editor instance can be created like - this:

- -
var myCodeMirror = CodeMirror(document.body);
- -

The editor will be appended to the document body, will start - empty, and will use the mode that we loaded. To have more control - over the new editor, a configuration object can be passed - to CodeMirror as a second argument:

- -
var myCodeMirror = CodeMirror(document.body, {
-  value: "function myScript(){return 100;}\n",
-  mode:  "javascript"
-});
- -

This will initialize the editor with a piece of code already in - it, and explicitly tell it to use the JavaScript mode (which is - useful when multiple modes are loaded). - See below for a full discussion of the - configuration options that CodeMirror accepts.

- -

In cases where you don't want to append the editor to an - element, and need more control over the way it is inserted, the - first argument to the CodeMirror function can also - be a function that, when given a DOM element, inserts it into the - document somewhere. This could be used to, for example, replace a - textarea with a real editor:

- -
var myCodeMirror = CodeMirror(function(elt) {
-  myTextArea.parentNode.replaceChild(elt, myTextArea);
-}, {value: myTextArea.value});
- -

However, for this use case, which is a common way to use - CodeMirror, the library provides a much more powerful - shortcut:

- -
var myCodeMirror = CodeMirror.fromTextArea(myTextArea);
- -

This will, among other things, ensure that the textarea's value - is updated when the form (if it is part of a form) is submitted. - See the API reference for a full - description of this method.

- -

Configuration

- -

Both the CodeMirror function and - its fromTextArea method take as second (optional) - argument an object containing configuration options. Any option - not supplied like this will be taken - from CodeMirror.defaults, an object containing the - default options. You can update this object to change the defaults - on your page.

- -

Options are not checked in any way, so setting bogus option - values is bound to lead to odd errors.

- -

Note: CodeMirror - 2 does not support - line-wrapping. I would have very much liked to support it, but it - combines extremely poorly with the way the editor is - implemented.

- -

These are the supported options:

- -
-
value (string)
-
The starting value of the editor.
- -
mode (string or object)
-
The mode to use. When not given, this will default to the - first mode that was loaded. It may be a string, which either - simply names the mode or is - a MIME type - associated with the mode. Alternatively, it may be an object - containing configuration options for the mode, with - a name property that names the mode (for - example {name: "javascript", json: true}). The demo - pages for each mode contain information about what configuration - parameters the mode supports. You can ask CodeMirror which modes - and MIME types are loaded with - the CodeMirror.listModes - and CodeMirror.listMIMEs functions.
- -
indentUnit (integer)
-
How many spaces a block (whatever that means in the edited - language) should be indented. The default is 2.
- -
indentWithTabs (boolean)
-
Whether, when indenting, the first N*8 spaces should be - replaced by N tabs. Default is false.
- -
tabMode (string)
-
Determines what happens when the user presses the tab key. - Must be one of the following: -
-
"classic" (the default)
-
When nothing is selected, insert a tab. Otherwise, - behave like the "shift" mode. (When shift is - held, this behaves like the "indent" mode.)
-
"shift"
-
Indent all selected lines by - one indentUnit. - If shift was held while pressing tab, un-indent all selected - lines one unit.
-
"indent"
-
Indent the line the 'correctly', based on its syntactic - context. Only works if the - mode supports it.
-
"default"
-
Do not capture tab presses, let the browser apply its - default behaviour (which usually means it skips to the next - control).
-
- -
enterMode (string)
-
Determines whether and how new lines are indented when the - enter key is pressed. The following modes are supported: -
-
"indent" (the default)
-
Use the mode's indentation rules to give the new line - the correct indentation.
-
"keep"
-
Indent the line the same as the previous line.
-
"flat"
-
Do not indent the new line.
-
- -
electricChars (boolean)
-
Configures whether the editor should re-indent the current - line when a character is typed that might change its proper - indentation (only works if the mode supports indentation). - Default is true.
- -
lineNumbers (boolean)
-
Whether to show line numbers to the left of the editor.
- -
firstLineNumber (integer)
-
At which number to start counting lines. Default is 1.
- -
gutter (boolean)
-
Can be used to force a 'gutter' (empty space on the left of - the editor) to be shown even when no line numbers are active. - This is useful for setting markers.
- -
readOnly (boolean)
-
This disables editing of the editor content by the user. - (Changes through API functions will still be possible.) If you - also want to disable the cursor, use "nocursor" as - a value for this option, instead of true.
- -
onChange (function)
-
When given, this function will be called every time the - content of the editor is changed. It will be given the editor - instance as only argument.
- -
onCursorActivity (function)
-
Like onChange, but will also be called when the - cursor moves without any changes being made.
- -
onGutterClick (function)
-
When given, will be called whenever the editor gutter (the - line-number area) is clicked. Will be given the editor instance - as first argument, and the (zero-based) number of the line that - was clicked as second argument.
- -
onFocus, onBlur (function)
-
The given functions will be called whenever the editor is - focused or unfocused.
- -
onScroll (function)
-
When given, will be called whenever the editor is - scrolled.
- -
onHighlightComplete (function)
-
Whenever the editor's content has been fully highlighted, - this function (if given) will be called. It'll be given a single - argument, the editor instance.
- -
matchBrackets (boolean)
-
Determines whether brackets are matched whenever the cursor - is moved next to a bracket.
- -
workTime, workDelay (number)
-
Highlighting is done by a pseudo background-thread that will - work for workTime milliseconds, and then use - timeout to sleep for workDelay milliseconds. The - defaults are 200 and 300, you can change these options to make - the highlighting more or less aggressive.
- -
undoDepth (integer)
-
The maximum number of undo levels that the editor stores. - Defaults to 40.
- -
tabindex (integer)
-
The tab - index to assign to the editor. If not given, no tab index - will be assigned.
- -
document (DOM document)
-
Use this if you want to display the editor in another DOM. - By default it will use the global document - object.
- -
onKeyEvent (function)
-
This provides a rather low-level hook into CodeMirror's key - handling. If provided, this function will be called on - every keydown, keyup, - and keypress event that CodeMirror captures. It - will be passed two arguments, the editor instance and the key - event. This key event is pretty much the raw key event, except - that a stop() method is always added to it. You - could feed it to, for example, jQuery.Event to - further normalize it.
This function can inspect the key - event, and handle it if it wants to. It may return true to tell - CodeMirror to ignore the event. Be wary that, on some browsers, - stopping a keydown does not stop - the keypress from firing, whereas on others it - does. If you respond to an event, you should probably inspect - its type property and only do something when it - is keydown (or keypress for actions - that need character data).
-
- -

Customized Styling

- -

Up to a certain extent, CodeMirror's look can be changed by - modifying style sheet files. The style sheets supplied by modes - simply provide the colors for that mode, and can be adapted in a - very straightforward way. To style the editor itself, it is - possible to alter or override the styles defined - in codemirror.css.

- -

Some care must be taken there, since a lot of the rules in this - file are necessary to have CodeMirror function properly. Adjusting - colors should be safe, of course, and with some care a lot of - other things can be changed as well. The CSS classes defined in - this file serve the following roles:

- -
-
CodeMirror
-
The outer element of the editor. This determines whether the - editor scrolls (overflow: auto + fixed height). Can - also be used to set styles that should hold for everything - inside the editor, or to set a background.
- -
CodeMirror-focused
-
Whenever the editor is focused, the top element gets this - class. This is used to hide the cursor and give the selection a - different color when the editor is not focused.
- -
CodeMirror-gutter
-
Use this for giving a background or a border to the editor - gutter. Don't set any padding here, - use CodeMirror-gutter-text for that. By default, - the gutter is 'fluid', meaning it will adjust its width to the - maximum line number or line marker width. You can also set a - fixed width if you want.
- -
CodeMirror-gutter-text
-
Used to style the actual line numbers. For the numbers to - line up, you'll want this style to use exactly the same font and - vertical padding as normal edited text, as per - the CodeMirror-lines class.
- -
CodeMirror-lines
-
The visible lines. If this has vertical - padding, CodeMirror-gutter should have the same - padding.
- -
CodeMirror-cursor
-
The cursor is a block element that is absolutely positioned. - You can make it look whichever way you want.
- -
CodeMirror-selected
-
The selection is represented by span elements - with this class.
- -
CodeMirror-matchingbracket, - CodeMirror-nonmatchingbracket
-
These are used to style matched (or unmatched) brackets.
-
- -

The actual lines, as well as the cursor, are represented - by pre elements. By default no text styling (such as - bold) that might change line height is applied. If you do want - such effects, you'll have to give CodeMirror pre a - fixed height. Also, you must still take care that character width - is constant.

- -

If your page's style sheets do funky things to - all div or pre elements (you probably - shouldn't do that), you'll have to define rules to cancel these - effects out again for elements under the CodeMirror - class.

- -

Programming API

- -

A lot of CodeMirror features are only available through its API. - This has the disadvantage that you need to do work to enable them, - and the advantage that CodeMirror will fit seamlessly into your - application.

- -

Whenever points in the document are represented, the API uses - objects with line and ch properties. - Both are zero-based. CodeMirror makes sure to 'clip' any positions - passed by client code so that they fit inside the document, so you - shouldn't worry too much about sanitizing your coordinates. If you - give ch a value of null, or don't - specify it, it will be replaced with the length of the specified - line.

- -
-
getValue() → string
-
Get the current editor content.
-
setValue(string)
-
Set the editor content.
- -
getSelection() → string
-
Get the currently selected code.
-
replaceSelection(string)
-
Replace the selection with the given string.
- -
focus()
-
Give the editor focus.
- -
setOption(option, value)
-
Change the configuration of the editor. option - should the name of an option, - and value should be a valid value for that - option.
-
getOption(option) → value
-
Retrieves the current value of the given option for this - editor instance.
- -
cursorCoords(start) → object
-
Returns an {x, y, yBot} object containing the - coordinates of the cursor relative to the top-left corner of the - page. yBot is the coordinate of the bottom of the - cursor. start is a boolean indicating whether you - want the start or the end of the selection.
-
charCoords(pos) → object
-
Like cursorCoords, but returns the position of - an arbitrary characters. pos should be - a {line, ch} object.
-
coordsChar(object) → pos
-
Given an {x, y} object (in page coordinates), - returns the {line, ch} position that corresponds to - it.
- -
undo()
-
Undo one edit (if any undo events are stored).
-
redo()
-
Redo one undone edit.
-
historySize() → object
-
Returns an object with {undo, redo} properties, - both of which hold integers, indicating the amount of stored - undo and redo operations.
- -
indentLine(line)
-
Reset the given line's indentation to the indentation - prescribed by the mode.
- -
getSearchCursor(query, start, caseFold) → cursor
-
Used to implement search/replace - functionality. query can be a regular expression or - a string (only strings will match across lines—if they contain - newlines). start provides the starting position of - the search. It can be a {line, ch} object, or can - be left off to default to the start of the - document. caseFold is only relevant when matching a - string. It will cause the search to be case-insensitive. A - search cursor has the following methods: -
-
findNext(), findPrevious() → boolean
-
Search forward or backward from the current position. - The return value indicates whether a match was found. If - matching a regular expression, the return value will be the - array returned by the match method, in case you - want to extract matched groups.
-
from(), to() → object
-
These are only valid when the last call - to findNext or findPrevious did - not return false. They will return {line, ch} - objects pointing at the start and end of the match.
-
- -
getTokenAt(pos) → object
-
Retrieves information about the token the current mode found - at the given position (a {line, ch} object). The - returned object has the following properties: -
-
start
The character (on the given line) at which the token starts.
-
end
The character at which the token ends.
-
string
The token's string.
-
className
The class the mode assigned - to the token. (Can be null when no class was assigned.)
-
- -
markText(from, to, className) → function
-
Can be used to mark a range of text with a specific CSS - class name. from and to should - be {line, ch} objects. The method will return a - function that can be called to remove the marking.
- -
setMarker(line, text, className) → lineHandle
-
Add a gutter marker for the given line. Gutter markers are - shown in the line-number area (instead of the number for this - line). Both text and className are - optional. Setting text to a Unicode character like - ● tends to give a nice effect. To put a picture in the gutter, - set text to a space and className to - something that sets a background image. If you - specify text, the given text (which may contain - HTML) will, by default, replace the line number for that line. - If this is not what you want, you can include the - string %N% in the text, which will be replaced by - the line number.
-
clearMarker(line)
-
Clears a marker created - with setMarker. line can be either a - number or a handle returned by setMarker (since a - number may now refer to a different line if something was added - or deleted).
-
setLineClass(line, className) → lineHandle
-
Set a CSS class name for the given line. line - can be a number or a line handle (as returned - by setMarker or this function). - Pass null to clear the class for a line.
- -
lineInfo(line) → object
-
Returns the line number, text content, and marker status of - the given line, which can be either a number or a handle - returned by setMarker. The returned object has the - structure {line, text, markerText, markerClass}.
- -
addWidget(pos, node, scrollIntoView)
-
Puts node, which should be an absolutely - positioned DOM node, into the editor, positioned right below the - given {line, ch} position. - When scrollIntoView is true, the editor will ensure - that the entire node is visible (if possible). To remove the - widget again, simply use DOM methods (move it somewhere else, or - call removeChild on its parent).
- -
matchBrackets()
-
Force matching-bracket-highlighting to happen.
- -
lineCount() → number
-
Get the number of lines in the editor.
- -
getCursor(start) → object
-
start is a boolean indicating whether the start - or the end of the selection must be retrieved. If it is not - given, the current cursor pos, i.e. the side of the selection - that would move if you pressed an arrow key, is chosen. - A {line, ch} object will be returned.
-
somethingSelected() → boolean
-
Return true if any text is selected.
-
setCursor(pos)
-
Set the cursor position. You can either pass a - single {line, ch} object, or the line and the - character as two separate parameters.
-
setSelection(start, end)
-
Set the selection range. start - and end should be {line, ch} objects.
- -
getLine(n) → string
-
Get the content of line n.
-
setLine(n, text)
-
Set the content of line n.
-
removeLine(n)
-
Remove the given line from the document.
- -
getRange(from, to) → string -
Get the text between the given points in the editor, which - should be {line, ch} objects.
-
replaceRange(string, from, to)
-
Replace the part of the document between from - and to with the given string. from - and to must be {line, ch} - objects. to can be left off to simply insert the - string at position from.
-
- -

The following are more low-level methods:

- -
-
operation(func) → result
-
CodeMirror internally buffers changes and only updates its - DOM structure after it has finished performing some operation. - If you need to perform a lot of operations on a CodeMirror - instance, you can call this method with a function argument. It - will call the function, buffering up all changes, and only doing - the expensive update after the function returns. This can be a - lot faster. The return value from this method will be the return - value of your function.
- -
refresh()
-
If your code does something to change the size of the editor - element (window resizes are already listened for), or unhides - it, you should probably follow up by calling this method to - ensure CodeMirror is still looking as intended.
- -
getInputField() → textarea
-
Returns the hiden textarea used to read input.
-
getWrapperElement() → node
-
Returns the DOM node that represents the editor. Remove this - from your tree to delete an editor instance.
-
- -

Finally, the CodeMirror object - itself has a method fromTextArea. This takes a - textarea DOM node as first argument and an optional configuration - object as second. It will replace the textarea with a CodeMirror - instance, and wire up the form of that textarea (if any) to make - sure the editor contents are put into the textarea when the form - is submitted. A CodeMirror instance created this way has two - additional methods:

- -
-
save()
-
Copy the content of the editor into the textarea.
- -
toTextArea()
-
Remove the editor, and restore the original textarea (with - the editor's current content).
-
- -

Writing CodeMirror Modes

- -

Modes typically consist of a JavaScript file and a CSS file. - The CSS file (see, for - example javascript.css) - defines the classes that will be used to style the syntactic - elements of the code, and the script contains the logic to - actually assign these classes to the right pieces of text.

- -

You'll usually want to use some kind of prefix for your CSS - classes, so that they are unlikely to clash with other classes, - both those used by other modes and those defined by the page in - which CodeMirror is embedded.

- -

The mode script should - call CodeMirror.defineMode to register itself with - CodeMirror. This function takes two arguments. The first should be - the name of the mode, for which you should use a lowercase string, - preferably one that is also the name of the files that define the - mode (i.e. "xml" is defined xml.js). The - second argument should be a function that, given a CodeMirror - configuration object (the thing passed to - the CodeMirror function) and a mode configuration - object (as in the mode - option), returns a mode object.

- -

Typically, you should use this second argument - to defineMode as your module scope function (modes - should not leak anything into the global scope!), i.e. write your - whole mode inside this function.

- -

The main responsibility of a mode script is parsing - the content of the editor. Depending on the language and the - amount of functionality desired, this can be done in really easy - or extremely complicated ways. Some parsers can be stateless, - meaning that they look at one element (token) of the code - at a time, with no memory of what came before. Most, however, will - need to remember something. This is done by using a state - object, which is an object that can be mutated every time a - new token is read.

- -

Modes that use a state must define - a startState method on their mode object. This is a - function of no arguments that produces a state object to be used - at the start of a document.

- -

The most important part of a mode object is - its token(stream, state) method. All modes must - define this method. It should read one token from the stream it is - given as an argument, optionally update its state, and return a - CSS class string, or null for tokens that do not have - to be styled.

- -

By default, blank lines are simply skipped when - tokenizing a document. For languages that have significant blank - lines, you can define a blankLine(state) method on - your mode that will get called whenever a blank line is passed - over, so that it can update the parser state.

- -

The stream object encapsulates a line of code - (tokens may never span lines) and our current position in that - line. It has the following API:

- -
-
eol() → boolean
-
Returns true only if the stream is at the end of the - line.
-
sol() → boolean
-
Returns true only if the stream is at the start of the - line.
- -
peek() → character
-
Returns the next character in the stream without advancing - it. Will return undefined at the end of the - line.
-
next() → character
-
Returns the next character in the stream and advances it. - Also returns undefined when no more characters are - available.
- -
eat(match) → character
-
match can be a character, a regular expression, - or a function that takes a character and returns a boolean. If - the next character in the stream 'matches' the given argument, - it is consumed and returned. Otherwise, undefined - is returned.
-
eatWhile(match) → boolean
-
Repeatedly calls eat with the given argument, - until it fails. Returns true if any characters were eaten.
-
eatSpace() → boolean
-
Shortcut for eatWhile when matching - white-space.
-
skipToEnd()
-
Moves the position to the end of the line.
-
skipTo(ch) → boolean
-
Skips to the next occurrence of the given character, if - found. Returns true if the character was found.
-
match(pattern, consume, caseFold) → boolean
-
Act like a - multi-character eat—if consume is true - or not given—or a look-ahead that doesn't update the stream - position—if it is false. pattern can be either a - string or a regular expression starting with ^. - When it is a string, caseFold can be set to true to - make the match case-insensitive. When successfully matching a - regular expression, the returned value will be the array - returned by match, in case you need to extract - matched groups.
- -
backUp(n)
-
Backs up the stream n characters. Backing it up - further than the start of the current token will cause things to - break, so be careful.
-
column() → integer
-
Returns the column (taking into account tabs) at which the - current token starts. Can be used to find out whether a token - starts a new line.
-
indentation() → integer
-
Tells you how far the current line has been indented, in - spaces. Corrects for tab characters.
- -
current() → string
-
Get the string between the start of the current token and - the current stream position.
-
- -

Because state object are mutated, and CodeMirror - needs to keep valid versions of a state around so that it can - restart a parse at any line, copies must be made of state objects. - The default algorithm used is that a new state object is created, - which gets all the properties of the old object. Any properties - which hold arrays get a copy of these arrays (since arrays tend to - be used as mutable stacks). When this is not correct, for example - because a mode mutates non-array properties of its state object, a - mode object should define a copyState method, - which is given a state and should return a safe copy of that - state.

- -

If you want your mode to provide smart indentation - (see entermode - and tabMode when they - have a value of "indent"), you must define - an indent(state, textAfter) method on your mode - object.

- -

The indentation method should inspect the given state object, - and optionally the textAfter string, which contains - the text on the line that is being indented, and return an - integer, the amount of spaces to indent. It should usually take - the indentUnit - option into account.

- -

Finally, a mode may define - an electricChars property, which should hold a string - containing all the characters that should trigger the behaviour - described for - the electricChars - option.

- -

So, to summarize, a mode must provide - a token method, and it may - provide startState, copyState, - and indent methods. For an example of a trivial mode, - see the diff mode, for a more - involved example, see - the JavaScript - mode.

- -

Sometimes, it is useful for modes to nest—to have one - mode delegate work to another mode. An example of this kind of - mode is the mixed-mode HTML - mode. To implement such nesting, it is usually necessary to - create mode objects and copy states yourself. To create a mode - object, there are CodeMirror.getMode(options, - parserConfig), where the first argument is a configuration - object as passed to the mode constructor function, and the second - argument is a mode specification as in - the mode option. To copy a - state object, call CodeMirror.copyState(mode, state), - where mode is the mode that created the given - state.

- -

To make indentation work properly in a nested parser, it is - advisable to give the startState method of modes that - are intended to be nested an optional argument that provides the - base indentation for the block of code. The JavaScript and CSS - parser do this, for example, to allow JavaScript and CSS code - inside the mixed-mode HTML mode to be properly indented.

- -

Finally, it is possible to associate your mode, or a certain - configuration of your mode, with - a MIME type. For - example, the JavaScript mode associates itself - with text/javascript, and its JSON variant - with application/json. To do this, - call CodeMirror.defineMIME(mime, modeSpec), - where modeSpec can be a string or object specifying a - mode, as in the mode - option.

- -
- -
 
- - - - - diff --git a/js/codemirror/mode/clike/clike.css b/js/codemirror/mode/clike/clike.css deleted file mode 100644 index 052010f9db..0000000000 --- a/js/codemirror/mode/clike/clike.css +++ /dev/null @@ -1,7 +0,0 @@ -span.c-like-keyword {color: #90b;} -span.c-like-number {color: #291;} -span.c-like-comment {color: #a70;} -span.c-like-string {color: #a22;} -span.c-like-preprocessor {color: #049;} -span.c-like-var {color: #22b;} -span.c-like-annotation {color: #666;} diff --git a/js/codemirror/mode/clike/clike.js b/js/codemirror/mode/clike/clike.js deleted file mode 100644 index 73f418e707..0000000000 --- a/js/codemirror/mode/clike/clike.js +++ /dev/null @@ -1,187 +0,0 @@ -CodeMirror.defineMode("clike", function(config, parserConfig) { - var indentUnit = config.indentUnit, keywords = parserConfig.keywords, - cpp = parserConfig.useCPP, multiLineStrings = parserConfig.multiLineStrings, - $vars = parserConfig.$vars, atAnnotations = parserConfig.atAnnotations; - var isOperatorChar = /[+\-*&%=<>!?|]/; - - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - - var type; - function ret(tp, style) { - type = tp; - return style; - } - - function tokenBase(stream, state) { - var ch = stream.next(); - if (ch == '"' || ch == "'") - return chain(stream, state, tokenString(ch)); - else if (/[\[\]{}\(\),;\:\.]/.test(ch)) - return ret(ch); - else if (ch == "#" && cpp && state.startOfLine) { - stream.skipToEnd(); - return ret("directive", "c-like-preprocessor"); - } - else if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/) - return ret("number", "c-like-number"); - } - else if (ch == "/") { - if (stream.eat("*")) { - return chain(stream, state, tokenComment); - } - else if (stream.eat("/")) { - stream.skipToEnd(); - return ret("comment", "c-like-comment"); - } - else { - stream.eatWhile(isOperatorChar); - return ret("operator"); - } - } - else if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return ret("operator"); - } - else if (atAnnotations && ch == "@") { - stream.eatWhile(/[\w\$_]/); - return ret("annotation", "c-like-annotation"); - } - else if ($vars && ch == "$") { - stream.eatWhile(/[\w\$_]/); - return ret("word", "c-like-var"); - } - else { - stream.eatWhile(/[\w\$_]/); - if (keywords && keywords.propertyIsEnumerable(stream.current())) return ret("keyword", "c-like-keyword"); - return ret("word", "c-like-word"); - } - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) {end = true; break;} - escaped = !escaped && next == "\\"; - } - if (end || !(escaped || multiLineStrings)) - state.tokenize = tokenBase; - return ret("string", "c-like-string"); - }; - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return ret("comment", "c-like-comment"); - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - - function pushContext(state, col, type) { - return state.context = new Context(state.indented, col, type, null, state.context); - } - function popContext(state) { - return state.context = state.context.prev; - } - - // Interface - - return { - startState: function(basecolumn) { - return { - tokenize: tokenBase, - context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), - indented: 0, - startOfLine: true - }; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - } - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - if (type == "comment") return style; - if (ctx.align == null) ctx.align = true; - - if ((type == ";" || type == ":") && ctx.type == "statement") popContext(state); - else if (type == "{") pushContext(state, stream.column(), "}"); - else if (type == "[") pushContext(state, stream.column(), "]"); - else if (type == "(") pushContext(state, stream.column(), ")"); - else if (type == "}") { - if (ctx.type == "statement") ctx = popContext(state); - if (ctx.type == "}") ctx = popContext(state); - if (ctx.type == "statement") ctx = popContext(state); - } - else if (type == ctx.type) popContext(state); - else if (ctx.type == "}" || ctx.type == "top") pushContext(state, stream.column(), "statement"); - state.startOfLine = false; - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase) return 0; - var firstChar = textAfter && textAfter.charAt(0), ctx = state.context, closing = firstChar == ctx.type; - if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit); - else if (ctx.align) return ctx.column + (closing ? 0 : 1); - else return ctx.indented + (closing ? 0 : indentUnit); - }, - - electricChars: "{}" - }; -}); - -(function() { - function keywords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - var cKeywords = "auto if break int case long char register continue return default short do sizeof " + - "double static else struct entry switch extern typedef float union for unsigned " + - "goto while enum void const signed volatile"; - - CodeMirror.defineMIME("text/x-csrc", { - name: "clike", - useCPP: true, - keywords: keywords(cKeywords) - }); - CodeMirror.defineMIME("text/x-c++src", { - name: "clike", - useCPP: true, - keywords: keywords(cKeywords + " asm dynamic_cast namespace reinterpret_cast try bool explicit new " + - "static_cast typeid catch false operator template typename class friend private " + - "this using const_cast inline public throw virtual delete mutable protected true " + - "wchar_t") - }); - CodeMirror.defineMIME("text/x-java", { - name: "clike", - atAnnotations: true, - keywords: keywords("abstract assert boolean break byte case catch char class const continue default " + - "do double else enum extends false final finally float for goto if implements import " + - "instanceof int interface long native new null package private protected public " + - "return short static strictfp super switch synchronized this throw throws transient " + - "true try void volatile while") - }); -}()); diff --git a/js/codemirror/mode/clike/index.html b/js/codemirror/mode/clike/index.html deleted file mode 100644 index 0836535d28..0000000000 --- a/js/codemirror/mode/clike/index.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - CodeMirror 2: C-like mode - - - - - - - - -

CodeMirror 2: C-like mode

- -
- - - -

Simple mode that tries to handle C-like languages as well as it - can. Takes two configuration parameters: keywords, an - object whose property names are the keywords in the language, - and useCPP, which determines whether C preprocessor - directives are recognized.

- -

MIME types defined: text/x-csrc - (C code), text/x-c++src (C++ - code), text/x-java (Java code).

- - diff --git a/js/codemirror/mode/css/css.css b/js/codemirror/mode/css/css.css deleted file mode 100644 index 02d40ecb2b..0000000000 --- a/js/codemirror/mode/css/css.css +++ /dev/null @@ -1,9 +0,0 @@ -span.css-at {color: #708;} -span.css-unit {color: #281;} -span.css-value {color: #708;} -span.css-identifier {color: black;} -span.css-selector {color: #11B;} -span.css-important {color: #00F;} -span.css-colorcode {color: #299;} -span.css-comment {color: #A70;} -span.css-string {color: #A22;} diff --git a/js/codemirror/mode/css/css.js b/js/codemirror/mode/css/css.js deleted file mode 100644 index 5faad7b2fc..0000000000 --- a/js/codemirror/mode/css/css.js +++ /dev/null @@ -1,124 +0,0 @@ -CodeMirror.defineMode("css", function(config) { - var indentUnit = config.indentUnit, type; - function ret(style, tp) {type = tp; return style;} - - function tokenBase(stream, state) { - var ch = stream.next(); - if (ch == "@") {stream.eatWhile(/\w/); return ret("css-at", stream.current());} - else if (ch == "/" && stream.eat("*")) { - state.tokenize = tokenCComment; - return tokenCComment(stream, state); - } - else if (ch == "<" && stream.eat("!")) { - state.tokenize = tokenSGMLComment; - return tokenSGMLComment(stream, state); - } - else if (ch == "=") ret(null, "compare"); - else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare"); - else if (ch == "\"" || ch == "'") { - state.tokenize = tokenString(ch); - return state.tokenize(stream, state); - } - else if (ch == "#") { - stream.eatWhile(/\w/); - return ret("css-selector", "hash"); - } - else if (ch == "!") { - stream.match(/^\s*\w*/); - return ret("css-important", "important"); - } - else if (/\d/.test(ch)) { - stream.eatWhile(/[\w.%]/); - return ret("css-unit", "unit"); - } - else if (/[,.+>*\/]/.test(ch)) { - return ret(null, "select-op"); - } - else if (/[;{}:\[\]]/.test(ch)) { - return ret(null, ch); - } - else { - stream.eatWhile(/[\w\\\-_]/); - return ret("css-identifier", "identifier"); - } - } - - function tokenCComment(stream, state) { - var maybeEnd = false, ch; - while ((ch = stream.next()) != null) { - if (maybeEnd && ch == "/") { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return ret("css-comment", "comment"); - } - - function tokenSGMLComment(stream, state) { - var dashes = 0, ch; - while ((ch = stream.next()) != null) { - if (dashes >= 2 && ch == ">") { - state.tokenize = tokenBase; - break; - } - dashes = (ch == "-") ? dashes + 1 : 0; - } - return ret("css-comment", "comment"); - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, ch; - while ((ch = stream.next()) != null) { - if (ch == quote && !escaped) - break; - escaped = !escaped && ch == "\\"; - } - if (!escaped) state.tokenize = tokenBase; - return ret("css-string", "string"); - }; - } - - return { - startState: function(base) { - return {tokenize: tokenBase, - baseIndent: base || 0, - stack: []}; - }, - - token: function(stream, state) { - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - - var context = state.stack[state.stack.length-1]; - if (type == "hash" && context == "rule") style = "css-colorcode"; - else if (style == "css-identifier") { - if (context == "rule") style = "css-value"; - else if (!context || context == "@media{") style = "css-selector"; - } - - if (context == "rule" && /^[\{\};]$/.test(type)) - state.stack.pop(); - if (type == "{") { - if (context == "@media") state.stack[state.stack.length-1] = "@media{"; - else state.stack.push("{"); - } - else if (type == "}") state.stack.pop(); - else if (type == "@media") state.stack.push("@media"); - else if (context != "rule" && context != "@media" && type != "comment") state.stack.push("rule"); - return style; - }, - - indent: function(state, textAfter) { - var n = state.stack.length; - if (/^\}/.test(textAfter)) - n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1; - return state.baseIndent + n * indentUnit; - }, - - electricChars: "}" - }; -}); - -CodeMirror.defineMIME("text/css", "css"); diff --git a/js/codemirror/mode/css/index.html b/js/codemirror/mode/css/index.html deleted file mode 100644 index ad895610f2..0000000000 --- a/js/codemirror/mode/css/index.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - CodeMirror 2: CSS mode - - - - - - - - -

CodeMirror 2: CSS mode

-
- - -

MIME types defined: text/css.

- - - diff --git a/js/codemirror/mode/diff/diff.css b/js/codemirror/mode/diff/diff.css deleted file mode 100644 index 60c1379ed9..0000000000 --- a/js/codemirror/mode/diff/diff.css +++ /dev/null @@ -1,3 +0,0 @@ -span.diff-rangeinfo {color: #a0b;} -span.diff-minus {color: #a22;} -span.diff-plus {color: #2b2;} diff --git a/js/codemirror/mode/diff/diff.js b/js/codemirror/mode/diff/diff.js deleted file mode 100644 index 619d74e2af..0000000000 --- a/js/codemirror/mode/diff/diff.js +++ /dev/null @@ -1,13 +0,0 @@ -CodeMirror.defineMode("diff", function() { - return { - token: function(stream) { - var ch = stream.next(); - stream.skipToEnd(); - if (ch == "+") return "diff-plus"; - if (ch == "-") return "diff-minus"; - if (ch == "@") return "diff-rangeinfo"; - } - }; -}); - -CodeMirror.defineMIME("text/x-diff", "diff"); diff --git a/js/codemirror/mode/diff/index.html b/js/codemirror/mode/diff/index.html deleted file mode 100644 index 2748f2fa8c..0000000000 --- a/js/codemirror/mode/diff/index.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - CodeMirror 2: Diff mode - - - - - - - - -

CodeMirror 2: Diff mode

-
- - -

MIME types defined: text/x-diff.

- - - diff --git a/js/codemirror/mode/haskell/haskell.css b/js/codemirror/mode/haskell/haskell.css deleted file mode 100644 index 41f9155563..0000000000 --- a/js/codemirror/mode/haskell/haskell.css +++ /dev/null @@ -1,25 +0,0 @@ -span.hs-char, -span.hs-float, -span.hs-integer, -span.hs-string {color: #762;} - -span.hs-comment {color: #262;font-style: italic;} -span.hs-pragma {color: #555;font-style: italic;} - -span.hs-special, -span.hs-varid, -span.hs-varsym {color: #000;} - -span.hs-conid, -span.hs-consym {color: #b11;} - -span.hs-qualifier {color: #555;} - -span.hs-reservedid, -span.hs-reservedop {color: #730;} - -span.hs-prelude-varid, -span.hs-prelude-varsym {color: #30a;} -span.hs-prelude-conid {color: #b11;} - -span.hs-error {background-color: #fdd;} diff --git a/js/codemirror/mode/haskell/haskell.js b/js/codemirror/mode/haskell/haskell.js deleted file mode 100644 index 759ff602c9..0000000000 --- a/js/codemirror/mode/haskell/haskell.js +++ /dev/null @@ -1,242 +0,0 @@ -CodeMirror.defineMode("haskell", function(cmCfg, modeCfg) { - - function switchState(source, setState, f) { - setState(f); - return f(source, setState); - } - - // These should all be Unicode extended, as per the Haskell 2010 report - var smallRE = /[a-z_]/; - var largeRE = /[A-Z]/; - var digitRE = /[0-9]/; - var hexitRE = /[0-9A-Fa-f]/; - var octitRE = /[0-7]/; - var idRE = /[a-z_A-Z0-9']/; - var symbolRE = /[-!#$%&*+.\/<=>?@\\^|~:]/; - var specialRE = /[(),;[\]`{}]/; - var whiteCharRE = /[ \t\v\f]/; // newlines are handled in tokenizer - - function normal(source, setState) { - if (source.eatWhile(whiteCharRE)) { - return null; - } - - var ch = source.next(); - if (specialRE.test(ch)) { - if (ch == '{' && source.eat('-')) { - var t = "hs-comment"; - if (source.eat('#')) { - t = "hs-pragma"; - } - return switchState(source, setState, ncomment(t, 1)); - } - return "hs-special"; - } - - if (ch == '\'') { - if (source.eat('\\')) { - source.next(); // should handle other escapes here - } - else { - source.next(); - } - if (source.eat('\'')) { - return "hs-char"; - } - return "hs-error"; - } - - if (ch == '"') { - return switchState(source, setState, stringLiteral); - } - - if (largeRE.test(ch)) { - source.eatWhile(idRE); - if (source.eat('.')) { - return "hs-qualifier"; - } - return "hs-conid"; - } - - if (smallRE.test(ch)) { - source.eatWhile(idRE); - return "hs-varid"; - } - - if (digitRE.test(ch)) { - if (ch == '0') { - if (source.eat(/[xX]/)) { - source.eatWhile(hexitRE); // should require at least 1 - return "hs-integer"; - } - if (source.eat(/[oO]/)) { - source.eatWhile(octitRE); // should require at least 1 - return "hs-integer"; - } - } - source.eatWhile(digitRE); - var t = "hs-integer"; - if (source.eat('.')) { - t = "hs-float"; - source.eatWhile(digitRE); // should require at least 1 - } - if (source.eat(/[eE]/)) { - t = "hs-float"; - source.eat(/[-+]/); - source.eatWhile(digitRE); // should require at least 1 - } - return t; - } - - if (symbolRE.test(ch)) { - if (ch == '-' && source.eat(/-/)) { - source.eatWhile(/-/); - if (!source.eat(symbolRE)) { - source.skipToEnd(); - return "hs-comment"; - } - } - var t = "hs-varsym"; - if (ch == ':') { - t = "hs-consym"; - } - source.eatWhile(symbolRE); - return t; - } - - return "hs-error"; - } - - function ncomment(type, nest) { - if (nest == 0) { - return normal; - } - return function(source, setState) { - var currNest = nest; - while (!source.eol()) { - var ch = source.next(); - if (ch == '{' && source.eat('-')) { - ++currNest; - } - else if (ch == '-' && source.eat('}')) { - --currNest; - if (currNest == 0) { - setState(normal); - return type; - } - } - } - setState(ncomment(type, currNest)); - return type; - } - } - - function stringLiteral(source, setState) { - while (!source.eol()) { - var ch = source.next(); - if (ch == '"') { - setState(normal); - return "hs-string"; - } - if (ch == '\\') { - if (source.eol() || source.eat(whiteCharRE)) { - setState(stringGap); - return "hs-string"; - } - if (source.eat('&')) { - } - else { - source.next(); // should handle other escapes here - } - } - } - setState(normal); - return "hs-error"; - } - - function stringGap(source, setState) { - if (source.eat('\\')) { - return switchState(source, setState, stringLiteral); - } - source.next(); - setState(normal); - return "hs-error"; - } - - - var wellKnownWords = (function() { - var wkw = {}; - function setType(t) { - return function () { - for (var i = 0; i < arguments.length; i++) - wkw[arguments[i]] = t; - } - } - - setType("hs-reservedid")( - "case", "class", "data", "default", "deriving", "do", "else", "foreign", - "if", "import", "in", "infix", "infixl", "infixr", "instance", "let", - "module", "newtype", "of", "then", "type", "where", "_"); - - setType("hs-reservedop")( - "\.\.", ":", "::", "=", "\\", "\"", "<-", "->", "@", "~", "=>"); - - setType("hs-prelude-varsym")( - "!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<=", "=<<", - "==", ">", ">=", ">>", ">>=", "^", "^^", "||", "*", "**"); - - setType("hs-prelude-conid")( - "Bool", "Bounded", "Char", "Double", "EQ", "Either", "Enum", "Eq", - "False", "FilePath", "Float", "Floating", "Fractional", "Functor", "GT", - "IO", "IOError", "Int", "Integer", "Integral", "Just", "LT", "Left", - "Maybe", "Monad", "Nothing", "Num", "Ord", "Ordering", "Rational", "Read", - "ReadS", "Real", "RealFloat", "RealFrac", "Right", "Show", "ShowS", - "String", "True"); - - setType("hs-prelude-varid")( - "abs", "acos", "acosh", "all", "and", "any", "appendFile", "asTypeOf", - "asin", "asinh", "atan", "atan2", "atanh", "break", "catch", "ceiling", - "compare", "concat", "concatMap", "const", "cos", "cosh", "curry", - "cycle", "decodeFloat", "div", "divMod", "drop", "dropWhile", "either", - "elem", "encodeFloat", "enumFrom", "enumFromThen", "enumFromThenTo", - "enumFromTo", "error", "even", "exp", "exponent", "fail", "filter", - "flip", "floatDigits", "floatRadix", "floatRange", "floor", "fmap", - "foldl", "foldl1", "foldr", "foldr1", "fromEnum", "fromInteger", - "fromIntegral", "fromRational", "fst", "gcd", "getChar", "getContents", - "getLine", "head", "id", "init", "interact", "ioError", "isDenormalized", - "isIEEE", "isInfinite", "isNaN", "isNegativeZero", "iterate", "last", - "lcm", "length", "lex", "lines", "log", "logBase", "lookup", "map", - "mapM", "mapM_", "max", "maxBound", "maximum", "maybe", "min", "minBound", - "minimum", "mod", "negate", "not", "notElem", "null", "odd", "or", - "otherwise", "pi", "pred", "print", "product", "properFraction", - "putChar", "putStr", "putStrLn", "quot", "quotRem", "read", "readFile", - "readIO", "readList", "readLn", "readParen", "reads", "readsPrec", - "realToFrac", "recip", "rem", "repeat", "replicate", "return", "reverse", - "round", "scaleFloat", "scanl", "scanl1", "scanr", "scanr1", "seq", - "sequence", "sequence_", "show", "showChar", "showList", "showParen", - "showString", "shows", "showsPrec", "significand", "signum", "sin", - "sinh", "snd", "span", "splitAt", "sqrt", "subtract", "succ", "sum", - "tail", "take", "takeWhile", "tan", "tanh", "toEnum", "toInteger", - "toRational", "truncate", "uncurry", "undefined", "unlines", "until", - "unwords", "unzip", "unzip3", "userError", "words", "writeFile", "zip", - "zip3", "zipWith", "zipWith3"); - - return wkw; - })(); - - - - return { - startState: function () { return { f: normal }; }, - copyState: function (s) { return { f: s.f }; }, - - token: function(stream, state) { - var t = state.f(stream, function(s) { state.f = s; }); - var w = stream.current(); - return (w in wellKnownWords) ? wellKnownWords[w] : t; - } - }; - -}); - -CodeMirror.defineMIME("text/x-haskell", "haskell"); diff --git a/js/codemirror/mode/haskell/index.html b/js/codemirror/mode/haskell/index.html deleted file mode 100644 index 0bf34d5703..0000000000 --- a/js/codemirror/mode/haskell/index.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - CodeMirror 2: Haskell mode - - - - - - - - -

CodeMirror 2: Haskell mode

- -
- - - -

MIME types defined: text/x-haskell.

- - diff --git a/js/codemirror/mode/htmlmixed/htmlmixed.js b/js/codemirror/mode/htmlmixed/htmlmixed.js deleted file mode 100644 index 1de5c9ee81..0000000000 --- a/js/codemirror/mode/htmlmixed/htmlmixed.js +++ /dev/null @@ -1,74 +0,0 @@ -CodeMirror.defineMode("htmlmixed", function(config, parserConfig) { - var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true}); - var jsMode = CodeMirror.getMode(config, "javascript"); - var cssMode = CodeMirror.getMode(config, "css"); - - function html(stream, state) { - var style = htmlMode.token(stream, state.htmlState); - if (style == "xml-tag" && stream.current() == ">" && state.htmlState.context) { - if (/^script$/i.test(state.htmlState.context.tagName)) { - state.token = javascript; - state.localState = jsMode.startState(htmlMode.indent(state.htmlState, "")); - } - else if (/^style$/i.test(state.htmlState.context.tagName)) { - state.token = css; - state.localState = cssMode.startState(htmlMode.indent(state.htmlState, "")); - } - } - return style; - } - function maybeBackup(stream, pat, style) { - var cur = stream.current(); - var close = cur.search(pat); - if (close > -1) stream.backUp(cur.length - close); - return style; - } - function javascript(stream, state) { - if (stream.match(/^<\/\s*script\s*>/i, false)) { - state.token = html; - state.curState = null; - return html(stream, state); - } - return maybeBackup(stream, /<\/\s*script\s*>/, - jsMode.token(stream, state.localState)); - } - function css(stream, state) { - if (stream.match(/^<\/\s*style\s*>/i, false)) { - state.token = html; - state.localState = null; - return html(stream, state); - } - return maybeBackup(stream, /<\/\s*style\s*>/, - cssMode.token(stream, state.localState)); - } - - return { - startState: function() { - var state = htmlMode.startState(); - return {token: html, localState: null, htmlState: state}; - }, - - copyState: function(state) { - if (state.localState) - var local = CodeMirror.copyState(state.token == css ? cssMode : jsMode, state.localState); - return {token: state.token, localState: local, htmlState: CodeMirror.copyState(htmlMode, state.htmlState)}; - }, - - token: function(stream, state) { - return state.token(stream, state); - }, - - indent: function(state, textAfter) { - if (state.token == html || /^\s*<\//.test(textAfter)) - return htmlMode.indent(state.htmlState, textAfter); - else if (state.token == javascript) - return jsMode.indent(state.localState, textAfter); - else - return cssMode.indent(state.localState, textAfter); - }, - - electricChars: "/{}:" - } -}); - -CodeMirror.defineMIME("text/html", "htmlmixed"); diff --git a/js/codemirror/mode/htmlmixed/index.html b/js/codemirror/mode/htmlmixed/index.html deleted file mode 100644 index c661c98d54..0000000000 --- a/js/codemirror/mode/htmlmixed/index.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - CodeMirror 2: HTML mixed mode - - - - - - - - - - - - - -

CodeMirror 2: HTML mixed mode

-
- - -

The HTML mixed mode depends on the XML, JavaScript, and CSS modes.

- -

MIME types defined: text/html - (redefined, only takes effect if you load this parser after the - XML parser).

- - - diff --git a/js/codemirror/mode/javascript/index.html b/js/codemirror/mode/javascript/index.html deleted file mode 100644 index 7b528e041d..0000000000 --- a/js/codemirror/mode/javascript/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - CodeMirror 2: JavaScript mode - - - - - - - - -

CodeMirror 2: JavaScript mode

- -
- - - -

JavaScript mode supports a single configuration - option, json, which will set the mode to expect JSON - data rather than a JavaScript program.

- -

MIME types defined: text/javascript, application/json.

- - diff --git a/js/codemirror/mode/javascript/javascript.css b/js/codemirror/mode/javascript/javascript.css deleted file mode 100644 index 84fb1dfd4f..0000000000 --- a/js/codemirror/mode/javascript/javascript.css +++ /dev/null @@ -1,6 +0,0 @@ -span.js-keyword {color: #90b;} -span.js-atom {color: #291;} -span.js-variabledef {color: #00f;} -span.js-localvariable {color: #049;} -span.js-comment {color: #a70;} -span.js-string {color: #a22;} diff --git a/js/codemirror/mode/javascript/javascript.js b/js/codemirror/mode/javascript/javascript.js deleted file mode 100644 index 0652165911..0000000000 --- a/js/codemirror/mode/javascript/javascript.js +++ /dev/null @@ -1,348 +0,0 @@ -CodeMirror.defineMode("javascript", function(config, parserConfig) { - var indentUnit = config.indentUnit; - var jsonMode = parserConfig.json; - - // Tokenizer - - var keywords = function(){ - function kw(type) {return {type: type, style: "js-keyword"};} - var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"); - var operator = kw("operator"), atom = {type: "atom", style: "js-atom"}; - return { - "if": A, "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B, - "return": C, "break": C, "continue": C, "new": C, "delete": C, "throw": C, - "var": kw("var"), "function": kw("function"), "catch": kw("catch"), - "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"), - "in": operator, "typeof": operator, "instanceof": operator, - "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom - }; - }(); - - var isOperatorChar = /[+\-*&%=<>!?|]/; - - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - - function nextUntilUnescaped(stream, end) { - var escaped = false, next; - while ((next = stream.next()) != null) { - if (next == end && !escaped) - return false; - escaped = !escaped && next == "\\"; - } - return escaped; - } - - // Used as scratch variables to communicate multiple values without - // consing up tons of objects. - var type, content; - function ret(tp, style, cont) { - type = tp; content = cont; - return style; - } - - function jsTokenBase(stream, state) { - var ch = stream.next(); - if (ch == '"' || ch == "'") - return chain(stream, state, jsTokenString(ch)); - else if (/[\[\]{}\(\),;\:\.]/.test(ch)) - return ret(ch); - else if (ch == "0" && stream.eat(/x/i)) { - stream.eatWhile(/[\da-f]/i); - return ret("number", "js-atom"); - } - else if (/\d/.test(ch)) { - stream.match(/^\d*(?:\.\d*)?(?:e[+\-]?\d+)?/); - return ret("number", "js-atom"); - } - else if (ch == "/") { - if (stream.eat("*")) { - return chain(stream, state, jsTokenComment); - } - else if (stream.eat("/")) { - stream.skipToEnd(); - return ret("comment", "js-comment"); - } - else if (state.reAllowed) { - nextUntilUnescaped(stream, "/"); - stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla - return ret("regexp", "js-string"); - } - else { - stream.eatWhile(isOperatorChar); - return ret("operator", null, stream.current()); - } - } - else if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return ret("operator", null, stream.current()); - } - else { - stream.eatWhile(/[\w\$_]/); - var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word]; - return known ? ret(known.type, known.style, word) : - ret("variable", "js-variable", word); - } - } - - function jsTokenString(quote) { - return function(stream, state) { - if (!nextUntilUnescaped(stream, quote)) - state.tokenize = jsTokenBase; - return ret("string", "js-string"); - }; - } - - function jsTokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = jsTokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return ret("comment", "js-comment"); - } - - // Parser - - var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true}; - - function JSLexical(indented, column, type, align, prev, info) { - this.indented = indented; - this.column = column; - this.type = type; - this.prev = prev; - this.info = info; - if (align != null) this.align = align; - } - - function inScope(state, varname) { - for (var v = state.localVars; v; v = v.next) - if (v.name == varname) return true; - } - - function parseJS(state, style, type, content, stream) { - var cc = state.cc; - // Communicate our context to the combinators. - // (Less wasteful than consing up a hundred closures on every call.) - cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; - - if (!state.lexical.hasOwnProperty("align")) - state.lexical.align = true; - - while(true) { - var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement; - if (combinator(type, content)) { - while(cc.length && cc[cc.length - 1].lex) - cc.pop()(); - if (cx.marked) return cx.marked; - if (type == "variable" && inScope(state, content)) return "js-localvariable"; - return style; - } - } - } - - // Combinator utils - - var cx = {state: null, column: null, marked: null, cc: null}; - function pass() { - for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]); - } - function cont() { - pass.apply(null, arguments); - return true; - } - function register(varname) { - var state = cx.state; - if (state.context) { - cx.marked = "js-variabledef"; - for (var v = state.localVars; v; v = v.next) - if (v.name == varname) return; - state.localVars = {name: varname, next: state.localVars}; - } - } - - // Combinators - - var defaultVars = {name: "this", next: {name: "arguments"}}; - function pushcontext() { - if (!cx.state.context) cx.state.localVars = defaultVars; - cx.state.context = {prev: cx.state.context, vars: cx.state.localVars}; - } - function popcontext() { - cx.state.localVars = cx.state.context.vars; - cx.state.context = cx.state.context.prev; - } - function pushlex(type, info) { - var result = function() { - var state = cx.state; - state.lexical = new JSLexical(state.indented, cx.stream.column(), type, null, state.lexical, info) - }; - result.lex = true; - return result; - } - function poplex() { - var state = cx.state; - if (state.lexical.prev) { - if (state.lexical.type == ")") - state.indented = state.lexical.indented; - state.lexical = state.lexical.prev; - } - } - poplex.lex = true; - - function expect(wanted) { - return function expecting(type) { - if (type == wanted) return cont(); - else if (wanted == ";") return pass(); - else return cont(arguments.callee); - }; - } - - function statement(type) { - if (type == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex); - if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex); - if (type == "keyword b") return cont(pushlex("form"), statement, poplex); - if (type == "{") return cont(pushlex("}"), block, poplex); - if (type == ";") return cont(); - if (type == "function") return cont(functiondef); - if (type == "for") return cont(pushlex("form"), expect("("), pushlex(")"), forspec1, expect(")"), - poplex, statement, poplex); - if (type == "variable") return cont(pushlex("stat"), maybelabel); - if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"), - block, poplex, poplex); - if (type == "case") return cont(expression, expect(":")); - if (type == "default") return cont(expect(":")); - if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"), - statement, poplex, popcontext); - return pass(pushlex("stat"), expression, expect(";"), poplex); - } - function expression(type) { - if (atomicTypes.hasOwnProperty(type)) return cont(maybeoperator); - if (type == "function") return cont(functiondef); - if (type == "keyword c") return cont(expression); - if (type == "(") return cont(pushlex(")"), expression, expect(")"), poplex, maybeoperator); - if (type == "operator") return cont(expression); - if (type == "[") return cont(pushlex("]"), commasep(expression, "]"), poplex, maybeoperator); - if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator); - return cont(); - } - function maybeoperator(type, value) { - if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator); - if (type == "operator") return cont(expression); - if (type == ";") return; - if (type == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator); - if (type == ".") return cont(property, maybeoperator); - if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator); - } - function maybelabel(type) { - if (type == ":") return cont(poplex, statement); - return pass(maybeoperator, expect(";"), poplex); - } - function property(type) { - if (type == "variable") {cx.marked = "js-property"; return cont();} - } - function objprop(type) { - if (type == "variable") cx.marked = "js-property"; - if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression); - } - function commasep(what, end) { - function proceed(type) { - if (type == ",") return cont(what, proceed); - if (type == end) return cont(); - return cont(expect(end)); - } - return function commaSeparated(type) { - if (type == end) return cont(); - else return pass(what, proceed); - }; - } - function block(type) { - if (type == "}") return cont(); - return pass(statement, block); - } - function vardef1(type, value) { - if (type == "variable"){register(value); return cont(vardef2);} - return cont(); - } - function vardef2(type, value) { - if (value == "=") return cont(expression, vardef2); - if (type == ",") return cont(vardef1); - } - function forspec1(type) { - if (type == "var") return cont(vardef1, forspec2); - if (type == ";") return pass(forspec2); - if (type == "variable") return cont(formaybein); - return pass(forspec2); - } - function formaybein(type, value) { - if (value == "in") return cont(expression); - return cont(maybeoperator, forspec2); - } - function forspec2(type, value) { - if (type == ";") return cont(forspec3); - if (value == "in") return cont(expression); - return cont(expression, expect(";"), forspec3); - } - function forspec3(type) { - if (type != ")") cont(expression); - } - function functiondef(type, value) { - if (type == "variable") {register(value); return cont(functiondef);} - if (type == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, statement, popcontext); - } - function funarg(type, value) { - if (type == "variable") {register(value); return cont();} - } - - // Interface - - return { - startState: function(basecolumn) { - return { - tokenize: jsTokenBase, - reAllowed: true, - cc: [], - lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false), - localVars: null, - context: null, - indented: 0 - }; - }, - - token: function(stream, state) { - if (stream.sol()) { - if (!state.lexical.hasOwnProperty("align")) - state.lexical.align = false; - state.indented = stream.indentation(); - } - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - if (type == "comment") return style; - state.reAllowed = type == "operator" || type == "keyword c" || type.match(/^[\[{}\(,;:]$/); - return parseJS(state, style, type, content, stream); - }, - - indent: function(state, textAfter) { - if (state.tokenize != jsTokenBase) return 0; - var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, - type = lexical.type, closing = firstChar == type; - if (type == "vardef") return lexical.indented + 4; - else if (type == "form" && firstChar == "{") return lexical.indented; - else if (type == "stat" || type == "form") return lexical.indented + indentUnit; - else if (lexical.info == "switch" && !closing) - return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit); - else if (lexical.align) return lexical.column + (closing ? 0 : 1); - else return lexical.indented + (closing ? 0 : indentUnit); - }, - - electricChars: ":{}" - }; -}); - -CodeMirror.defineMIME("text/javascript", "javascript"); -CodeMirror.defineMIME("application/json", {name: "javascript", json: true}); diff --git a/js/codemirror/mode/php/index.html b/js/codemirror/mode/php/index.html deleted file mode 100644 index 020e248982..0000000000 --- a/js/codemirror/mode/php/index.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - CodeMirror 2: PHP mode - - - - - - - - - - - - - - - -

CodeMirror 2: PHP mode

- -
- - - -

Simple HTML/PHP mode based on - the C-like mode. Depends on XML, - JavaScript, CSS, and C-like modes.

- -

MIME types defined: application/x-httpd-php.

- - diff --git a/js/codemirror/mode/php/php.js b/js/codemirror/mode/php/php.js deleted file mode 100644 index a23538f6b8..0000000000 --- a/js/codemirror/mode/php/php.js +++ /dev/null @@ -1,83 +0,0 @@ -(function() { - function keywords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - var phpKeywords = - keywords("abstract and array as break case catch cfunction class clone const continue declare " + - "default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends " + - "final for foreach function global goto if implements interface instanceof namespace " + - "new or private protected public static switch throw try use var while xor"); - - CodeMirror.defineMode("php", function(config, parserConfig) { - var htmlMode = CodeMirror.getMode(config, "text/html"); - var jsMode = CodeMirror.getMode(config, "text/javascript"); - var cssMode = CodeMirror.getMode(config, "text/css"); - var phpMode = CodeMirror.getMode(config, {name: "clike", keywords: phpKeywords, multiLineStrings: true, $vars: true}); - - function dispatch(stream, state) { // TODO open PHP inside text/css - if (state.curMode == htmlMode) { - var style = htmlMode.token(stream, state.curState); - if (style == "xml-processing" && /^<\?/.test(stream.current())) { - state.curMode = phpMode; - state.curState = state.php; - state.curClose = /^\?>/; - } - else if (style == "xml-tag" && stream.current() == ">" && state.curState.context) { - if (/^script$/i.test(state.curState.context.tagName)) { - state.curMode = jsMode; - state.curState = jsMode.startState(htmlMode.indent(state.curState, "")); - state.curClose = /^<\/\s*script\s*>/i; - } - else if (/^style$/i.test(state.curState.context.tagName)) { - state.curMode = cssMode; - state.curState = cssMode.startState(htmlMode.indent(state.curState, "")); - state.curClose = /^<\/\s*style\s*>/i; - } - } - return style; - } - else if (stream.match(state.curClose, false)) { - state.curMode = htmlMode; - state.curState = state.html; - state.curClose = null; - return dispatch(stream, state); - } - else return state.curMode.token(stream, state.curState); - } - - return { - startState: function() { - var html = htmlMode.startState(); - return {html: html, - php: phpMode.startState(), - curMode: htmlMode, - curState: html, - curClose: null} - }, - - copyState: function(state) { - var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), - php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; - if (state.curState == html) cur = htmlNew; - else if (state.curState == php) cur = phpNew; - else cur = CodeMirror.copyState(state.curMode, state.curState); - return {html: htmlNew, php: phpNew, curMode: state.curMode, curState: cur, curClose: state.curClose}; - }, - - token: dispatch, - - indent: function(state, textAfter) { - if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) || - (state.curMode == phpMode && /^\?>/.test(textAfter))) - return htmlMode.indent(state.html, textAfter); - return state.curMode.indent(state.curState, textAfter); - }, - - electricChars: "/{}:" - } - }); -})(); - -CodeMirror.defineMIME("application/x-httpd-php", "php"); diff --git a/js/codemirror/mode/plsql/index.html b/js/codemirror/mode/plsql/index.html deleted file mode 100644 index b554160bec..0000000000 --- a/js/codemirror/mode/plsql/index.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - CodeMirror 2: Oracle PL/SQL mode - - - - - - - - -

CodeMirror 2: Oracle PL/SQL mode

- -
- - - -

- Simple mode that handles Oracle PL/SQL language (and Oracle SQL, of course). -

- -

MIME type defined: text/x-plsql - (PLSQL code) - diff --git a/js/codemirror/mode/plsql/plsql.css b/js/codemirror/mode/plsql/plsql.css deleted file mode 100644 index 77e8ab9b86..0000000000 --- a/js/codemirror/mode/plsql/plsql.css +++ /dev/null @@ -1,33 +0,0 @@ -span.plsql-keyword { - color: blue; -} -span.plsql-var { - color: red; -} -span.plsql-comment { - color: #AA7700; -} -span.plsql-string { - color: green; -} -span.plsql-operator { - color: blue; -} -span.plsql-word { - color: black; -} -span.plsql-function { - color: darkorange; -} -span.plsql-sqlplus { - color: darkorange; -} -span.plsql-type { - color: purple; -} -span.plsql-separator { - color: #666666; -} -span.plsql-number { - color: darkcyan; -} diff --git a/js/codemirror/mode/plsql/plsql.js b/js/codemirror/mode/plsql/plsql.js deleted file mode 100644 index 5e25944cae..0000000000 --- a/js/codemirror/mode/plsql/plsql.js +++ /dev/null @@ -1,218 +0,0 @@ -CodeMirror.defineMode("plsql", function(config, parserConfig) { - var indentUnit = config.indentUnit, - keywords = parserConfig.keywords, - functions = parserConfig.functions, - types = parserConfig.types, - sqlplus = parserConfig.sqlplus, - multiLineStrings = parserConfig.multiLineStrings; - var isOperatorChar = /[+\-*&%=<>!?:\/|]/; - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - - var type; - function ret(tp, style) { - type = tp; - return style; - } - - function tokenBase(stream, state) { - var ch = stream.next(); - // start of string? - if (ch == '"' || ch == "'") - return chain(stream, state, tokenString(ch)); - // is it one of the special signs []{}().,;? Seperator? - else if (/[\[\]{}\(\),;\.]/.test(ch)) - return ret(ch); - // start of a number value? - else if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/) - return ret("number", "plsql-number"); - } - // multi line comment or simple operator? - else if (ch == "/") { - if (stream.eat("*")) { - return chain(stream, state, tokenComment); - } - else { - stream.eatWhile(isOperatorChar); - return ret("operator", "plsql-operator"); - } - } - // single line comment or simple operator? - else if (ch == "-") { - if (stream.eat("-")) { - stream.skipToEnd(); - return ret("comment", "plsql-comment"); - } - else { - stream.eatWhile(isOperatorChar); - return ret("operator", "plsql-operator"); - } - } - // pl/sql variable? - else if (ch == "@" || ch == "$") { - stream.eatWhile(/[\w\d\$_]/); - return ret("word", "plsql-var"); - } - // is it a operator? - else if (isOperatorChar.test(ch)) { - stream.eatWhile(isOperatorChar); - return ret("operator", "plsql-operator"); - } - else { - // get the whole word - stream.eatWhile(/[\w\$_]/); - // is it one of the listed keywords? - if (keywords && keywords.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "plsql-keyword"); - // is it one of the listed functions? - if (functions && functions.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "plsql-function"); - // is it one of the listed types? - if (types && types.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "plsql-type"); - // is it one of the listed sqlplus keywords? - if (sqlplus && sqlplus.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "plsql-sqlplus"); - // default: just a "word" - return ret("word", "plsql-word"); - } - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) {end = true; break;} - escaped = !escaped && next == "\\"; - } - if (end || !(escaped || multiLineStrings)) - state.tokenize = tokenBase; - return ret("string", "plsql-string"); - }; - } - - function tokenComment(stream, state) { - var maybeEnd = false, ch; - while (ch = stream.next()) { - if (ch == "/" && maybeEnd) { - state.tokenize = tokenBase; - break; - } - maybeEnd = (ch == "*"); - } - return ret("comment", "plsql-comment"); - } - - // Interface - - return { - startState: function(basecolumn) { - return { - tokenize: tokenBase, - indented: 0, - startOfLine: true - }; - }, - - token: function(stream, state) { - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - return style; - } - }; -}); - -(function() { - function keywords(str) { - var obj = {}, words = str.split(" "); - for (var i = 0; i < words.length; ++i) obj[words[i]] = true; - return obj; - } - var cKeywords = "abort accept access add all alter and any array arraylen as asc assert assign at attributes audit " + - "authorization avg " + - "base_table begin between binary_integer body boolean by " + - "case cast char char_base check close cluster clusters colauth column comment commit compress connect " + - "connected constant constraint crash create current currval cursor " + - "data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete " + - "desc digits dispose distinct do drop " + - "else elsif enable end entry escape exception exception_init exchange exclusive exists exit external " + - "fast fetch file for force form from function " + - "generic goto grant group " + - "having " + - "identified if immediate in increment index indexes indicator initial initrans insert interface intersect " + - "into is " + - "key " + - "level library like limited local lock log logging long loop " + - "master maxextents maxtrans member minextents minus mislabel mode modify multiset " + - "new next no noaudit nocompress nologging noparallel not nowait number_base " + - "object of off offline on online only open option or order out " + - "package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior " + - "private privileges procedure public " + - "raise range raw read rebuild record ref references refresh release rename replace resource restrict return " + - "returning reverse revoke rollback row rowid rowlabel rownum rows run " + - "savepoint schema segment select separate session set share snapshot some space split sql start statement " + - "storage subtype successful synonym " + - "tabauth table tables tablespace task terminate then to trigger truncate type " + - "union unique unlimited unrecoverable unusable update use using " + - "validate value values variable view views " + - "when whenever where while with work"; - - var cFunctions = "abs acos add_months ascii asin atan atan2 average " + - "bfilename " + - "ceil chartorowid chr concat convert cos cosh count " + - "decode deref dual dump dup_val_on_index " + - "empty error exp " + - "false floor found " + - "glb greatest " + - "hextoraw " + - "initcap instr instrb isopen " + - "last_day least lenght lenghtb ln lower lpad ltrim lub " + - "make_ref max min mod months_between " + - "new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower " + - "nls_sort nls_upper nlssort no_data_found notfound null nvl " + - "others " + - "power " + - "rawtohex reftohex round rowcount rowidtochar rpad rtrim " + - "sign sin sinh soundex sqlcode sqlerrm sqrt stddev substr substrb sum sysdate " + - "tan tanh to_char to_date to_label to_multi_byte to_number to_single_byte translate true trunc " + - "uid upper user userenv " + - "variance vsize"; - - var cTypes = "bfile blob " + - "character clob " + - "dec " + - "float " + - "int integer " + - "mlslabel " + - "natural naturaln nchar nclob number numeric nvarchar2 " + - "real rowtype " + - "signtype smallint string " + - "varchar varchar2"; - - var cSqlplus = "appinfo arraysize autocommit autoprint autorecovery autotrace " + - "blockterminator break btitle " + - "cmdsep colsep compatibility compute concat copycommit copytypecheck " + - "define describe " + - "echo editfile embedded escape exec execute " + - "feedback flagger flush " + - "heading headsep " + - "instance " + - "linesize lno loboffset logsource long longchunksize " + - "markup " + - "native newpage numformat numwidth " + - "pagesize pause pno " + - "recsep recsepchar release repfooter repheader " + - "serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber " + - "sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix " + - "tab term termout time timing trimout trimspool ttitle " + - "underline " + - "verify version " + - "wrap"; - - CodeMirror.defineMIME("text/x-plsql", { - name: "plsql", - keywords: keywords(cKeywords), - functions: keywords(cFunctions), - types: keywords(cTypes), - sqlplus: keywords(cSqlplus) - }); -}()); diff --git a/js/codemirror/mode/python/LICENSE.txt b/js/codemirror/mode/python/LICENSE.txt deleted file mode 100644 index 918866b42a..0000000000 --- a/js/codemirror/mode/python/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License - -Copyright (c) 2010 Timothy Farrell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/js/codemirror/mode/python/index.html b/js/codemirror/mode/python/index.html deleted file mode 100644 index e9640e9e48..0000000000 --- a/js/codemirror/mode/python/index.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - CodeMirror 2: Python mode - - - - - - - - -

CodeMirror 2: Python mode

- -
- -

Configuration Options:

-
    -
  • version - 2/3 - The version of Python to recognize. Default is 2.
  • -
  • singleLineStringErrors - true/false - If you have a single-line string that is not terminated at the end of the line, this will show subsequent lines as errors if true, otherwise it will consider the newline as the end of the string. Default is false.
  • -
- -

MIME types defined: text/x-python.

- - diff --git a/js/codemirror/mode/python/python.css b/js/codemirror/mode/python/python.css deleted file mode 100644 index 353fd963a1..0000000000 --- a/js/codemirror/mode/python/python.css +++ /dev/null @@ -1,23 +0,0 @@ -span.py-delimiter, -span.py-special {color: #666666;} - -span.py-operator {color: #666666;} - -span.py-error {background-color: #660000; color: #FFFFFF;} - -span.py-keyword {color: #770088; font-weight: bold;} - -span.py-number {color: #228811;} - -span.py-identifier, -span.py-func {color: black;} - -span.py-type, -span.py-decorator {color: #0000FF;} - -span.py-comment {color: #AA7700;} - -span.py-string, -span.py-bytes, -span.py-raw, -span.py-unicode {color: #AA2222;} \ No newline at end of file diff --git a/js/codemirror/mode/python/python.js b/js/codemirror/mode/python/python.js deleted file mode 100644 index 373f51ce07..0000000000 --- a/js/codemirror/mode/python/python.js +++ /dev/null @@ -1,318 +0,0 @@ -CodeMirror.defineMode("python", function(conf) { - var ERRORCLASS = 'py-error'; - - function wordRegexp(words) { - return new RegExp("^((" + words.join(")|(") + "))\\b"); - } - - var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!]"); - var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]'); - var doubleOperators = new RegExp("^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"); - var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"); - var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"); - var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"); - - var wordOperators = wordRegexp(['and', 'or', 'not', 'is', 'in']); - var commonkeywords = ['as', 'assert', 'break', 'class', 'continue', - 'def', 'del', 'elif', 'else', 'except', 'finally', - 'for', 'from', 'global', 'if', 'import', - 'lambda', 'pass', 'raise', 'return', - 'try', 'while', 'with', 'yield']; - var commontypes = ['bool', 'classmethod', 'complex', 'dict', 'enumerate', - 'float', 'frozenset', 'int', 'list', 'object', - 'property', 'reversed', 'set', 'slice', 'staticmethod', - 'str', 'super', 'tuple', 'type']; - var py2 = {'types': ['basestring', 'buffer', 'file', 'long', 'unicode', - 'xrange'], - 'keywords': ['exec', 'print']}; - var py3 = {'types': ['bytearray', 'bytes', 'filter', 'map', 'memoryview', - 'open', 'range', 'zip'], - 'keywords': ['nonlocal']}; - - if (!!conf.mode.version && parseInt(conf.mode.version, 10) === 3) { - commonkeywords = commonkeywords.concat(py3.keywords); - commontypes = commontypes.concat(py3.types); - var stringPrefixes = new RegExp("^(([rb]|(br))?('{3}|\"{3}|['\"]))", "i"); - } else { - commonkeywords = commonkeywords.concat(py2.keywords); - commontypes = commontypes.concat(py2.types); - var stringPrefixes = new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i"); - } - var keywords = wordRegexp(commonkeywords); - var types = wordRegexp(commontypes); - - // tokenizers - function tokenBase(stream, state) { - // Handle scope changes - if (stream.sol()) { - var scopeOffset = state.scopes[0].offset; - if (stream.eatSpace()) { - var lineOffset = stream.indentation(); - if (lineOffset > scopeOffset) { - return 'py-indent'; - } else if (lineOffset < scopeOffset) { - return 'py-dedent'; - } - return 'whitespace'; - } else { - if (scopeOffset > 0) { - dedent(stream, state); - } - } - } - if (stream.eatSpace()) { - return 'py-space'; - } - - var ch = stream.peek(); - - // Handle Comments - if (ch === '#') { - stream.skipToEnd(); - return 'py-comment'; - } - - // Handle Number Literals - if (stream.match(/^[0-9\.]/, false)) { - var floatLiteral = false; - // Floats - if (stream.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)) { floatLiteral = true; } - if (stream.match(/^\d+\.\d*/)) { floatLiteral = true; } - if (stream.match(/^\.\d+/)) { floatLiteral = true; } - if (floatLiteral) { - // Float literals may be "imaginary" - stream.eat(/J/i); - return 'py-literal'; - } - // Integers - var intLiteral = false; - // Hex - if (stream.match(/^0x[0-9a-f]+/i)) { intLiteral = true; } - // Binary - if (stream.match(/^0b[01]+/i)) { intLiteral = true; } - // Octal - if (stream.match(/^0o[0-7]+/i)) { intLiteral = true; } - // Decimal - if (stream.match(/^[1-9]\d*(e[\+\-]?\d+)?/)) { - // Decimal literals may be "imaginary" - stream.eat(/J/i); - // TODO - Can you have imaginary longs? - intLiteral = true; - } - // Zero by itself with no other piece of number. - if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; } - if (intLiteral) { - // Integer literals may be "long" - stream.eat(/L/i); - return 'py-literal'; - } - } - - // Handle Strings - if (stream.match(stringPrefixes)) { - state.tokenize = tokenStringFactory(stream.current()); - return state.tokenize(stream, state); - } - - // Handle operators and Delimiters - if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) { - return 'py-delimiter'; - } - if (stream.match(doubleOperators) - || stream.match(singleOperators) - || stream.match(wordOperators)) { - return 'py-operator'; - } - if (stream.match(singleDelimiters)) { - return 'py-delimiter'; - } - - if (stream.match(types)) { - return 'py-type'; - } - - if (stream.match(keywords)) { - return 'py-keyword'; - } - - if (stream.match(identifiers)) { - return 'py-identifier'; - } - - // Handle non-detected items - stream.next(); - return ERRORCLASS; - } - - function tokenStringFactory(delimiter) { - while ('rub'.indexOf(delimiter[0].toLowerCase()) >= 0) { - delimiter = delimiter.substr(1); - } - var delim_re = new RegExp(delimiter); - var singleline = delimiter.length == 1; - var OUTCLASS = 'py-string'; - - return function tokenString(stream, state) { - while (!stream.eol()) { - stream.eatWhile(/[^'"\\]/); - if (stream.eat('\\')) { - stream.next(); - if (singleline && stream.eol()) { - return OUTCLASS; - } - } else if (stream.match(delim_re)) { - state.tokenize = tokenBase; - return OUTCLASS; - } else { - stream.eat(/['"]/); - } - } - if (singleline) { - if (conf.mode.singleLineStringErrors) { - OUTCLASS = ERRORCLASS - } else { - state.tokenize = tokenBase; - } - } - return OUTCLASS; - }; - } - - function indent(stream, state, type) { - type = type || 'py'; - var indentUnit = 0; - if (type === 'py') { - for (var i = 0; i < state.scopes.length; ++i) { - if (state.scopes[i].type === 'py') { - indentUnit = state.scopes[i].offset + conf.indentUnit; - break; - } - } - } else { - indentUnit = stream.column() + stream.current().length; - } - state.scopes.unshift({ - offset: indentUnit, - type: type - }); - } - - function dedent(stream, state) { - if (state.scopes.length == 1) return; - if (state.scopes[0].type === 'py') { - var _indent = stream.indentation(); - var _indent_index = -1; - for (var i = 0; i < state.scopes.length; ++i) { - if (_indent === state.scopes[i].offset) { - _indent_index = i; - break; - } - } - if (_indent_index === -1) { - return true; - } - while (state.scopes[0].offset !== _indent) { - state.scopes.shift(); - } - return false - } else { - state.scopes.shift(); - return false; - } - } - - function tokenLexer(stream, state) { - var style = state.tokenize(stream, state); - var current = stream.current(); - - // Handle '.' connected identifiers - if (current === '.') { - style = state.tokenize(stream, state); - current = stream.current(); - if (style === 'py-identifier') { - return 'py-identifier'; - } else { - return ERRORCLASS; - } - } - - // Handle decorators - if (current === '@') { - style = state.tokenize(stream, state); - current = stream.current(); - if (style === 'py-identifier' - || current === '@staticmethod' - || current === '@classmethod') { - return 'py-decorator'; - } else { - return ERRORCLASS; - } - } - - // Handle scope changes. - if (current === 'pass' || current === 'return') { - state.dedent += 1; - } - if ((current === ':' && !state.lambda && state.scopes[0].type == 'py') - || style === 'py-indent') { - indent(stream, state); - } - var delimiter_index = '[({'.indexOf(current); - if (delimiter_index !== -1) { - indent(stream, state, '])}'.slice(delimiter_index, delimiter_index+1)); - } - if (style === 'py-dedent') { - if (dedent(stream, state)) { - return ERRORCLASS; - } - } - delimiter_index = '])}'.indexOf(current); - if (delimiter_index !== -1) { - if (dedent(stream, state)) { - return ERRORCLASS; - } - } - if (state.dedent > 0 && stream.eol() && state.scopes[0].type == 'py') { - if (state.scopes.length > 1) state.scopes.shift(); - state.dedent -= 1; - } - - return style; - } - - var external = { - startState: function(basecolumn) { - return { - tokenize: tokenBase, - scopes: [{offset:basecolumn || 0, type:'py'}], - lastToken: null, - lambda: false, - dedent: 0 - }; - }, - - token: function(stream, state) { - var style = tokenLexer(stream, state); - - state.lastToken = {style:style, content: stream.current()}; - - if (stream.eol() && stream.lambda) { - state.lambda = false; - } - - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase) { - return 0; - } - - return state.scopes[0].offset; - } - - }; - return external; -}); - -CodeMirror.defineMIME("text/x-python", "python"); diff --git a/js/codemirror/mode/rst/index.html b/js/codemirror/mode/rst/index.html deleted file mode 100644 index 0831dff46f..0000000000 --- a/js/codemirror/mode/rst/index.html +++ /dev/null @@ -1,526 +0,0 @@ - - - - CodeMirror 2: reStructuredText mode - - - - - - - - -

CodeMirror 2: reStructuredText mode

- -
- - -

The reStructuredText mode supports one configuration parameter:

-
-
verbatim (string)
-
A name or MIME type of a mode that will be used for highlighting - verbatim blocks. By default, reStructuredText mode uses uniform color - for whole block of verbatim text if no mode is given.
-
-

If python mode is available (not a part of CodeMirror 2 yet), - it will be used for highlighting blocks containing Python/IPython terminal - sessions (blocks starting with >>> (for Python) or - In [num]: (for IPython). - -

MIME types defined: text/x-rst.

- - - diff --git a/js/codemirror/mode/rst/rst.css b/js/codemirror/mode/rst/rst.css deleted file mode 100644 index 90ba05e30b..0000000000 --- a/js/codemirror/mode/rst/rst.css +++ /dev/null @@ -1,77 +0,0 @@ - -span.rst-emphasis { - font-style: italic; -} - -span.rst-strong { - font-weight: bold; -} - -span.rst-interpreted { - color: #33cc66; -} - -span.rst-inline { - color: #3399cc; -} - -span.rst-role { - color: #666699; -} - -span.rst-list { - color: #cc0099; - font-weight: bold; -} - -span.rst-body { - color: #6699cc; -} - -span.rst-verbatim { - color: #3366ff; -} - -span.rst-comment { - color: #aa7700; -} - -span.rst-directive { - font-weight: bold; - color: #3399ff; -} - -span.rst-hyperlink { - font-weight: bold; - color: #3366ff; -} - -span.rst-footnote { - font-weight: bold; - color: #3333ff; -} - -span.rst-citation { - font-weight: bold; - color: #3300ff; -} - -span.rst-replacement { - color: #9933cc; -} - -span.rst-section { - font-weight: bold; - color: #cc0099; -} - -span.rst-directive-marker { - font-weight: bold; - color: #3399ff; -} - -span.rst-verbatim-marker { - font-weight: bold; - color: #9900ff; -} - diff --git a/js/codemirror/mode/rst/rst.js b/js/codemirror/mode/rst/rst.js deleted file mode 100644 index 8dd5f281b8..0000000000 --- a/js/codemirror/mode/rst/rst.js +++ /dev/null @@ -1,335 +0,0 @@ - -CodeMirror.defineMode('rst', function(config, options) { - function setState(state, fn, ctx) { - state.fn = fn; - setCtx(state, ctx); - } - - function setCtx(state, ctx) { - state.ctx = ctx || {}; - } - - function setNormal(state, ch) { - if (ch && (typeof ch !== 'string')) { - var str = ch.current(); - ch = str[str.length-1]; - } - - setState(state, normal, {back: ch}); - } - - function hasMode(mode) { - if (mode) { - var modes = CodeMirror.listModes(); - - for (var i in modes) { - if (modes[i] == mode) { - return true; - } - } - } - - return false; - } - - function getMode(mode) { - if (hasMode(mode)) { - return CodeMirror.getMode(config, mode); - } else { - return null; - } - } - - var verbatimMode = getMode(options.verbatim); - var pythonMode = getMode('python'); - - var reSection = /^[!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]/; - var reDirective = /^\s*\w([-:.\w]*\w)?::(\s|$)/; - var reHyperlink = /^\s*_[\w-]+:(\s|$)/; - var reFootnote = /^\s*\[(\d+|#)\](\s|$)/; - var reCitation = /^\s*\[[A-Za-z][\w-]*\](\s|$)/; - var reFootnoteRef = /^\[(\d+|#)\]_/; - var reCitationRef = /^\[[A-Za-z][\w-]*\]_/; - var reDirectiveMarker = /^\.\.(\s|$)/; - var reVerbatimMarker = /^::\s*$/; - var rePreInline = /^[-\s"([{/:.,;!?\\_]/; - var reEnumeratedList = /^\s*((\d+|[A-Za-z#])[.)]|\((\d+|[A-Z-a-z#])\))\s/; - var reBulletedList = /^\s*[-\+\*]\s/; - var reExamples = /^\s+(>>>|In \[\d+\]:)\s/; - - function normal(stream, state) { - var ch, sol, i; - - if (stream.eat(/\\/)) { - ch = stream.next(); - setNormal(state, ch); - return null; - } - - sol = stream.sol(); - - if (sol && (ch = stream.eat(reSection))) { - for (i = 0; stream.eat(ch); i++); - - if (i >= 3 && stream.match(/^\s*$/)) { - setNormal(state, null); - return 'rst-section'; - } else { - stream.backUp(i + 1); - } - } - - if (sol && stream.match(reDirectiveMarker)) { - if (!stream.eol()) { - setState(state, directive); - } - - return 'rst-directive-marker'; - } - - if (stream.match(reVerbatimMarker)) { - if (!verbatimMode) { - setState(state, verbatim); - } else { - var mode = verbatimMode; - - setState(state, verbatim, { - mode: mode, - local: mode.startState() - }); - } - - return 'rst-verbatim-marker'; - } - - if (sol && stream.match(reExamples, false)) { - if (!pythonMode) { - setState(state, verbatim); - return 'rst-verbatim-marker'; - } else { - var mode = pythonMode; - - setState(state, verbatim, { - mode: mode, - local: mode.startState() - }); - - return null; - } - } - - if (sol && (stream.match(reEnumeratedList) || - stream.match(reBulletedList))) { - setNormal(state, stream); - return 'rst-list'; - } - - function testBackward(re) { - return sol || !state.ctx.back || re.test(state.ctx.back); - } - - function testForward(re) { - return stream.eol() || stream.match(re, false); - } - - function testInline(re) { - return stream.match(re) && testBackward(/\W/) && testForward(/\W/); - } - - if (testInline(reFootnoteRef)) { - setNormal(state, stream); - return 'rst-footnote'; - } - - if (testInline(reCitationRef)) { - setNormal(state, stream); - return 'rst-citation'; - } - - ch = stream.next(); - - if (testBackward(rePreInline)) { - if ((ch === ':' || ch === '|') && stream.eat(/\S/)) { - var token; - - if (ch === ':') { - token = 'rst-role'; - } else { - token = 'rst-replacement'; - } - - setState(state, inline, { - ch: ch, - wide: false, - prev: null, - token: token - }); - - return token; - } - - if (ch === '*' || ch === '`') { - var orig = ch, - wide = false; - - ch = stream.next(); - - if (ch == orig) { - wide = true; - ch = stream.next(); - } - - if (ch && !/\s/.test(ch)) { - var token; - - if (orig === '*') { - token = wide ? 'rst-strong' : 'rst-emphasis'; - } else { - token = wide ? 'rst-inline' : 'rst-interpreted'; - } - - setState(state, inline, { - ch: orig, // inline() has to know what to search for - wide: wide, // are we looking for `ch` or `chch` - prev: null, // terminator must not be preceeded with whitespace - token: token // I don't want to recompute this all the time - }); - - return token; - } - } - } - - setNormal(state, ch); - return null; - } - - function inline(stream, state) { - var ch = stream.next(), - token = state.ctx.token; - - function finish(ch) { - state.ctx.prev = ch; - return token; - } - - if (ch != state.ctx.ch) { - return finish(ch); - } - - if (/\s/.test(state.ctx.prev)) { - return finish(ch); - } - - if (state.ctx.wide) { - ch = stream.next(); - - if (ch != state.ctx.ch) { - return finish(ch); - } - } - - if (!stream.eol() && !rePostInline.test(stream.peek())) { - if (state.ctx.wide) { - stream.backUp(1); - } - - return finish(ch); - } - - setState(state, normal); - setNormal(state, ch); - - return token; - } - - function directive(stream, state) { - var token = null; - - if (stream.match(reDirective)) { - token = 'rst-directive'; - } else if (stream.match(reHyperlink)) { - token = 'rst-hyperlink'; - } else if (stream.match(reFootnote)) { - token = 'rst-footnote'; - } else if (stream.match(reCitation)) { - token = 'rst-citation'; - } else { - stream.eatSpace(); - - if (stream.eol()) { - setNormal(state, stream); - return null; - } else { - stream.skipToEnd(); - setState(state, comment); - return 'rst-comment'; - } - } - - setState(state, body, {start: true}); - return token; - } - - function body(stream, state) { - var token = 'rst-body'; - - if (!state.ctx.start || stream.sol()) { - return block(stream, state, token); - } - - stream.skipToEnd(); - setCtx(state); - - return token; - } - - function comment(stream, state) { - return block(stream, state, 'rst-comment'); - } - - function verbatim(stream, state) { - if (!verbatimMode) { - return block(stream, state, 'rst-verbatim'); - } else { - if (stream.sol()) { - if (!stream.eatSpace()) { - setNormal(state, stream); - } - - return null; - } - - return verbatimMode.token(stream, state.ctx.local); - } - } - - function block(stream, state, token) { - if (stream.eol() || stream.eatSpace()) { - stream.skipToEnd(); - return token; - } else { - setNormal(state, stream); - return null; - } - } - - return { - startState: function() { - return {fn: normal, ctx: {}}; - }, - - copyState: function(state) { - return {fn: state.fn, ctx: state.ctx}; - }, - - token: function(stream, state) { - var token = state.fn(stream, state); - return token; - } - }; -}); - -CodeMirror.defineMIME("text/x-rst", "rst"); - diff --git a/js/codemirror/mode/smalltalk/index.html b/js/codemirror/mode/smalltalk/index.html deleted file mode 100644 index fe56b58911..0000000000 --- a/js/codemirror/mode/smalltalk/index.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - CodeMirror 2: Smalltalk mode - - - - - - - - -

CodeMirror 2: Smalltalk mode

- -
- - - -

Simple Smalltalk mode.

- -

MIME types defined: text/x-stsrc.

- - diff --git a/js/codemirror/mode/smalltalk/smalltalk.css b/js/codemirror/mode/smalltalk/smalltalk.css deleted file mode 100644 index 7c2daa49dc..0000000000 --- a/js/codemirror/mode/smalltalk/smalltalk.css +++ /dev/null @@ -1,5 +0,0 @@ -span.st-keyword {color: #90b;} -span.st-number {color: #291;} -span.st-comment {color: #a70;} -span.st-string {color: #a22;} -span.st-var {color: #22b;} diff --git a/js/codemirror/mode/smalltalk/smalltalk.js b/js/codemirror/mode/smalltalk/smalltalk.js deleted file mode 100644 index 763f70de88..0000000000 --- a/js/codemirror/mode/smalltalk/smalltalk.js +++ /dev/null @@ -1,122 +0,0 @@ -CodeMirror.defineMode("smalltalk", function(config, parserConfig) { - var keywords = {"true": 1, "false": 1, nil: 1, self: 1, "super": 1, thisContext: 1}; - var indentUnit = config.indentUnit; - - function chain(stream, state, f) { - state.tokenize = f; - return f(stream, state); - } - - var type; - function ret(tp, style) { - type = tp; - return style; - } - - function tokenBase(stream, state) { - var ch = stream.next(); - if (ch == '"') - return chain(stream, state, tokenComment(ch)); - else if (ch == "'") - return chain(stream, state, tokenString(ch)); - else if (ch == "#") { - stream.eatWhile(/[\w\$_]/); - return ret("string", "st-string"); - } - else if (/\d/.test(ch)) { - stream.eatWhile(/[\w\.]/) - return ret("number", "st-number"); - } - else if (/[\[\]()]/.test(ch)) { - return ret(ch, null); - } - else { - stream.eatWhile(/[\w\$_]/); - if (keywords && keywords.propertyIsEnumerable(stream.current())) return ret("keyword", "st-keyword"); - return ret("word", "st-word"); - } - } - - function tokenString(quote) { - return function(stream, state) { - var escaped = false, next, end = false; - while ((next = stream.next()) != null) { - if (next == quote && !escaped) {end = true; break;} - escaped = !escaped && next == "\\"; - } - if (end || !(escaped)) - state.tokenize = tokenBase; - return ret("string", "st-string"); - }; - } - - function tokenComment(quote) { - return function(stream, state) { - var next, end = false; - while ((next = stream.next()) != null) { - if (next == quote) {end = true; break;} - } - if (end) - state.tokenize = tokenBase; - return ret("comment", "st-comment"); - }; - } - - function Context(indented, column, type, align, prev) { - this.indented = indented; - this.column = column; - this.type = type; - this.align = align; - this.prev = prev; - } - - function pushContext(state, col, type) { - return state.context = new Context(state.indented, col, type, null, state.context); - } - function popContext(state) { - return state.context = state.context.prev; - } - - // Interface - - return { - startState: function(basecolumn) { - return { - tokenize: tokenBase, - context: new Context((basecolumn || 0) - indentUnit, 0, "top", false), - indented: 0, - startOfLine: true - }; - }, - - token: function(stream, state) { - var ctx = state.context; - if (stream.sol()) { - if (ctx.align == null) ctx.align = false; - state.indented = stream.indentation(); - state.startOfLine = true; - } - if (stream.eatSpace()) return null; - var style = state.tokenize(stream, state); - if (type == "comment") return style; - if (ctx.align == null) ctx.align = true; - - if (type == "[") pushContext(state, stream.column(), "]"); - else if (type == "(") pushContext(state, stream.column(), ")"); - else if (type == ctx.type) popContext(state); - state.startOfLine = false; - return style; - }, - - indent: function(state, textAfter) { - if (state.tokenize != tokenBase) return 0; - var firstChar = textAfter && textAfter.charAt(0), ctx = state.context, closing = firstChar == ctx.type; - if (ctx.align) return ctx.column + (closing ? 0 : 1); - else return ctx.indented + (closing ? 0 : indentUnit); - }, - - electricChars: "]" - }; -}); - -CodeMirror.defineMIME("text/x-stsrc", {name: "smalltalk"}); diff --git a/js/codemirror/mode/stex/index.html b/js/codemirror/mode/stex/index.html deleted file mode 100644 index 73b07ac13e..0000000000 --- a/js/codemirror/mode/stex/index.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - CodeMirror 2: sTeX mode - - - - - - - - -

CodeMirror 2: sTeX mode

-
- - -

MIME types defined: text/stex.

- - - diff --git a/js/codemirror/mode/stex/stex.css b/js/codemirror/mode/stex/stex.css deleted file mode 100644 index 64b975e98d..0000000000 --- a/js/codemirror/mode/stex/stex.css +++ /dev/null @@ -1,20 +0,0 @@ -span.css-at {color: #708;} -span.css-unit {color: #281;} -span.css-value {color: #708;} -span.css-identifier {color: black;} -span.css-selector {color: #11B;} -span.css-important {color: #00F;} -span.css-colorcode {color: #299;} -span.css-comment {color: #A70;} -span.css-string {color: #A22;} - -span.stex-unit { color: #281; } -span.stex-identifier { color: black; } -span.stex-slash { color: #FAA; } -span.stex-command { color: #00F; } -span.stex-comment { color: #A70; } -span.stex-import { color: #00F; } -span.stex-filepath { color: #852626; } -span.stex-module { color: #852626; } -span.stex-error { text-decoration: underline; color: red; } -span.stex-string { color: #A22; } diff --git a/js/codemirror/mode/stex/stex.js b/js/codemirror/mode/stex/stex.js deleted file mode 100644 index 3106e3be0c..0000000000 --- a/js/codemirror/mode/stex/stex.js +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Author: Constantin Jucovschi (c.jucovschi@jacobs-university.de) - * Licence: MIT - */ - -CodeMirror.defineMode("stex", function(cmCfg, modeCfg) -{ - function pushCommand(state, command) { - state.cmdState.push(command); - } - - function peekCommand(state) { - if (state.cmdState.length>0) - return state.cmdState[state.cmdState.length-1]; - else - return null; - } - - function popCommand(state) { - if (state.cmdState.length>0) { - var plug = state.cmdState.pop(); - plug.closeBracket(); - } - } - - function applyMostPowerful(state) { - var context = state.cmdState; - for (var i = context.length - 1; i >= 0; i--) { - var plug = context[i]; - if (plug.name=="DEFAULT") - continue; - return plug.styleIdentifier(); - } - return "stex-identifier"; - } - - function addPluginPattern(pluginName, cmdStyle, brackets, styles) { - return function () { - this.name=pluginName; - this.bracketNo = 0; - this.style=cmdStyle; - this.styles = styles; - this.brackets = brackets; - - this.styleIdentifier = function(content) { - if (this.bracketNo<=this.styles.length) - return this.styles[this.bracketNo-1]; - else - return null; - }; - this.openBracket = function(content) { - this.bracketNo++; - return "stex-bracket"; - }; - this.closeBracket = function(content) { - }; - } - } - - var plugins = new Array(); - - plugins["importmodule"] = addPluginPattern("importmodule", "stex-command", "{[", ["stex-filepath", "stex-module"]); - plugins["documentclass"] = addPluginPattern("documentclass", "stex-command", "{[", ["", "stex-unit"]); - plugins["usepackage"] = addPluginPattern("documentclass", "stex-command", "[", ["stex-unit"]); - plugins["begin"] = addPluginPattern("documentclass", "stex-command", "[", ["stex-unit"]); - plugins["end"] = addPluginPattern("documentclass", "stex-command", "[", ["stex-unit"]); - - plugins["DEFAULT"] = function () { - this.name="DEFAULT"; - this.style="stex-command"; - - this.styleIdentifier = function(content) { - }; - this.openBracket = function(content) { - }; - this.closeBracket = function(content) { - }; - }; - - function setState(state, f) { - state.f = f; - } - - function normal(source, state) { - if (source.match(/^\\[a-z]+/)) { - var cmdName = source.current(); - cmdName = cmdName.substr(1, cmdName.length-1); - var plug = plugins[cmdName]; - if (typeof(plug) == 'undefined') { - plug = plugins["DEFAULT"]; - } - plug = new plug(); - pushCommand(state, plug); - setState(state, beginParams); - return plug.style; - } - - var ch = source.next(); - if (ch == "%") { - setState(state, inCComment); - return "stex-comment"; - } - else if (ch=='}' || ch==']') { - plug = peekCommand(state); - if (plug) { - plug.closeBracket(ch); - setState(state, beginParams); - } else - return "stex-error"; - return "stex-bracket"; - } else if (ch=='{' || ch=='[') { - plug = plugins["DEFAULT"]; - plug = new plug(); - pushCommand(state, plug); - return "stex-bracket"; - } - else if (/\d/.test(ch)) { - source.eatWhile(/[\w.%]/); - return "stex-unit"; - } - else { - source.eatWhile(/[\w-_]/); - return applyMostPowerful(state); - } - } - - function inCComment(source, state) { - source.skipToEnd(); - setState(state, normal); - return "css-comment"; - } - - function beginParams(source, state) { - var ch = source.peek(); - if (ch == '{' || ch == '[') { - var lastPlug = peekCommand(state); - var style = lastPlug.openBracket(ch); - source.eat(ch); - setState(state, normal); - return "stex-bracket"; - } - if (/[ \t\r]/.test(ch)) { - source.eat(ch); - return null; - } - setState(state, normal); - lastPlug = peekCommand(state); - if (lastPlug) { - popCommand(state); - } - return normal(source, state); - } - - return { - startState: function() { return { f:normal, cmdState:[] }; }, - copyState: function(s) { return { f: s.f, cmdState: s.cmdState.slice(0, s.cmdState.length) }; }, - - token: function(stream, state) { - var t = state.f(stream, state); - var w = stream.current(); - return t; - } - }; -}); - - -CodeMirror.defineMIME("text/x-stex", "stex"); diff --git a/js/codemirror/mode/xml/index.html b/js/codemirror/mode/xml/index.html deleted file mode 100644 index 5ad7c63fe8..0000000000 --- a/js/codemirror/mode/xml/index.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - CodeMirror 2: XML mode - - - - - - - - -

CodeMirror 2: XML mode

-
- -

The XML mode supports two configuration parameters:

-
-
htmlMode (boolean)
-
This switches the mode to parse HTML instead of XML. This - means attributes do not have to be quoted, and some elements - (such as br) do not require a closing tag.
-
alignCDATA (boolean)
-
Setting this to true will force the opening tag of CDATA - blocks to not be indented.
-
- -

MIME types defined: application/xml, text/html.

- - diff --git a/js/codemirror/mode/xml/xml.css b/js/codemirror/mode/xml/xml.css deleted file mode 100644 index 86845faa63..0000000000 --- a/js/codemirror/mode/xml/xml.css +++ /dev/null @@ -1,7 +0,0 @@ -span.xml-tag {color: #a0b;} -span.xml-attribute {color: #281;} -span.xml-attname {color: #00f;} -span.xml-comment {color: #a70;} -span.xml-cdata {color: #48a;} -span.xml-processing {color: #999;} -span.xml-entity {color: #a22;} diff --git a/js/codemirror/mode/xml/xml.js b/js/codemirror/mode/xml/xml.js deleted file mode 100644 index 1d92c4e7b8..0000000000 --- a/js/codemirror/mode/xml/xml.js +++ /dev/null @@ -1,206 +0,0 @@ -CodeMirror.defineMode("xml", function(config, parserConfig) { - var indentUnit = config.indentUnit; - var Kludges = parserConfig.htmlMode ? { - autoSelfClosers: {"br": true, "img": true, "hr": true, "link": true, "input": true, - "meta": true, "col": true, "frame": true, "base": true, "area": true}, - doNotIndent: {"pre": true, "!cdata": true}, - allowUnquoted: true - } : {autoSelfClosers: {}, doNotIndent: {"!cdata": true}, allowUnquoted: false}; - var alignCDATA = parserConfig.alignCDATA; - - // Return variables for tokenizers - var tagName, type; - - function inText(stream, state) { - function chain(parser) { - state.tokenize = parser; - return parser(stream, state); - } - - var ch = stream.next(); - if (ch == "<") { - if (stream.eat("!")) { - if (stream.eat("[")) { - if (stream.match("CDATA[")) return chain(inBlock("xml-cdata", "]]>")); - else return null; - } - else if (stream.match("--")) return chain(inBlock("xml-comment", "-->")); - else if (stream.match("DOCTYPE")) { - stream.eatWhile(/[\w\._\-]/); - return chain(inBlock("xml-doctype", ">")); - } - else return null; - } - else if (stream.eat("?")) { - stream.eatWhile(/[\w\._\-]/); - state.tokenize = inBlock("xml-processing", "?>"); - return "xml-processing"; - } - else { - type = stream.eat("/") ? "closeTag" : "openTag"; - stream.eatSpace(); - tagName = ""; - var c; - while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c; - state.tokenize = inTag; - return "xml-tag"; - } - } - else if (ch == "&") { - stream.eatWhile(/[^;]/); - stream.eat(";"); - return "xml-entity"; - } - else { - stream.eatWhile(/[^&<]/); - return null; - } - } - - function inTag(stream, state) { - var ch = stream.next(); - if (ch == ">" || (ch == "/" && stream.eat(">"))) { - state.tokenize = inText; - type = ch == ">" ? "endTag" : "selfcloseTag"; - return "xml-tag"; - } - else if (ch == "=") { - type = "equals"; - return null; - } - else if (/[\'\"]/.test(ch)) { - state.tokenize = inAttribute(ch); - return state.tokenize(stream, state); - } - else { - stream.eatWhile(/[^\s\u00a0=<>\"\'\/?]/); - return "xml-word"; - } - } - - function inAttribute(quote) { - return function(stream, state) { - while (!stream.eol()) { - if (stream.next() == quote) { - state.tokenize = inTag; - break; - } - } - return "xml-attribute"; - }; - } - - function inBlock(style, terminator) { - return function(stream, state) { - while (!stream.eol()) { - if (stream.match(terminator)) { - state.tokenize = inText; - break; - } - stream.next(); - } - return style; - }; - } - - var curState, setStyle; - function pass() { - for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]); - } - function cont() { - pass.apply(null, arguments); - return true; - } - - function pushContext(tagName, startOfLine) { - var noIndent = Kludges.doNotIndent.hasOwnProperty(tagName) || (curState.context && curState.context.noIndent); - curState.context = { - prev: curState.context, - tagName: tagName, - indent: curState.indented, - startOfLine: startOfLine, - noIndent: noIndent - }; - } - function popContext() { - if (curState.context) curState.context = curState.context.prev; - } - - function element(type) { - if (type == "openTag") {curState.tagName = tagName; return cont(attributes, endtag(curState.startOfLine));} - else if (type == "closeTag") {popContext(); return cont(endclosetag);} - else if (type == "xml-cdata") { - if (!curState.context || curState.context.name != "!cdata") pushContext("!cdata"); - if (curState.tokenize == inText) popContext(); - return cont(); - } - else return cont(); - } - function endtag(startOfLine) { - return function(type) { - if (type == "selfcloseTag" || - (type == "endTag" && Kludges.autoSelfClosers.hasOwnProperty(curState.tagName.toLowerCase()))) - return cont(); - if (type == "endTag") {pushContext(curState.tagName, startOfLine); return cont();} - return cont(); - }; - } - function endclosetag(type) { - if (type == "endTag") return cont(); - return pass(); - } - - function attributes(type) { - if (type == "xml-word") {setStyle = "xml-attname"; return cont(attributes);} - if (type == "equals") return cont(attvalue, attributes); - return pass(); - } - function attvalue(type) { - if (type == "xml-word" && Kludges.allowUnquoted) {setStyle = "xml-attribute"; return cont();} - if (type == "xml-attribute") return cont(); - return pass(); - } - - return { - startState: function() { - return {tokenize: inText, cc: [], indented: 0, startOfLine: true, tagName: null, context: null}; - }, - - token: function(stream, state) { - if (stream.sol()) { - state.startOfLine = true; - state.indented = stream.indentation(); - } - if (stream.eatSpace()) return null; - - setStyle = type = tagName = null; - var style = state.tokenize(stream, state); - if ((style || type) && style != "xml-comment") { - curState = state; - while (true) { - var comb = state.cc.pop() || element; - if (comb(type || style)) break; - } - } - state.startOfLine = false; - return setStyle || style; - }, - - indent: function(state, textAfter) { - var context = state.context; - if (context && context.noIndent) return 0; - if (alignCDATA && / - - - CodeMirror - - - - - - -

{ } CodeMirror

- -
-/* Old release history */
-
-
- -

17-12-2010: Version 0.92:

-
    -
  • Make CodeMirror work in XHTML documents.
  • -
  • Fix bug in handling of backslashes in Python strings.
  • -
  • The styleNumbers option is now officially - supported and documented.
  • -
  • onLineNumberClick option added.
  • -
  • More consistent names onLoad and - onCursorActivity callbacks. Old names still work, but - are deprecated.
  • -
  • Add a Freemarker mode.
  • -
- -

11-11-2010: Version 0.91:

-
    -
  • Adds support for Java.
  • -
  • Small additions to the PHP and SQL parsers.
  • -
  • Work around various Webkit issues.
  • -
  • Fix toTextArea to update the code in the textarea.
  • -
  • Add a noScriptCaching option (hack to ease development).
  • -
  • Make sub-modes of HTML mixed mode configurable.
  • -
- -

02-10-2010: Version 0.9:

-
    -
  • Add support for searching backwards.
  • -
  • There are now parsers for Scheme, XQuery, and OmetaJS.
  • -
  • Makes height: "dynamic" more robust.
  • -
  • Fixes bug where paste did not work on OS X.
  • -
  • Add a enterMode and electricChars options to make indentation even more customizable.
  • -
  • Add firstLineNumber option.
  • -
  • Fix bad handling of @media rules by the CSS parser.
  • -
  • Take a new, more robust approach to working around the invisible-last-line bug in WebKit.
  • -
- -

22-07-2010: Version 0.8:

-
    -
  • Add a cursorCoords method to find the screen - coordinates of the cursor.
  • -
  • A number of fixes and support for more syntax in the PHP parser.
  • -
  • Fix indentation problem with JSON-mode JS parser in Webkit.
  • -
  • Add a minification UI.
  • -
  • Support a height: dynamic mode, where the editor's - height will adjust to the size of its content.
  • -
  • Better support for IME input mode.
  • -
  • Fix JavaScript parser getting confused when seeing a no-argument - function call.
  • -
  • Have CSS parser see the difference between selectors and other - identifiers.
  • -
  • Fix scrolling bug when pasting in a horizontally-scrolled - editor.
  • -
  • Support toTextArea method in instances created with - fromTextArea.
  • -
  • Work around new Opera cursor bug that causes the cursor to jump - when pressing backspace at the end of a line.
  • -
- -

27-04-2010: Version - 0.67:

-

More consistent page-up/page-down behaviour - across browsers. Fix some issues with hidden editors looping forever - when line-numbers were enabled. Make PHP parser parse - "\\" correctly. Have jumpToLine work on - line handles, and add cursorLine function to fetch the - line handle where the cursor currently is. Add new - setStylesheet function to switch style-sheets in a - running editor.

- -

01-03-2010: Version - 0.66:

-

Adds removeLine method to API. - Introduces the PLSQL parser. - Marks XML errors by adding (rather than replacing) a CSS class, so - that they can be disabled by modifying their style. Fixes several - selection bugs, and a number of small glitches.

- -

12-11-2009: Version - 0.65:

-

Add support for having both line-wrapping and - line-numbers turned on, make paren-highlighting style customisable - (markParen and unmarkParen config - options), work around a selection bug that Opera - reintroduced in version 10.

- -

23-10-2009: Version - 0.64:

-

Solves some issues introduced by the - paste-handling changes from the previous release. Adds - setSpellcheck, setTextWrapping, - setIndentUnit, setUndoDepth, - setTabMode, and setLineNumbers to - customise a running editor. Introduces an SQL parser. Fixes a few small - problems in the Python - parser. And, as usual, add workarounds for various newly discovered - browser incompatibilities.

- -

31-08-2009: Version -0.63:

-

Overhaul of paste-handling (less fragile), fixes for several -serious IE8 issues (cursor jumping, end-of-document bugs) and a number -of small problems.

- -

30-05-2009: Version -0.62:

-

Introduces Python -and Lua parsers. Add -setParser (on-the-fly mode changing) and -clearHistory methods. Make parsing passes time-based -instead of lines-based (see the passTime option).

- - - - diff --git a/js/codemirror/test/index.html b/js/codemirror/test/index.html deleted file mode 100644 index a3ad057da1..0000000000 --- a/js/codemirror/test/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - CodeMirror 2: Test Suite - - - - - - - - -

CodeMirror 2: Test Suite

- -

A limited set of programmatic sanity tests for CodeMirror.

- -

-
-    
-
-    
-  
-
diff --git a/js/codemirror/test/test.js b/js/codemirror/test/test.js
deleted file mode 100644
index af18b5b4a8..0000000000
--- a/js/codemirror/test/test.js
+++ /dev/null
@@ -1,248 +0,0 @@
-var tests = [];
-
-test("fromTextArea", function() {
-  var te = document.getElementById("code");
-  te.value = "CONTENT";
-  var cm = CodeMirror.fromTextArea(te);
-  is(!te.offsetHeight);
-  eq(cm.getValue(), "CONTENT");
-  cm.setValue("foo\nbar");
-  eq(cm.getValue(), "foo\nbar");
-  cm.save();
-  is(/^foo\r?\nbar$/.test(te.value));
-  cm.setValue("xxx");
-  cm.toTextArea();
-  is(te.offsetHeight);
-  eq(te.value, "xxx");
-});
-
-testCM("getRange", function(cm) {
-  eq(cm.getLine(0), "1234");
-  eq(cm.getLine(1), "5678");
-  eq(cm.getLine(2), null);
-  eq(cm.getLine(-1), null);
-  eq(cm.getRange({line: 0, ch: 0}, {line: 0, ch: 3}), "123");
-  eq(cm.getRange({line: 0, ch: -1}, {line: 0, ch: 200}), "1234");
-  eq(cm.getRange({line: 0, ch: 2}, {line: 1, ch: 2}), "34\n56");
-  eq(cm.getRange({line: 1, ch: 2}, {line: 100, ch: 0}), "78");
-}, {value: "1234\n5678"});
-
-testCM("replaceRange", function(cm) {
-  eq(cm.getValue(), "");
-  cm.replaceRange("foo\n", {line: 0, ch: 0});
-  eq(cm.getValue(), "foo\n");
-  cm.replaceRange("a\nb", {line: 0, ch: 1});
-  eq(cm.getValue(), "fa\nboo\n");
-  eq(cm.lineCount(), 3);
-  cm.replaceRange("xyzzy", {line: 0, ch: 0}, {line: 1, ch: 1});
-  eq(cm.getValue(), "xyzzyoo\n");
-  cm.replaceRange("abc", {line: 0, ch: 0}, {line: 10, ch: 0});
-  eq(cm.getValue(), "abc");
-  eq(cm.lineCount(), 1);
-});
-
-testCM("selection", function(cm) {
-  cm.setSelection({line: 0, ch: 4}, {line: 2, ch: 2});
-  is(cm.somethingSelected());
-  eq(cm.getSelection(), "11\n222222\n33");
-  eqPos(cm.getCursor(false), {line: 2, ch: 2});
-  eqPos(cm.getCursor(true), {line: 0, ch: 4});
-  cm.setSelection({line: 1, ch: 0});
-  is(!cm.somethingSelected());
-  eq(cm.getSelection(), "");
-  eqPos(cm.getCursor(true), {line: 1, ch: 0});
-  cm.replaceSelection("abc");
-  eq(cm.getSelection(), "abc");
-  eq(cm.getValue(), "111111\nabc222222\n333333");
-  cm.replaceSelection("def", "end");
-  eq(cm.getSelection(), "");
-  eqPos(cm.getCursor(true), {line: 1, ch: 3});
-  cm.setCursor({line: 2, ch: 1});
-  eqPos(cm.getCursor(true), {line: 2, ch: 1});
-  cm.setCursor(1, 2);
-  eqPos(cm.getCursor(true), {line: 1, ch: 2});
-}, {value: "111111\n222222\n333333"});
-
-testCM("lines", function(cm) {
-  eq(cm.getLine(0), "111111");
-  eq(cm.getLine(1), "222222");
-  eq(cm.getLine(-1), null);
-  cm.removeLine(1);
-  cm.setLine(1, "abc");
-  eq(cm.getValue(), "111111\nabc");
-}, {value: "111111\n222222\n333333"});
-
-testCM("indent", function(cm) {
-  cm.indentLine(1);
-  eq(cm.getLine(1), "   blah();");
-  cm.setOption("indentUnit", 8);
-  cm.indentLine(1);
-  eq(cm.getLine(1), "\tblah();");
-}, {value: "if (x) {\nblah();\n}", indentUnit: 3, indentWithTabs: true});
-
-test("defaults", function() {
-  var olddefaults = CodeMirror.defaults, defs = CodeMirror.defaults = {};
-  for (var opt in olddefaults) defs[opt] = olddefaults[opt];
-  defs.indentUnit = 5;
-  defs.value = "uu";
-  defs.enterMode = "keep";
-  defs.tabindex = 55;
-  var place = document.getElementById("testground"), cm = CodeMirror(place);
-  try {
-    eq(cm.getOption("indentUnit"), 5);
-    cm.setOption("indentUnit", 10);
-    eq(defs.indentUnit, 5);
-    eq(cm.getValue(), "uu");
-    eq(cm.getOption("enterMode"), "keep");
-    eq(cm.getInputField().tabindex, 55);
-  }
-  finally {
-    CodeMirror.defaults = olddefaults;
-    place.removeChild(cm.getWrapperElement());
-  }
-});
-
-testCM("lineInfo", function(cm) {
-  eq(cm.lineInfo(-1), null);
-  var lh = cm.setMarker(1, "FOO", "bar");
-  var info = cm.lineInfo(1);
-  eq(info.text, "222222");
-  eq(info.markerText, "FOO");
-  eq(info.markerClass, "bar");
-  eq(info.line, 1);
-  eq(cm.lineInfo(2).markerText, null);
-  cm.clearMarker(lh);
-  eq(cm.lineInfo(1).markerText, null);
-}, {value: "111111\n222222\n333333"});
-
-testCM("coords", function(cm) {
-  cm.getWrapperElement().style.height = "100px";
-  var content = [];
-  for (var i = 0; i < 200; ++i) content.push("------------------------------" + i);
-  cm.setValue(content.join("\n"));
-  var top = cm.charCoords({line: 0, ch: 0});
-  var bot = cm.charCoords({line: 200, ch: 30});
-  is(top.x < bot.x);
-  is(top.y < bot.y);
-  is(top.y < top.yBot);
-  cm.getWrapperElement().scrollTop = 100;
-  cm.refresh();
-  var top2 = cm.charCoords({line: 0, ch: 0});
-  is(top.y > top2.y);
-  eq(top.x, top2.x);
-});
-
-testCM("coordsChar", function(cm) {
-  var content = [];
-  for (var i = 0; i < 70; ++i) content.push("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
-  cm.setValue(content.join("\n"));
-  for (var x = 0; x < 35; x += 2) {
-    for (var y = 0; y < 70; y += 5) {
-      cm.setCursor(y, x);
-      var pos = cm.coordsChar(cm.charCoords({line: y, ch: x}));
-      eq(pos.line, y);
-      eq(pos.ch, x);
-    }
-  }
-});
-
-testCM("undo", function(cm) {
-  cm.setLine(0, "def");
-  eq(cm.historySize().undo, 1);
-  cm.undo();
-  eq(cm.getValue(), "abc");
-  eq(cm.historySize().undo, 0);
-  eq(cm.historySize().redo, 1);
-  cm.redo();
-  eq(cm.getValue(), "def");
-  eq(cm.historySize().undo, 1);
-  eq(cm.historySize().redo, 0);
-  cm.setValue("1\n\n\n2");
-  eq(cm.historySize().undo, 0);
-  for (var i = 0; i < 20; ++i) {
-    cm.replaceRange("a", {line: 0, ch: 0});
-    cm.replaceRange("b", {line: 3, ch: 0});
-  }
-  eq(cm.historySize().undo, 40);
-  for (var i = 0; i < 38; ++i) cm.undo();
-  eq(cm.historySize().undo, 2);
-  eq(cm.historySize().redo, 38);
-  eq(cm.getValue(), "a1\n\n\nb2");
-  cm.setOption("undoDepth", 10);
-  for (var i = 0; i < 20; ++i) {
-    cm.replaceRange("a", {line: 0, ch: 0});
-    cm.replaceRange("b", {line: 3, ch: 0});
-  }
-  eq(cm.historySize().undo, 10);
-}, {value: "abc"});
-
-testCM("undoMultiLine", function(cm) {
-  cm.replaceRange("x", {line:0, ch: 0});
-  cm.replaceRange("y", {line:1, ch: 0});
-  cm.undo();
-  eq(cm.getValue(), "abc\ndef\nghi");
-  cm.replaceRange("y", {line:1, ch: 0});
-  cm.replaceRange("x", {line:0, ch: 0});
-  cm.undo();
-  eq(cm.getValue(), "abc\ndef\nghi");
-  cm.replaceRange("y", {line:2, ch: 0});
-  cm.replaceRange("x", {line:1, ch: 0});
-  cm.replaceRange("z", {line:2, ch: 0});
-  cm.undo();
-  eq(cm.getValue(), "abc\ndef\nghi");
-}, {value: "abc\ndef\nghi"});
-
-// Scaffolding
-
-function htmlEscape(str) {
-  return str.replace(/[<&]/g, function(str) {return str == "&" ? "&" : "<";});
-}
-function forEach(arr, f) {
-  for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);
-}
-
-function Failure(why) {this.message = why;}
-
-function test(name, run) {tests.push({name: name, func: run});}
-function testCM(name, run, opts) {
-  test(name, function() {
-    var place = document.getElementById("testground"), cm = CodeMirror(place, opts);
-    try {run(cm);}
-    finally {place.removeChild(cm.getWrapperElement());}
-  });
-}
-
-function runTests() {
-  var failures = [], run = 0;
-  for (var i = 0; i < tests.length; ++i) {
-    var test = tests[i];
-    try {test.func();}
-    catch(e) {
-      if (e instanceof Failure)
-        failures.push({type: "failure", test: test.name, text: e.message});
-      else
-        failures.push({type: "error", test: test.name, text: e.toString()});
-    }
-    run++;
-  }
-  var html = [run + " tests run."];
-  if (failures.length)
-    forEach(failures, function(fail) {
-      html.push(fail.test + ': ' + htmlEscape(fail.text) + "");
-    });
-  else html.push('All passed.');
-  document.getElementById("output").innerHTML = html.join("\n");
-}
-
-function eq(a, b, msg) {
-  if (a != b) throw new Failure(a + " != " + b + (msg ? " (" + msg + ")" : ""));
-}
-function eqPos(a, b, msg) {
-  eq(a.line, b.line, msg);
-  eq(a.ch, b.ch, msg);
-}
-function is(a, msg) {
-  if (!a) throw new Failure("assertion failed" + (msg ? " (" + msg + ")" : ""));
-}
-
-window.onload = runTests;

From 1a20d4e3a3d8b0476ec7d18b959b41d2eceda5cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= 
Date: Thu, 2 Jun 2011 14:46:06 +0200
Subject: [PATCH 07/30] Update CodeMirror2 to latest git for configurable
 scrolling

---
 js/codemirror/lib/codemirror.js | 117 ++++++++++++++++++--------------
 1 file changed, 67 insertions(+), 50 deletions(-)

diff --git a/js/codemirror/lib/codemirror.js b/js/codemirror/lib/codemirror.js
index 23fadb6c74..844c54a3ff 100644
--- a/js/codemirror/lib/codemirror.js
+++ b/js/codemirror/lib/codemirror.js
@@ -14,31 +14,31 @@ var CodeMirror = (function() {
         options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];
 
     var targetDocument = options["document"];
-    // The element in which the editor lives. Takes care of scrolling
-    // (if enabled).
+    // The element in which the editor lives.
     var wrapper = targetDocument.createElement("div");
     wrapper.className = "CodeMirror";
-    // Work around http://www.quirksmode.org/bugreports/archives/2006/09/Overflow_Hidden_not_hiding.html
-    if (window.ActiveXObject && /MSIE [1-7]\b/.test(navigator.userAgent))
-      wrapper.style.position = "relative";
     // This mess creates the base DOM structure for the editor.
     wrapper.innerHTML =
-      '
' + // Set to the height of the text, causes scrolling - '
' + - '
' + // Moved around its parent to cover visible view - '
' + - '
' + // Wraps and hides input textarea - '
' + - // Provides positioning relative to (visible) text origin - '
' + - '
 
' + // Absolutely positioned blinky cursor - '
'; // This DIV contains the actual code + '
' + // Wraps and hides input textarea + '
' + + '
' + + '
' + // Set to the height of the text, causes scrolling + '
' + + '
' + // Moved around its parent to cover visible view + '
' + + // Provides positioning relative to (visible) text origin + '
' + + '
 
' + // Absolutely positioned blinky cursor + '
' + // This DIV contains the actual code + '
'; if (place.appendChild) place.appendChild(wrapper); else place(wrapper); // I've never seen more elegant code in my life. - var code = wrapper.firstChild, measure = code.firstChild, mover = measure.nextSibling, + var inputDiv = wrapper.firstChild, input = inputDiv.firstChild, + scroller = wrapper.lastChild, code = scroller.firstChild, + measure = code.firstChild, mover = measure.nextSibling, gutter = mover.firstChild, gutterText = gutter.firstChild, - inputDiv = gutter.nextSibling, input = inputDiv.firstChild, - lineSpace = inputDiv.nextSibling.firstChild, cursor = lineSpace.firstChild, lineDiv = cursor.nextSibling; + lineSpace = gutter.nextSibling.firstChild, + cursor = lineSpace.firstChild, lineDiv = cursor.nextSibling; if (options.tabindex != null) input.tabindex = options.tabindex; if (!options.gutter && !options.lineNumbers) gutter.style.display = "none"; @@ -80,13 +80,13 @@ var CodeMirror = (function() { setTimeout(prepareInput, 20); // Register our event handlers. - connect(wrapper, "mousedown", operation(onMouseDown)); + connect(scroller, "mousedown", operation(onMouseDown)); // Gecko browsers fire contextmenu *after* opening the menu, at // which point we can't mess with it anymore. Context menu is // handled in onMouseDown for Gecko. - if (!gecko) connect(wrapper, "contextmenu", operation(onContextMenu)); + if (!gecko) connect(scroller, "contextmenu", operation(onContextMenu)); connect(code, "dblclick", operation(onDblClick)); - connect(wrapper, "scroll", function() {updateDisplay([]); if (options.onScroll) options.onScroll(instance);}); + connect(scroller, "scroll", function() {updateDisplay([]); if (options.onScroll) options.onScroll(instance);}); connect(window, "resize", function() {updateDisplay(true);}); connect(input, "keyup", operation(onKeyUp)); connect(input, "keydown", operation(onKeyDown)); @@ -94,14 +94,17 @@ var CodeMirror = (function() { connect(input, "focus", onFocus); connect(input, "blur", onBlur); - connect(wrapper, "dragenter", function(e){e.stop();}); - connect(wrapper, "dragover", function(e){e.stop();}); - connect(wrapper, "drop", operation(onDrop)); - connect(wrapper, "paste", function(){focusInput(); fastPoll();}); + connect(scroller, "dragenter", function(e){e.stop();}); + connect(scroller, "dragover", function(e){e.stop();}); + connect(scroller, "drop", operation(onDrop)); + connect(scroller, "paste", function(){focusInput(); fastPoll();}); connect(input, "paste", function(){fastPoll();}); connect(input, "cut", function(){fastPoll();}); - - if (targetDocument.activeElement == input) onFocus(); + + // IE throws unspecified error in certain cases, when + // trying to access activeElement before onload + var hasFocus; try { hasFocus = (targetDocument.activeElement == input); } catch(e) { } + if (hasFocus) onFocus(); else onBlur(); function isLine(l) {return l >= 0 && l < lines.length;} @@ -214,7 +217,7 @@ var CodeMirror = (function() { // (posFromMouse returning non-null), we have to adjust the // selection. var start = posFromMouse(e), last = start, going; - if (!start) {if (e.target() == wrapper) e.stop(); return;} + if (!start) {if (e.target() == scroller) e.stop(); return;} if (!focused) onFocus(); e.stop(); @@ -629,14 +632,18 @@ var CodeMirror = (function() { function scrollIntoView(x1, y1, x2, y2) { var pl = paddingLeft(), pt = paddingTop(), lh = lineHeight(); y1 += pt; y2 += pt; x1 += pl; x2 += pl; - var screen = wrapper.clientHeight, screentop = wrapper.scrollTop, scrolled = false, result = true; - if (y1 < screentop) {wrapper.scrollTop = Math.max(0, y1 - 2*lh); scrolled = true;} - else if (y2 > screentop + screen) {wrapper.scrollTop = y2 + lh - screen; scrolled = true;} + var screen = scroller.clientHeight, screentop = scroller.scrollTop, scrolled = false, result = true; + if (y1 < screentop) {scroller.scrollTop = Math.max(0, y1 - 2*lh); scrolled = true;} + else if (y2 > screentop + screen) {scroller.scrollTop = y2 + lh - screen; scrolled = true;} - var screenw = wrapper.clientWidth, screenleft = wrapper.scrollLeft; - if (x1 < screenleft) {wrapper.scrollLeft = Math.max(0, x1 - 10); scrolled = true;} + var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft; + if (x1 < screenleft) { + if (x1 < 50) x1 = 0; + scroller.scrollLeft = Math.max(0, x1 - 10); + scrolled = true; + } else if (x2 > screenw + screenleft) { - wrapper.scrollLeft = x2 + 10 - screenw; + scroller.scrollLeft = x2 + 10 - screenw; scrolled = true; if (x2 > code.clientWidth) result = false; } @@ -645,15 +652,15 @@ var CodeMirror = (function() { } function visibleLines() { - var lh = lineHeight(), top = wrapper.scrollTop - paddingTop(); + var lh = lineHeight(), top = scroller.scrollTop - paddingTop(); return {from: Math.min(lines.length, Math.max(0, Math.floor(top / lh))), - to: Math.min(lines.length, Math.ceil((top + wrapper.clientHeight) / lh))}; + to: Math.min(lines.length, Math.ceil((top + scroller.clientHeight) / lh))}; } // Uses a set of changes plus the current scroll position to // determine which DOM updates have to be made, and makes the // updates. function updateDisplay(changes) { - if (!wrapper.clientWidth) { + if (!scroller.clientWidth) { showingFrom = showingTo = 0; return; } @@ -715,17 +722,17 @@ var CodeMirror = (function() { // Position the mover div to align with the lines it's supposed // to be showing (which will cover the visible display) - var different = from != showingFrom || to != showingTo || lastHeight != wrapper.clientHeight; + var different = from != showingFrom || to != showingTo || lastHeight != scroller.clientHeight; showingFrom = from; showingTo = to; mover.style.top = (from * lineHeight()) + "px"; if (different) { - lastHeight = wrapper.clientHeight; + lastHeight = scroller.clientHeight; code.style.height = (lines.length * lineHeight() + 2 * paddingTop()) + "px"; updateGutter(); } var textWidth = stringWidth(maxLine); - lineSpace.style.width = textWidth > wrapper.clientWidth ? textWidth + "px" : ""; + lineSpace.style.width = textWidth > scroller.clientWidth ? textWidth + "px" : ""; // Since this is all rather error prone, it is honoured with the // only assertion in the whole file. @@ -797,7 +804,7 @@ var CodeMirror = (function() { function updateGutter() { if (!options.gutter && !options.lineNumbers) return; - var hText = mover.offsetHeight, hEditor = wrapper.clientHeight; + var hText = mover.offsetHeight, hEditor = scroller.clientHeight; gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + "px"; var html = []; for (var i = showingFrom; i < showingTo; ++i) { @@ -818,9 +825,9 @@ var CodeMirror = (function() { lineSpace.style.marginLeft = gutter.offsetWidth + "px"; } function updateCursor() { - var head = sel.inverted ? sel.from : sel.to; - var x = charX(head.line, head.ch) + "px", y = (head.line - showingFrom) * lineHeight() + "px"; - inputDiv.style.top = y; + var head = sel.inverted ? sel.from : sel.to, lh = lineHeight(); + var x = charX(head.line, head.ch) + "px", y = (head.line - showingFrom) * lh + "px"; + inputDiv.style.top = (head.line * lh - scroller.scrollTop) + "px"; if (posEq(sel.from, sel.to)) { cursor.style.top = y; cursor.style.left = x; cursor.style.display = ""; @@ -892,11 +899,12 @@ var CodeMirror = (function() { } function scrollPage(down) { - var linesPerPage = Math.floor(wrapper.clientHeight / lineHeight()), head = sel.inverted ? sel.from : sel.to; + var linesPerPage = Math.floor(scroller.clientHeight / lineHeight()), head = sel.inverted ? sel.from : sel.to; setCursor(head.line + (Math.max(linesPerPage - 1, 1) * (down ? 1 : -1)), head.ch, true); } function scrollEnd(top) { - setCursor(top ? 0 : lines.length - 1, true); + var pos = top ? {line: 0, ch: 0} : {line: lines.length - 1, ch: lines[lines.length-1].text.length}; + setSelectionUser(pos, pos); } function selectAll() { var endLine = lines.length - 1; @@ -1113,11 +1121,11 @@ var CodeMirror = (function() { function paddingLeft() {return lineSpace.offsetLeft;} function posFromMouse(e, liberal) { - var offW = eltOffset(wrapper, true), x = e.e.clientX, y = e.e.clientY; + var offW = eltOffset(scroller, true), x = e.e.clientX, y = e.e.clientY; // This is a mess of a heuristic to try and determine whether a // scroll-bar was clicked or not, and to return null if one was // (and !liberal). - if (!liberal && (x - offW.left > wrapper.clientWidth || y - offW.top > wrapper.clientHeight)) + if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight)) return null; var offL = eltOffset(lineSpace, true); var line = showingFrom + Math.floor((y - offL.top) / lineHeight()); @@ -1251,6 +1259,7 @@ var CodeMirror = (function() { if (state) state = copyState(mode, state); else state = startState(mode); + var unchanged = 0; for (var i = start, l = lines.length; i < l; ++i) { var line = lines[i], hadState = line.stateAfter; if (+new Date > end) { @@ -1261,7 +1270,8 @@ var CodeMirror = (function() { } var changed = line.highlight(mode, state); line.stateAfter = copyState(mode, state); - if (hadState && !changed && line.text) break; + if (changed || !hadState) unchanged = 0; + else if (++unchanged > 3) break; } changes.push({from: task, to: i}); } @@ -1337,6 +1347,7 @@ var CodeMirror = (function() { var newmatch = line.match(query); if (newmatch) match = newmatch; else break; + start++; } } else { @@ -1597,6 +1608,7 @@ var CodeMirror = (function() { }, current: function(){return this.string.slice(this.start, this.pos);} }; + CodeMirror.StringStream = StringStream; // Line objects. These hold state related to a line, including // highlighting info (the styles array). @@ -1672,7 +1684,10 @@ var CodeMirror = (function() { } if (st.length != pos) {st.length = pos; changed = true;} if (pos && st[pos-2] != prevWord) changed = true; - return changed; + // Short lines with simple highlights always count as changed, + // because they are likely to highlight the same way in various + // contexts. + return changed || (st.length < 5 && this.text.length < 10); }, // Fetch the parser token for a given character. Useful for hacks // that want to inspect the mode state (say, for completion). @@ -1925,6 +1940,7 @@ var CodeMirror = (function() { return str == "&" ? "&" : str == "<" ? "<" : ">"; }); } + CodeMirror.htmlEscape = htmlEscape; // Used to position the cursor after an undo/redo by finding the // last edited character. @@ -1957,6 +1973,7 @@ var CodeMirror = (function() { }; else var splitLines = function(string){return string.split(/\r?\n/);}; + CodeMirror.splitLines = splitLines; // Sane model of finding and setting the selection in a textarea if (window.getSelection) { From 3eb0f4cccb0804ebeee855ef36087e0804ac6f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 14:46:16 +0200 Subject: [PATCH 08/30] Make CodeMirror honor TextareaRows --- themes/original/css/theme_right.css.php | 5 +---- themes/pmahomme/css/theme_right.css.php | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 1dbe51928c..599526d9f8 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -1779,10 +1779,7 @@ fieldset .disabled-field td { } .CodeMirror-scroll { - height: auto; - overflow-y: auto; - overflow-x: auto; - max-height: 30em; + height: em; } .CodeMirror-gutter { diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 4a60f0f37d..d75b764566 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -2123,10 +2123,7 @@ fieldset .disabled-field td { } .CodeMirror-scroll { - height: auto; - overflow-y: auto; - overflow-x: auto; - max-height: 30em; + height: em; } .CodeMirror-gutter { From d203bebe2afd384126fc6a68b4de13402fe4a8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 14:50:43 +0200 Subject: [PATCH 09/30] Make CodeMirror honor theme highlight colors --- themes/original/css/theme_right.css.php | 22 +++++++++++----------- themes/pmahomme/css/theme_right.css.php | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 599526d9f8..880861b98a 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -1837,35 +1837,35 @@ span.CodeMirror-selected { span.mysql-keyword { - color: blue; + color: ; } span.mysql-var { - color: red; + color: ; } span.mysql-comment { - color: #AA7700; + color: ; } span.mysql-string { - color: green; + color: ; } span.mysql-operator { - color: blue; + color: ; } span.mysql-word { - color: black; + color: ; } span.mysql-function { - color: darkorange; + color: ; } span.mysql-type { - color: purple; + color: ; } span.mysql-attribute { - color: purple; + color: ; } span.mysql-separator { - color: #666666; + color: ; } span.mysql-number { - color: darkcyan; + color: ; } diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index d75b764566..23de23d0f6 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -2181,35 +2181,35 @@ span.CodeMirror-selected { span.mysql-keyword { - color: blue; + color: ; } span.mysql-var { - color: red; + color: ; } span.mysql-comment { - color: #AA7700; + color: ; } span.mysql-string { - color: green; + color: ; } span.mysql-operator { - color: blue; + color: ; } span.mysql-word { - color: black; + color: ; } span.mysql-function { - color: darkorange; + color: ; } span.mysql-type { - color: purple; + color: ; } span.mysql-attribute { - color: purple; + color: ; } span.mysql-separator { - color: #666666; + color: ; } span.mysql-number { - color: darkcyan; + color: ; } From e1c3a524bb11cb6b625e2394f8566ed014699815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 14:54:23 +0200 Subject: [PATCH 10/30] Docs --- js/functions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/functions.js b/js/functions.js index d55ad5e49e..e64791a6d9 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2371,6 +2371,9 @@ $(document).ready(function() { }); //end of Drop Table Ajax action }) // end of $(document).ready() for Drop Table +/** + * Attach CodeMirror2 editor to SQL edit area. + */ $(document).ready(function() { var elm = $('#sqlquery'); if (elm) { From 05f5ee8efe8510ce5744902f07d953c67c1c86cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 14:55:11 +0200 Subject: [PATCH 11/30] Consistent handling of all SQL butttons --- js/functions.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/functions.js b/js/functions.js index e64791a6d9..1aa0010e6f 100644 --- a/js/functions.js +++ b/js/functions.js @@ -757,6 +757,8 @@ function insertQuery(queryType) { query = "UPDATE `" + table + "` SET " + editDis + " WHERE 1"; } else if(queryType == "delete") { query = "DELETE FROM `" + table + "` WHERE 1"; + } else if(queryType == "clear") { + query = ""; } document.sqlform.sql_query.value = query; sql_box_locked = false; @@ -1147,11 +1149,7 @@ $(document).ready(function(){ }); $('.sqlbutton').click(function(evt){ - if (evt.target.id == 'clear') { - $('#sqlquery').val(''); - } else { - insertQuery(evt.target.id); - } + insertQuery(evt.target.id); return false; }); From e1748cdda936053d8613a38849c8730c5a761427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 14:59:08 +0200 Subject: [PATCH 12/30] Make SQL buttons work with CodeMirror --- js/functions.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index 1aa0010e6f..6a3393af7e 100644 --- a/js/functions.js +++ b/js/functions.js @@ -20,6 +20,11 @@ var only_once_elements = new Array(); */ var ajax_message_init = false; +/** + * @var codemirror_editor object containing CodeMirror editor + */ +var codemirror_editor = false; + /** * Add a hidden field to the form to indicate that this will be an * Ajax request (only if this hidden field does not exist) @@ -760,7 +765,11 @@ function insertQuery(queryType) { } else if(queryType == "clear") { query = ""; } - document.sqlform.sql_query.value = query; + if (codemirror_editor) { + codemirror_editor.setValue(query); + } else { + document.sqlform.sql_query.value = query; + } sql_box_locked = false; } } @@ -2375,6 +2384,6 @@ $(document).ready(function() { $(document).ready(function() { var elm = $('#sqlquery'); if (elm) { - var myCodeMirror = CodeMirror.fromTextArea(elm[0], {lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-mysql"}); + codemirror_editor = CodeMirror.fromTextArea(elm[0], {lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-mysql"}); } }) From 796b81ac995182386ddcc86d872114bccdb569c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 15:01:19 +0200 Subject: [PATCH 13/30] Make field insert buttons work with CodeMirror --- js/functions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 6a3393af7e..98dbd1d51c 100644 --- a/js/functions.js +++ b/js/functions.js @@ -796,8 +796,11 @@ function insertValueQuery() { } } + /* CodeMirror support */ + if (codemirror_editor) { + codemirror_editor.replaceSelection(chaineAj); //IE support - if (document.selection) { + } else if (document.selection) { myQuery.focus(); sel = document.selection.createRange(); sel.text = chaineAj; From 3cb40926c04f11342b4f1f2a0ebccd1bd143e9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 15:07:57 +0200 Subject: [PATCH 14/30] Remove other not needed files --- js/codemirror/mode/mysql/index.html | 68 ----------------------------- js/codemirror/mode/mysql/mysql.css | 33 -------------- 2 files changed, 101 deletions(-) delete mode 100644 js/codemirror/mode/mysql/index.html delete mode 100644 js/codemirror/mode/mysql/mysql.css diff --git a/js/codemirror/mode/mysql/index.html b/js/codemirror/mode/mysql/index.html deleted file mode 100644 index c9bb251f66..0000000000 --- a/js/codemirror/mode/mysql/index.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - CodeMirror 2: MySQL mode - - - - - - - - -

CodeMirror 2: MySQL mode

- -
- - - -

- Simple mode that handles MySQL language. -

- -

MIME type defined: text/x-mysql - (MySQL code) - diff --git a/js/codemirror/mode/mysql/mysql.css b/js/codemirror/mode/mysql/mysql.css deleted file mode 100644 index a03411a4a3..0000000000 --- a/js/codemirror/mode/mysql/mysql.css +++ /dev/null @@ -1,33 +0,0 @@ -span.mysql-keyword { - color: blue; -} -span.mysql-var { - color: red; -} -span.mysql-comment { - color: #AA7700; -} -span.mysql-string { - color: green; -} -span.mysql-operator { - color: blue; -} -span.mysql-word { - color: black; -} -span.mysql-function { - color: darkorange; -} -span.mysql-sqlplus { - color: darkorange; -} -span.mysql-type { - color: purple; -} -span.mysql-separator { - color: #666666; -} -span.mysql-number { - color: darkcyan; -} From 095e0818b8d69722fceae3ad518b74d02b488ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 15:17:27 +0200 Subject: [PATCH 15/30] Remove div which seems to be leftover from slider removal --- tbl_structure.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tbl_structure.php b/tbl_structure.php index e2a436ded1..4f91e169eb 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -706,7 +706,6 @@ if (! $tbl_is_view && ! $db_is_information_schema && 'ARCHIVE' != $tbl_type) { // BEGIN - Calc Table Space // Get valid statistics whatever is the table type if ($cfg['ShowStats']) { - echo '

'; if (empty($showtable)) { $showtable = PMA_Table::sGetStatusInfo($GLOBALS['db'], $GLOBALS['table'], null, true); } @@ -925,9 +924,6 @@ if ($cfg['ShowStats']) { - -
- Date: Thu, 2 Jun 2011 15:37:34 +0200 Subject: [PATCH 16/30] Restore 'DEFAULT CHARACTER SET utf8 COLLATE utf8_bin' for configuration storage tables --- scripts/create_tables.sql | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/scripts/create_tables.sql b/scripts/create_tables.sql index b98a4e8200..5db0de4e70 100644 --- a/scripts/create_tables.sql +++ b/scripts/create_tables.sql @@ -44,7 +44,8 @@ CREATE TABLE IF NOT EXISTS `pma_bookmark` ( `query` text NOT NULL, PRIMARY KEY (`id`) ) - ENGINE=MyISAM COMMENT='Bookmarks'; + ENGINE=MyISAM COMMENT='Bookmarks' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -64,7 +65,8 @@ CREATE TABLE IF NOT EXISTS `pma_column_info` ( PRIMARY KEY (`id`), UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`) ) - ENGINE=MyISAM COMMENT='Column information for phpMyAdmin'; + ENGINE=MyISAM COMMENT='Column information for phpMyAdmin' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -82,7 +84,8 @@ CREATE TABLE IF NOT EXISTS `pma_history` ( PRIMARY KEY (`id`), KEY `username` (`username`,`db`,`table`,`timevalue`) ) - ENGINE=MyISAM COMMENT='SQL history for phpMyAdmin'; + ENGINE=MyISAM COMMENT='SQL history for phpMyAdmin' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -97,7 +100,8 @@ CREATE TABLE IF NOT EXISTS `pma_pdf_pages` ( PRIMARY KEY (`page_nr`), KEY `db_name` (`db_name`) ) - ENGINE=MyISAM COMMENT='PDF relation pages for phpMyAdmin'; + ENGINE=MyISAM COMMENT='PDF relation pages for phpMyAdmin' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -110,7 +114,8 @@ CREATE TABLE IF NOT EXISTS `pma_recent` ( `tables` text NOT NULL, PRIMARY KEY (`username`) ) - ENGINE=MyISAM COMMENT='Recently accessed tables'; + ENGINE=MyISAM COMMENT='Recently accessed tables' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -125,7 +130,8 @@ CREATE TABLE IF NOT EXISTS `pma_table_uiprefs` ( `prefs` text NOT NULL, PRIMARY KEY (`username`,`db_name`,`table_name`) ) - ENGINE=MyISAM COMMENT='Tables'' UI preferences'; + ENGINE=MyISAM COMMENT='Tables'' UI preferences' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -143,7 +149,8 @@ CREATE TABLE IF NOT EXISTS `pma_relation` ( PRIMARY KEY (`master_db`,`master_table`,`master_field`), KEY `foreign_field` (`foreign_db`,`foreign_table`) ) - ENGINE=MyISAM COMMENT='Relation table'; + ENGINE=MyISAM COMMENT='Relation table' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -159,7 +166,8 @@ CREATE TABLE IF NOT EXISTS `pma_table_coords` ( `y` float unsigned NOT NULL default '0', PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`) ) - ENGINE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output'; + ENGINE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -173,7 +181,8 @@ CREATE TABLE IF NOT EXISTS `pma_table_info` ( `display_field` varchar(64) NOT NULL default '', PRIMARY KEY (`db_name`,`table_name`) ) - ENGINE=MyISAM COMMENT='Table information for phpMyAdmin'; + ENGINE=MyISAM COMMENT='Table information for phpMyAdmin' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -190,7 +199,8 @@ CREATE TABLE IF NOT EXISTS `pma_designer_coords` ( `h` TINYINT, PRIMARY KEY (`db_name`,`table_name`) ) - ENGINE=MyISAM COMMENT='Table coordinates for Designer'; + ENGINE=MyISAM COMMENT='Table coordinates for Designer' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -211,7 +221,8 @@ CREATE TABLE IF NOT EXISTS `pma_tracking` ( `tracking_active` int(1) unsigned NOT NULL default '1', PRIMARY KEY (`db_name`,`table_name`,`version`) ) - ENGINE=MyISAM ROW_FORMAT=COMPACT COMMENT='Database changes tracking for phpMyAdmin'; + ENGINE=MyISAM ROW_FORMAT=COMPACT COMMENT='Database changes tracking for phpMyAdmin' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- -------------------------------------------------------- @@ -225,4 +236,5 @@ CREATE TABLE IF NOT EXISTS `pma_userconfig` ( `config_data` text NOT NULL, PRIMARY KEY (`username`) ) - ENGINE=MyISAM COMMENT='User preferences storage for phpMyAdmin'; + ENGINE=MyISAM COMMENT='User preferences storage for phpMyAdmin' + DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; From 469624c23d97848da668c787ae15d75199ac6272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 15:48:34 +0200 Subject: [PATCH 17/30] Add missing overflow --- themes/original/css/theme_right.css.php | 1 + themes/pmahomme/css/theme_right.css.php | 1 + 2 files changed, 2 insertions(+) diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 880861b98a..7cd739af2b 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -1780,6 +1780,7 @@ fieldset .disabled-field td { .CodeMirror-scroll { height: em; + overflow: auto; } .CodeMirror-gutter { diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 23de23d0f6..577b864c55 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -2123,6 +2123,7 @@ fieldset .disabled-field td { } .CodeMirror-scroll { + overflow: auto; height: em; } From 53431974b1abd36af205e15927b453e447797e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 16:08:25 +0200 Subject: [PATCH 18/30] Remove obsolete comment --- libraries/header_scripts.inc.php | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/header_scripts.inc.php b/libraries/header_scripts.inc.php index 98b28c4be8..2e0a9ca1e4 100644 --- a/libraries/header_scripts.inc.php +++ b/libraries/header_scripts.inc.php @@ -40,7 +40,6 @@ if (isset($GLOBALS['db'])) { } $GLOBALS['js_include'][] = 'messages.php' . PMA_generate_common_url($params); $GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js'; -/* We should rather use/define MySQL mode here */ $GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js'; /** From 961f170b51260cf79eda34b700c37730c6d975ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 16:09:21 +0200 Subject: [PATCH 19/30] Whitespace cleanup --- js/sql.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/sql.js b/js/sql.js index b334b5f42b..e4f8323be2 100644 --- a/js/sql.js +++ b/js/sql.js @@ -365,7 +365,7 @@ $(document).ready(function() { $("#sqlqueryresults").html(data); $("#sqlqueryresults").trigger('appendAnchor'); PMA_init_slider(); - + PMA_ajaxRemoveMessage($msgbox); }) // end $.post() })// end Paginate results table @@ -388,7 +388,7 @@ $(document).ready(function() { $("#sqlqueryresults").html(data); $("#sqlqueryresults").trigger('appendAnchor'); PMA_init_slider(); - PMA_ajaxRemoveMessage($msgbox); + PMA_ajaxRemoveMessage($msgbox); }) // end $.post() } else { $the_form.submit(); @@ -456,7 +456,7 @@ $(document).ready(function() { $edit_td.removeClass('inline_edit_anchor').addClass('inline_edit_active').parent('tr').addClass('noclick'); // Adding submit and hide buttons to inline edit . - // For "hide" button the original data to be restored is + // For "hide" button the original data to be restored is // kept in the jQuery data element 'original_data' inside the . // Looping through all columns or rows, to find the required data and then storing it in an array. @@ -840,7 +840,7 @@ $(document).ready(function() { */ var relation_fields = {}; /** - * @var relational_display string 'K' if relational key, 'D' if relational display column + * @var relational_display string 'K' if relational key, 'D' if relational display column */ var relational_display = $("#relational_display_K").attr('checked') ? 'K' : 'D'; /** @@ -858,7 +858,7 @@ $(document).ready(function() { var sql_query = 'UPDATE `' + window.parent.table + '` SET '; var need_to_post = false; - + var new_clause = ''; var prev_index = -1; @@ -930,7 +930,7 @@ $(document).ready(function() { } }) - /* + /* * update the where_clause, remove the last appended ' AND ' * */ @@ -1004,10 +1004,10 @@ $(document).ready(function() { /** - * Visually put back the row in the state it was before entering Inline edit + * Visually put back the row in the state it was before entering Inline edit * * (when called in the situation where no posting was done, the data - * parameter is empty) + * parameter is empty) */ function PMA_unInlineEditRow($del_hide, $chg_submit, $this_td, $input_siblings, data, disp_mode) { From 745877a6a0e59f8433c3b90056858a753da60330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 16:20:37 +0200 Subject: [PATCH 20/30] Fix clearing the query box for non table based SQL --- js/functions.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/js/functions.js b/js/functions.js index 98dbd1d51c..a8595a157e 100644 --- a/js/functions.js +++ b/js/functions.js @@ -724,15 +724,31 @@ function setSelectOptions(the_form, the_select, do_check) return true; } // end of the 'setSelectOptions()' function +/** + * Sets current value for query box. + */ +function setQuery(query) { + if (codemirror_editor) { + codemirror_editor.setValue(query); + } else { + document.sqlform.sql_query.value = query; + } +} + /** * Create quick sql statements. * */ function insertQuery(queryType) { + if (queryType == "clear") { + setQuery(''); + return; + } + var myQuery = document.sqlform.sql_query; - var myListBox = document.sqlform.dummy; var query = ""; + var myListBox = document.sqlform.dummy; var table = document.sqlform.table.value; if (myListBox.options.length > 0) { @@ -762,14 +778,8 @@ function insertQuery(queryType) { query = "UPDATE `" + table + "` SET " + editDis + " WHERE 1"; } else if(queryType == "delete") { query = "DELETE FROM `" + table + "` WHERE 1"; - } else if(queryType == "clear") { - query = ""; - } - if (codemirror_editor) { - codemirror_editor.setValue(query); - } else { - document.sqlform.sql_query.value = query; } + setQuery(query); sql_box_locked = false; } } From 98d113270eac88a0de7bacf6aa1bec9172564e88 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 2 Jun 2011 10:44:45 -0400 Subject: [PATCH 21/30] bug #3306981 [interface] pmahomme and table statistics --- ChangeLog | 1 + themes/original/css/theme_right.css.php | 1 + themes/pmahomme/css/theme_right.css.php | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 03877e6249..a3a13c11a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ - bug #3306958 [interface] Unnecessary Details slider - bug #3308476 [interface] "Show all" not persistent after a sort - bug #3308072 [auth] Version disclosure to anonymous visitors +- bug #3306981 [interface] pmahomme and table statistics 3.4.1.0 (2011-05-20) - bug #3301108 [interface] Synchronize and already configured host diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 406dc9d8e9..8cd56eba87 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -833,6 +833,7 @@ div#tablestatistics { div#tablestatistics table { float: ; + margin-top: 0.5em; margin-bottom: 0.5em; margin-: 0.5em; } diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index fc1b36c371..64209ce75b 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -1031,8 +1031,8 @@ div#tablestatistics { div#tablestatistics table { float: ; margin-bottom: 0.5em; - margin-: 0.5em; - width:99%; + margin-: 1.5em; + margin-top: 0.5em; } div#tablestatistics table caption { From 42e1fc1533941c86b6f1017cf899ca41f29dbb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 17:01:17 +0200 Subject: [PATCH 22/30] Fix detection whether there is SQL editor to handle --- js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index a8595a157e..fdae296e8c 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2396,7 +2396,7 @@ $(document).ready(function() { */ $(document).ready(function() { var elm = $('#sqlquery'); - if (elm) { + if (elm.length > 0) { codemirror_editor = CodeMirror.fromTextArea(elm[0], {lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-mysql"}); } }) From 7dccf6d9440c0dddf323d5374db39fc1c48d7d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 17:03:14 +0200 Subject: [PATCH 23/30] Revert "Remove div which seems to be leftover from slider removal" This reverts commit 095e0818b8d69722fceae3ad518b74d02b488ed0. It seems to be useful after recent fix for the broken CSS. --- tbl_structure.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tbl_structure.php b/tbl_structure.php index 4f91e169eb..e2a436ded1 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -706,6 +706,7 @@ if (! $tbl_is_view && ! $db_is_information_schema && 'ARCHIVE' != $tbl_type) { // BEGIN - Calc Table Space // Get valid statistics whatever is the table type if ($cfg['ShowStats']) { + echo '
'; if (empty($showtable)) { $showtable = PMA_Table::sGetStatusInfo($GLOBALS['db'], $GLOBALS['table'], null, true); } @@ -924,6 +925,9 @@ if ($cfg['ShowStats']) { + +
+ Date: Thu, 2 Jun 2011 17:04:48 +0200 Subject: [PATCH 24/30] Remove margin from caption, it just misalignes it with table --- themes/pmahomme/css/theme_right.css.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index c3a2747c25..648986f6ad 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -1035,9 +1035,6 @@ div#tablestatistics table { margin-top: 0.5em; } -div#tablestatistics table caption { - margin-: 0.5em; -} /* END table stats */ From f7cb8e8cca0363d70bdf8b75da320c6505be9344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 17:05:50 +0200 Subject: [PATCH 25/30] Drop "bottom" line which is rendered on top --- themes/pmahomme/css/theme_right.css.php | 1 - 1 file changed, 1 deletion(-) diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 648986f6ad..1a700d1244 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -1023,7 +1023,6 @@ form.clock { /* table stats */ div#tablestatistics { - border-bottom: 0.1em solid #669999; margin-bottom: 0.5em; padding-bottom: 0.5em; } From ccc65dd6ba25549e22d0f881705d38641a52dfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 2 Jun 2011 17:06:26 +0200 Subject: [PATCH 26/30] Drop padding as it is not used at all because sub elements are floating --- themes/pmahomme/css/theme_right.css.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 1a700d1244..17ab26c529 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -1022,11 +1022,6 @@ form.clock { /* table stats */ -div#tablestatistics { - margin-bottom: 0.5em; - padding-bottom: 0.5em; -} - div#tablestatistics table { float: ; margin-bottom: 0.5em; From da46a09c2497f22766fff7d552904af52c8f83e8 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 2 Jun 2011 11:25:12 -0400 Subject: [PATCH 27/30] rfe #3310562 Wording about Column --- ChangeLog | 1 + libraries/tbl_properties.inc.php | 2 +- tbl_structure.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0509e0497b..dc76507651 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ + rfe #2098927 Remember recent tables + rfe #3078542 Remember the last sort order for each table + AJAX for Create table in navigation panel ++ rfe #3310562 Wording about Column 3.4.2.0 (not yet released) - bug #3301249 [interface] Iconic table operations does not remove inline edit label diff --git a/libraries/tbl_properties.inc.php b/libraries/tbl_properties.inc.php index 501e243bb6..4f1b647fe0 100644 --- a/libraries/tbl_properties.inc.php +++ b/libraries/tbl_properties.inc.php @@ -95,7 +95,7 @@ $is_backup = ($action != 'tbl_create.php' && $action != 'tbl_addfield.php'); $header_cells = array(); $content_cells = array(); -$header_cells[] = __('Column'); +$header_cells[] = __('Name'); $header_cells[] = __('Type') . ($GLOBALS['cfg']['ReplaceHelpImg'] ? PMA_showMySQLDocu('SQL-Syntax', 'data-types') diff --git a/tbl_structure.php b/tbl_structure.php index e2a436ded1..636150aabd 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -195,7 +195,7 @@ $i = 0; # - + From e67a4b7e141799e573569d67bab510633997c639 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 2 Jun 2011 11:26:29 -0400 Subject: [PATCH 28/30] Refresh .po files --- po/af.po | 38 ++++++++++++------------ po/ar.po | 50 +++++++++++++++---------------- po/az.po | 38 ++++++++++++------------ po/be.po | 46 ++++++++++++++-------------- po/be@latin.po | 58 ++++++++++++++++++------------------ po/bg.po | 46 ++++++++++++++-------------- po/bn.po | 50 +++++++++++++++---------------- po/bs.po | 38 ++++++++++++------------ po/ca.po | 58 ++++++++++++++++++------------------ po/cs.po | 58 ++++++++++++++++++------------------ po/cy.po | 42 +++++++++++++------------- po/da.po | 46 ++++++++++++++-------------- po/de.po | 58 ++++++++++++++++++------------------ po/el.po | 62 +++++++++++++++++++------------------- po/en_GB.po | 62 +++++++++++++++++++------------------- po/es.po | 46 ++++++++++++++-------------- po/et.po | 38 ++++++++++++------------ po/eu.po | 38 ++++++++++++------------ po/fa.po | 54 ++++++++++++++++----------------- po/fi.po | 52 ++++++++++++++++---------------- po/fr.po | 65 ++++++++++++++++++++-------------------- po/gl.po | 56 +++++++++++++++++----------------- po/he.po | 38 ++++++++++++------------ po/hi.po | 46 ++++++++++++++-------------- po/hr.po | 50 +++++++++++++++---------------- po/hu.po | 64 +++++++++++++++++++-------------------- po/id.po | 46 ++++++++++++++-------------- po/it.po | 54 ++++++++++++++++----------------- po/ja.po | 51 ++++++++++++++++--------------- po/ka.po | 64 +++++++++++++++++++-------------------- po/ko.po | 46 ++++++++++++++-------------- po/lt.po | 56 +++++++++++++++++----------------- po/lv.po | 42 +++++++++++++------------- po/mk.po | 38 ++++++++++++------------ po/ml.po | 38 ++++++++++++------------ po/mn.po | 50 +++++++++++++++---------------- po/ms.po | 38 ++++++++++++------------ po/nb.po | 52 ++++++++++++++++---------------- po/nl.po | 50 +++++++++++++++---------------- po/phpmyadmin.pot | 37 +++++++++++------------ po/pl.po | 64 +++++++++++++++++++-------------------- po/pt.po | 46 ++++++++++++++-------------- po/pt_BR.po | 42 +++++++++++++------------- po/ro.po | 46 ++++++++++++++-------------- po/ru.po | 54 ++++++++++++++++----------------- po/si.po | 50 +++++++++++++++---------------- po/sk.po | 50 +++++++++++++++---------------- po/sl.po | 38 ++++++++++++------------ po/sq.po | 38 ++++++++++++------------ po/sr.po | 46 ++++++++++++++-------------- po/sr@latin.po | 46 ++++++++++++++-------------- po/sv.po | 54 ++++++++++++++++----------------- po/ta.po | 38 ++++++++++++------------ po/te.po | 38 ++++++++++++------------ po/th.po | 42 +++++++++++++------------- po/tr.po | 52 ++++++++++++++++---------------- po/tt.po | 42 +++++++++++++------------- po/ug.po | 50 +++++++++++++++---------------- po/uk.po | 46 ++++++++++++++-------------- po/ur.po | 50 +++++++++++++++---------------- po/uz.po | 64 +++++++++++++++++++-------------------- po/uz@latin.po | 76 +++++++++++++++++++++++------------------------ po/zh_CN.po | 42 +++++++++++++------------- po/zh_TW.po | 38 ++++++++++++------------ 64 files changed, 1554 insertions(+), 1557 deletions(-) diff --git a/po/af.po b/po/af.po index e27e2f725f..7f7130eab8 100644 --- a/po/af.po +++ b/po/af.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-30 23:04+0200\n" "Last-Translator: Michal \n" "Language-Team: afrikaans \n" -"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: af\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.1\n" @@ -132,9 +132,8 @@ msgstr "Tabel kommentaar" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -637,8 +636,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -881,8 +880,8 @@ msgstr "" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1794,8 +1793,8 @@ msgstr "Welkom by %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4532,8 +4531,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Naam" @@ -4749,8 +4749,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5429,8 +5429,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7803,8 +7803,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/ar.po b/po/ar.po index 78129e915c..77004720c2 100644 --- a/po/ar.po +++ b/po/ar.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-04-21 13:56+0200\n" "Last-Translator: \n" "Language-Team: arabic \n" -"Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ar\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "تعليقات على الجدول" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -351,8 +350,8 @@ msgid "" "The phpMyAdmin configuration storage has been deactivated. To find out why " "click %shere%s." msgstr "" -"تم تعطيل المزايا الإضافية للعمل بالجداول المترابطة. لمعرفة السبب اضغط %sهنا" -"%s." +"تم تعطيل المزايا الإضافية للعمل بالجداول المترابطة. لمعرفة السبب اضغط %sهنا%" +"s." #: db_operations.php:600 #, fuzzy @@ -641,8 +640,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -884,8 +883,8 @@ msgstr "تم حفظ الـDump إلى الملف %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1811,8 +1810,8 @@ msgstr "أهلا بك في %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4560,8 +4559,9 @@ msgid "Events" msgstr "أحداث" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "الاسم" @@ -4781,8 +4781,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5466,8 +5466,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7142,8 +7142,8 @@ msgid "" "The phpMyAdmin configuration storage is not completely configured, some " "extended features have been deactivated. To find out why click %shere%s." msgstr "" -"تم تعطيل المزايا الإضافية للعمل بالجداول المترابطة. لمعرفة السبب اضغط %sهنا" -"%s." +"تم تعطيل المزايا الإضافية للعمل بالجداول المترابطة. لمعرفة السبب اضغط %sهنا%" +"s." #: main.php:314 msgid "" @@ -7897,8 +7897,8 @@ msgstr "احذف قواعد البيانات التي لها نفس أسماء msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "ملاحظة: يقرأ phpMyAdmin صلاحيات المستخدمين من جداول الصلاحيات من خادم MySQL " "مباشرة. محتويات هذه الجداول قد تختلف عن الصلاحيات التي يستخدمها الخادم إذا " @@ -10063,8 +10063,8 @@ msgstr "أعد تسمية العرض الـ" #~ "The additional features for working with linked tables have been " #~ "deactivated. To find out why click %shere%s." #~ msgstr "" -#~ "تم تعطيل المزايا الإضافية للعمل بالجداول المترابطة. لمعرفة السبب اضغط " -#~ "%sهنا%s." +#~ "تم تعطيل المزايا الإضافية للعمل بالجداول المترابطة. لمعرفة السبب اضغط %" +#~ "sهنا%s." #~ msgid "Execute bookmarked query" #~ msgstr "نفذ استعلام محفوظ بعلامة مرجعية" diff --git a/po/az.po b/po/az.po index 6867008740..98db77b76c 100644 --- a/po/az.po +++ b/po/az.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-12 09:11+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: azerbaijani \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" "X-Generator: Translate Toolkit 1.5.3\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -129,9 +129,8 @@ msgstr "Cedvel haqqında qısa izahat" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -634,8 +633,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -881,8 +880,8 @@ msgstr "Sxem %s faylına qeyd edildi." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1812,8 +1811,8 @@ msgstr "%s - e Xoş Gelmişsiniz!" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4582,8 +4581,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Adı" @@ -4803,8 +4803,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5492,8 +5492,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7962,8 +7962,8 @@ msgstr "İstifadeçilerle eyni adlı me'lumat bazalarını leğv et." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Qeyd: phpMyAdmin istifadeçi selahiyyetlerini birbaşa MySQL-in selahiyyetler " "cedvellerinden almaqdadır. Eger elle nizamlamalar edilmişse, bu cedvellerin " diff --git a/po/be.po b/po/be.po index bca7ba6610..da93db1700 100644 --- a/po/be.po +++ b/po/be.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-12 09:12+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: belarusian_cyrillic \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" "X-Generator: Translate Toolkit 1.5.3\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -134,9 +134,8 @@ msgstr "Камэнтар да табліцы" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -635,11 +634,11 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Гэты прагляд мае толькі такую колькасьць радкоў. Калі ласка, зьвярніцеся да " -"%sдакумэнтацыі%s." +"Гэты прагляд мае толькі такую колькасьць радкоў. Калі ласка, зьвярніцеся да %" +"sдакумэнтацыі%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -889,8 +888,8 @@ msgstr "Дамп захаваны ў файл %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Вы, мусіць, паспрабавалі загрузіць вельмі вялікі файл. Калі ласка, " "зьвярніцеся да %sдакумэнтацыі%s для высьвятленьня спосабаў абыйсьці гэтае " @@ -909,8 +908,8 @@ msgid "" "You attempted to load file with unsupported compression (%s). Either support " "for it is not implemented or disabled by your configuration." msgstr "" -"Вы паспрабавалі загрузіць файл з мэтадам сьціску, які непадтрымліваецца " -"(%s). Ягоная падтрымка або не рэалізаваная, або адключаная ў вашай " +"Вы паспрабавалі загрузіць файл з мэтадам сьціску, які непадтрымліваецца (%" +"s). Ягоная падтрымка або не рэалізаваная, або адключаная ў вашай " "канфігурацыі." #: import.php:336 @@ -1852,8 +1851,8 @@ msgstr "Запрашаем у %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Імаверна, прычына гэтага ў тым, што ня створаны канфігурацыйны файл. Каб яго " "стварыць, можна выкарыстаць %1$sналадачны скрыпт%2$s." @@ -4670,8 +4669,9 @@ msgid "Events" msgstr "Падзеі" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Назва" @@ -4902,8 +4902,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Гэтае значэньне інтэрпрэтуецца з выкарыстаньнем %1$sstrftime%2$s, таму можна " "выкарыстоўваць радкі фарматаваньня часу. Апроч гэтага, будуць праведзеныя " @@ -5662,8 +5662,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8200,8 +8200,8 @@ msgstr "Выдаліць базы дадзеных, якія маюць такі msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Заўвага: phpMyAdmin атрымлівае прывілеі карыстальнікаў наўпростава з табліц " "прывілеяў MySQL. Зьмесьціва гэтых табліц можа адрозьнівацца ад прывілеяў, " diff --git a/po/be@latin.po b/po/be@latin.po index 239609f4de..7d85242a89 100644 --- a/po/be@latin.po +++ b/po/be@latin.po @@ -3,16 +3,16 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-30 23:09+0200\n" "Last-Translator: Michal \n" "Language-Team: belarusian_latin \n" -"Language: be@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Language: be@latin\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Pootle 2.0.1\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -136,9 +136,8 @@ msgstr "Kamentar da tablicy" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -641,11 +640,11 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Hety prahlad maje tolki takuju kolkaść radkoŭ. Kali łaska, źviarniciesia da " -"%sdakumentacyi%s." +"Hety prahlad maje tolki takuju kolkaść radkoŭ. Kali łaska, źviarniciesia da %" +"sdakumentacyi%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -886,8 +885,8 @@ msgstr "Damp zachavany ŭ fajł %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Vy, musić, pasprabavali zahruzić vielmi vialiki fajł. Kali łaska, " "źviarniciesia da %sdakumentacyi%s dla vyśviatleńnia sposabaŭ abyjści hetaje " @@ -906,8 +905,8 @@ msgid "" "You attempted to load file with unsupported compression (%s). Either support " "for it is not implemented or disabled by your configuration." msgstr "" -"Vy pasprabavali zahruzić fajł z metadam ścisku, jaki niepadtrymlivajecca " -"(%s). Jahonaja padtrymka abo nie realizavanaja, abo adklučanaja ŭ vašaj " +"Vy pasprabavali zahruzić fajł z metadam ścisku, jaki niepadtrymlivajecca (%" +"s). Jahonaja padtrymka abo nie realizavanaja, abo adklučanaja ŭ vašaj " "kanfihuracyi." #: import.php:336 @@ -1857,8 +1856,8 @@ msgstr "Zaprašajem u %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Imavierna, pryčyna hetaha ŭ tym, što nia stvorany kanfihuracyjny fajł. Kab " "jaho stvaryć, možna vykarystać %1$snaładačny skrypt%2$s." @@ -4644,8 +4643,9 @@ msgid "Events" msgstr "Padziei" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nazva" @@ -4875,8 +4875,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Hetaje značeńnie interpretujecca z vykarystańniem %1$sstrftime%2$s, tamu " "možna vykarystoŭvać radki farmatavańnia času. Aproč hetaha, buduć " @@ -5640,8 +5640,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6894,8 +6894,8 @@ msgid "" "installed the necessary PHP extensions as described in the %sdocumentation%s." msgstr "" "Niemahčyma prainicyjalizavać pravierku SQL. Kali łaska, praviercie, ci " -"ŭstalavanyja ŭ vas nieabchodnyja pašyreńni PHP, jak heta apisana ŭ " -"%sdakumentacyi%s." +"ŭstalavanyja ŭ vas nieabchodnyja pašyreńni PHP, jak heta apisana ŭ %" +"sdakumentacyi%s." #: libraries/tbl_links.inc.php:106 libraries/tbl_links.inc.php:107 msgid "Table seems to be empty!" @@ -7103,8 +7103,8 @@ msgstr "" "dadadzienyja da mietki času (pa zmoŭčańni — 0). Druhi parametar " "vykarystoŭvajcie, kab paznačyć inšy farmat daty/času. Treci parametar " "vyznačaje typ daty, jakaja budzie pakazanaja: vašaja lakalnaja data albo " -"data UTC (vykarystoŭvajcie dla hetaha parametry «local» i «utc» adpaviedna). " -"U zaležnaści ad hetaha farmat daty maje roznyja značeńni: dla atrymańnia " +"data UTC (vykarystoŭvajcie dla hetaha parametry «local» i «utc» adpaviedna). U " +"zaležnaści ad hetaha farmat daty maje roznyja značeńni: dla atrymańnia " "parametraŭ lakalnaj daty hladzicie dakumentacyju dla funkcyi PHP strftime(), " "a dla hrynvickaha času (parametar «utc») — dakumentacyju funkcyi gmdate()." @@ -8175,8 +8175,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Zaŭvaha: phpMyAdmin atrymlivaje pryvilei karystalnikaŭ naŭprostava z tablic " "pryvilejaŭ MySQL. Źmieściva hetych tablic moža adroźnivacca ad pryvilejaŭ, " diff --git a/po/bg.po b/po/bg.po index e27f2373dd..d202621f6f 100644 --- a/po/bg.po +++ b/po/bg.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-28 14:02+0200\n" "Last-Translator: \n" "Language-Team: bulgarian \n" -"Language: bg\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: bg\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Коментари към таблицата" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Kолона" @@ -614,8 +613,8 @@ msgstr "Проследяването е неактивно." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "Този изглед има поне толкова реда. Погледнете %sдокументацията%s" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -852,8 +851,8 @@ msgstr "Схемата беше записана във файл %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Вероятно сте направили опит да качите твърде голям файл. Моля, обърнете се " "към %sdдокументацията%s за да намерите начин да избегнете това ограничение." @@ -1708,8 +1707,8 @@ msgstr "Добре дошли в %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4370,8 +4369,9 @@ msgid "Events" msgstr "Събития" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Име" @@ -4572,8 +4572,8 @@ msgstr ", @TABLE@ ще стане името на таблицата" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5223,8 +5223,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6407,8 +6407,8 @@ msgid "" "installed the necessary PHP extensions as described in the %sdocumentation%s." msgstr "" "SQL валидаторът не може да бъде инициализиран. Моля проверете дали са " -"инсталирани необходимите PHP разширения, както е описано в %sдокументацията" -"%s." +"инсталирани необходимите PHP разширения, както е описано в %sдокументацията%" +"s." #: libraries/tbl_links.inc.php:106 libraries/tbl_links.inc.php:107 msgid "Table seems to be empty!" @@ -7542,8 +7542,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Забележка: phpMyAdmin взема потребителските права директно от таблицата с " "правата на MySQL. Съдържанието на тази таблица може да се различава от " @@ -9593,8 +9593,8 @@ msgid "" "No themes support; please check your configuration and/or your themes in " "directory %s." msgstr "" -"Няма поддръжка на теми, моля, проверете конфигурацията и/или темите в папка " -"%s." +"Няма поддръжка на теми, моля, проверете конфигурацията и/или темите в папка %" +"s." #: themes.php:41 msgid "Get more themes!" diff --git a/po/bn.po b/po/bn.po index 04419ae9c2..a754e980ae 100644 --- a/po/bn.po +++ b/po/bn.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-10-21 01:36+0200\n" "Last-Translator: Nobin নবীন \n" "Language-Team: bangla \n" -"Language: bn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: bn\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -133,9 +133,8 @@ msgstr "টেবিলের মন্তব্য সমূহ" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "কলামের" @@ -632,8 +631,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -881,11 +880,11 @@ msgstr "ডাম্প %s ফাইল এ সেভ করা হয়েছে #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1832,8 +1831,8 @@ msgstr "Welcome to %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "সম্ভবত আপনি কনফিগারেশন ফাইল তৈরী করেননি। আপনি %1$ssetup script%2$s ব্যাবহার " "করে একটি তৈরী করতে পারেন " @@ -4639,8 +4638,9 @@ msgid "Events" msgstr "Sent" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "নাম" @@ -4867,12 +4867,12 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is." #: libraries/display_export.lib.php:275 msgid "use this for future exports" @@ -5589,8 +5589,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8107,13 +8107,13 @@ msgstr "ব্যাবহারকারীর নামে নাম এমন msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." #: server_privileges.php:1764 msgid "The selected user was not found in the privilege table." diff --git a/po/bs.po b/po/bs.po index 6de78005c4..8e8f498177 100644 --- a/po/bs.po +++ b/po/bs.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-12 09:12+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: bosnian \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" "X-Generator: Translate Toolkit 1.5.3\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -132,9 +132,8 @@ msgstr "Komentari tabele" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -636,8 +635,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -883,8 +882,8 @@ msgstr "Sadržaj baze je sačuvan u fajl %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1806,8 +1805,8 @@ msgstr "Dobrodošli na %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4571,8 +4570,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Ime" @@ -4792,8 +4792,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5480,8 +5480,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7944,8 +7944,8 @@ msgstr "Odbaci baze koje se zovu isto kao korisnici." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Napomena: phpMyAdmin uzima privilegije korisnika direktno iz MySQL tabela " "privilegija. Sadržaj ove tabele može se razlikovati od privilegija koje " diff --git a/po/ca.po b/po/ca.po index 26e7210272..0b24bc0c00 100644 --- a/po/ca.po +++ b/po/ca.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-02-23 09:57+0200\n" "Last-Translator: Xavier Navarro \n" "Language-Team: catalan \n" -"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ca\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Comentaris de la taula" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Columna" @@ -614,8 +613,8 @@ msgstr "El seguiment no està actiu." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Aquesta vista té al menys aques nombre de files. Consulta %sdocumentation%s." @@ -858,11 +857,11 @@ msgstr "El bolcat s'ha desat amb el nom d'arxiu %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Probablement has triat d'enviar un arxiu massa gran. Consulta la " -"%sdocumentació%s per trobar formes de modificar aquest límit." +"Probablement has triat d'enviar un arxiu massa gran. Consulta la %" +"sdocumentació%s per trobar formes de modificar aquest límit." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1736,8 +1735,8 @@ msgstr "Benvingut a %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "La raó més probable d'aixó és que no heu creat l'arxiu de configuració. " "Podreu voler utilitzar %1$ssetup script%2$s per crear-ne un." @@ -4613,8 +4612,9 @@ msgid "Events" msgstr "Esdeveniments" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nom" @@ -4818,12 +4818,12 @@ msgstr ", @TABLE@ serà el nom de la taula" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Aquest valor s'interpreta usant %1$sstrftime%2$s, pel que podeu usar les " -"cadenes de formateig de temps. A més, es faran aquestes transformacions: " -"%3$s. Altre text es deixarà sense variació. Consulteu les %4$sPFC -FAQ- %5$s " +"cadenes de formateig de temps. A més, es faran aquestes transformacions: %3" +"$s. Altre text es deixarà sense variació. Consulteu les %4$sPFC -FAQ- %5$s " "per a més detalls." #: libraries/display_export.lib.php:275 @@ -5556,8 +5556,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "Pots trobar la documentació i més informació sobre PBXT a la pàgina " "principal de %sPrimeBase XT%s." @@ -6793,8 +6793,8 @@ msgid "" "installed the necessary PHP extensions as described in the %sdocumentation%s." msgstr "" "No s'ha pogut iniciar el validador SQL. Si us plau, comproveu que teniu " -"instal·lats els mòduls de PHP necessaris tal i com s'indica a la " -"%sdocumentació%s." +"instal·lats els mòduls de PHP necessaris tal i com s'indica a la %" +"sdocumentació%s." #: libraries/tbl_links.inc.php:106 libraries/tbl_links.inc.php:107 msgid "Table seems to be empty!" @@ -7975,8 +7975,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Nota: phpMyAdmin obté els permisos de l'usuari directament de les taules de " "permisos de MySQL. El contingut d'aquestes taules pot ser diferent dels " @@ -9478,8 +9478,8 @@ msgid "" "If using cookie authentication and %sLogin cookie store%s is not 0, %sLogin " "cookie validity%s must be set to a value less or equal to it." msgstr "" -"Si s'utilitza la autenticació per cookies i el valor de %sLogin cookie store" -"%s no és 0, %sLogin cookie validity%s ha d'establir-se a un valor menor o " +"Si s'utilitza la autenticació per cookies i el valor de %sLogin cookie store%" +"s no és 0, %sLogin cookie validity%s ha d'establir-se a un valor menor o " "igual a ell." #: setup/lib/index.lib.php:266 @@ -9507,8 +9507,8 @@ msgstr "" "Has triat el tipus d'autenticació [kbd]config[/kbd] i has inclós el nom " "d'usuari i la contrasenya per connexions automàtiques, que es una opció no " "recomanable per a servidors actius. Qualsevol que conegui la teva URL de " -"phpMyAdmin pot accedir al teu panel directament. Estableix el " -"%sauthentication type%s a [kbd]cookie[/kbd] o [kbd]http[/kbd]." +"phpMyAdmin pot accedir al teu panel directament. Estableix el %" +"sauthentication type%s a [kbd]cookie[/kbd] o [kbd]http[/kbd]." #: setup/lib/index.lib.php:270 #, php-format diff --git a/po/cs.po b/po/cs.po index 9b8ceb9595..7941f2375f 100644 --- a/po/cs.po +++ b/po/cs.po @@ -6,14 +6,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-06-02 10:34+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: czech \n" -"Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: cs\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Pootle 2.0.5\n" @@ -137,9 +137,8 @@ msgstr "Komentář k tabulce" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Pole" @@ -619,8 +618,8 @@ msgstr "Sledování není zapnuté." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Tento pohled má alespoň tolik řádek. Podrobnosti naleznete v %sdokumentaci%s." @@ -857,8 +856,8 @@ msgstr "Výpis byl uložen do souboru %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Pravděpodobně jste se pokusili nahrát příliš velký soubor. Přečtěte si " "prosím %sdokumentaci%s, jak toto omezení obejít." @@ -1715,8 +1714,8 @@ msgstr "Vítejte v %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Pravděpodobná příčina je, že nemáte vytvořený konfigurační soubor. Pro jeho " "vytvoření by se vám mohl hodit %1$snastavovací skript%2$s." @@ -4538,8 +4537,9 @@ msgid "Events" msgstr "Události" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Název" @@ -4740,8 +4740,8 @@ msgstr ", @TABLE@ bude nahrazen jménem tabulky" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Tato hodnota je interpretována pomocí %1$sstrftime%2$s, takže můžete použít " "libovolné řetězce pro formátování data a času. Dále budou provedena " @@ -5467,8 +5467,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "Dokumentace a další informace o PBXT můžete nalézt na %sstránkách PrimeBase " "XT%s." @@ -6738,8 +6738,8 @@ msgid "" "For a list of available transformation options and their MIME type " "transformations, click on %stransformation descriptions%s" msgstr "" -"Pro seznam dostupných parametrů transformací a jejich MIME typů klikněte na " -"%spopisy transformací%s" +"Pro seznam dostupných parametrů transformací a jejich MIME typů klikněte na %" +"spopisy transformací%s" #: libraries/tbl_properties.inc.php:143 msgid "Transformation options" @@ -6790,8 +6790,8 @@ msgid "" "No description is available for this transformation.
Please ask the " "author what %s does." msgstr "" -"Pro tuto transformaci není dostupný žádný popis.
Zeptejte se autora co " -"%s dělá." +"Pro tuto transformaci není dostupný žádný popis.
Zeptejte se autora co %" +"s dělá." #: libraries/tbl_properties.inc.php:625 tbl_structure.php:636 #, php-format @@ -7410,8 +7410,8 @@ msgid "" "You can set more settings by modifying config.inc.php, eg. by using %sSetup " "script%s." msgstr "" -"Více věcí můžete nastavit úpravou config.inc.php, např. použitím " -"%sNastavovacího skriptu%s." +"Více věcí můžete nastavit úpravou config.inc.php, např. použitím %" +"sNastavovacího skriptu%s." #: prefs_manage.php:302 msgid "Save to browser's storage" @@ -7859,8 +7859,8 @@ msgstr "Odstranit databáze se stejnými jmény jako uživatelé." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Poznámka: phpMyAdmin získává oprávnění přímo z tabulek MySQL. Obsah těchto " "tabulek se může lišit od oprávnění, která server právě používá, pokud byly " @@ -9328,8 +9328,8 @@ msgid "" "If using cookie authentication and %sLogin cookie store%s is not 0, %sLogin " "cookie validity%s must be set to a value less or equal to it." msgstr "" -"Při použití přihlašování přes cookies a při %sUkládádání přihlašovaci cookie" -"%s vyšší než 0 musí být %sPlatnost přihlašovací cookie%s nastavena na vyšší " +"Při použití přihlašování přes cookies a při %sUkládádání přihlašovaci cookie%" +"s vyšší než 0 musí být %sPlatnost přihlašovací cookie%s nastavena na vyšší " "hodnotu než je tato." #: setup/lib/index.lib.php:266 @@ -9340,8 +9340,8 @@ msgid "" "protection may not be reliable if your IP belongs to an ISP where thousands " "of users, including you, are connected to." msgstr "" -"Pokud to považujete za nutné, použijte další možnosti zabezpečení - " -"%somezení počítačů%s a %sseznam důvěryhodných proxy%s. Nicméně zabezpečení " +"Pokud to považujete za nutné, použijte další možnosti zabezpečení - %" +"somezení počítačů%s a %sseznam důvěryhodných proxy%s. Nicméně zabezpečení " "založené na IP adresách nemusí být spolehlivé, pokud je vaše IP adresa " "dynamicky přidělována poskytovatelem spolu s mnoha dalšími uživateli." diff --git a/po/cy.po b/po/cy.po index 4d9af48352..9e58a287c2 100644 --- a/po/cy.po +++ b/po/cy.po @@ -6,14 +6,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-19 21:21+0200\n" "Last-Translator: \n" "Language-Team: Welsh \n" -"Language: cy\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: cy\n" "Plural-Forms: nplurals=2; plural=(n==2) ? 1 : 0;\n" "X-Generator: Pootle 2.0.5\n" @@ -138,9 +138,8 @@ msgstr "Sylwadau tabl" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Colofn" @@ -618,8 +617,8 @@ msgstr "Nid yw tracio'n weithredol" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Mae gan yr olwg hon o leiaf y nifer hwn o resi. Gweler y %sdogfennaeth%s." @@ -858,8 +857,8 @@ msgstr "Dadlwythiad wedi'i gadw i'r ffeil %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Yn ôl pob tebyg, mae'r ffeil i rhy fawr i'w lanlwytho. Gweler y %sdogfennaeth" "%s am ffyrdd i weithio o gwmpas y cyfyngiad hwn." @@ -1766,11 +1765,11 @@ msgstr "Croeso i %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"Rydych chi heb greu ffeil ffurfwedd yn ôl pob tebyg. Gallwch ddefnyddio'r " -"%1$sgript gosod%2$s er mwyn ei chreu." +"Rydych chi heb greu ffeil ffurfwedd yn ôl pob tebyg. Gallwch ddefnyddio'r %1" +"$sgript gosod%2$s er mwyn ei chreu." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4526,8 +4525,9 @@ msgid "Events" msgstr "Digwyddiadau" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Enw" @@ -4747,8 +4747,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5436,8 +5436,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7759,8 +7759,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/da.po b/po/da.po index 7a01764e0c..6301e16ee8 100644 --- a/po/da.po +++ b/po/da.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-03-07 01:17+0200\n" "Last-Translator: \n" "Language-Team: danish \n" -"Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: da\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -133,9 +133,8 @@ msgstr "Tabel kommentarer" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Kolonnenavn" @@ -621,8 +620,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -862,11 +861,11 @@ msgstr "Dump er blevet gemt i filen %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Du har sandsynligvis forsøgt at uploade en for stor fil. Se venligst " -"%sdokumentationen%s for måder hvorpå du kan arbejde dig uden om denne " +"Du har sandsynligvis forsøgt at uploade en for stor fil. Se venligst %" +"sdokumentationen%s for måder hvorpå du kan arbejde dig uden om denne " "begrænsning." #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1826,8 +1825,8 @@ msgstr "Velkommen til %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Sandsynlig årsag til dette er at du ikke har oprettet en konfigurationsfil. " "Du kan bruge %1$sopsætningsscriptet%2$s til at oprette en." @@ -4594,8 +4593,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Navn" @@ -4822,8 +4822,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Denne værdi fortolkes via %1$sstrftime%2$s, så du kan bruge tidsformatterede " "strenge. Ydermere vil følgende transformationer foregå: %3$s. Anden tekst " @@ -5542,8 +5542,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8053,14 +8053,14 @@ msgstr "Drop databaser der har samme navne som brugernes." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Bemærk: phpMyAdmin henter brugernes privilegier direkte fra MySQLs " "privilegietabeller. Indholdet af disse tabeller kan være forskelligt fra " "privilegierne serveren i øjeblikket bruger hvis der er lavet manuelle " -"ændringer i den. Hvis dette er tilfældet, bør du %sgenindlæse privilegierne" -"%s før du fortsætter." +"ændringer i den. Hvis dette er tilfældet, bør du %sgenindlæse privilegierne%" +"s før du fortsætter." #: server_privileges.php:1764 msgid "The selected user was not found in the privilege table." diff --git a/po/de.po b/po/de.po index 56b299a5f7..efd64a68f2 100644 --- a/po/de.po +++ b/po/de.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-04-23 04:28+0200\n" "Last-Translator: Dominik Geyer \n" "Language-Team: german \n" -"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Tabellen-Kommentar" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Spalte" @@ -346,8 +345,8 @@ msgid "" "The phpMyAdmin configuration storage has been deactivated. To find out why " "click %shere%s." msgstr "" -"Der phpMyAdmin Konfigurations-Speicher wurde deaktiviert. Klicken Sie %shier" -"%s um herauszufinden warum." +"Der phpMyAdmin Konfigurations-Speicher wurde deaktiviert. Klicken Sie %shier%" +"s um herauszufinden warum." #: db_operations.php:600 msgid "Edit or export relational schema" @@ -614,11 +613,11 @@ msgstr "Tracking ist nicht aktiviert." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Dieser View hat mindestens diese Anzahl von Zeilen. Bitte lesen Sie die " -"%sDokumentation%s." +"Dieser View hat mindestens diese Anzahl von Zeilen. Bitte lesen Sie die %" +"sDokumentation%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -859,11 +858,11 @@ msgstr "Dump (Schema) wurde in Datei %s gespeichert." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Möglicherweise wurde eine zu große Datei hochgeladen. Bitte lesen Sie die " -"%sDokumentation%s zur Lösung diese Problems." +"Möglicherweise wurde eine zu große Datei hochgeladen. Bitte lesen Sie die %" +"sDokumentation%s zur Lösung diese Problems." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1739,8 +1738,8 @@ msgstr "Willkommen bei %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Eine mögliche Ursache wäre, dass Sie noch keine Konfigurationsdatei angelegt " "haben. Verwenden Sie in diesem Fall doch das %1$sSetup-Skript%2$s, um eine " @@ -4612,8 +4611,9 @@ msgid "Events" msgstr "Ereignisse" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Name" @@ -4818,8 +4818,8 @@ msgstr ", @TABLE@ wird durch den Tabellennamen ersetzt" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Dieser Wert wird mit %1$sstrftime%2$s geparst. Sie können also Platzhalter " "für Datum und Uhrzeit verwenden. Darüber hinaus werden folgende Umformungen " @@ -5551,8 +5551,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "Dokumentation und weitere Informationen über PBXT sind auf der %sPrimeBase " "XT-Website%s verfügbar." @@ -6900,8 +6900,8 @@ msgid "" "author what %s does." msgstr "" "Für diese Umwandlung ist keine Beschreibung verfügbar.
Für weitere " -"Informationen wenden Sie sich bitte an den Autoren der Funktion "" -"%s"." +"Informationen wenden Sie sich bitte an den Autoren der Funktion "%" +"s"." #: libraries/tbl_properties.inc.php:625 tbl_structure.php:636 #, php-format @@ -7998,8 +7998,8 @@ msgstr "Die gleichnamigen Datenbanken löschen." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "phpMyAdmin liest die Benutzerprofile direkt aus den entsprechenden MySQL-" "Tabellen aus. Der Inhalt dieser Tabellen kann sich von den Benutzerprofilen, " @@ -9552,8 +9552,8 @@ msgstr "" "Sie haben die [kbd]config[/kbd] Authentifizierung gewählt und einen " "Benutzernamen und Passwort für Auto-Login eingegeben, was für Server im " "Internet nicht wünschenswert ist. Jeder, der Ihre phpMyAdmin-URL kennt oder " -"errät, kann direkt auf Ihre phpMyAdmin-Oberfläche zugreifen. Setzen Sie den " -"%sAuthentifizierungstyp%s auf [kbd]cookie[/kbd] oder [kbd]http[/kbd]." +"errät, kann direkt auf Ihre phpMyAdmin-Oberfläche zugreifen. Setzen Sie den %" +"sAuthentifizierungstyp%s auf [kbd]cookie[/kbd] oder [kbd]http[/kbd]." #: setup/lib/index.lib.php:270 #, php-format diff --git a/po/el.po b/po/el.po index 3716debc2d..1f7d01e1bf 100644 --- a/po/el.po +++ b/po/el.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-19 13:51+0200\n" "Last-Translator: Panagiotis Papazoglou \n" "Language-Team: greek \n" -"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: el\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Σχόλια Πίνακα" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Στήλη" @@ -614,11 +613,11 @@ msgstr "Η παρακολούθηση δεν είναι ενεργοποιημέ #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Αυτή η προβολή έχει τουλάχιστον αυτό τον αριθμό γραμμών. Λεπτομέρειες στην " -"%sτεκμηρίωση%s." +"Αυτή η προβολή έχει τουλάχιστον αυτό τον αριθμό γραμμών. Λεπτομέρειες στην %" +"sτεκμηρίωση%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -854,11 +853,11 @@ msgstr "Το αρχείο εξόδου αποθηκεύτηκε ως %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Πιθανόν προσπαθείτε να αποστείλετε πολύ μεγάλο αρχείο. Λεπτομέρειες στην " -"%sτεκμηρίωση%s για τρόπους αντιμετώπισης αυτού του περιορισμού." +"Πιθανόν προσπαθείτε να αποστείλετε πολύ μεγάλο αρχείο. Λεπτομέρειες στην %" +"sτεκμηρίωση%s για τρόπους αντιμετώπισης αυτού του περιορισμού." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1722,8 +1721,8 @@ msgstr "Καλωσήρθατε στο %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Πιθανή αιτία για αυτό είναι η μη δημιουργία αρχείου προσαρμογής. Ίσως θέλετε " "να χρησιμοποιήσετε τον %1$sκώδικα εγκατάστασηςt%2$s για να δημιουργήσετε ένα." @@ -4624,8 +4623,9 @@ msgid "Events" msgstr "Συμβάντα" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Όνομα" @@ -4824,8 +4824,8 @@ msgstr ", το @TABLE@ θα γίνει το όνομα του πίνακα" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Αυτή η τιμή μετατρέπεται με χρήση της συνάρτησης %1$sstrftime%2$s, έτσι " "μπορείτε να χρησιμοποιήσετε φράσεις μορφής χρόνου. Επιπρόσθετα, θα γίνουν " @@ -5398,8 +5398,8 @@ msgid "" "Documentation and further information about PBMS can be found on %sThe " "PrimeBase Media Streaming home page%s." msgstr "" -"Τεκμηρίωση και περισσότερες πληροφορίες για το PBMS μπορεί να βρεθεί στην " -"%sΙστοσελίδα του PrimeBase Media Streaming%s." +"Τεκμηρίωση και περισσότερες πληροφορίες για το PBMS μπορεί να βρεθεί στην %" +"sΙστοσελίδα του PrimeBase Media Streaming%s." #: libraries/engines/pbms.lib.php:96 libraries/engines/pbxt.lib.php:127 msgid "Related Links" @@ -5568,11 +5568,11 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" -"Τεκμηρίωση και περισσότερες πληροφορίες για το PBXT μπορούν να βρεθούν στην " -"%sΙστοσελίδα του PrimeBase XT%s." +"Τεκμηρίωση και περισσότερες πληροφορίες για το PBXT μπορούν να βρεθούν στην %" +"sΙστοσελίδα του PrimeBase XT%s." #: libraries/engines/pbxt.lib.php:129 msgid "The PrimeBase XT Blog by Paul McCullagh" @@ -7250,8 +7250,8 @@ msgid "" "extended features have been deactivated. To find out why click %shere%s." msgstr "" "Η αποθήκευση ρυθμίσεων του phpMyAdmin δεν έχει ρυθμιστεί πλήρως. Μερικά " -"εκτεταμένα χαρακτηριστικά έχουν απενεργοποιηθεί. Για να δείτε γιατί πατήστε " -"%sεδώ%s." +"εκτεταμένα χαρακτηριστικά έχουν απενεργοποιηθεί. Για να δείτε γιατί πατήστε %" +"sεδώ%s." #: main.php:314 msgid "" @@ -7999,8 +7999,8 @@ msgstr "Διαγραφή βάσεων δεδομένων που έχουν ίδ msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Σημείωση: Το phpMyAdmin διαβάζει τα δικαιώματα των χρηστών κατευθείαν από " "τους πίνακες δικαιωμάτων της MySQL. Το περιεχόμενο αυτών των πινάκων μπορεί " @@ -9528,8 +9528,8 @@ msgid "" "(currently %d)." msgstr "" "Αν η %sεγκυρότητα Σύνδεσης cookie%s είναι μεγαλύτερη από 1440 δευτερόλεπτα " -"μπορεί να προκαλέσει τυχαία ακύρωση συνεδρίας αν το %ssession.gc_maxlifetime" -"%s είναι μικρότερο από την τιμή της (τρέχουσα: %d)." +"μπορεί να προκαλέσει τυχαία ακύρωση συνεδρίας αν το %ssession.gc_maxlifetime%" +"s είναι μικρότερο από την τιμή της (τρέχουσα: %d)." #: setup/lib/index.lib.php:262 #, php-format diff --git a/po/en_GB.po b/po/en_GB.po index 51e1c2fc6d..34afba2da4 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-31 19:28+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: english-gb \n" -"Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: en_GB\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Table comments" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Column" @@ -614,11 +613,11 @@ msgstr "Tracking is not active." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -852,11 +851,11 @@ msgstr "Dump has been saved to file %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1707,11 +1706,11 @@ msgstr "Welcome to %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4529,8 +4528,9 @@ msgid "Events" msgstr "Events" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Name" @@ -4729,12 +4729,12 @@ msgstr ", @TABLE@ will become the table name" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." #: libraries/display_export.lib.php:275 msgid "use this for future exports" @@ -5456,11 +5456,11 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." #: libraries/engines/pbxt.lib.php:129 msgid "The PrimeBase XT Blog by Paul McCullagh" @@ -7851,13 +7851,13 @@ msgstr "Drop the databases that have the same names as the users." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." #: server_privileges.php:1764 msgid "The selected user was not found in the privilege table." diff --git a/po/es.po b/po/es.po index 6346e5e0c9..bda89603c6 100644 --- a/po/es.po +++ b/po/es.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-19 19:01+0200\n" "Last-Translator: Matías Bellone \n" "Language-Team: spanish \n" -"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Comentarios de la tabla" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Columna" @@ -618,11 +617,11 @@ msgstr "El seguimiento no está activo." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Esta vista tiene al menos este número de filas. Por favor refiérase a la " -"%sdocumentation%s." +"Esta vista tiene al menos este número de filas. Por favor refiérase a la %" +"sdocumentation%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -858,8 +857,8 @@ msgstr "El volcado ha sido guardado al archivo %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Usted probablemente intentó cargar un archivo demasiado grande. Por favor, " "refiérase a %sla documentation%s para hallar modos de superar esta " @@ -1729,8 +1728,8 @@ msgstr "Bienvenido a %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "La razón más probable es que usted no haya creado un archivo de " "configuración. Utilice el %1$sscript de configuración%2$s para crear uno." @@ -4645,8 +4644,9 @@ msgid "Events" msgstr "Eventos" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nombre" @@ -4849,8 +4849,8 @@ msgstr ", @TABLE@ se convertirá en el nombre de la tabla" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Este valor es interpretado usando %1$sstrftime%2$s por lo que se pueden usar " "cadenas para formatear el tiempo. Además sucederán las siguientes " @@ -5601,8 +5601,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "Se puede encontrar documentación y más información sobre PBXT en la %spágina " "inicial de PrimeBase XT%s." @@ -7297,8 +7297,8 @@ msgid "" "extended features have been deactivated. To find out why click %shere%s." msgstr "" "El almacenamiento de configuración phpMyAdmin no está completamente " -"configurado, algunas funcionalidades extendidas fueron deshabilitadas. " -"%sPulsa aquí para averiguar por qué%s." +"configurado, algunas funcionalidades extendidas fueron deshabilitadas. %" +"sPulsa aquí para averiguar por qué%s." #: main.php:314 msgid "" @@ -8053,8 +8053,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Nota: phpMyAdmin obtiene los privilegios de los usuarios 'directamente de " "las tablas de privilegios MySQL'. El contenido de estas tablas puede diferir " diff --git a/po/et.po b/po/et.po index 3418814d9c..92be794ece 100644 --- a/po/et.po +++ b/po/et.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-12 09:14+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: estonian \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" "X-Generator: Translate Toolkit 1.5.3\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -132,9 +132,8 @@ msgstr "Tabeli kommentaarid" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -633,8 +632,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -883,8 +882,8 @@ msgstr "Väljavõte salvestati faili %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Te kindlasti proovisite laadida liiga suurt faili. Palun uuri " "dokumentatsiooni %sdocumentation%s selle limiidi seadmiseks." @@ -1835,8 +1834,8 @@ msgstr "Tere tulemast %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Arvatav põhjus on te pole veel loonud seadete faili. Soovitavalt võid " "kasutada %1$ssetup script%2$s et seadistada." @@ -4641,8 +4640,9 @@ msgid "Events" msgstr "Saadetud" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nimi" @@ -4869,8 +4869,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Seda väärtust on tõlgendatud kasutades %1$sstrftime%2$s, sa võid kasutada " "sama aja(time) formaati. Lisaks tulevad ka järgnevad muudatused: %3$s. " @@ -5590,8 +5590,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8101,8 +8101,8 @@ msgstr "Kustuta andmebaasid millel on samad nimed nagu kasutajatel." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Märkus: phpMyAdmin võtab kasutajate privileegid otse MySQL privileges " "tabelist. Tabeli sisu võib erineda sellest, mida server hetkel kasutab, seda " diff --git a/po/eu.po b/po/eu.po index 916e4ea6f1..07702d36aa 100644 --- a/po/eu.po +++ b/po/eu.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-07-21 14:53+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: basque \n" -"Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: eu\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.1\n" @@ -133,9 +133,8 @@ msgstr "Taularen iruzkinak" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -637,8 +636,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -884,8 +883,8 @@ msgstr "Iraulketa %s fitxategian gorde da." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1810,8 +1809,8 @@ msgstr "Ongietorriak %s(e)ra" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4578,8 +4577,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Izena" @@ -4799,8 +4799,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5487,8 +5487,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7970,8 +7970,8 @@ msgstr "Erabiltzaileen izen berdina duten datu-baseak ezabatu." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Oharra: phpMyAdmin-ek erabiltzaileen pribilegioak' zuzenean MySQL-ren " "pribilegioen taulatik' eskuratzen ditu. Taula hauen edukiak, tartean eskuz " diff --git a/po/fa.po b/po/fa.po index c9f90b65a9..1ff10d725c 100644 --- a/po/fa.po +++ b/po/fa.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-05-19 03:54+0200\n" "Last-Translator: \n" "Language-Team: persian \n" -"Language: fa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: fa\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.1\n" @@ -132,9 +132,8 @@ msgstr "توضيحات جدول" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "ستون" @@ -613,8 +612,8 @@ msgstr "پیگردی فعال نمی باشد." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "در این نما حداقل این تعداد از سطرها موجود می باشد. لطفاً به %sنوشتار%s مراجعه " "نمایید." @@ -858,8 +857,8 @@ msgstr "" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1774,8 +1773,8 @@ msgstr "به %s خوش‌آمديد" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4513,8 +4512,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "اسم" @@ -4732,8 +4732,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5408,8 +5408,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6658,9 +6658,9 @@ msgid "" msgstr "" "اگر نوع ستون \"enum\" يا \"set\" مي‌باشد ، لطفا براي ورود مقادير از اين قالب " "استفاده نماييد : 'a','b','c'...
اگر احتياج داشتيد كه از علامت مميز " -"برعكس(بك‌اسلش) (\" \\ \") يا نقل‌قول تكي (\" ' \") در آن مقادير استفاده " -"نماييد ، قبل از آنها علامت (\" \\ \") را بگذاريد
(براي مثال'\\\\xyz' " -"يا 'a\\'b')" +"برعكس(بك‌اسلش) (\" \\ \") يا نقل‌قول تكي (\" ' \") در آن مقادير استفاده نماييد " +"، قبل از آنها علامت (\" \\ \") را بگذاريد
(براي مثال'\\\\xyz' يا 'a" +"\\'b')" #: libraries/tbl_properties.inc.php:105 msgid "" @@ -6695,9 +6695,9 @@ msgid "" msgstr "" "اگر نوع ستون \"enum\" يا \"set\" مي‌باشد ، لطفا براي ورود مقادير از اين قالب " "استفاده نماييد : 'a','b','c'...
اگر احتياج داشتيد كه از علامت مميز " -"برعكس(بك‌اسلش) (\" \\ \") يا نقل‌قول تكي (\" ' \") در آن مقادير استفاده " -"نماييد ، قبل از آنها علامت (\" \\ \") را بگذاريد
(براي مثال'\\\\xyz' " -"يا 'a\\'b')" +"برعكس(بك‌اسلش) (\" \\ \") يا نقل‌قول تكي (\" ' \") در آن مقادير استفاده نماييد " +"، قبل از آنها علامت (\" \\ \") را بگذاريد
(براي مثال'\\\\xyz' يا 'a" +"\\'b')" #: libraries/tbl_properties.inc.php:371 msgid "ENUM or SET data too long?" @@ -6967,8 +6967,8 @@ msgid "" "this security hole by setting a password for user 'root'." msgstr "" "پرونده پيكربندي شما حاوي تنظيماتي است (كاربر root بدون اسم رمز) كه مرتبط با " -"حساب پيش‌فرض MySQL مي‌باشد. اجراي MySQL با اين پيش‌فرض باعث ورود غيرمجاز " -"مي‌شود ، و شما بايد اين حفره امنيتي را ذرست كنيد." +"حساب پيش‌فرض MySQL مي‌باشد. اجراي MySQL با اين پيش‌فرض باعث ورود غيرمجاز مي‌شود " +"، و شما بايد اين حفره امنيتي را ذرست كنيد." #: main.php:251 msgid "" @@ -7768,8 +7768,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/fi.po b/po/fi.po index ede39773d4..25c6204ff8 100644 --- a/po/fi.po +++ b/po/fi.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-11-26 21:29+0200\n" "Last-Translator: \n" "Language-Team: finnish \n" -"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Taulun kommentit" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Sarake" @@ -614,11 +613,11 @@ msgstr "Seuranta ei ole käytössä." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Tässä näkymässä on vähintään tämän luvun verran rivejä. Katso lisätietoja " -"%sohjeista%s." +"Tässä näkymässä on vähintään tämän luvun verran rivejä. Katso lisätietoja %" +"sohjeista%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -859,8 +858,8 @@ msgstr "Vedos tallennettiin tiedostoon %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Yritit todennäköisesti lähettää palvelimelle liian suurta tiedostoa. Katso " "tämän rajoituksen muuttamisesta lisätietoja %sohjeista%s." @@ -1738,11 +1737,11 @@ msgstr "Tervetuloa, toivottaa %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"Et liene luonut asetustiedostoa. Voit luoda asetustiedoston " -"%1$sasetusskriptillä%2$s." +"Et liene luonut asetustiedostoa. Voit luoda asetustiedoston %1" +"$sasetusskriptillä%2$s." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4701,8 +4700,9 @@ msgid "Events" msgstr "Tapahtumat" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nimi" @@ -4937,8 +4937,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Tämä arvo on %1$sstrftime%2$s-funktion mukainen, joten " "ajanmuodostostusmerkkijonoja voi käyttää. Lisäksi tapahtuu seuraavat " @@ -5699,8 +5699,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8263,8 +8263,8 @@ msgstr "Poista tietokannat, joilla on sama nimi kuin käyttäjillä." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Huom: PhpMyAdmin hakee käyttäjien käyttöoikeudet suoraan MySQL-palvelimen " "käyttöoikeustauluista. Näiden taulujen sisältö saattaa poiketa palvelimen " @@ -9852,9 +9852,9 @@ msgstr "" #| "You set the [kbd]config[/kbd] authentication type and included username " #| "and password for auto-login, which is not a desirable option for live " #| "hosts. Anyone who knows or guesses your phpMyAdmin URL can directly " -#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=" -#| "%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http" -#| "[/kbd]." +#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1" +#| "$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/" +#| "kbd]." msgid "" "You set the [kbd]config[/kbd] authentication type and included username and " "password for auto-login, which is not a desirable option for live hosts. " diff --git a/po/fr.po b/po/fr.po index 176ffb7258..a9e7d85849 100644 --- a/po/fr.po +++ b/po/fr.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-31 17:18+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: french \n" -"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -136,9 +136,8 @@ msgstr "Commentaires sur la table" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Colonne" @@ -615,11 +614,11 @@ msgstr "Le suivi n'est pas activé." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Cette vue contient au moins ce nombre de lignes. Veuillez référer à " -"%sdocumentation%s." +"Cette vue contient au moins ce nombre de lignes. Veuillez référer à %" +"sdocumentation%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -856,8 +855,8 @@ msgstr "Le fichier d'exportation a été sauvegardé sous %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Vous avez probablement tenté de télécharger un fichier trop volumineux. " "Veuillez vous référer à la %sdocumentation%s pour des façons de contourner " @@ -1727,8 +1726,8 @@ msgstr "Bienvenue sur %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "La raison probable est que vous n'avez pas créé de fichier de configuration. " "Vous pouvez utiliser le %1$sscript de configuration%2$s dans ce but." @@ -4604,8 +4603,9 @@ msgid "Events" msgstr "Événements" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nom" @@ -4807,8 +4807,8 @@ msgstr ", @TABLE@ sera remplacé par le nom de la table" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Cette valeur est interprétée avec %1$sstrftime%2$s, vous pouvez donc " "utiliser des chaînes de format d'heure. Ces transformations additionnelles " @@ -5550,8 +5550,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "La documentation de PBXT et des informations additionnelles sont disponibles " "sur %sle site de PrimeBase XT%s." @@ -5702,8 +5702,7 @@ msgstr "" #: libraries/export/sql.php:35 msgid "Additional custom header comment (\\n splits lines):" -msgstr "" -"Commentaires mis en en-tête (séparer les lignes par «\\» suivi de «n») :" +msgstr "Commentaires mis en en-tête (séparer les lignes par «\\» suivi de «n») :" #: libraries/export/sql.php:37 msgid "" @@ -6787,8 +6786,8 @@ msgid "" "installed the necessary PHP extensions as described in the %sdocumentation%s." msgstr "" "Le validateur SQL n'a pas pu être initialisé. Vérifiez que les extensions " -"PHP nécessaires ont bien été installées tel que décrit dans la " -"%sdocumentation%s." +"PHP nécessaires ont bien été installées tel que décrit dans la %" +"sdocumentation%s." #: libraries/tbl_links.inc.php:106 libraries/tbl_links.inc.php:107 msgid "Table seems to be empty!" @@ -7989,8 +7988,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Note: phpMyAdmin obtient la liste des privilèges directement à partir des " "tables MySQL. Le contenu de ces tables peut être différent des privilèges " @@ -9421,8 +9420,8 @@ msgid "" msgstr "" "Cette %soption%s ne devrait pas être activée car elle permet à un attaquant " "de tenter de forcer l'entrée sur tout serveur MySQL. Si vous en avez " -"réellement besoin, utilisez la %sliste des serveurs mandataires de confiance" -"%s." +"réellement besoin, utilisez la %sliste des serveurs mandataires de confiance%" +"s." #: setup/lib/index.lib.php:252 msgid "" @@ -9474,8 +9473,8 @@ msgid "" msgstr "" "Le paramètre %sLogin cookie validity%s avec une valeur de plus de 1440 " "secondes peut causer des interruptions de la session de travail si le " -"paramètre %ssession.gc_maxlifetime%s a une plus petite valeur (actuellement " -"%d)." +"paramètre %ssession.gc_maxlifetime%s a une plus petite valeur (actuellement %" +"d)." #: setup/lib/index.lib.php:262 #, php-format @@ -9494,8 +9493,8 @@ msgid "" "cookie validity%s must be set to a value less or equal to it." msgstr "" "Si vous utilisez l'authentification cookie et que le paramètre %sLogin " -"cookie store%s n'a pas une valeur de 0, le paramètre %sLogin cookie validity" -"%s doit avoir une valeur plus petite ou égale à celui-ci." +"cookie store%s n'a pas une valeur de 0, le paramètre %sLogin cookie validity%" +"s doit avoir une valeur plus petite ou égale à celui-ci." #: setup/lib/index.lib.php:266 #, php-format @@ -9505,8 +9504,8 @@ msgid "" "protection may not be reliable if your IP belongs to an ISP where thousands " "of users, including you, are connected to." msgstr "" -"Si vous l'estimez nécessaire, utilisez des paramètres de protection - " -"%sauthentification du serveur%s et %sserveurs mandataires de confiance%s. " +"Si vous l'estimez nécessaire, utilisez des paramètres de protection - %" +"sauthentification du serveur%s et %sserveurs mandataires de confiance%s. " "Cependant, la protection par adresse IP peut ne pas être fiable si votre IP " "appartient à un fournisseur via lequel des milliers d'utilisateurs, vous y " "compris, sont connectés." diff --git a/po/gl.po b/po/gl.po index aa8af1b79c..b7b6ea70c8 100644 --- a/po/gl.po +++ b/po/gl.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-07-21 14:50+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: galician \n" -"Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: gl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.1\n" @@ -136,9 +136,8 @@ msgstr "Comentarios da táboa" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -638,11 +637,11 @@ msgstr "O seguemento non está activado." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Esta vista ten, cando menos, este número de fileiras. Vexa a %sdocumentation" -"%s." +"Esta vista ten, cando menos, este número de fileiras. Vexa a %sdocumentation%" +"s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -883,11 +882,11 @@ msgstr "Gardouse o volcado no ficheiro %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Posibelmente tentou enviar un ficheiro demasiado grande. Consulte a " -"%sdocumentación%s para averiguar como evitar este límite." +"Posibelmente tentou enviar un ficheiro demasiado grande. Consulte a %" +"sdocumentación%s para averiguar como evitar este límite." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1861,8 +1860,8 @@ msgstr "Reciba a benvida a %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Isto débese, posibelmente, a que non se creou un ficheiro de configuración. " "Tal vez queira utilizar %1$ssetup script%2$s para crear un." @@ -4892,8 +4891,9 @@ msgid "Events" msgstr "Acontecementos" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nome" @@ -5126,8 +5126,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Este valor interprétase utilizando %1$sstrftime%2$s, de maneira que pode " "utilizar cadeas de formato de hora. Produciranse transformacións en " @@ -5896,8 +5896,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7703,8 +7703,8 @@ msgid "" "Server running with Suhosin. Please refer to %sdocumentation%s for possible " "issues." msgstr "" -"Servidor a executarse con Suhosin. Consulte os posíbeis problemas na " -"%sdocumentation%s." +"Servidor a executarse con Suhosin. Consulte os posíbeis problemas na %" +"sdocumentation%s." #: navigation.php:207 server_databases.php:281 server_synchronize.php:1206 msgid "No databases" @@ -8459,8 +8459,8 @@ msgstr "Eliminar as bases de datos que teñan os mesmos nomes que os usuarios." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Nota: phpMyAdmin recolle os privilexios dos usuarios directamente das táboas " "de privilexios do MySQL. O contido destas táboas pode diferir dos " @@ -10056,9 +10056,9 @@ msgstr "" #| "You set the [kbd]config[/kbd] authentication type and included username " #| "and password for auto-login, which is not a desirable option for live " #| "hosts. Anyone who knows or guesses your phpMyAdmin URL can directly " -#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=" -#| "%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http" -#| "[/kbd]." +#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1" +#| "$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/" +#| "kbd]." msgid "" "You set the [kbd]config[/kbd] authentication type and included username and " "password for auto-login, which is not a desirable option for live hosts. " diff --git a/po/he.po b/po/he.po index 9207779b88..d266d89365 100644 --- a/po/he.po +++ b/po/he.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-03-02 20:17+0200\n" "Last-Translator: \n" "Language-Team: hebrew \n" -"Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: he\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -130,9 +130,8 @@ msgstr "הערות טבלה" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -629,8 +628,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -874,8 +873,8 @@ msgstr "הוצאה נשמרה אל קובץ %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1806,8 +1805,8 @@ msgstr "ברוך הבא אל %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4574,8 +4573,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "שם" @@ -4797,8 +4797,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5482,8 +5482,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7884,8 +7884,8 @@ msgstr "הסרת מאגרי נתונים שיש להם שמות דומים כמ msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "הערה: phpMyAdmin מקבל הרשאות משתמש ישירות מטבלאות הרשאות של MySQL. התוכן של " "הטבלאות האלו יכול להיות שונה מההרשאות שהשרת משתמש בהן, אם הן שונו באופן " diff --git a/po/hi.po b/po/hi.po index 4ab10e7be9..e202391712 100644 --- a/po/hi.po +++ b/po/hi.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-06 09:13+0200\n" "Last-Translator: \n" "Language-Team: hindi \n" -"Language: hi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: hi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -134,9 +134,8 @@ msgstr " टेबल टिप्पणि:" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "कोलम" @@ -345,8 +344,8 @@ msgid "" "The phpMyAdmin configuration storage has been deactivated. To find out why " "click %shere%s." msgstr "" -"phpMyAdmin विन्यास भंडारण को निष्क्रिय किया गया हैक्यों ये किया गया है, जानने के लिए " -"%shere%s पर क्लिक करें." +"phpMyAdmin विन्यास भंडारण को निष्क्रिय किया गया हैक्यों ये किया गया है, जानने के लिए %" +"shere%s पर क्लिक करें." #: db_operations.php:600 msgid "Edit or export relational schema" @@ -613,8 +612,8 @@ msgstr "ट्रैकिंग सक्रिय नहीं है." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "इस द्रश्य में कम से कम इतनी रो हैं. और जानने के लिए %s दोक्युमेंताशन%s पढ़ें." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -855,8 +854,8 @@ msgstr "डंप को %s फाइल में सेव किया गय #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "आप शायद बहुत बड़ी फाइल अपलोड करने की कोशिश कर रहे हैं. इस दुविधा के लिए कृपया करके %s " "दोकुमेंताशन%s पढ़ें." @@ -1719,11 +1718,11 @@ msgstr " %s मे स्वागत है" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"आपने शायद एक विन्यास फाइल नहीं बने थी. विन्यास फाइल बनाने के लिए %1$ssetup script" -"%2$s का उपयोग करें." +"आपने शायद एक विन्यास फाइल नहीं बने थी. विन्यास फाइल बनाने के लिए %1$ssetup script%2" +"$s का उपयोग करें." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4442,8 +4441,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "नाम" @@ -4643,8 +4643,8 @@ msgstr ", @टेबल@ टेबल का नाम बन जायेगा #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5300,8 +5300,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7641,8 +7641,8 @@ msgstr "Drop the databases that have the same names as the users." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/hr.po b/po/hr.po index 5d5cf2de24..7c965cf596 100644 --- a/po/hr.po +++ b/po/hr.po @@ -3,16 +3,16 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-07-21 14:54+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: croatian \n" -"Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.1\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -136,9 +136,8 @@ msgstr "Komentari tablice" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -637,8 +636,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Ovaj prikaz sadrži najmanje ovoliko redaka. Proučite %sdokumentaciju%s." @@ -888,11 +887,11 @@ msgstr "Izbacivanje je spremljeno u datoteku %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Vjerojatno ste pokušali s učitavanjem prevelike datoteke. Pogledajte " -"%sdokumentaciju%s radi uputa o načinima rješavanja ovog ograničenja." +"Vjerojatno ste pokušali s učitavanjem prevelike datoteke. Pogledajte %" +"sdokumentaciju%s radi uputa o načinima rješavanja ovog ograničenja." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1849,8 +1848,8 @@ msgstr "Dobro došli u %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Vjerojatan razlog je nepostojeća konfiguracijska datoteka. Za izradu možete " "upotrijebiti naredbu %1$ssetup script%2$s" @@ -4656,8 +4655,9 @@ msgid "Events" msgstr "Događaji" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Naziv" @@ -4887,8 +4887,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Vrijednost se interpretira pomoću %1$sstrftime%2$s, pa možete upotrijebiti " "naredbe oblikovanja vremena. Dodatno se mogu dogoditi sljedeća " @@ -5646,8 +5646,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8169,8 +8169,8 @@ msgstr "Ispusti baze podataka koje imaju iste nazive i korisnike." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Napomena: phpMyAdmin preuzima korisničke privilegije izravno iz MySQL " "tablica privilegija. U slučaju da su ručno mijenjane, sadržaj ovih tablica " @@ -10593,8 +10593,8 @@ msgstr "Preimenuj prikaz u" #~ "Cannot load [a@http://php.net/%1$s@Documentation][em]%1$s[/em][/a] " #~ "extension. Please check your PHP configuration." #~ msgstr "" -#~ "Nije moguće učitati proširenje [a@http://php.net/%1$s@Documentation]" -#~ "[em]%1$s[/em][/a] . Provjerite svoju PHP konfiguraciju." +#~ "Nije moguće učitati proširenje [a@http://php.net/%1$s@Documentation][em]%1" +#~ "$s[/em][/a] . Provjerite svoju PHP konfiguraciju." #~ msgid "" #~ "Couldn't load the iconv or recode extension needed for charset " diff --git a/po/hu.po b/po/hu.po index c01df6dc66..64b70f89b2 100644 --- a/po/hu.po +++ b/po/hu.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-27 18:52+0200\n" "Last-Translator: \n" "Language-Team: hungarian \n" -"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: hu\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Tábla megjegyzése" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Oszlop" @@ -614,11 +613,11 @@ msgstr "Nyomkövetés inaktív." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Ebben a nézetben legalább ennyi számú sor van. Kérjük, hogy nézzen utána a " -"%sdokumentációban%s." +"Ebben a nézetben legalább ennyi számú sor van. Kérjük, hogy nézzen utána a %" +"sdokumentációban%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -854,11 +853,11 @@ msgstr "A kiíratás mentése a(z) %s fájlba megtörtént." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Ön bizonyára túl nagy fájlt próbált meg feltölteni. Kérjük, nézzen utána a " -"%sdokumentációban%s a korlátozás feloldása végett." +"Ön bizonyára túl nagy fájlt próbált meg feltölteni. Kérjük, nézzen utána a %" +"sdokumentációban%s a korlátozás feloldása végett." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1728,11 +1727,11 @@ msgstr "Üdvözli a %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"Ön valószínűleg nem hozta létre a konfigurációs fájlt. A " -"%1$stelepítőszkripttel%2$s el tudja készíteni." +"Ön valószínűleg nem hozta létre a konfigurációs fájlt. A %1" +"$stelepítőszkripttel%2$s el tudja készíteni." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4601,8 +4600,9 @@ msgid "Events" msgstr "Események" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Név" @@ -4809,8 +4809,8 @@ msgstr ", @TABLE@ lesz a tábla neve" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Ennek az értéknek az értelmezése az %1$sstrftime%2$s használatával történik, " "vagyis időformázó karakterláncokat használhat. A következő átalakításokra " @@ -5554,8 +5554,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6814,8 +6814,8 @@ msgid "" "The SQL validator could not be initialized. Please check if you have " "installed the necessary PHP extensions as described in the %sdocumentation%s." msgstr "" -"Nem lehetett inicializálni az SQL ellenőrzőt. Ellenőrizze, hogy a " -"%sdokumentációban%s leírtak szerint telepítette-e a szükséges PHP-" +"Nem lehetett inicializálni az SQL ellenőrzőt. Ellenőrizze, hogy a %" +"sdokumentációban%s leírtak szerint telepítette-e a szükséges PHP-" "kiterjesztést." #: libraries/tbl_links.inc.php:106 libraries/tbl_links.inc.php:107 @@ -8120,13 +8120,13 @@ msgstr "A felhasználókéval azonos nevű adatbázisok eldobása." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Megjegyzés: a phpMyAdmin a felhasználók jogait közvetlenül a MySQL " "privilégium táblákból veszi. Ezen táblák tartalma eltérhet a szerver által " -"használt jogoktól, ha a módosításuk kézzel történt. Ebben az esetben " -"%stöltse be újra a jogokat%s a folytatás előtt." +"használt jogoktól, ha a módosításuk kézzel történt. Ebben az esetben %" +"stöltse be újra a jogokat%s a folytatás előtt." #: server_privileges.php:1764 msgid "The selected user was not found in the privilege table." @@ -9675,9 +9675,9 @@ msgstr "" #| "You set the [kbd]config[/kbd] authentication type and included username " #| "and password for auto-login, which is not a desirable option for live " #| "hosts. Anyone who knows or guesses your phpMyAdmin URL can directly " -#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=" -#| "%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http" -#| "[/kbd]." +#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1" +#| "$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/" +#| "kbd]." msgid "" "You set the [kbd]config[/kbd] authentication type and included username and " "password for auto-login, which is not a desirable option for live hosts. " diff --git a/po/id.po b/po/id.po index 1f560fddee..4c0b43c6e0 100644 --- a/po/id.po +++ b/po/id.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-04-16 22:04+0200\n" "Last-Translator: \n" "Language-Team: indonesian \n" -"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: id\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Komentar tabel" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Kolom" @@ -611,11 +610,11 @@ msgstr "Pelacakan tidak aktif." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Sebuah view setidaknya mempunyai jumlah kolom berikut. Silahkan lihat " -"%sdokumentasi%s" +"Sebuah view setidaknya mempunyai jumlah kolom berikut. Silahkan lihat %" +"sdokumentasi%s" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -854,11 +853,11 @@ msgstr "Dump (Skema) disimpan pada file %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Anda mungkin meng-upload file yang terlalu besar. Silahkan lihat " -"%sdokumentasi%s untuk mendapatkan solusi tentang batasan ini." +"Anda mungkin meng-upload file yang terlalu besar. Silahkan lihat %" +"sdokumentasi%s untuk mendapatkan solusi tentang batasan ini." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1731,8 +1730,8 @@ msgstr "Selamat Datang di %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Anda mungkin belum membuat file konfigurasi. Anda bisa menggunakan %1$ssetup " "script%2$s untuk membuatnya." @@ -4499,8 +4498,9 @@ msgid "Events" msgstr "Kejadian" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nama" @@ -4727,8 +4727,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5433,8 +5433,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7950,8 +7950,8 @@ msgstr "Hapus database yang memiliki nama yang sama dengan pengguna." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Perhatian: phpMyAdmin membaca data tentang pengguna secara langsung dari " "tabel profil pengguna MySQL. Isi dari tabel bisa saja berbeda dengan profil " diff --git a/po/it.po b/po/it.po index fb11df086f..172871cefc 100644 --- a/po/it.po +++ b/po/it.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-25 22:43+0200\n" "Last-Translator: Rouslan Placella \n" "Language-Team: italian \n" -"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -136,9 +136,8 @@ msgstr "Commenti alla tabella" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Campo" @@ -615,8 +614,8 @@ msgstr "Il tracking non è attivo." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Questa vista ha, come minimo, questo numero di righe. Per informazioni " "controlla la %sdocumentazione%s." @@ -855,8 +854,8 @@ msgstr "Il dump è stato salvato nel file %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Stai probabilmente cercando di caricare sul server un file troppo grande. " "Fai riferimento alla documentazione %sdocumentation%s se desideri aggirare " @@ -1724,8 +1723,8 @@ msgstr "Benvenuto in %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "La ragione di questo è che probabilmente non hai creato alcun file di " "configurazione. Potresti voler usare %1$ssetup script%2$s per crearne uno." @@ -4627,8 +4626,9 @@ msgid "Events" msgstr "Eventi" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nome" @@ -4830,8 +4830,8 @@ msgstr ", il nome della tabella diventerá @TABLE@" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Questo valore è interpretato usando %1$sstrftime%2$s: in questo modo puoi " "usare stringhe di formattazione per le date/tempi. Verranno anche aggiunte " @@ -5571,8 +5571,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "La documentazione ed ulteriori informazioni a riguardo di PBXT é disponibile " "su %sPrimeBase XT Home Page%s." @@ -7282,8 +7282,8 @@ msgid "" "Server running with Suhosin. Please refer to %sdocumentation%s for possible " "issues." msgstr "" -"Sul server è in esecuzione Suhosin. Controlla la documentazione: " -"%sdocumentation%s per possibili problemi." +"Sul server è in esecuzione Suhosin. Controlla la documentazione: %" +"sdocumentation%s per possibili problemi." #: navigation.php:207 server_databases.php:281 server_synchronize.php:1206 msgid "No databases" @@ -7996,8 +7996,8 @@ msgstr "Elimina i databases gli stessi nomi degli utenti." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "N.B.: phpMyAdmin legge i privilegi degli utenti direttamente nella tabella " "dei privilegi di MySQL. Il contenuto di questa tabella può differire dai " @@ -9530,10 +9530,10 @@ msgid "" "protection may not be reliable if your IP belongs to an ISP where thousands " "of users, including you, are connected to." msgstr "" -"Se credi che é necessario, usa delle ulteriori impostazioni di protezione - " -"%saimpostazioni di autenticazione dei host%s e %slista di proxy di fiducia" -"%s. Comunque, la protezione a base di IP potrebbe non essere affidabile se " -"il tuo IP appartiene ad un ISP dove migliaia di utenti, incluso te, sono " +"Se credi che é necessario, usa delle ulteriori impostazioni di protezione - %" +"saimpostazioni di autenticazione dei host%s e %slista di proxy di fiducia%s. " +"Comunque, la protezione a base di IP potrebbe non essere affidabile se il " +"tuo IP appartiene ad un ISP dove migliaia di utenti, incluso te, sono " "connessi." #: setup/lib/index.lib.php:268 @@ -9548,8 +9548,8 @@ msgstr "" "Hai impostato il tipo di autenticazione [kbd]config[/kbd] e hai inclusi il " "nome utente e la parola chiave per l'auto-login, questo non è desiderato per " "gli host in uso live. Chiunque che conosce o indovina il tuo URL di " -"phpMyAdmin potrá direttamente accedere al pannello di phpMyAdmin. Imposta " -"%sil tipo di autenticazione%s a [kbd]cookie[/kbd] o [kbd]http[/kbd]." +"phpMyAdmin potrá direttamente accedere al pannello di phpMyAdmin. Imposta %" +"sil tipo di autenticazione%s a [kbd]cookie[/kbd] o [kbd]http[/kbd]." #: setup/lib/index.lib.php:270 #, php-format diff --git a/po/ja.po b/po/ja.po index 7434dbc088..ecd0fc72bd 100644 --- a/po/ja.po +++ b/po/ja.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-31 12:04+0200\n" "Last-Translator: Yuichiro \n" "Language-Team: japanese \n" -"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "テーブルのコメント" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "カラム" @@ -611,8 +610,8 @@ msgstr "SQL コマンドの追跡は非アクティブです。" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "このビューの最低行数。詳しくは%sドキュメント%sをご覧ください。" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -850,8 +849,8 @@ msgstr "ダンプをファイル %s に保存しました" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "アップロードしようとしたファイルが大きすぎるようです。対策については %sドキュ" "メント%s をご覧ください" @@ -1712,11 +1711,11 @@ msgstr "%s へようこそ" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"設定ファイルが作成されていないものと思われます。%1$sセットアップスクリプ" -"ト%2$s を利用して設定ファイルを作成してください" +"設定ファイルが作成されていないものと思われます。%1$sセットアップスクリプト%2" +"$s を利用して設定ファイルを作成してください" #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4556,8 +4555,9 @@ msgid "Events" msgstr "イベント" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "名前" @@ -4757,8 +4757,8 @@ msgstr "、@TABLE@ はテーブル名に" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "この値は %1$sstrftime%2$s を使用して解釈されますので、時刻の書式文字列を使用" "することができます。また、埋め込み変数変換も行われます(%3$s変換されま" @@ -5483,8 +5483,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "PBXT に関するドキュメントおよび詳細な情報は、%sPrimeBase XT オフィシャルサイ" "ト%sにあります。" @@ -7869,8 +7869,8 @@ msgstr "ユーザと同名のデータベースを削除する" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "注意: phpMyAdmin は MySQL の特権テーブルから直接ユーザ特権を取得しますが、手" "作業で特権を更新した場合は phpMyAdmin が利用しているテーブルの内容とサーバの" @@ -9349,11 +9349,10 @@ msgid "" "protection may not be reliable if your IP belongs to an ISP where thousands " "of users, including you, are connected to." msgstr "" -"それでも、[kbd]config[/kbd] 認証が必要であると思われる場合、追加の保護設定" -"(%sホスト認証%s設定および%s信頼されたプロキシのリスト%s)を使用してくださ" -"い。しかしながら、ユーザが数千人もいるような ISP に所属している、含まれてい" -"る、接続されている場合には、IP アドレスを基にした保護は信頼性が高いとはいえま" -"せん。" +"それでも、[kbd]config[/kbd] 認証が必要であると思われる場合、追加の保護設定(%" +"sホスト認証%s設定および%s信頼されたプロキシのリスト%s)を使用してください。し" +"かしながら、ユーザが数千人もいるような ISP に所属している、含まれている、接続" +"されている場合には、IP アドレスを基にした保護は信頼性が高いとはいえません。" #: setup/lib/index.lib.php:268 #, php-format diff --git a/po/ka.po b/po/ka.po index c7e9b8c8d6..5afa3a3f32 100644 --- a/po/ka.po +++ b/po/ka.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-12 09:14+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: georgian \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" "X-Generator: Translate Toolkit 1.5.3\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -134,9 +134,8 @@ msgstr "ცხრილის კომენტარები" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -635,11 +634,11 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -886,11 +885,11 @@ msgstr "Dump has been saved to file %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1859,11 +1858,11 @@ msgstr "მოგესალმებათ %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4835,8 +4834,9 @@ msgid "Events" msgstr "მოვლენები" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "სახელი" @@ -5066,12 +5066,12 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is." #: libraries/display_export.lib.php:275 msgid "use this for future exports" @@ -5821,8 +5821,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8377,13 +8377,13 @@ msgstr "Drop the databases that have the same names as the users." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." #: server_privileges.php:1764 msgid "The selected user was not found in the privilege table." @@ -9913,9 +9913,9 @@ msgstr "" #| "You set the [kbd]config[/kbd] authentication type and included username " #| "and password for auto-login, which is not a desirable option for live " #| "hosts. Anyone who knows or guesses your phpMyAdmin URL can directly " -#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=" -#| "%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http" -#| "[/kbd]." +#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1" +#| "$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/" +#| "kbd]." msgid "" "You set the [kbd]config[/kbd] authentication type and included username and " "password for auto-login, which is not a desirable option for live hosts. " diff --git a/po/ko.po b/po/ko.po index f7526b1c93..08be782e15 100644 --- a/po/ko.po +++ b/po/ko.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-06-16 18:18+0200\n" "Last-Translator: \n" "Language-Team: korean \n" -"Language: ko\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ko\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.1\n" @@ -134,9 +134,8 @@ msgstr "테이블 설명" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "컬럼명" @@ -351,8 +350,8 @@ msgid "" "The phpMyAdmin configuration storage has been deactivated. To find out why " "click %shere%s." msgstr "" -"링크 테이블을 처리하는 추가 기능이 비활성화되어 있습니다. 원인을 확인하려면 " -"%s여기를 클릭%s하십시오." +"링크 테이블을 처리하는 추가 기능이 비활성화되어 있습니다. 원인을 확인하려면 %" +"s여기를 클릭%s하십시오." #: db_operations.php:600 msgid "Edit or export relational schema" @@ -621,8 +620,8 @@ msgstr "트래킹이 활성화되어 있지 않습니다." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -867,8 +866,8 @@ msgstr "" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1753,8 +1752,8 @@ msgstr "%s에 오셨습니다" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "설정 파일을 생성하지 않은 것 같습니다. %1$ssetup script%2$s 를 사용해 설정 파" "일을 생성할 수 있습니다." @@ -4519,8 +4518,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "이름" @@ -4739,8 +4739,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5422,8 +5422,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7030,8 +7030,8 @@ msgid "" "The phpMyAdmin configuration storage is not completely configured, some " "extended features have been deactivated. To find out why click %shere%s." msgstr "" -"링크 테이블을 처리하는 추가 기능이 비활성화되어 있습니다. 원인을 확인하려면 " -"%s여기를 클릭%s하십시오." +"링크 테이블을 처리하는 추가 기능이 비활성화되어 있습니다. 원인을 확인하려면 %" +"s여기를 클릭%s하십시오." #: main.php:314 msgid "" @@ -7792,8 +7792,8 @@ msgstr "사용자명과 같은 이름의 데이터베이스를 삭제" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/lt.po b/po/lt.po index bb3a09e035..dde1c6bd49 100644 --- a/po/lt.po +++ b/po/lt.po @@ -3,16 +3,16 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-04-05 15:52+0200\n" "Last-Translator: Kęstutis \n" "Language-Team: lithuanian \n" -"Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" -"%100<10 || n%100>=20) ? 1 : 2);\n" +"Language: lt\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%" +"100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -135,9 +135,8 @@ msgstr "Lentelės komentarai" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Stulpelis" @@ -616,11 +615,11 @@ msgstr "Sekimas yra neaktyvus." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Šis rodinys turi mažiausiai tiek eilučių. Daugiau informacijos " -"%sdokumentacijoje%s." +"Šis rodinys turi mažiausiai tiek eilučių. Daugiau informacijos %" +"sdokumentacijoje%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -861,11 +860,11 @@ msgstr "Atvaizdis įrašytas faile %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Jūs tikriausiai bandėte įkelti per didelį failą. Prašome perskaityti " -"%sdokumentaciją%s būdams kaip apeiti šį apribojimą." +"Jūs tikriausiai bandėte įkelti per didelį failą. Prašome perskaityti %" +"sdokumentaciją%s būdams kaip apeiti šį apribojimą." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1735,8 +1734,8 @@ msgstr "Jūs naudojate %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Jūs dar turbūt nesukūrėte nustatymų failo. Galite pasinaudoti %1$snustatymų " "skriptu%2$s, kad sukurtumėte failą." @@ -4531,8 +4530,9 @@ msgid "Events" msgstr "Įvykiai" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Pavadinimas" @@ -4733,8 +4733,8 @@ msgstr ", @TABLE@ taps lentelės pavadinimu" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Ši reikšmė interpretuojama naudojant %1$sstrftime%2$s, taigi Jūs galite " "keisti laiko formatavimą. Taip pat pakeičiamos šios eilutės: %3$s. Kitas " @@ -5421,8 +5421,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7881,8 +7881,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Pastaba: phpMyAdmin gauna vartotojų teises tiesiai iš MySQL privilegijų " "lentelės. Šiose lentelėse nurodytos teisės gali skirtis nuo nustatymų " @@ -9311,9 +9311,9 @@ msgstr "" #| "You set the [kbd]config[/kbd] authentication type and included username " #| "and password for auto-login, which is not a desirable option for live " #| "hosts. Anyone who knows or guesses your phpMyAdmin URL can directly " -#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=" -#| "%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http" -#| "[/kbd]." +#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1" +#| "$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/" +#| "kbd]." msgid "" "You set the [kbd]config[/kbd] authentication type and included username and " "password for auto-login, which is not a desirable option for live hosts. " diff --git a/po/lv.po b/po/lv.po index 6b1729e00b..990c7c61ee 100644 --- a/po/lv.po +++ b/po/lv.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-12 09:16+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: latvian \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" "X-Generator: Translate Toolkit 1.5.3\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -132,9 +132,8 @@ msgstr "Komentārs tabulai" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -633,8 +632,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -880,8 +879,8 @@ msgstr "Damps tika saglabāts failā %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1814,8 +1813,8 @@ msgstr "Laipni lūgti %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4583,8 +4582,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nosaukums" @@ -4806,8 +4806,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5494,8 +5494,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7977,13 +7977,13 @@ msgstr "Dzēst datubāzes, kurām ir tādi paši vārdi, kā lietotājiem." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Piezīme: phpMyAdmin saņem lietotāju privilēģijas pa taisno no MySQL " "privilēģiju tabilām. Šo tabulu saturs var atšķirties no privilēģijām, ko " -"lieto serveris, ja tur tika veikti labojumi. Šajā gadījumā ir nepieciešams " -"%spārlādēt privilēģijas%s pirms Jūs turpināt." +"lieto serveris, ja tur tika veikti labojumi. Šajā gadījumā ir nepieciešams %" +"spārlādēt privilēģijas%s pirms Jūs turpināt." #: server_privileges.php:1764 msgid "The selected user was not found in the privilege table." diff --git a/po/mk.po b/po/mk.po index 6394ab03c1..99bb937e4d 100644 --- a/po/mk.po +++ b/po/mk.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-19 17:04+0200\n" "Last-Translator: \n" "Language-Team: macedonian_cyrillic \n" -"Language: mk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: mk\n" "Plural-Forms: nplurals=2; plural=n==1 || n%10==1 ? 0 : 1;\n" "X-Generator: Pootle 2.0.5\n" @@ -133,9 +133,8 @@ msgstr "Коментар на табелата" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -634,8 +633,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -881,8 +880,8 @@ msgstr "Содржината на базата на податоци е сочу #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1815,8 +1814,8 @@ msgstr "%s Добредојдовте" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4598,8 +4597,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Име" @@ -4823,8 +4823,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5531,8 +5531,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8044,8 +8044,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Напомена: phpMyAdmin ги зема привилегиите на корисникот директно од MySQL " "табелата на привилегии. Содржината на оваа табела табела може да се " diff --git a/po/ml.po b/po/ml.po index 0e5fab0642..54f181dfd5 100644 --- a/po/ml.po +++ b/po/ml.po @@ -5,14 +5,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-02-10 14:03+0100\n" "Last-Translator: Michal Čihař \n" "Language-Team: Malayalam \n" -"Language: ml\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ml\n" "X-Generator: Translate Toolkit 1.7.0\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -131,9 +131,8 @@ msgstr "" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "" @@ -608,8 +607,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -843,8 +842,8 @@ msgstr "" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1674,8 +1673,8 @@ msgstr "" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4314,8 +4313,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "" @@ -4512,8 +4512,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5163,8 +5163,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7395,8 +7395,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/mn.po b/po/mn.po index 21dee6f67e..f4ff2afc10 100644 --- a/po/mn.po +++ b/po/mn.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-12 09:17+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: mongolian \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" "X-Generator: Translate Toolkit 1.5.3\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -131,9 +131,8 @@ msgstr "Хүснэгтийн тайлбар" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -633,8 +632,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -873,8 +872,8 @@ msgstr "Асгалт %s файлд хадгалагдсан." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1818,11 +1817,11 @@ msgstr "%s-д тавтай морилно уу" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"Үүний шалтгаан нь магадгүй та тохиргооны файл үүсгээгүй байж болох юм. Та " -"%1$ssetup script%2$s -ийг ашиглаж нэгийг үүсгэж болно." +"Үүний шалтгаан нь магадгүй та тохиргооны файл үүсгээгүй байж болох юм. Та %1" +"$ssetup script%2$s -ийг ашиглаж нэгийг үүсгэж болно." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4579,8 +4578,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Нэр" @@ -4806,12 +4806,12 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Энэ утга нь %1$sstrftime%2$s -ийг хэрэглэж үүссэн, тиймээс та хугацааны " -"тогтнолын тэмдэгтийг хэрэглэж болно. Нэмэлтээр дараах хувиргалт байх болно: " -"%3$s. Бусад бичвэрүүд үүн шиг хадгалагдана." +"тогтнолын тэмдэгтийг хэрэглэж болно. Нэмэлтээр дараах хувиргалт байх болно: %" +"3$s. Бусад бичвэрүүд үүн шиг хадгалагдана." #: libraries/display_export.lib.php:275 msgid "use this for future exports" @@ -5521,8 +5521,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7998,8 +7998,8 @@ msgstr "Хэрэглэгчтэй адил нэртэй өгөгдлийн сан msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Тэмдэглэл: phpMyAdmin нь MySQL-ийн онцгой эрхийн хүснэгтээс хэрэглэгчдийн " "онцгой эрхийг авна. Хэрэв тэд гараар өөрчлөгдсөн бол эдгээр хүснэгтийн " @@ -10220,8 +10220,8 @@ msgstr "" #~ "The additional features for working with linked tables have been " #~ "deactivated. To find out why click %shere%s." #~ msgstr "" -#~ "Холбогдсон хүснэгтүүдтэй ажиллах нэмэлт онцлогууд идэвхгүй болжээ. %sЭнд" -#~ "%s дарж шалгах." +#~ "Холбогдсон хүснэгтүүдтэй ажиллах нэмэлт онцлогууд идэвхгүй болжээ. %sЭнд%" +#~ "s дарж шалгах." #~ msgid "Ignore duplicate rows" #~ msgstr "Давхардсан мөрүүдийг алгасах" diff --git a/po/ms.po b/po/ms.po index 7ad5b93fbe..0f457f6a0c 100644 --- a/po/ms.po +++ b/po/ms.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-12 09:17+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: malay \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" "X-Generator: Translate Toolkit 1.5.3\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -130,9 +130,8 @@ msgstr "Komen jadual" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -634,8 +633,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -878,8 +877,8 @@ msgstr "" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1797,8 +1796,8 @@ msgstr "Selamat Datang ke %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4540,8 +4539,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nama" @@ -4760,8 +4760,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5445,8 +5445,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7831,8 +7831,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/nb.po b/po/nb.po index d1b687f985..225dc7a7ef 100644 --- a/po/nb.po +++ b/po/nb.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-03-07 11:21+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: norwegian \n" -"Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: nb\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -134,9 +134,8 @@ msgstr "Tabellkommentarer" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Kolonne" @@ -612,8 +611,8 @@ msgstr "Overvåkning er ikke aktiv." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "Denne visningen har minst dette antall rader. Sjekk %sdocumentation%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -856,8 +855,8 @@ msgstr "Dump har blitt lagret til fila %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Du forsøkte sansynligvis å laste opp en for stor fil. Sjekk %sdokumentasjonen" "%s for måter å omgå denne begrensningen." @@ -1731,8 +1730,8 @@ msgstr "Velkommen til %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "En mulig årsak for dette er at du ikke opprettet konfigurasjonsfila. Du bør " "kanskje bruke %1$ssetup script%2$s for å opprette en." @@ -4579,8 +4578,9 @@ msgid "Events" msgstr "Hendelser" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Navn" @@ -4784,8 +4784,8 @@ msgstr ", @TABLE@ vil bli tabellnavnet" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Denne verdien blir tolket slik som %1$sstrftime%2$s, så du kan bruke " "tidformateringsstrenger. I tillegg vil følgende transformasjoner skje: %3$s. " @@ -5528,8 +5528,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6815,8 +6815,8 @@ msgid "" "For a list of available transformation options and their MIME type " "transformations, click on %stransformation descriptions%s" msgstr "" -"For en liste over tilgjengelige transformasjonsvalg, klikk på " -"%stransformasjonsbeskrivelser%s" +"For en liste over tilgjengelige transformasjonsvalg, klikk på %" +"stransformasjonsbeskrivelser%s" #: libraries/tbl_properties.inc.php:143 msgid "Transformation options" @@ -7994,8 +7994,8 @@ msgstr "Slett databasene som har det samme navnet som brukerne." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Merk: phpMyAdmin får brukerprivilegiene direkte fra MySQL " "privilegietabeller. Innholdet i disse tabellene kan være forskjellig fra de " @@ -9537,8 +9537,8 @@ msgid "" "of users, including you, are connected to." msgstr "" "Hvis du føler at dette er nødvending, så bruk ekstra " -"beskyttelsesinnstillinger - [a@?page=servers&mode=edit&id=" -"%1$d#tab_Server_config]vertsautentisering[/a] innstillinger og [a@?" +"beskyttelsesinnstillinger - [a@?page=servers&mode=edit&id=%1" +"$d#tab_Server_config]vertsautentisering[/a] innstillinger og [a@?" "page=form&formset=features#tab_Security]godkjente mellomlagerliste[/a]. " "Merk at IP-basert beskyttelse ikke er så god hvis din IP tilhører en " "Internettilbyder som har tusenvis av brukere, inkludert deg, tilknyttet." @@ -9549,9 +9549,9 @@ msgstr "" #| "You set the [kbd]config[/kbd] authentication type and included username " #| "and password for auto-login, which is not a desirable option for live " #| "hosts. Anyone who knows or guesses your phpMyAdmin URL can directly " -#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=" -#| "%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http" -#| "[/kbd]." +#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1" +#| "$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/" +#| "kbd]." msgid "" "You set the [kbd]config[/kbd] authentication type and included username and " "password for auto-login, which is not a desirable option for live hosts. " diff --git a/po/nl.po b/po/nl.po index f77c986cf7..6f91720891 100644 --- a/po/nl.po +++ b/po/nl.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-03-16 20:18+0200\n" "Last-Translator: Dieter Adriaenssens \n" "Language-Team: dutch \n" -"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -134,9 +134,8 @@ msgstr "Tabelopmerkingen" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Kolom" @@ -613,8 +612,8 @@ msgstr "Tracking is niet actief." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Deze view heeft minimaal deze hoeveelheid aan rijen. Zie de %sdocumentatie%s." @@ -859,11 +858,11 @@ msgstr "Dump is bewaard als %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"U probeerde waarschijnlijk een bestand dat te groot is te uploaden. Zie de " -"%sdocumentatie%s voor mogelijkheden om dit te omzeilen." +"U probeerde waarschijnlijk een bestand dat te groot is te uploaden. Zie de %" +"sdocumentatie%s voor mogelijkheden om dit te omzeilen." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1744,8 +1743,8 @@ msgstr "Welkom op %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "U heeft waarschijnlijk geen configuratiebestand aangemaakt. Het beste kunt u " "%1$ssetup script%2$s gebruiken om een te maken." @@ -4630,8 +4629,9 @@ msgid "Events" msgstr "Gebeurtenissen" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Naam" @@ -4837,13 +4837,13 @@ msgstr ", @TABLE@ wordt vervangen door de tabel naam" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Deze waarde wordt geïnterpreteerd met behulp van %1$sstrftime%2$s, het " "gebruik van opmaakcodes is dan ook toegestaan. Daarnaast worden de volgende " -"vertalingen toegepast: %3$s. Overige tekst zal gelijk blijven. Zie %4$sFAQ" -"%5$s voor meer details." +"vertalingen toegepast: %3$s. Overige tekst zal gelijk blijven. Zie %4$sFAQ%5" +"$s voor meer details." #: libraries/display_export.lib.php:275 msgid "use this for future exports" @@ -5579,11 +5579,11 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" -"Documentatie en meer informatie over PBXT kan gevonden worden op de " -"%sPrimeBase XT home pagina%s." +"Documentatie en meer informatie over PBXT kan gevonden worden op de %" +"sPrimeBase XT home pagina%s." #: libraries/engines/pbxt.lib.php:129 msgid "The PrimeBase XT Blog by Paul McCullagh" @@ -8015,8 +8015,8 @@ msgstr "Verwijder de databases die dezelfde naam hebben als de gebruikers." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Opmerking: phpMyAdmin krijgt de rechten voor de gebruikers uit de MySQL " "privileges tabel. De content van deze tabel kan verschillen met de rechten " diff --git a/po/phpmyadmin.pot b/po/phpmyadmin.pot index a82e4dd311..a2fa70f148 100644 --- a/po/phpmyadmin.pot +++ b/po/phpmyadmin.pot @@ -8,11 +8,10 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" @@ -134,9 +133,8 @@ msgstr "" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "" @@ -611,8 +609,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, possible-php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -846,8 +844,8 @@ msgstr "" #: import.php:58 #, possible-php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1677,8 +1675,8 @@ msgstr "" #: libraries/auth/config.auth.lib.php:106 #, possible-php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4317,8 +4315,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "" @@ -4515,8 +4514,8 @@ msgstr "" #, possible-php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5166,8 +5165,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, possible-php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7398,8 +7397,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/pl.po b/po/pl.po index a936402d3e..31310efdef 100644 --- a/po/pl.po +++ b/po/pl.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-02-24 16:21+0200\n" "Last-Translator: Michal Čihař \n" "Language-Team: polish \n" -"Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" @@ -136,9 +136,8 @@ msgstr "Komentarze tabeli" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Kolumna" @@ -623,11 +622,11 @@ msgstr "Monitorowanie nie jest aktywne." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Ta perspektywa ma przynajmniej tyle wierszy. Więcej informacji w " -"%sdocumentation%s." +"Ta perspektywa ma przynajmniej tyle wierszy. Więcej informacji w %" +"sdocumentation%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -868,8 +867,8 @@ msgstr "Zrzut został zapisany do pliku %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Prawdopodobnie próbowano wrzucić duży plik. Aby poznać sposoby obejścia tego " "limitu, proszę zapoznać się z %sdokumenacją%s." @@ -1777,8 +1776,8 @@ msgstr "Witamy w %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Prawdopodobnie powodem jest brak utworzonego pliku konfiguracyjnego. Do jego " "stworzenia można użyć %1$sskryptu instalacyjnego%2$s." @@ -4696,8 +4695,9 @@ msgid "Events" msgstr "Zdarzenia" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nazwa" @@ -4930,8 +4930,8 @@ msgstr ", @TABLE@ zostanie zastąpione nazwą wybranej tabeli" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Interpretacja tej wartości należy do funkcji %1$sstrftime%2$s i można użyć " "jej napisów formatujących. Dodatkowo zostaną zastosowane następujące " @@ -5695,8 +5695,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6965,8 +6965,8 @@ msgid "" "installed the necessary PHP extensions as described in the %sdocumentation%s." msgstr "" "Analizator składni SQL nie mógł zostać zainicjowany. Sprawdź, czy " -"zainstalowane są niezbędne rozszerzenia PHP, tak jak zostało to opisane w " -"%sdokumentacji%s." +"zainstalowane są niezbędne rozszerzenia PHP, tak jak zostało to opisane w %" +"sdokumentacji%s." #: libraries/tbl_links.inc.php:106 libraries/tbl_links.inc.php:107 msgid "Table seems to be empty!" @@ -7020,8 +7020,8 @@ msgid "" "For a list of available transformation options and their MIME type " "transformations, click on %stransformation descriptions%s" msgstr "" -"Aby uzyskać listę dostępnych opcji transformacji i ich typów MIME, kliknij " -"%sopisy transformacji%s" +"Aby uzyskać listę dostępnych opcji transformacji i ich typów MIME, kliknij %" +"sopisy transformacji%s" #: libraries/tbl_properties.inc.php:143 msgid "Transformation options" @@ -7505,8 +7505,8 @@ msgid "" "Server running with Suhosin. Please refer to %sdocumentation%s for possible " "issues." msgstr "" -"Serwer działa pod ochroną Suhosina. Możliwe problemy opisuje %sdokumentacja" -"%s." +"Serwer działa pod ochroną Suhosina. Możliwe problemy opisuje %sdokumentacja%" +"s." #: navigation.php:207 server_databases.php:281 server_synchronize.php:1206 msgid "No databases" @@ -8258,8 +8258,8 @@ msgstr "Usuń bazy danych o takich samych nazwach jak użytkownicy." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Uwaga: phpMyAdmin pobiera uprawnienia użytkowników wprost z tabeli uprawnień " "MySQL-a. Zawartość tej tabeli, jeśli zostały w niej dokonane ręczne zmiany, " @@ -9813,8 +9813,8 @@ msgid "" "of users, including you, are connected to." msgstr "" "Jeżeli wydaje się to konieczne, można użyć dodatkowych ustawień " -"bezpieczeństwa — [a@?page=servers&mode=edit&id=" -"%1$d#tab_Server_config]uwierzytelniania na podstawie hosta[/a] i [a@?" +"bezpieczeństwa — [a@?page=servers&mode=edit&id=%1" +"$d#tab_Server_config]uwierzytelniania na podstawie hosta[/a] i [a@?" "page=form&formset=features#tab_Security]listy zaufanych serwerów proxy[/" "a]. Jednakże ochrona oparta na adresy IP może nie być wiarygodna, jeżeli " "używany IP należy do ISP, do którego podłączonych jest tysiące użytkowników." @@ -9825,9 +9825,9 @@ msgstr "" #| "You set the [kbd]config[/kbd] authentication type and included username " #| "and password for auto-login, which is not a desirable option for live " #| "hosts. Anyone who knows or guesses your phpMyAdmin URL can directly " -#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=" -#| "%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http" -#| "[/kbd]." +#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1" +#| "$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/" +#| "kbd]." msgid "" "You set the [kbd]config[/kbd] authentication type and included username and " "password for auto-login, which is not a desirable option for live hosts. " diff --git a/po/pt.po b/po/pt.po index 0bcdca5643..040fbd34c3 100644 --- a/po/pt.po +++ b/po/pt.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-03-26 03:23+0200\n" "Last-Translator: \n" "Language-Team: portuguese \n" -"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -134,9 +134,8 @@ msgstr "Comentários da tabela" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Coluna" @@ -613,11 +612,11 @@ msgstr "Detecção de Alterações está desactivada." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Esta vista tem número de linhas aproximado. Por favor, consulte a " -"%sdocumentação%s." +"Esta vista tem número de linhas aproximado. Por favor, consulte a %" +"sdocumentação%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -858,8 +857,8 @@ msgstr "O Dump foi gravado para o ficheiro %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Provavelmente tentou efectuar o importar um ficheiro demasiado grande. Por " "favor reveja a %sdocumentação%s para encontrar formas de contornar este " @@ -1787,11 +1786,11 @@ msgstr "Bemvindo ao %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"Provavelmente um ficheiro de configuração não foi criado. O %1$ssetup script" -"%2$s pode ser utilizado para criar um." +"Provavelmente um ficheiro de configuração não foi criado. O %1$ssetup script%" +"2$s pode ser utilizado para criar um." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4566,8 +4565,9 @@ msgid "Events" msgstr "Enviado" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nome" @@ -4788,8 +4788,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5476,8 +5476,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7899,8 +7899,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Nota: O phpMyAdmin recebe os privilégios dos utilizadores directamente da " "tabela de privilégios do MySQL. O conteúdo destas tabelas pode diferir dos " diff --git a/po/pt_BR.po b/po/pt_BR.po index 54ff0eda2d..87c2f9b6d9 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-04-14 17:44+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" -"Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Comentários da tabela" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Coluna" @@ -616,11 +615,11 @@ msgstr "Rastreamento não está ativo." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" -"Esta visão tem pelo menos esse número de linhas. Por favor, consulte a " -"%sdocumentação%s." +"Esta visão tem pelo menos esse número de linhas. Por favor, consulte a %" +"sdocumentação%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 #: libraries/tbl_info.inc.php:60 tbl_structure.php:206 test/theme.php:73 @@ -860,8 +859,8 @@ msgstr "Dump foi salvo no arquivo %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Você provavelmente tentou carregar um arquivo muito grande. Veja referências " "na %sdocumentation%s para burlar esses limites." @@ -1769,8 +1768,8 @@ msgstr "Bem vindo ao %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "A provável razão para isso é que você não criou o arquivo de configuração. " "Você deve usar o %1$ssetup script%2$s para criar um." @@ -4544,8 +4543,9 @@ msgid "Events" msgstr "Eventos" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nome" @@ -4768,8 +4768,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Esse valor é interpretado usando %1$sstrftime%2$s, então você pode usar as " "strings de formatação de tempo. Adicionalmente a seguinte transformação " @@ -5491,8 +5491,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8018,8 +8018,8 @@ msgstr "Eliminar o Banco de Dados que possui o mesmo nome dos usuários." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Nota: O phpMyAdmin recebe os privilégios dos usuário diretamente da tabela " "de privilégios do MySQL. O conteúdo destas tabelas pode divergir dos " diff --git a/po/ro.po b/po/ro.po index 6d9749d264..eac0695b4c 100644 --- a/po/ro.po +++ b/po/ro.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-07-22 02:28+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: romanian \n" -"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ro\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " "20)) ? 1 : 2);;\n" "X-Generator: Pootle 2.0.1\n" @@ -136,9 +136,8 @@ msgstr "Comentarii tabel" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -637,8 +636,8 @@ msgstr "Monitorizarea nu este activată" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Această vedere are minim acest număr de rânduri. Vedeți %sdocumentation%s." @@ -888,11 +887,11 @@ msgstr "Copia a fost salvată în fișierul %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Probabil ați încercat să încărcați un fișier prea mare. Faceți referire la " -"%sdocumentație%s pentru căi de ocolire a acestei limite." +"Probabil ați încercat să încărcați un fișier prea mare. Faceți referire la %" +"sdocumentație%s pentru căi de ocolire a acestei limite." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1841,8 +1840,8 @@ msgstr "Bine ați venit la %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Motivul probabil pentru aceasta este că nu ați creat un fișier de " "configurare. Puteți folosi %1$s vrăjitorul de setări %2$s pentru a crea un " @@ -4658,8 +4657,9 @@ msgid "Events" msgstr "Evenimente" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nume" @@ -4888,12 +4888,12 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is." #: libraries/display_export.lib.php:275 msgid "use this for future exports" @@ -5644,8 +5644,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8177,8 +8177,8 @@ msgstr "Aruncă baza de date care are același nume ca utilizatorul." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Notă: phpMyAdmin folosește privilegiile utilizatorilor direct din tabelul de " "privilegii din MySQL. Conținutul acestui tabel poate diferi de cel original. " diff --git a/po/ru.po b/po/ru.po index 244bb4d43e..8913188533 100644 --- a/po/ru.po +++ b/po/ru.po @@ -3,16 +3,16 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-06-01 22:34+0200\n" "Last-Translator: Victor Volkov \n" "Language-Team: russian \n" -"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Language: ru\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -136,9 +136,8 @@ msgstr "Комментарий к таблице" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Поле" @@ -619,8 +618,8 @@ msgstr "Слежение выключено." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Данное представление имеет, по меньшей мере, указанное количество строк. " "Пожалуйста, обратитесь к %sдокументации%s." @@ -858,8 +857,8 @@ msgstr "Дамп был сохранен в файл %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Вероятно, размер загружаемого файла слишком велик. Способы обхода данного " "ограничения описаны в %sдокументации%s." @@ -1722,8 +1721,8 @@ msgstr "Добро пожаловать в %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Возможная причина - отсутствие файла конфигурации. Для его создания вы " "можете воспользоваться %1$sсценарием установки%2$s." @@ -4600,8 +4599,9 @@ msgid "Events" msgstr "События" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Имя" @@ -4805,8 +4805,8 @@ msgstr ", @TABLE@ будет замещено именем таблицы" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Значение обрабатывается функцией %1$sstrftime%2$s, благодаря чему возможна " "вставка текущей даты и времени. Дополнительно могут быть использованы " @@ -5541,8 +5541,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "Документацию и дальнейшую информацию по PBXT смотрите на %sдомашней странице " "PrimeBase XT%s." @@ -7955,8 +7955,8 @@ msgstr "Удалить базы данных, имена которых совп msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Примечание: phpMyAdmin получает информацию о пользовательских привилегиях " "непосредственно из таблиц привилегий MySQL. Содержимое этих таблиц может " @@ -9071,8 +9071,8 @@ msgid "" "Query statistics: Since its startup, %s queries have been sent to the " "server." msgstr "" -"Статистика запросов: со времени запуска, на сервер было отослано запросов - " -"%s." +"Статистика запросов: со времени запуска, на сервер было отослано запросов - %" +"s." #: server_status.php:626 msgid "per minute" @@ -9491,8 +9491,8 @@ msgid "" "protection may not be reliable if your IP belongs to an ISP where thousands " "of users, including you, are connected to." msgstr "" -"При необходимости используйте дополнительные настройки безопасности - " -"%sидентификация по хосту%s и %sсписок доверенных прокси серверов%s. Однако, " +"При необходимости используйте дополнительные настройки безопасности - %" +"sидентификация по хосту%s и %sсписок доверенных прокси серверов%s. Однако, " "защита по IP может быть ненадежной, если ваш IP не является выделенным и " "кроме вас принадлежит тысячам пользователей того же Интернет Провайдера." @@ -10251,8 +10251,8 @@ msgid "" "No themes support; please check your configuration and/or your themes in " "directory %s." msgstr "" -"Поддержка тем не работает, проверьте конфигурацию и наличие тем в каталоге " -"%s." +"Поддержка тем не работает, проверьте конфигурацию и наличие тем в каталоге %" +"s." #: themes.php:41 msgid "Get more themes!" diff --git a/po/si.po b/po/si.po index 7e769605a1..cd8d536f31 100644 --- a/po/si.po +++ b/po/si.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-13 17:05+0200\n" "Last-Translator: Madhura Jayaratne \n" "Language-Team: sinhala \n" -"Language: si\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: si\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -132,9 +132,8 @@ msgstr "වගු විස්තර" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "තීර" @@ -611,8 +610,8 @@ msgstr "අවධානය අක්‍රීයයි." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "මෙම දසුනේ අවම වශයෙන් පේළි මෙතරම් සංඛයාවක් ඇත. කරුණාකර %s ලේඛනය %s අධ්‍යනය කරන්න." @@ -854,11 +853,11 @@ msgstr "%s ගොනුවට නික්ෂේප දත්ත සුරකි #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1726,8 +1725,8 @@ msgstr "%s වෙත ආයුබෝවන්" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Probably reason of this is that you did not create configuration file. You " "might want to use %1$ssetup script%2$s to create one." @@ -4427,8 +4426,9 @@ msgid "Events" msgstr "සිද්ධි" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "නම" @@ -4637,12 +4637,12 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." #: libraries/display_export.lib.php:275 msgid "use this for future exports" @@ -5336,8 +5336,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6864,8 +6864,8 @@ msgid "" "Your preferences will be saved for current session only. Storing them " "permanently requires %sphpMyAdmin configuration storage%s." msgstr "" -"මෙම සැසිය සඳහා පමණක් ඔබගේ තෝරාගැනීම් සුරැකේ. තෝරාගැනීම් ස්ථාවරව සුරැකීම සඳහා " -"%sphpMyAdmin වින්‍යාස ගබඩාව%s අවශ්‍යය." +"මෙම සැසිය සඳහා පමණක් ඔබගේ තෝරාගැනීම් සුරැකේ. තෝරාගැනීම් ස්ථාවරව සුරැකීම සඳහා %" +"sphpMyAdmin වින්‍යාස ගබඩාව%s අවශ්‍යය." #: libraries/user_preferences.lib.php:142 msgid "Could not save configuration" @@ -7758,8 +7758,8 @@ msgstr "භාවිතා කරන්නන් හා සමාන නම් msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "සටහන: phpMyAdmin භාවිත කරන්නන්ගේ වරප්‍රසාද ලබාගනුයේ MySQL හි වරප්‍රසාද වගුවෙනි. " "සේවාදායකයේ වරප්‍රසාද වෙනම ම වෙනස් කර ඇත්නම් ඉහත වගුවේ දත්ත සේවාදායකයේ වරප්‍රසාද වලට " diff --git a/po/sk.po b/po/sk.po index ae314530e9..8c35a0bc6a 100644 --- a/po/sk.po +++ b/po/sk.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-30 13:03+0200\n" "Last-Translator: Martin Lacina \n" "Language-Team: slovak \n" -"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: sk\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Komentár k tabuľke" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Stĺpce" @@ -618,8 +617,8 @@ msgstr "Sledovanie nie je aktívne." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Tento pohľad má aspoň toľko riadok. Podrobnosti nájdete v %sdokumentaci%s." @@ -856,8 +855,8 @@ msgstr "Výpis bol uložený do súboru %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Pravdepodobne ste sa pokúsili uploadnuť príliš veľký súbor. Prečítajte si " "prosím %sdokumentáciu%s, ako sa dá toto obmedzenie obísť." @@ -1724,8 +1723,8 @@ msgstr "Vitajte v %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Pravdepodobná príčina je, že neexistuje konfiguračný súbor. Na jeho " "vytvorenie môžete použiť %1$skonfiguračný skript%2$s." @@ -4540,8 +4539,9 @@ msgid "Events" msgstr "Udalosti" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Názov" @@ -4741,8 +4741,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Táto hodnota je interpretovaná pomocou %1$sstrftime%2$s, takže môžete použiť " "reťazec pre formátovanie dátumu a času. Naviac budú vykonané tieto " @@ -5425,8 +5425,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6618,8 +6618,8 @@ msgid "" "installed the necessary PHP extensions as described in the %sdocumentation%s." msgstr "" "SQL validator nemohol byť inicializovaný. Prosím skontrolujte, či sú " -"nainštalované všetky potrebné rozšírenia php, tak ako sú popísané v " -"%sdocumentation%s." +"nainštalované všetky potrebné rozšírenia php, tak ako sú popísané v %" +"sdocumentation%s." #: libraries/tbl_links.inc.php:106 libraries/tbl_links.inc.php:107 msgid "Table seems to be empty!" @@ -7768,13 +7768,13 @@ msgstr "Odstrániť databázy s rovnakým menom ako majú používatelia." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Poznámka: phpMyAdmin získava práva používateľov priamo z tabuliek MySQL. " "Obsah týchto tabuliek sa môže líšiť od práv, ktoré používa server, ak boli " -"tieto tabuľky ručne upravené. V tomto prípade sa odporúča vykonať " -"%sznovunačítanie práv%s predtým ako budete pokračovať." +"tieto tabuľky ručne upravené. V tomto prípade sa odporúča vykonať %" +"sznovunačítanie práv%s predtým ako budete pokračovať." #: server_privileges.php:1764 msgid "The selected user was not found in the privilege table." @@ -10095,8 +10095,8 @@ msgstr "Premenovať pohľad na" #~ msgid "Imported file compression will be automatically detected from: %s" #~ msgstr "" -#~ "Kompresia importovaného súboru bude rozpoznaná automaticky. Podporované: " -#~ "%s" +#~ "Kompresia importovaného súboru bude rozpoznaná automaticky. Podporované: %" +#~ "s" #~ msgid "Add into comments" #~ msgstr "Pridať do komentárov" diff --git a/po/sl.po b/po/sl.po index cc886c548f..398a68b18b 100644 --- a/po/sl.po +++ b/po/sl.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-06-01 23:43+0200\n" "Last-Translator: Domen \n" "Language-Team: slovenian \n" -"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: sl\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" "%100==4 ? 2 : 3);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Pripomba tabele" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Stolpec" @@ -620,8 +619,8 @@ msgstr "Sledenje ni aktivno." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "Pogled ima vsaj toliko vrstic. Prosimo, oglejte si %sdokumentacijo%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -857,8 +856,8 @@ msgstr "Dump je shranjen v datoteko %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Najverjetneje ste poskušali naložiti preveliko datoteko. Prosimo, oglejte si " "%sdokumentacijo%s za načine, kako obiti to omejitev." @@ -1720,8 +1719,8 @@ msgstr "Dobrodošli v %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Najverjetneje niste ustvarili konfiguracijske datoteke. Morda želite " "uporabiti %1$snastavitveni skript%2$s, da jo ustvarite." @@ -4565,8 +4564,9 @@ msgid "Events" msgstr "Dogodki" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Ime" @@ -4768,8 +4768,8 @@ msgstr ", @TABLE@ bo postalo ime tabele" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Vrednost je prevedena z uporabo %1$sstrftime%2$s, tako da lahko uporabljate " "nize za zapis časa. Dodatno bo prišlo še do naslednjih pretvorb: %3$s. " @@ -5500,8 +5500,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "Dokumentacijo in nadaljnje informacije o PBXT lahko najdete na %sDomači " "strani PrimeBase XT%s." @@ -7909,8 +7909,8 @@ msgstr "Izbriši zbirke podatkov, ki imajo enako ime kot uporabniki." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Obvestilo: phpMyAdmin dobi podatke o uporabnikovih privilegijih iz tabel " "privilegijev MySQL. Vsebina teh tabel se lahko razlikuje od privilegijev, ki " diff --git a/po/sq.po b/po/sq.po index fc938fe229..3f806d5419 100644 --- a/po/sq.po +++ b/po/sq.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-07-21 14:51+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: albanian \n" -"Language: sq\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: sq\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.1\n" @@ -133,9 +133,8 @@ msgstr "Komentet e tabelës" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -634,8 +633,8 @@ msgstr "Gjurmimi nuk është aktiv." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -882,8 +881,8 @@ msgstr "Dump u ruajt tek file %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1815,8 +1814,8 @@ msgstr "Mirësevini tek %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4586,8 +4585,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Emri" @@ -4807,8 +4807,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5495,8 +5495,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7988,8 +7988,8 @@ msgstr "Elemino databazat që kanë emër të njëjtë me përdoruesit." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Shënim: phpMyAdmin lexon të drejtat e përdoruesve direkt nga tabela e " "privilegjeve të MySQL. Përmbajtja e kësaj tabele mund të ndryshojë prej të " diff --git a/po/sr.po b/po/sr.po index b9e11a4632..4fb8d44845 100644 --- a/po/sr.po +++ b/po/sr.po @@ -3,16 +3,16 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-04-06 18:43+0200\n" "Last-Translator: \n" "Language-Team: serbian_cyrillic \n" -"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Language: sr\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -134,9 +134,8 @@ msgstr "Коментари табеле" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Колона" @@ -631,8 +630,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -881,11 +880,11 @@ msgstr "Садржај базе је сачуван у датотеку %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Вероватно сте покушали да увезете превелику датотеку. Молимо погледајте " -"%sдокументацију%s за начине превазилажења овог ограничења." +"Вероватно сте покушали да увезете превелику датотеку. Молимо погледајте %" +"sдокументацију%s за начине превазилажења овог ограничења." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1836,8 +1835,8 @@ msgstr "Добродошли на %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Вероватан разлог за ово је да нисте направили конфигурациону датотеку. " "Можете користити %1$sскрипт за инсталацију%2$s да бисте је направили." @@ -4642,8 +4641,9 @@ msgid "Events" msgstr "Догађаји" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Име" @@ -4873,8 +4873,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Ова вредност се тумачи коришћењем %1$sstrftime%2$s, тако да можете да " "користите стрингове за форматирање времена. Такође ће се десити и следеће " @@ -5596,8 +5596,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8111,8 +8111,8 @@ msgstr "Одбаци базе које се зову исто као корис msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Напомена: phpMyAdmin узима привилегије корисника директно из MySQL табела " "привилегија. Садржај ове табеле може се разликовати од привилегија које " diff --git a/po/sr@latin.po b/po/sr@latin.po index 19eb8cff63..c75563b2e8 100644 --- a/po/sr@latin.po +++ b/po/sr@latin.po @@ -3,16 +3,16 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-12-02 14:49+0200\n" "Last-Translator: Sasa Kostic \n" "Language-Team: serbian_latin \n" -"Language: sr@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Language: sr@latin\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -136,9 +136,8 @@ msgstr "Komentari tabele" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Kolona" @@ -625,8 +624,8 @@ msgstr "Praćenje nije aktivno." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -875,11 +874,11 @@ msgstr "Sadržaj baze je sačuvan u datoteku %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Verovatno ste pokušali da uvezete preveliku datoteku. Molimo pogledajte " -"%sdokumentaciju%s za načine prevazilaženja ovog ograničenja." +"Verovatno ste pokušali da uvezete preveliku datoteku. Molimo pogledajte %" +"sdokumentaciju%s za načine prevazilaženja ovog ograničenja." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1830,8 +1829,8 @@ msgstr "Dobrodošli na %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Verovatan razlog za ovo je da niste napravili konfiguracionu datoteku. " "Možete koristiti %1$sskript za instalaciju%2$s da biste je napravili." @@ -4635,8 +4634,9 @@ msgid "Events" msgstr "Događaji" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Ime" @@ -4866,8 +4866,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Ova vrednost se tumači korišćenjem %1$sstrftime%2$s, tako da možete da " "koristite stringove za formatiranje vremena. Takođe će se desiti i sledeće " @@ -5589,8 +5589,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8100,8 +8100,8 @@ msgstr "Odbaci baze koje se zovu isto kao korisnici." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Napomena: phpMyAdmin uzima privilegije korisnika direktno iz MySQL tabela " "privilegija. Sadržaj ove tabele može se razlikovati od privilegija koje " diff --git a/po/sv.po b/po/sv.po index 722bee5857..c3b1d6e33b 100644 --- a/po/sv.po +++ b/po/sv.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-30 20:24+0200\n" "Last-Translator: \n" "Language-Team: swedish \n" -"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: sv\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Tabellkommentarer" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Kolumn" @@ -613,8 +612,8 @@ msgstr "Spårning är inte aktiv." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "Denna vy har åtminstone detta antal rader. Se %sdokumentationen%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -850,8 +849,8 @@ msgstr "SQL-satserna har sparats till filen %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Du försökte förmodligen ladda upp en för stor fil. Se %sdokumentationen%s " "för att gå runt denna begränsning." @@ -1711,11 +1710,11 @@ msgstr "Välkommen till %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"Du har troligen inte skapat en konfigurationsfil. Du vill kanske använda " -"%1$suppsättningsskript%2$s för att skapa denna." +"Du har troligen inte skapat en konfigurationsfil. Du vill kanske använda %1" +"$suppsättningsskript%2$s för att skapa denna." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4554,8 +4553,9 @@ msgid "Events" msgstr "Händelser" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Namn" @@ -4754,8 +4754,8 @@ msgstr ", @TABLE@ blir tabellnamnet" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Detta värde tolkas med %1$sstrftime%2$s, så du kan använda strängar med " "tidsformatering. Dessutom kommer följande omvandlingar att ske: %3$s. Övrig " @@ -5480,11 +5480,11 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" -"Dokumentation och ytterligare information finns på %sPrimeBase XT Home Page" -"%s." +"Dokumentation och ytterligare information finns på %sPrimeBase XT Home Page%" +"s." #: libraries/engines/pbxt.lib.php:129 msgid "The PrimeBase XT Blog by Paul McCullagh" @@ -7167,8 +7167,8 @@ msgid "" "Your PHP MySQL library version %s differs from your MySQL server version %s. " "This may cause unpredictable behavior." msgstr "" -"Din PHP MySQL bibliotekversion %s skiljer sig från din MySQL server version " -"%s. Detta kan orsaka oförutsägbara beteenden." +"Din PHP MySQL bibliotekversion %s skiljer sig från din MySQL server version %" +"s. Detta kan orsaka oförutsägbara beteenden." #: main.php:341 #, php-format @@ -7884,8 +7884,8 @@ msgstr "Ta bort databaserna med samma namn som användarna." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Anm: phpMyAdmin hämtar användarnas privilegier direkt från MySQL:s " "privilegiumtabeller. Innehållet i dessa tabeller kan skilja sig från " @@ -9379,8 +9379,8 @@ msgid "" "protection may not be reliable if your IP belongs to an ISP where thousands " "of users, including you, are connected to." msgstr "" -"Om du känner att detta är nödvändigt, använd extra skyddsinställningar - " -"%shost autentisering%s inställningarna och %strusted proxies listan%s. Dock " +"Om du känner att detta är nödvändigt, använd extra skyddsinställningar - %" +"shost autentisering%s inställningarna och %strusted proxies listan%s. Dock " "kan IP-baserat skydd inte vara tillförlitligt om din IP tillhör en ISP där " "tusentals användare, inklusive dig, är anslutna till" diff --git a/po/ta.po b/po/ta.po index c1e7cecd88..6c0487eecd 100644 --- a/po/ta.po +++ b/po/ta.po @@ -6,14 +6,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-04-16 10:43+0200\n" "Last-Translator: Sutharshan \n" "Language-Team: Tamil \n" -"Language: ta\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ta\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.1\n" @@ -133,9 +133,8 @@ msgstr "" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "" @@ -614,8 +613,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -851,8 +850,8 @@ msgstr "" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1732,8 +1731,8 @@ msgstr "" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "நீங்கள் அமைப்பு கோப்பை உருவாக்கவில்லை. அதை உருவாக்க நீங்கள் %1$s உருவாக்க கோவையை %2$s " "பயன்படுத்தலாம்" @@ -4389,8 +4388,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "" @@ -4587,8 +4587,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5240,8 +5240,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7487,8 +7487,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/te.po b/po/te.po index a603d10244..81a5e25c5a 100644 --- a/po/te.po +++ b/po/te.po @@ -6,14 +6,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-04-07 17:06+0200\n" "Last-Translator: \n" "Language-Team: Telugu \n" -"Language: te\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: te\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "పట్టిక వ్యాఖ్యలు" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Command" @@ -622,8 +621,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" # మొదటి అనువాదము @@ -863,8 +862,8 @@ msgstr "" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1731,8 +1730,8 @@ msgstr "%sకి స్వాగతం" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4408,8 +4407,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "పేరు" @@ -4612,8 +4612,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5273,8 +5273,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7568,8 +7568,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/th.po b/po/th.po index 1bb9228796..198c4d127c 100644 --- a/po/th.po +++ b/po/th.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-03-12 09:19+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: thai \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" "X-Generator: Translate Toolkit 1.5.3\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -131,9 +131,8 @@ msgstr "หมายเหตุของตาราง" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -620,8 +619,8 @@ msgstr "หยุดการติดตามแล้ว" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -860,8 +859,8 @@ msgstr "" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1789,8 +1788,8 @@ msgstr "%s ยินดีต้อนรับ" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4551,8 +4550,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "ชื่อ" @@ -4771,8 +4771,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5460,8 +5460,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7868,8 +7868,8 @@ msgstr "โยนฐานข้อมูลที่มีชื่อเดี msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 @@ -10035,8 +10035,8 @@ msgstr "เปลี่ยนชื่อตารางเป็น" #~ "The additional features for working with linked tables have been " #~ "deactivated. To find out why click %shere%s." #~ msgstr "" -#~ "ความสามารถเพิ่มเติมสำหรับ linked Tables ได้ถูกระงับเอาไว้ ตามเหตุผลที่แจ้งไว้ใน %shere" -#~ "%s" +#~ "ความสามารถเพิ่มเติมสำหรับ linked Tables ได้ถูกระงับเอาไว้ ตามเหตุผลที่แจ้งไว้ใน %shere%" +#~ "s" #~ msgid "No tables" #~ msgstr "ไม่มีตาราง" diff --git a/po/tr.po b/po/tr.po index 5111144e67..2a46f4d2ac 100644 --- a/po/tr.po +++ b/po/tr.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-19 21:59+0200\n" "Last-Translator: Burak Yavuz \n" "Language-Team: turkish \n" -"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: tr\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "Tablo yorumları" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Sütun" @@ -611,8 +610,8 @@ msgstr "İzleme aktif değil." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Bu görünüm en az bu satır sayısı kadar olur. Lütfen %sbelgeden%s yararlanın." @@ -849,8 +848,8 @@ msgstr "Döküm, %s dosyasına kaydedildi." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Muhtemelen çok büyük dosya göndermeyi denediniz. Lütfen bu sınıra çözüm yolu " "bulmak için %sbelgeden%s yararlanın." @@ -1224,8 +1223,8 @@ msgid "" "A newer version of phpMyAdmin is available and you should consider " "upgrading. The newest version is %s, released on %s." msgstr "" -"phpMyAdmin'in yeni sürümü mevcut ve yükseltmeyi düşünmelisiniz. Yeni sürüm " -"%s, %s tarihinde yayınlandı." +"phpMyAdmin'in yeni sürümü mevcut ve yükseltmeyi düşünmelisiniz. Yeni sürüm %" +"s, %s tarihinde yayınlandı." #. l10n: Latest available phpMyAdmin version #: js/messages.php:128 @@ -1711,8 +1710,8 @@ msgstr "%s'e Hoş Geldiniz" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Muhtemelen bunun sebebi yapılandırma dosyasını oluşturmadığınız içindir. Bir " "tane oluşturmak için %1$skur programcığı%2$s kullanmak isteyebilirsiniz." @@ -4586,8 +4585,9 @@ msgid "Events" msgstr "Olaylar" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Adı" @@ -4789,8 +4789,8 @@ msgstr ", @TABLE@ tablo adı olacaktır" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Bu değer %1$sstrftime%2$s kullanılarak yorumlanır, bu yüzden zaman " "biçimlendirme dizgisi kullanabilirsiniz. İlave olarak aşağıdaki dönüşümler " @@ -5523,8 +5523,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" "%sPrimeBase XT Ana Sayfasında%s PBXT hakkında belge ve daha fazla bilgi " "bulunabilir." @@ -7937,8 +7937,8 @@ msgstr "Kullanıcılarla aynı isimlerde olan veritabanlarını kaldır." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Not: phpMyAdmin kullanıcıların yetkilerini doğrudan MySQL'in yetki " "tablolarından alır. Bu tabloların içerikleri, eğer elle değiştirildiyse " @@ -9437,9 +9437,9 @@ msgid "" "protection may not be reliable if your IP belongs to an ISP where thousands " "of users, including you, are connected to." msgstr "" -"Eğer bunun gerekli olduğunu düşünüyorsanız, ilave koruma ayarları kullanın- " -"%sanamakine kimlik doğrulaması%s ayarları ve %sgüvenilir proksiler listesi" -"%s. Ancak, IP-tabanlı koruma eğer IP'niz, sizinde dahil olduğunuz binlerce " +"Eğer bunun gerekli olduğunu düşünüyorsanız, ilave koruma ayarları kullanın- %" +"sanamakine kimlik doğrulaması%s ayarları ve %sgüvenilir proksiler listesi%s. " +"Ancak, IP-tabanlı koruma eğer IP'niz, sizinde dahil olduğunuz binlerce " "kullanıcıya sahip ve bağlı olduğunuz bir ISS'e aitse güvenilir olmayabilir." #: setup/lib/index.lib.php:268 @@ -9454,8 +9454,8 @@ msgstr "" "[kbd]Yapılandırma[/kbd] kimlik doğrulaması türünü ayarladınız ve buna " "otomatik oturum açma için kullanıcı adı ve parola dahildir, canlı " "anamakineler için istenmeyen bir seçenektir. phpMyAdmin URL'nizi bilen veya " -"tahmin eden herhangi biri doğrudan phpMyAdmin panelinize erişebilir. " -"%sKimlik doğrulama türünü%s [kbd]tanımlama bilgisi[/kbd] ya da [kbd]http[/" +"tahmin eden herhangi biri doğrudan phpMyAdmin panelinize erişebilir. %" +"sKimlik doğrulama türünü%s [kbd]tanımlama bilgisi[/kbd] ya da [kbd]http[/" "kbd] olarak ayarlayın." #: setup/lib/index.lib.php:270 diff --git a/po/tt.po b/po/tt.po index c106d4b8d4..945e60dbe6 100644 --- a/po/tt.po +++ b/po/tt.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-07-22 02:25+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: tatarish \n" -"Language: tt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: tt\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.1\n" @@ -133,9 +133,8 @@ msgstr "Tüşämä açıqlaması" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -631,8 +630,8 @@ msgstr "" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -882,8 +881,8 @@ msgstr "Eçtälege \"%s\" biremenä saqlandı." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1820,8 +1819,8 @@ msgstr "%s siña İsäñme di" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4617,8 +4616,9 @@ msgid "Events" msgstr "Cibärelde" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Adı" @@ -4842,8 +4842,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5549,8 +5549,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6798,8 +6798,8 @@ msgid "" "The SQL validator could not be initialized. Please check if you have " "installed the necessary PHP extensions as described in the %sdocumentation%s." msgstr "" -"SQL-tikşerüçe köylänmägän. Bu kiräk bulğan php-yöklämäne köyläw turında " -"%squllanmada%s uqıp bula." +"SQL-tikşerüçe köylänmägän. Bu kiräk bulğan php-yöklämäne köyläw turında %" +"squllanmada%s uqıp bula." #: libraries/tbl_links.inc.php:106 libraries/tbl_links.inc.php:107 msgid "Table seems to be empty!" @@ -8036,8 +8036,8 @@ msgstr "Bu qullanuçılar kebek atalğan biremleklärne beteräse." msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Beläse: MySQL-serverneñ eçke tüşämä eçennän alınğan xoquqlar bu. Server " "qullana torğan xoquqlar qul aşa üzgärtelgän bulsa, bu tüşämä eçtälege " diff --git a/po/ug.po b/po/ug.po index c5b4473661..c09eb8d954 100644 --- a/po/ug.po +++ b/po/ug.po @@ -6,14 +6,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-08-26 11:59+0200\n" "Last-Translator: \n" "Language-Team: Uyghur \n" -"Language: ug\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ug\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" @@ -135,9 +135,8 @@ msgstr "جەدۋەل ئىزاھى" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "سۆزلەم" @@ -346,8 +345,8 @@ msgid "" "The phpMyAdmin configuration storage has been deactivated. To find out why " "click %shere%s." msgstr "" -"ئالاقىدار جەدۋەللەرنىڭ قوشۇمچە ئىقتىدارى پائالسىز. سەۋەبىنى ئېنىقلاش ئۈچۈن " -"%sبۇ يەرنى كۆرۈڭ%s." +"ئالاقىدار جەدۋەللەرنىڭ قوشۇمچە ئىقتىدارى پائالسىز. سەۋەبىنى ئېنىقلاش ئۈچۈن %" +"sبۇ يەرنى كۆرۈڭ%s." #: db_operations.php:600 #, fuzzy @@ -616,8 +615,8 @@ msgstr "ئىزلاش ئاكتىپ ئەمەس" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "بۇ كۆرسەتمە كامىدا ئىگە بولغان سەپ، %sھۆججەت%s." #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -855,8 +854,8 @@ msgstr "%s ھۆججىتىدە ساقلاندى." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "سىز يوللىماقچى بولغان ھۆججەت بەك چوڭكەن، %sياردەم%s ھۆججىتىدىن ھەل قىلىش " "چارىسىنى كۆرۈڭ." @@ -1748,11 +1747,11 @@ msgstr "%s خۇش كەلدىڭىز" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." #: libraries/auth/config.auth.lib.php:115 msgid "" @@ -4449,8 +4448,9 @@ msgid "Events" msgstr "ھادىسە" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "ئىسمى" @@ -4670,8 +4670,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5351,8 +5351,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6929,8 +6929,8 @@ msgid "" "The phpMyAdmin configuration storage is not completely configured, some " "extended features have been deactivated. To find out why click %shere%s." msgstr "" -"ئالاقىدار جەدۋەللەرنىڭ قوشۇمچە ئىقتىدارى پائالسىز. سەۋەبىنى ئېنىقلاش ئۈچۈن " -"%sبۇ يەرنى كۆرۈڭ%s." +"ئالاقىدار جەدۋەللەرنىڭ قوشۇمچە ئىقتىدارى پائالسىز. سەۋەبىنى ئېنىقلاش ئۈچۈن %" +"sبۇ يەرنى كۆرۈڭ%s." #: main.php:314 msgid "" @@ -7666,8 +7666,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/uk.po b/po/uk.po index 66d9672c51..5860e4d970 100644 --- a/po/uk.po +++ b/po/uk.po @@ -3,16 +3,16 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-12-28 22:26+0200\n" "Last-Translator: Olexiy Zagorskyi \n" "Language-Team: ukrainian \n" -"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Language: uk\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -134,9 +134,8 @@ msgstr "Коментар до таблиці" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "Стовпчик" @@ -616,8 +615,8 @@ msgstr "Трекінг не активний." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -857,8 +856,8 @@ msgstr "Dump збережено у файл %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1700,8 +1699,8 @@ msgstr "Ласкаво просимо до %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" #: libraries/auth/config.auth.lib.php:115 @@ -4363,8 +4362,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Назва" @@ -4563,8 +4563,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5238,8 +5238,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -6519,8 +6519,8 @@ msgid "" "For a list of available transformation options and their MIME type " "transformations, click on %stransformation descriptions%s" msgstr "" -"Щоб отримати список можливих опцій і їх MIME-type перетворень, натисніть " -"%sописи перетворень%s" +"Щоб отримати список можливих опцій і їх MIME-type перетворень, натисніть %" +"sописи перетворень%s" #: libraries/tbl_properties.inc.php:143 msgid "Transformation options" @@ -7666,8 +7666,8 @@ msgstr "Усунути бази даних, які мають такі ж наз msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "Примітка: phpMyAdmin отримує права користувачів безпосередньо з таблиці прав " "MySQL. Зміст цієї таблиці може відрізнятися від прав, які використовуються " diff --git a/po/ur.po b/po/ur.po index 27960b7f39..59b5ee41d2 100644 --- a/po/ur.po +++ b/po/ur.po @@ -6,14 +6,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-04-23 08:37+0200\n" "Last-Translator: Mehbooob Khan \n" "Language-Team: Urdu \n" -"Language: ur\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ur\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" @@ -138,9 +138,8 @@ msgstr "جدول تبصرے" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Command" @@ -620,8 +619,8 @@ msgstr "کھوج غیر فعال ہے۔" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "اس جدول نقل میں اتنے کم از کم صفیں ہیں۔ حوالہ کے لیے %sdocumentation%s." @@ -862,11 +861,11 @@ msgstr "ڈمپ اس مسل %s میں محفوظ ہوچکی ہے۔" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"آپ نے بڑی مسل اپ لوڈ کرنے کی کوشش کی ہے۔ اس حد کے بارے جاننے کے لیے " -"%sdocumentation%s دیکھیں۔" +"آپ نے بڑی مسل اپ لوڈ کرنے کی کوشش کی ہے۔ اس حد کے بارے جاننے کے لیے %" +"sdocumentation%s دیکھیں۔" #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1242,8 +1241,8 @@ msgid "" "A newer version of phpMyAdmin is available and you should consider " "upgrading. The newest version is %s, released on %s." msgstr "" -"phpMyAdmin کا ایک نیا نسخہ دستیاب ہے اور آپ ضرور تازہ کاری کریں۔ نیا نسخہ " -"%s, جاری کیا گیا %s." +"phpMyAdmin کا ایک نیا نسخہ دستیاب ہے اور آپ ضرور تازہ کاری کریں۔ نیا نسخہ %" +"s, جاری کیا گیا %s." #. l10n: Latest available phpMyAdmin version #: js/messages.php:128 @@ -1732,8 +1731,8 @@ msgstr "%s میں خوش آمدید" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "آپ نے شاید تشکیل مسل نہیں بنایا۔ آپ ہوسکتا ہے کہ %1$ssetup script%2$s کو " "استعمال کرتے ہوئے بنانا چاہتے ہیں۔" @@ -1953,8 +1952,8 @@ msgstr "" "phpMyAdmin آپ کی تشکیل مسل مطالعہ نہیں کرسکا!
یہ اس لیے بھی ہوسکتا ہے " "اگر PHP کو کوئی تجزیاتی نقص ملا یا PHP کو مسل نہیں ملا۔
نیچے دیے گئے " "ربط سے تشکیل مسل کوبراہ راست استعمال کریں اور وصول ہونے والے PHP نقص " -"پیغامات کا مطالعہ کریں۔ عام طور پر ایک کوٹ یا سیمی کولن ہی کہیں غائب ہوتا ہے۔" -"
اگر آپ کو ایک خالی صفحہ ملے تو سب ٹھیک ہے۔" +"پیغامات کا مطالعہ کریں۔ عام طور پر ایک کوٹ یا سیمی کولن ہی کہیں غائب ہوتا " +"ہے۔
اگر آپ کو ایک خالی صفحہ ملے تو سب ٹھیک ہے۔" #: libraries/common.inc.php:586 #, php-format @@ -4492,8 +4491,9 @@ msgid "Events" msgstr "" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "" @@ -4702,8 +4702,8 @@ msgstr "" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" #: libraries/display_export.lib.php:275 @@ -5361,8 +5361,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -7654,8 +7654,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" #: server_privileges.php:1764 diff --git a/po/uz.po b/po/uz.po index 93bb6bccfb..3a642588dd 100644 --- a/po/uz.po +++ b/po/uz.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-07-22 02:31+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: uzbek_cyrillic \n" -"Language: uz\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: uz\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.1\n" @@ -134,9 +134,8 @@ msgstr "Жадвал изоҳи" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -636,8 +635,8 @@ msgstr "Кузатиш фаол эмас." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Ушбу намойиш камида кўрсатилган миқдорда қаторларга эга. Батафсил маълумот " "учун %sдокументацияга%s қаранг." @@ -881,11 +880,11 @@ msgstr "Дамп \"%s\" файлида сақланди." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" -"Эҳтимол, юкланаётган файл ҳажми жуда катта. Бу муаммони ечишнинг усуллари " -"%sдокументацияда%s келтирилган." +"Эҳтимол, юкланаётган файл ҳажми жуда катта. Бу муаммони ечишнинг усуллари %" +"sдокументацияда%s келтирилган." #: import.php:278 import.php:331 libraries/File.class.php:501 #: libraries/File.class.php:611 @@ -1864,8 +1863,8 @@ msgstr "\"%s\" дастурига хуш келибсиз" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Эҳтимол, конфигурация файли тузилмаган. Уни тузиш учун %1$ssўрнатиш " "сценарийсидан%2$s фойдаланишингиз мумкин." @@ -4173,8 +4172,8 @@ msgstr "\"config\" аутентификация усули пароли" msgid "" "Leave blank for no PDF schema support, suggested: [kbd]pma_pdf_pages[/kbd]" msgstr "" -"Агар PDF-схема ишлатмасангиз, бўш қолдиринг, асл қиймати: " -"[kbd]\"pma_pdf_pages\"[/kbd]" +"Агар PDF-схема ишлатмасангиз, бўш қолдиринг, асл қиймати: [kbd]" +"\"pma_pdf_pages\"[/kbd]" #: libraries/config/messages.inc.php:402 msgid "PDF schema: pages table" @@ -4282,8 +4281,8 @@ msgstr "SSL уланишдан фойдаланиш" msgid "" "Leave blank for no PDF schema support, suggested: [kbd]pma_table_coords[/kbd]" msgstr "" -"PDF-схемадан фойдаланмаслик учун бўш қолдиринг, асл қиймати: " -"[kbd]\"pma_table_coords\"[/kbd]" +"PDF-схемадан фойдаланмаслик учун бўш қолдиринг, асл қиймати: [kbd]" +"\"pma_table_coords\"[/kbd]" #: libraries/config/messages.inc.php:421 msgid "PDF schema: table coordinates" @@ -4890,8 +4889,9 @@ msgid "Events" msgstr "Ҳодисалар" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Номи" @@ -5127,12 +5127,12 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Қиймат %1$sstrftime%2$s функцияси билан қайта ишланган, шунинг учун ҳозирги " -"вақт ва санани қўйиш мумкин. Қўшимча равишда қуйидагилар ишлатилиши мумкин: " -"%3$s. Матннинг бошқа қисмлари ўзгаришсиз қолади." +"вақт ва санани қўйиш мумкин. Қўшимча равишда қуйидагилар ишлатилиши мумкин: %" +"3$s. Матннинг бошқа қисмлари ўзгаришсиз қолади." #: libraries/display_export.lib.php:275 msgid "use this for future exports" @@ -5893,8 +5893,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8482,8 +8482,8 @@ msgstr "Фойдаланувчилар номлари билан аталган msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "ИЗОҲ: phpMyAdmin фойдаланувчилар привилегиялари ҳақидаги маълумотларни " "тўғридан-тўғри MySQL привилегиялари жадвалидан олади. Ушбу жадвалдаги " @@ -9244,8 +9244,8 @@ msgstr "Очиқ файллар сони." #: server_status.php:121 msgid "The number of streams that are open (used mainly for logging)." msgstr "" -"Очиқ оқимлар сони (журнал файлларида кўлланилади). Оқим деб \"fopen" -"()\" функцияси ёрдамида очилган файлга айтилади." +"Очиқ оқимлар сони (журнал файлларида кўлланилади). Оқим деб \"fopen()" +"\" функцияси ёрдамида очилган файлга айтилади." #: server_status.php:122 msgid "The number of tables that are open." @@ -10074,9 +10074,9 @@ msgstr "" #| "You set the [kbd]config[/kbd] authentication type and included username " #| "and password for auto-login, which is not a desirable option for live " #| "hosts. Anyone who knows or guesses your phpMyAdmin URL can directly " -#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=" -#| "%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http" -#| "[/kbd]." +#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1" +#| "$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/" +#| "kbd]." msgid "" "You set the [kbd]config[/kbd] authentication type and included username and " "password for auto-login, which is not a desirable option for live hosts. " diff --git a/po/uz@latin.po b/po/uz@latin.po index 5a67f8f78a..1e7958be15 100644 --- a/po/uz@latin.po +++ b/po/uz@latin.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2010-07-22 02:30+0200\n" "Last-Translator: Marc Delisle \n" "Language-Team: uzbek_latin \n" -"Language: uz@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: uz@latin\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.1\n" @@ -135,9 +135,8 @@ msgstr "Jadval izohi" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 #, fuzzy #| msgid "Column names" @@ -638,8 +637,8 @@ msgstr "Kuzatish faol emas." #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "" "Ushbu namoyish kamida ko‘rsatilgan miqdorda qatorlarga ega. Batafsil " "ma`lumot uchun %sdokumentatsiyaga%s qarang." @@ -883,8 +882,8 @@ msgstr "Damp \"%s\" faylida saqlandi." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "" "Ehtimol, yuklanayotgan fayl hajmi juda katta. Bu muammoni yechishning " "usullari %sdokumentatsiyada%s keltirilgan." @@ -1870,8 +1869,8 @@ msgstr "\"%s\" dasturiga xush kelibsiz" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "Ehtimol, konfiguratsiya fayli tuzilmagan. Uni tuzish uchun %1$sso‘rnatish " "ssenariysidan%2$s foydalanishingiz mumkin." @@ -4096,9 +4095,9 @@ msgid "" "More information on [a@http://sf.net/support/tracker.php?aid=1849494]PMA bug " "tracker[/a] and [a@http://bugs.mysql.com/19588]MySQL Bugs[/a]" msgstr "" -"Ko‘proq ma`lumot uchun [a@http://sf.net/support/tracker.php?" -"aid=1849494]\"PMA bug tracker\"[/a] va [a@http://bugs.mysql." -"com/19588]\"MySQL Bugs\"[/a]larga qarang" +"Ko‘proq ma`lumot uchun [a@http://sf.net/support/tracker.php?aid=1849494]" +"\"PMA bug tracker\"[/a] va [a@http://bugs.mysql.com/19588]\"MySQL Bugs\"[/a]" +"larga qarang" #: libraries/config/messages.inc.php:385 msgid "Disable use of INFORMATION_SCHEMA" @@ -4188,8 +4187,8 @@ msgstr "\"config\" autentifikatsiya usuli paroli" msgid "" "Leave blank for no PDF schema support, suggested: [kbd]pma_pdf_pages[/kbd]" msgstr "" -"Agar PDF-sxema ishlatmasangiz, bo‘sh qoldiring, asl qiymati: " -"[kbd]\"pma_pdf_pages\"[/kbd]" +"Agar PDF-sxema ishlatmasangiz, bo‘sh qoldiring, asl qiymati: [kbd]" +"\"pma_pdf_pages\"[/kbd]" #: libraries/config/messages.inc.php:402 msgid "PDF schema: pages table" @@ -4203,8 +4202,8 @@ msgid "" msgstr "" "Aloqalar, xatcho‘plar va PDF imkoniyatlari uchun ishlatiladigan baza. " "Batafsil ma`lumot uchun [a@http://wiki.phpmyadmin.net/pma/pmadb]\"pmadb\"[/a]" -"ga qarang. Agar foydalanmasangiz, bo‘sh qoldiring. Asl qiymati: " -"[kbd]\"phpmyadmin\"[/kbd]" +"ga qarang. Agar foydalanmasangiz, bo‘sh qoldiring. Asl qiymati: [kbd]" +"\"phpmyadmin\"[/kbd]" #: libraries/config/messages.inc.php:404 #, fuzzy @@ -4297,8 +4296,8 @@ msgstr "SSL ulanishdan foydalanish" msgid "" "Leave blank for no PDF schema support, suggested: [kbd]pma_table_coords[/kbd]" msgstr "" -"PDF-sxemadan foydalanmaslik uchun bo‘sh qoldiring, asl qiymati: " -"[kbd]\"pma_table_coords\"[/kbd]" +"PDF-sxemadan foydalanmaslik uchun bo‘sh qoldiring, asl qiymati: [kbd]" +"\"pma_table_coords\"[/kbd]" #: libraries/config/messages.inc.php:421 msgid "PDF schema: table coordinates" @@ -4911,8 +4910,9 @@ msgid "Events" msgstr "Hodisalar" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "Nomi" @@ -4953,8 +4953,8 @@ msgid "" "May be approximate. See [a@./Documentation.html#faq3_11@Documentation]FAQ " "3.11[/a]" msgstr "" -"Taxminiy bo‘lishi mumkin. [a@./Documentation." -"html#faq3_11@Documentation]\"FAQ 3.11\"[/a]ga qarang" +"Taxminiy bo‘lishi mumkin. [a@./Documentation.html#faq3_11@Documentation]" +"\"FAQ 3.11\"[/a]ga qarang" #: libraries/dbi/mysql.dbi.lib.php:111 libraries/dbi/mysqli.dbi.lib.php:122 msgid "Connection for controluser as defined in your configuration failed." @@ -5148,8 +5148,8 @@ msgstr "" #| "happen: %3$s. Other text will be kept as is." msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "Qiymat %1$sstrftime%2$s funksiyasi bilan qayta ishlangan, shuning uchun " "hozirgi vaqt va sanani qo‘yish mumkin. Qo‘shimcha ravishda quyidagilar " @@ -5919,8 +5919,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "" #: libraries/engines/pbxt.lib.php:129 @@ -8526,8 +8526,8 @@ msgstr "" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "IZOH: phpMyAdmin foydalanuvchilar privilegiyalari haqidagi ma`lumotlarni " "to‘g‘ridan-to‘g‘ri MySQL privilegiyalari jadvalidan oladi. Ushbu jadvaldagi " @@ -10136,9 +10136,9 @@ msgstr "" #| "You set the [kbd]config[/kbd] authentication type and included username " #| "and password for auto-login, which is not a desirable option for live " #| "hosts. Anyone who knows or guesses your phpMyAdmin URL can directly " -#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=" -#| "%1$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http" -#| "[/kbd]." +#| "access your phpMyAdmin panel. Set [a@?page=servers&mode=edit&id=%1" +#| "$d#tab_Server]authentication type[/a] to [kbd]cookie[/kbd] or [kbd]http[/" +#| "kbd]." msgid "" "You set the [kbd]config[/kbd] authentication type and included username and " "password for auto-login, which is not a desirable option for live hosts. " @@ -10152,9 +10152,9 @@ msgstr "" "real xostlar uchun tavsiya etilmaydi. Serverdagi phpMyAdmin turgan katalog " "adresini bilgan yoki taxmin qilgan har kim ushbu dasturga bemalol kirib, " "serverdagi ma`lumotlar bazalari bilan istalgan operatsiyalarni amalga " -"oshirishi mumkin. Server [a@?page=servers&mode=edit&id=" -"%1$d#tab_Server]autentifikatsiya usuli[/a]ni [kbd]cookie[/kbd] yoki [kbd]http" -"[/kbd] deb belgilash tavsiya etiladi." +"oshirishi mumkin. Server [a@?page=servers&mode=edit&id=%1" +"$d#tab_Server]autentifikatsiya usuli[/a]ni [kbd]cookie[/kbd] yoki [kbd]http[/" +"kbd] deb belgilash tavsiya etiladi." #: setup/lib/index.lib.php:270 #, fuzzy, php-format @@ -10333,8 +10333,8 @@ msgid "" "The result of this query can't be used for a chart. See [a@./Documentation." "html#faq6_29@Documentation]FAQ 6.29[/a]" msgstr "" -"Taxminiy bo‘lishi mumkin. [a@./Documentation." -"html#faq3_11@Documentation]\"FAQ 3.11\"[/a]ga qarang" +"Taxminiy bo‘lishi mumkin. [a@./Documentation.html#faq3_11@Documentation]" +"\"FAQ 3.11\"[/a]ga qarang" #: tbl_chart.php:90 msgid "Width" diff --git a/po/zh_CN.po b/po/zh_CN.po index bce3e9b540..997317efc2 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -3,14 +3,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-30 05:47+0200\n" "Last-Translator: shanyan baishui \n" "Language-Team: chinese_simplified \n" -"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" @@ -132,9 +132,8 @@ msgstr "表注释" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "字段" @@ -606,8 +605,8 @@ msgstr "追踪已禁用。" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "该视图最少包含的行数,参见%s文档%s。" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -841,8 +840,8 @@ msgstr "转存已经保存到文件 %s 中。" #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "您可能正在上传很大的文件,请参考%s文档%s来寻找解决方法。" #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1684,8 +1683,8 @@ msgstr "欢迎使用 %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "你可能还没有创建配置文件。你可以使用 %1$s设置脚本%2$s 来创建一个配置文件。" @@ -4425,8 +4424,9 @@ msgid "Events" msgstr "事件" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "名字" @@ -4624,8 +4624,8 @@ msgstr ",@TABLE@ 将变成数据表名" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "这个值是使用 %1$sstrftime%2$s 来解析的,所以你能用时间格式的字符串。另外,下" "列内容也将被转换:%3$s。其他文本将保持原样。参见%4$s常见问题 (FAQ)%5$s。" @@ -5309,8 +5309,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "关于 PBXT 的文档和更多信息请参见 %sPrimeBase XT 主页%s。" #: libraries/engines/pbxt.lib.php:129 @@ -7624,12 +7624,12 @@ msgstr "删除与用户同名的数据库。" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "注意:phpMyAdmin 直接由 MySQL 权限表取得用户权限。如果用户手动更改表,表内容" -"将可能与服务器使用的用户权限有异。在这种情况下,您应在继续前%s重新载入权" -"限%s。" +"将可能与服务器使用的用户权限有异。在这种情况下,您应在继续前%s重新载入权限%" +"s。" #: server_privileges.php:1764 msgid "The selected user was not found in the privilege table." diff --git a/po/zh_TW.po b/po/zh_TW.po index 05bf707131..89daabdbeb 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -2,14 +2,14 @@ msgid "" msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2011-06-02 11:48+0200\n" +"POT-Creation-Date: 2011-06-02 11:25-0400\n" "PO-Revision-Date: 2011-05-30 04:51+0200\n" "Last-Translator: \n" "Language-Team: chinese_traditional \n" -"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: zh_TW\n" "Plural-Forms: nplurals=1; plural=0;\n" #: browse_foreigners.php:35 browse_foreigners.php:53 @@ -130,9 +130,8 @@ msgstr "表註釋" #: libraries/export/odt.php:301 libraries/export/texytext.php:226 #: libraries/schema/Pdf_Relation_Schema.class.php:1239 #: libraries/schema/Pdf_Relation_Schema.class.php:1260 -#: libraries/tbl_properties.inc.php:98 libraries/tbl_properties.inc.php:273 -#: tbl_change.php:309 tbl_indexes.php:187 tbl_printview.php:139 -#: tbl_relation.php:399 tbl_select.php:112 tbl_structure.php:198 +#: libraries/tbl_properties.inc.php:273 tbl_change.php:309 tbl_indexes.php:187 +#: tbl_printview.php:139 tbl_relation.php:399 tbl_select.php:112 #: tbl_tracking.php:266 tbl_tracking.php:317 msgid "Column" msgstr "欄位" @@ -604,8 +603,8 @@ msgstr "追蹤已停用" #: db_structure.php:379 libraries/display_tbl.lib.php:2068 #, php-format msgid "" -"This view has at least this number of rows. Please refer to %sdocumentation" -"%s." +"This view has at least this number of rows. Please refer to %sdocumentation%" +"s." msgstr "這個檢視至少需包含這個數目的資料,請參考%sdocumentation%s。" #: db_structure.php:393 db_structure.php:407 libraries/header.inc.php:152 @@ -839,8 +838,8 @@ msgstr "備份資料已儲存至檔案 %s." #: import.php:58 #, php-format msgid "" -"You probably tried to upload too large file. Please refer to %sdocumentation" -"%s for ways to workaround this limit." +"You probably tried to upload too large file. Please refer to %sdocumentation%" +"s for ways to workaround this limit." msgstr "您上傳的檔案過大, 請查看此 %s 文件 %s 了解如何解決此限制." #: import.php:278 import.php:331 libraries/File.class.php:501 @@ -1684,8 +1683,8 @@ msgstr "歡迎使用 %s" #: libraries/auth/config.auth.lib.php:106 #, php-format msgid "" -"You probably did not create a configuration file. You might want to use the " -"%1$ssetup script%2$s to create one." +"You probably did not create a configuration file. You might want to use the %" +"1$ssetup script%2$s to create one." msgstr "" "您可能還沒有建立設定檔案。您可以使用 %1$s設定指令%2$s 來建立一個設定檔案" @@ -4450,8 +4449,9 @@ msgid "Events" msgstr "事件" #: libraries/db_events.inc.php:24 libraries/db_routines.inc.php:35 -#: libraries/display_create_table.lib.php:51 libraries/tbl_triggers.lib.php:26 -#: setup/frames/index.inc.php:125 +#: libraries/display_create_table.lib.php:51 +#: libraries/tbl_properties.inc.php:98 libraries/tbl_triggers.lib.php:26 +#: setup/frames/index.inc.php:125 tbl_structure.php:198 msgid "Name" msgstr "名字" @@ -4651,8 +4651,8 @@ msgstr ",@TABLE@ 將變成資料資料表名稱" #, php-format msgid "" "This value is interpreted using %1$sstrftime%2$s, so you can use time " -"formatting strings. Additionally the following transformations will happen: " -"%3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." +"formatting strings. Additionally the following transformations will happen: %" +"3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details." msgstr "" "這個值是使用 %1$sstrftime%2$s 來解析的,所以您能用時間格式的字元串。另外,下" "列內容也將被轉換:%3$s。其他文字將保持原樣。參見%4$s常見問題 (FAQ)%5$s" @@ -5358,8 +5358,8 @@ msgstr "" #: libraries/engines/pbxt.lib.php:125 #, php-format msgid "" -"Documentation and further information about PBXT can be found on the " -"%sPrimeBase XT Home Page%s." +"Documentation and further information about PBXT can be found on the %" +"sPrimeBase XT Home Page%s." msgstr "關於 PBXT 的檔案和更多資訊請參見 %sPrimeBase XT 首頁%s" #: libraries/engines/pbxt.lib.php:129 @@ -7694,8 +7694,8 @@ msgstr "刪除與使用者同名的資料庫" msgid "" "Note: phpMyAdmin gets the users' privileges directly from MySQL's privilege " "tables. The content of these tables may differ from the privileges the " -"server uses, if they have been changed manually. In this case, you should " -"%sreload the privileges%s before you continue." +"server uses, if they have been changed manually. In this case, you should %" +"sreload the privileges%s before you continue." msgstr "" "注意:phpMyAdmin 直接由 MySQL 權限表取得使用者權限。如果使用者手動更改表,表" "內容將可能與伺服器使用的使用者權限有異。在這種情況下,您應在繼續前%s重新載入" From 8feecf664750ef4e55efff5c49734f81c21d4bd0 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 2 Jun 2011 12:16:51 -0400 Subject: [PATCH 29/30] 3.4.3-dev --- ChangeLog | 2 ++ Documentation.html | 4 ++-- README | 2 +- libraries/Config.class.php | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a3a13c11a7..b80c555e4c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ phpMyAdmin - ChangeLog ====================== +3.4.3.0 (not yet released) + 3.4.2.0 (not yet released) - bug #3301249 [interface] Iconic table operations does not remove inline edit label - bug #3303869 [interface] Unnecessary scrolling on Databases page diff --git a/Documentation.html b/Documentation.html index 3d095c0a20..6146f216bb 100644 --- a/Documentation.html +++ b/Documentation.html @@ -9,7 +9,7 @@ vim: expandtab ts=4 sw=4 sts=4 tw=78 - phpMyAdmin 3.4.2-dev - Documentation + phpMyAdmin 3.4.3-dev - Documentation @@ -17,7 +17,7 @@ vim: expandtab ts=4 sw=4 sts=4 tw=78 diff --git a/README b/README index 5648c73549..d3da4f92fc 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ phpMyAdmin - Readme =================== -Version 3.4.2-dev +Version 3.4.3-dev A set of PHP-scripts to manage MySQL over the web. diff --git a/libraries/Config.class.php b/libraries/Config.class.php index 29f85e4479..d426b53388 100644 --- a/libraries/Config.class.php +++ b/libraries/Config.class.php @@ -96,7 +96,7 @@ class PMA_Config */ function checkSystem() { - $this->set('PMA_VERSION', '3.4.2-dev'); + $this->set('PMA_VERSION', '3.4.3-dev'); /** * @deprecated */ From d6b26b2d8f0cdd4b4bfb798e0b34f2974007fa85 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 2 Jun 2011 12:21:24 -0400 Subject: [PATCH 30/30] 3.4.3-dev --- ChangeLog | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index dc76507651..30b414c7ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,8 @@ + AJAX for Create table in navigation panel + rfe #3310562 Wording about Column +3.4.3.0 (not yet released) + 3.4.2.0 (not yet released) - bug #3301249 [interface] Iconic table operations does not remove inline edit label - bug #3303869 [interface] Unnecessary scrolling on Databases page