code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
<html>
<head>
<title>HTMLArea Spell Checker</title>
</head>
<body>
<h1>HTMLArea Spell Checker</h1>
<p>The HTMLArea Spell Checker subsystem consists of the following
files:</p>
<ul>
<li>spell-checker.js — the spell checker plugin interface for
HTMLArea</li>
<li>spell-checker-ui.html — the HTML code for the user
interface</li>
<li>spell-checker-ui.js — functionality of the user
interface</li>
<li>spell-checker-logic.cgi — Perl CGI script that checks a text
given through POST for spelling errors</li>
<li>spell-checker-style.css — style for mispelled words</li>
<li>lang/en.js — main language file (English).</li>
</ul>
<h2>Process overview</h2>
<p>
When an end-user clicks the "spell-check" button in the HTMLArea
editor, a new window is opened with the URL of "spell-check-ui.html".
This window initializes itself with the text found in the editor (uses
<tt>window.opener.SpellChecker.editor</tt> global variable) and it
submits the text to the server-side script "spell-check-logic.cgi".
The target of the FORM is an inline frame which is used both to
display the text and correcting.
</p>
<p>
Further, spell-check-logic.cgi calls Aspell for each portion of plain
text found in the given HTML. It rebuilds an HTML file that contains
clear marks of which words are incorrect, along with suggestions for
each of them. This file is then loaded in the inline frame. Upon
loading, a JavaScript function from "spell-check-ui.js" is called.
This function will retrieve all mispelled words from the HTML of the
iframe and will setup the user interface so that it allows correction.
</p>
<h2>The server-side script (spell-check-logic.cgi)</h2>
<p>
<strong>Unicode safety</strong> — the program <em>is</em>
Unicode safe. HTML entities are expanded into their corresponding
Unicode characters. These characters will be matched as part of the
word passed to Aspell. All texts passed to Aspell are in Unicode
(when appropriate). <strike>However, Aspell seems to not support Unicode
yet (<a
href="http://mail.gnu.org/archive/html/aspell-user/2000-11/msg00007.html">thread concerning Aspell and Unicode</a>).
This mean that words containing Unicode
characters that are not in 0..255 are likely to be reported as "mispelled" by Aspell.</strike>
</p>
<p>
<strong style="font-variant: small-caps; color:
red;">Update:</strong> though I've never seen it mentioned
anywhere, it looks that Aspell <em>does</em>, in fact, speak
Unicode. Or else, maybe <code>Text::Aspell</code> does
transparent conversion; anyway, this new version of our
SpellChecker plugin is, as tests show so far, fully
Unicode-safe... well, probably the <em>only</em> freeware
Web-based spell-checker which happens to have Unicode support.
</p>
<p>
The Perl Unicode manual (man perluniintro) states:
</p>
<blockquote>
<em>
Starting from Perl 5.6.0, Perl has had the capacity to handle Unicode
natively. Perl 5.8.0, however, is the first recommended release for
serious Unicode work. The maintenance release 5.6.1 fixed many of the
problems of the initial Unicode implementation, but for example regular
expressions still do not work with Unicode in 5.6.1.
</em>
</blockquote>
<p>In other words, do <em>not</em> assume that this script is
Unicode-safe on Perl interpreters older than 5.8.0.</p>
<p>The following Perl modules are required:</p>
<ul>
<li><a href="http://search.cpan.org/search?query=Text%3A%3AAspell&mode=all" onclick="window.open(this.href,'_blank');return false;">Text::Aspell</a></li>
<li><a href="http://search.cpan.org/search?query=XML%3A%3ADOM&mode=all" onclick="window.open(this.href,'_blank');return false;">XML::DOM</a></li>
<li><a href="http://search.cpan.org/search?query=CGI&mode=all" onclick="window.open(this.href,'_blank');return false;">CGI</a></li>
</ul>
<p>Of these, only Text::Aspell might need to be installed manually. The
others are likely to be available by default in most Perl distributions.</p>
<hr />
<address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
<!-- Created: Thu Jul 17 13:22:27 EEST 2003 -->
<!-- hhmts start --> Last modified: Fri Jan 30 19:14:11 EET 2004 <!-- hhmts end -->
<!-- doc-lang: English -->
</body>
</html>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/readme-tech.html | HTML | art | 4,732 |
#! /usr/bin/perl -w
# Spell Checker Plugin for HTMLArea-3.0
# Sponsored by www.americanbible.org
# Implementation by Mihai Bazon, http://dynarch.com/mishoo/
#
# (c) dynarch.com 2003.
# Distributed under the same terms as HTMLArea itself.
# This notice MUST stay intact for use (see license.txt).
#
# $Id:spell-check-logic.cgi 21 2005-02-19 05:23:56Z gogo $
use strict;
use utf8;
use Encode;
use Text::Aspell;
use XML::DOM;
use CGI;
my $TIMER_start = undef;
eval {
use Time::HiRes qw( gettimeofday tv_interval );
$TIMER_start = [gettimeofday()];
};
# use POSIX qw( locale_h );
binmode STDIN, ':utf8';
binmode STDOUT, ':utf8';
my $debug = 0;
my $speller = new Text::Aspell;
my $cgi = new CGI;
my $total_words = 0;
my $total_mispelled = 0;
my $total_suggestions = 0;
my $total_words_suggested = 0;
# FIXME: report a nice error...
die "Can't create speller!" unless $speller;
my $dict = $cgi->param('dictionary') || $cgi->cookie('dictionary') || 'en';
# add configurable option for this
$speller->set_option('lang', $dict);
$speller->set_option('encoding', 'UTF-8');
#setlocale(LC_CTYPE, $dict);
# ultra, fast, normal, bad-spellers
# bad-spellers seems to cause segmentation fault
$speller->set_option('sug-mode', 'normal');
my %suggested_words = ();
keys %suggested_words = 128;
my $file_content = decode('UTF-8', $cgi->param('content'));
$file_content = parse_with_dom($file_content);
my $ck_dictionary = $cgi->cookie(-name => 'dictionary',
-value => $dict,
-expires => '+30d');
print $cgi->header(-type => 'text/html; charset: utf-8',
-cookie => $ck_dictionary);
my $js_suggested_words = make_js_hash(\%suggested_words);
my $js_spellcheck_info = make_js_hash_from_array
([
[ 'Total words' , $total_words ],
[ 'Mispelled words' , $total_mispelled . ' in dictionary \"'.$dict.'\"' ],
[ 'Total suggestions' , $total_suggestions ],
[ 'Total words suggested' , $total_words_suggested ],
[ 'Spell-checked in' , defined $TIMER_start ? (tv_interval($TIMER_start) . ' seconds') : 'n/a' ]
]);
print qq^<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="all" href="spell-check-style.css" />
<script type="text/javascript">
var suggested_words = { $js_suggested_words };
var spellcheck_info = { $js_spellcheck_info }; </script>
</head>
<body onload="window.parent.finishedSpellChecking();">^;
print $file_content;
if ($cgi->param('init') eq '1') {
my @dicts = $speller->dictionary_info();
my $dictionaries = '';
foreach my $i (@dicts) {
next if $i->{jargon};
my $name = $i->{name};
if ($name eq $dict) {
$name = '@'.$name;
}
$dictionaries .= ',' . $name;
}
$dictionaries =~ s/^,//;
print qq^<div id="HA-spellcheck-dictionaries">$dictionaries</div>^;
}
print '</body></html>';
# Perl is beautiful.
sub spellcheck {
my $node = shift;
my $doc = $node->getOwnerDocument;
my $check = sub { # called for each word in the text
# input is in UTF-8
my $word = shift;
my $already_suggested = defined $suggested_words{$word};
++$total_words;
if (!$already_suggested && $speller->check($word)) {
return undef;
} else {
# we should have suggestions; give them back to browser in UTF-8
++$total_mispelled;
if (!$already_suggested) {
# compute suggestions for this word
my @suggestions = $speller->suggest($word);
my $suggestions = decode($speller->get_option('encoding'), join(',', @suggestions));
$suggested_words{$word} = $suggestions;
++$total_suggestions;
$total_words_suggested += scalar @suggestions;
}
# HA-spellcheck-error
my $err = $doc->createElement('span');
$err->setAttribute('class', 'HA-spellcheck-error');
my $tmp = $doc->createTextNode;
$tmp->setNodeValue($word);
$err->appendChild($tmp);
return $err;
}
};
while ($node->getNodeValue =~ /([\p{IsWord}']+)/) {
my $word = $1;
my $before = $`;
my $after = $';
my $df = &$check($word);
if (!$df) {
$before .= $word;
}
{
my $parent = $node->getParentNode;
my $n1 = $doc->createTextNode;
$n1->setNodeValue($before);
$parent->insertBefore($n1, $node);
$parent->insertBefore($df, $node) if $df;
$node->setNodeValue($after);
}
}
};
sub check_inner_text {
my $node = shift;
my $text = '';
for (my $i = $node->getFirstChild; defined $i; $i = $i->getNextSibling) {
if ($i->getNodeType == TEXT_NODE) {
spellcheck($i);
}
}
};
sub parse_with_dom {
my ($text) = @_;
$text = '<spellchecker>'.$text.'</spellchecker>';
my $parser = new XML::DOM::Parser;
if ($debug) {
open(FOO, '>:utf8', '/tmp/foo');
print FOO $text;
close FOO;
}
my $doc = $parser->parse($text);
my $nodes = $doc->getElementsByTagName('*');
my $n = $nodes->getLength;
for (my $i = 0; $i < $n; ++$i) {
my $node = $nodes->item($i);
if ($node->getNodeType == ELEMENT_NODE) {
check_inner_text($node);
}
}
my $ret = $doc->toString;
$ret =~ s{<spellchecker>(.*)</spellchecker>}{$1}sg;
return $ret;
};
sub make_js_hash {
my ($hash) = @_;
my $js_hash = '';
while (my ($key, $val) = each %$hash) {
$js_hash .= ',' if $js_hash;
$js_hash .= '"'.$key.'":"'.$val.'"';
}
return $js_hash;
};
sub make_js_hash_from_array {
my ($array) = @_;
my $js_hash = '';
foreach my $i (@$array) {
$js_hash .= ',' if $js_hash;
$js_hash .= '"'.$i->[0].'":"'.$i->[1].'"';
}
return $js_hash;
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/spell-check-logic.cgi | Perl | art | 6,169 |
// Spell Checker Plugin for HTMLArea-3.0
// Sponsored by www.americanbible.org
// Implementation by Mihai Bazon, http://dynarch.com/mishoo/
//
// (c) dynarch.com 2003.
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
//
// $Id:spell-checker.js 856M 2007-06-13 18:34:34Z (local) $
Xinha.Config.prototype.SpellChecker = { 'backend': 'php', 'personalFilesDir' : '', 'defaultDictionary' : 'en_GB', 'utf8_to_entities' : true };
function SpellChecker(editor) {
this.editor = editor;
var cfg = editor.config;
var bl = SpellChecker.btnList;
var self = this;
// see if we can find the mode switch button, insert this before that
var id = "SC-spell-check";
cfg.registerButton(id, this._lc("Spell-check"), editor.imgURL("spell-check.gif", "SpellChecker"), false,
function(editor, id) {
// dispatch button press event
self.buttonPress(editor, id);
});
cfg.addToolbarElement("SC-spell-check", "htmlmode", 1);
}
SpellChecker._pluginInfo = {
name : "SpellChecker",
version : "1.0",
developer : "Mihai Bazon",
developer_url : "http://dynarch.com/mishoo/",
c_owner : "Mihai Bazon",
sponsor : "American Bible Society",
sponsor_url : "http://www.americanbible.org",
license : "htmlArea"
};
SpellChecker.prototype._lc = function(string) {
return Xinha._lc(string, 'SpellChecker');
};
SpellChecker.btnList = [
null, // separator
["spell-check"]
];
SpellChecker.prototype.buttonPress = function(editor, id) {
switch (id) {
case "SC-spell-check":
SpellChecker.editor = editor;
SpellChecker.init = true;
var uiurl = Xinha.getPluginDir("SpellChecker") + "/spell-check-ui.html";
var win;
if (Xinha.is_ie) {
win = window.open(uiurl, "SC_spell_checker",
"toolbar=no,location=no,directories=no,status=no,menubar=no," +
"scrollbars=no,resizable=yes,width=600,height=450");
} else {
win = window.open(uiurl, "SC_spell_checker",
"toolbar=no,menubar=no,personalbar=no,width=600,height=450," +
"scrollbars=no,resizable=yes");
}
win.focus();
break;
}
};
// this needs to be global, it's accessed from spell-check-ui.html
SpellChecker.editor = null; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/SpellChecker.js | JavaScript | art | 2,332 |
#! /usr/bin/perl -w
# Spell Checker Plugin for HTMLArea-3.0
# Sponsored by www.americanbible.org
# Implementation by Mihai Bazon, http://dynarch.com/mishoo/
#
# (c) dynarch.com 2003.
# Distributed under the same terms as HTMLArea itself.
# This notice MUST stay intact for use (see license.txt).
#
# $Id:spell-check-logic.cgi 21 2005-02-19 05:23:56Z gogo $
use strict;
use utf8;
use Encode;
use Text::Aspell;
use XML::DOM;
use CGI;
my $TIMER_start = undef;
eval {
use Time::HiRes qw( gettimeofday tv_interval );
$TIMER_start = [gettimeofday()];
};
# use POSIX qw( locale_h );
binmode STDIN, ':utf8';
binmode STDOUT, ':utf8';
my $debug = 0;
my $speller = new Text::Aspell;
my $cgi = new CGI;
my $total_words = 0;
my $total_mispelled = 0;
my $total_suggestions = 0;
my $total_words_suggested = 0;
# FIXME: report a nice error...
die "Can't create speller!" unless $speller;
my $dict = $cgi->param('dictionary') || $cgi->cookie('dictionary') || 'en';
# add configurable option for this
$speller->set_option('lang', $dict);
$speller->set_option('encoding', 'UTF-8');
#setlocale(LC_CTYPE, $dict);
# ultra, fast, normal, bad-spellers
# bad-spellers seems to cause segmentation fault
$speller->set_option('sug-mode', 'normal');
my %suggested_words = ();
keys %suggested_words = 128;
my $file_content = decode('UTF-8', $cgi->param('content'));
$file_content = parse_with_dom($file_content);
my $ck_dictionary = $cgi->cookie(-name => 'dictionary',
-value => $dict,
-expires => '+30d');
print $cgi->header(-type => 'text/html; charset: utf-8',
-cookie => $ck_dictionary);
my $js_suggested_words = make_js_hash(\%suggested_words);
my $js_spellcheck_info = make_js_hash_from_array
([
[ 'Total words' , $total_words ],
[ 'Mispelled words' , $total_mispelled . ' in dictionary \"'.$dict.'\"' ],
[ 'Total suggestions' , $total_suggestions ],
[ 'Total words suggested' , $total_words_suggested ],
[ 'Spell-checked in' , defined $TIMER_start ? (tv_interval($TIMER_start) . ' seconds') : 'n/a' ]
]);
print qq^<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="all" href="spell-check-style.css" />
<script type="text/javascript">
var suggested_words = { $js_suggested_words };
var spellcheck_info = { $js_spellcheck_info }; </script>
</head>
<body onload="window.parent.finishedSpellChecking();">^;
print $file_content;
if ($cgi->param('init') eq '1') {
my @dicts = $speller->dictionary_info();
my $dictionaries = '';
foreach my $i (@dicts) {
next if $i->{jargon};
my $name = $i->{name};
if ($name eq $dict) {
$name = '@'.$name;
}
$dictionaries .= ',' . $name;
}
$dictionaries =~ s/^,//;
print qq^<div id="HA-spellcheck-dictionaries">$dictionaries</div>^;
}
print '</body></html>';
# Perl is beautiful.
sub spellcheck {
my $node = shift;
my $doc = $node->getOwnerDocument;
my $check = sub { # called for each word in the text
# input is in UTF-8
my $word = shift;
my $already_suggested = defined $suggested_words{$word};
++$total_words;
if (!$already_suggested && $speller->check($word)) {
return undef;
} else {
# we should have suggestions; give them back to browser in UTF-8
++$total_mispelled;
if (!$already_suggested) {
# compute suggestions for this word
my @suggestions = $speller->suggest($word);
my $suggestions = decode($speller->get_option('encoding'), join(',', @suggestions));
$suggested_words{$word} = $suggestions;
++$total_suggestions;
$total_words_suggested += scalar @suggestions;
}
# HA-spellcheck-error
my $err = $doc->createElement('span');
$err->setAttribute('class', 'HA-spellcheck-error');
my $tmp = $doc->createTextNode;
$tmp->setNodeValue($word);
$err->appendChild($tmp);
return $err;
}
};
while ($node->getNodeValue =~ /([\p{IsWord}']+)/) {
my $word = $1;
my $before = $`;
my $after = $';
my $df = &$check($word);
if (!$df) {
$before .= $word;
}
{
my $parent = $node->getParentNode;
my $n1 = $doc->createTextNode;
$n1->setNodeValue($before);
$parent->insertBefore($n1, $node);
$parent->insertBefore($df, $node) if $df;
$node->setNodeValue($after);
}
}
};
sub check_inner_text {
my $node = shift;
my $text = '';
for (my $i = $node->getFirstChild; defined $i; $i = $i->getNextSibling) {
if ($i->getNodeType == TEXT_NODE) {
spellcheck($i);
}
}
};
sub parse_with_dom {
my ($text) = @_;
$text = '<spellchecker>'.$text.'</spellchecker>';
my $parser = new XML::DOM::Parser;
if ($debug) {
open(FOO, '>:utf8', '/tmp/foo');
print FOO $text;
close FOO;
}
my $doc = $parser->parse($text);
my $nodes = $doc->getElementsByTagName('*');
my $n = $nodes->getLength;
for (my $i = 0; $i < $n; ++$i) {
my $node = $nodes->item($i);
if ($node->getNodeType == ELEMENT_NODE) {
check_inner_text($node);
}
}
my $ret = $doc->toString;
$ret =~ s{<spellchecker>(.*)</spellchecker>}{$1}sg;
return $ret;
};
sub make_js_hash {
my ($hash) = @_;
my $js_hash = '';
while (my ($key, $val) = each %$hash) {
$js_hash .= ',' if $js_hash;
$js_hash .= '"'.$key.'":"'.$val.'"';
}
return $js_hash;
};
sub make_js_hash_from_array {
my ($array) = @_;
my $js_hash = '';
foreach my $i (@$array) {
$js_hash .= ',' if $js_hash;
$js_hash .= '"'.$i->[0].'":"'.$i->[1].'"';
}
return $js_hash;
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/.svn/text-base/spell-check-logic.cgi.svn-base | Perl | art | 6,169 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: A.H van den Broek http://www.kontaktfm.nl, tonbroek@kontaktfm.nl
{
"Please confirm that you want to open this link": "Weet u zeker dat u deze link wilt openen?",
"Cancel": "Annuleer",
"Dictionary": "Woordenboek",
"Finished list of mispelled words": "klaar met de lijst van fouten woorden",
"I will open it in a new page.": "Ik zal het in een nieuwe pagina openen.",
"Ignore all": "alles overslaan",
"Ignore": "Overslaan",
"No mispelled words found with the selected dictionary.": "Geen fouten gevonden met dit woordenboek.",
"Spell check complete, didn't find any mispelled words. Closing now...": "Spell checking is klaar, geen fouten gevonden. spell checking word gesloten...",
"OK": "OK",
"Original word": "Originele woord",
"Please wait. Calling spell checker.": "Even wachten. spell checker wordt geladen.",
"Please wait: changing dictionary to": "even wachten: woordenboek wordt veranderd naar",
"This will drop changes and quit spell checker. Please confirm.": "Dit zal alle veranderingen annuleren en de spell checker sluiten. Weet u het zeker?",
"Re-check": "Opnieuw",
"Replace all": "Alles vervangen",
"Replace with": "Vervangen met",
"Replace": "Vervangen",
"Revert": "Omkeren",
"Spell-check": "Spell-check",
"Suggestions": "Suggestie",
"One moment...": "Even wachten ;-)"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/nl.js | JavaScript | art | 1,397 |
// I18N constants
// LANG: "en", ENCODING: UTF-8
// Author: Broxx, <broxx@broxx.com>
{
"Please confirm that you want to open this link": "Wollen Sie diesen Link oeffnen",
"Cancel": "Abbrechen",
"Dictionary": "Woerterbuch",
"Finished list of mispelled words": "Liste der nicht bekannten Woerter",
"I will open it in a new page.": "Wird auf neuer Seite geoeffnet",
"Ignore all": "Alle ignorieren",
"Ignore": "Ignorieren",
"No mispelled words found with the selected dictionary.": "Keine falschen Woerter mit gewaehlten Woerterbuch gefunden",
"Spell check complete, didn't find any mispelled words. Closing now...": "Rechtsschreibpruefung wurde ohne Fehler fertiggestellt. Wird nun geschlossen...",
"OK": "OK",
"Original word": "Original Wort",
"Please wait. Calling spell checker.": "Bitte warten. Woerterbuch wird durchsucht.",
"Please wait: changing dictionary to": "Bitte warten: Woerterbuch wechseln zu",
"This will drop changes and quit spell checker. Please confirm.": "Aenderungen werden nicht uebernommen. Bitte bestaettigen.",
"Re-check": "Neuueberpruefung",
"Replace all": "Alle ersetzen",
"Replace with": "Ersetzen mit",
"Replace": "Ersetzen",
"Spell-check": "Ueberpruefung",
"Suggestions": "Vorschlag",
"One moment...": "Bitte warten..."
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/de.js | JavaScript | art | 1,299 |
// I18N constants
// LANG: "hu", ENCODING: UTF-8
// Author: Miklós Somogyi, <somogyine@vnet.hu>
{
"Please confirm that you want to open this link": "Megerősítés",
"Cancel": "Mégsem",
"Dictionary": "Szótár",
"Finished list of mispelled words": "A tévesztett szavak listájának vége",
"I will open it in a new page.": "Megnyitás új lapon",
"Ignore all": "Minden elvetése",
"Ignore": "Elvetés",
"No mispelled words found with the selected dictionary.": "A választott szótár szerint nincs tévesztett szó.",
"Spell check complete, didn't find any mispelled words. Closing now...": "A helyesírásellenőrzés kész, tévesztett szó nem fordult elő. Bezárás...",
"OK": "Rendben",
"Original word": "Eredeti szó",
"Please wait. Calling spell checker.": "Kis türelmet, a helyesírásellenőrző hívása folyamatban.",
"Please wait: changing dictionary to": "Kis türelmet, szótár cseréje",
"This will drop changes and quit spell checker. Please confirm.": "Kilépés a változások eldobásával. Jóváhagyja?",
"Re-check": "Újraellenőrzés",
"Replace all": "Mind cseréje",
"Replace with": "Csere a következőre:",
"Replace": "Csere",
"Spell-check": "Helyesírásellenőrzés",
"Suggestions": "Tippek",
"One moment...": "Kis türelmet ;-)"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/hu.js | JavaScript | art | 1,313 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Please confirm that you want to open this link": "Veuillez confirmer l'ouverture de ce lien",
"Cancel": "Annuler",
"Dictionary": "Dictionnaire",
"Finished list of mispelled words": "Liste des mots mal orthographiés",
"I will open it in a new page.": "Ouverture dans une nouvelle fenêtre",
"Ignore all": "Tout ignorer",
"Ignore": "Ignorer",
"No mispelled words found with the selected dictionary.": "Aucune erreur orthographique avec le dictionnaire sélectionné.",
"Spell check complete, didn't find any mispelled words. Closing now...": "Vérification terminée, aucune erreur orthographique détectée. Fermeture en cours...",
"OK": "OK",
"Original word": "Mot original",
"Please wait. Calling spell checker.": "Veuillez patienter. Appel du correcteur.",
"Please wait: changing dictionary to": "Veuillez patienter. Changement du dictionnaire vers",
"This will drop changes and quit spell checker. Please confirm.": "Ceci fermera la fenêtre et annulera les modifications. Veuillez confirmer.",
"Re-check": "Vérifier encore",
"Replace all": "Tout remplacer",
"Replace with": "Remplacer par",
"Replace": "Remplacer",
"Revert": "Annuler",
"Spell-check": "Correction",
"Suggestions": "Suggestions",
"One moment...": "Veuillez patienter"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/fr.js | JavaScript | art | 1,342 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Please confirm that you want to open this link": "本当にこのリンクを開きますか",
"Cancel": "中止",
"Dictionary": "辞書",
"Finished list of mispelled words": "つづり間違単語の一覧",
"I will open it in a new page.": "新しいページで開きます。",
"Ignore all": "すべて無視",
"Ignore": "無視",
"No mispelled words found with the selected dictionary.": "選択された辞書にはつづり間違い単語がありません。",
"Spell check complete, didn't find any mispelled words. Closing now...": "スペルチェックが完了しましたが、つづり間違い単語はありませんでした。すぐに閉じます...",
"OK": "OK",
"Original word": "元の単語",
"Please wait. Calling spell checker.": "しばらくお待ちください。スペルチェッカーを呼び出しています。",
"Please wait: changing dictionary to": "しばらくお待ちください: 辞書を切り替えています",
"This will drop changes and quit spell checker. Please confirm.": "変更を破棄してスペルチェッカーを終了します。よろしいいですか。",
"Re-check": "再チェック",
"Replace all": "すべて置換",
"Replace with": "これに置換",
"Replace": "置換",
"Revert": "戻す",
"Spell-check": "スペルチェック",
"Suggestions": "候補",
"One moment...": "あともう少し...",
"Info": "情報",
"Learn": "学習"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/ja.js | JavaScript | art | 1,513 |
// I18N constants
// LANG: "cz", ENCODING: UTF-8
// Author: Jiri Löw, <jirilow@jirilow.com>
{
"Please confirm that you want to open this link": "Prosím potvrďte otevření tohoto odkazu",
"Cancel": "Zrušit",
"Dictionary": "Slovník",
"Finished list of mispelled words": "Dokončen seznam chybných slov",
"I will open it in a new page.": "Bude otevřen jej v nové stránce.",
"Ignore all": "Ignorovat vše",
"Ignore": "Ignorovat",
"No mispelled words found with the selected dictionary.": "Podle zvoleného slovníku nebyla nalezena žádná chybná slova.",
"Spell check complete, didn't find any mispelled words. Closing now...": "Kontrola správnosti slov dokončena, nebyla nalezena žádná chybná slova. Ukončování ...",
"OK": "OK",
"Original word": "Původní slovo",
"Please wait. Calling spell checker.": "Prosím čekejte. Komunikuace s kontrolou správnosti slov.",
"Please wait: changing dictionary to": "Prosím čekejte: změna adresáře na",
"This will drop changes and quit spell checker. Please confirm.": "Změny budou zrušeny a kontrola správnosti slov ukončena. Prosím potvrďte.",
"Re-check": "Překontrolovat",
"Replace all": "Zaměnit všechno",
"Replace with": "Zaměnit za",
"Replace": "Zaměnit",
"Spell-check": "Kontrola správnosti slov",
"Suggestions": "Doporučení",
"One moment...": "strpení prosím ;-)"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/cz.js | JavaScript | art | 1,400 |
// I18N constants
// LANG: "da", ENCODING: UTF-8
// Author: Steen Sønderup, <steen@soenderup.com>
{
"Please confirm that you want to open this link": "Vil du følge dette link?",
"Cancel": "Ann uler",
"Dictionary": "Ordbog",
"Finished list of mispelled words": "Listen med stavefejl er gennemgået",
"I will open it in a new page.": "Jeg vil åbne det i en ny side.",
"Ignore all": "Ignorer alle",
"Ignore": "Ignorer",
"No mispelled words found with the selected dictionary.": "Der blev ikke fundet nogle stavefejl med den valgte ordbog.",
"Spell check complete, didn't find any mispelled words. Closing now...": "Stavekontrollen er gennemført, der blev ikke fundet nogle stavefejl. Lukker...",
"OK": "OK",
"Original word": "Oprindeligt ord",
"Please wait. Calling spell checker.": "Vent venligst. Henter stavekontrol.",
"Please wait: changing dictionary to": "Vent venligst: skifter ordbog til",
"This will drop changes and quit spell checker. Please confirm.": "Alle dine ændringer vil gå tabt, vil du fortsætte?",
"Re-check": "Tjek igen",
"Replace all": "Erstat alle",
"Replace with": "Erstat med",
"Replace": "Erstat",
"Spell-check": "Stavekontrol",
"Suggestions": "Forslag",
"One moment...": "Vent venligst"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/da.js | JavaScript | art | 1,268 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Please confirm that you want to open this link": "Ønsker du å åpne denne lenken",
"Cancel": "Avbryt",
"Dictionary": "Ordliste",
"Finished list of mispelled words": "Ferdig med liste over feilstavede ord",
"I will open it in a new page.": "Åpnes i ny side",
"Ignore all": "Ignorer alle",
"Ignore": "Ignorer",
"No mispelled words found with the selected dictionary.": "Ingen feilstavede ord funnet med den valgte ordlisten",
"Spell check complete, didn't find any mispelled words. Closing now...": "Stavekontroll fullført, ingen feilstavede ord ble funnet, stavekontroll avsluttes.",
"OK": "OK",
"Original word": "Opprinnelig ord",
"Please wait. Calling spell checker.": "Vennligst vent, kaller opp stavekontrollprogrammet",
"Please wait: changing dictionary to": "Vennligst vent, endrer ordliste til",
"This will drop changes and quit spell checker. Please confirm.": "Dette vil droppe endringene og avbryte stavekontrollen, vennligst bekreft.",
"Re-check": "Kjør stavekontroll på nytt",
"Replace all": "Erstatt alle",
"Replace with": "Erstatt med",
"Replace": "Erstatt",
"Spell-check": "Stavekontroll",
"Suggestions": "Forslag",
"One moment...": "Et øyeblikk..."
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/nb.js | JavaScript | art | 1,345 |
// I18N constants
// LANG: "ro", ENCODING: UTF-8
// Author: Mihai Bazon, http://dynarch.com/mishoo
{
"Please confirm that you want to open this link": "Vă rog confirmaţi că vreţi să deschideţi acest link",
"Cancel": "Anulează",
"Dictionary": "Dicţionar",
"Finished list of mispelled words": "Am terminat lista de cuvinte greşite",
"I will open it in a new page.": "O voi deschide într-o altă fereastră.",
"Ignore all": "Ignoră toate",
"Ignore": "Ignoră",
"No mispelled words found with the selected dictionary.": "Nu am găsit nici un cuvânt greşit cu acest dicţionar.",
"Spell check complete, didn't find any mispelled words. Closing now...": "Am terminat, nu am detectat nici o greşeală. Acum închid fereastra...",
"OK": "OK",
"Original word": "Cuvântul original",
"Please wait. Calling spell checker.": "Vă rog aşteptaţi. Apelez spell-checker-ul.",
"Please wait: changing dictionary to": "Vă rog aşteptaţi. Schimb dicţionarul cu",
"This will drop changes and quit spell checker. Please confirm.": "Doriţi să renunţaţi la modificări şi să închid spell-checker-ul?",
"Re-check": "Scanează",
"Replace all": "Înlocuieşte toate",
"Replace with": "Înlocuieşte cu",
"Replace": "Înlocuieşte",
"Spell-check": "Detectează greşeli",
"Suggestions": "Sugestii",
"One moment...": "va rog ashteptatzi ;-)"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/ro.js | JavaScript | art | 1,390 |
// I18N constants
// LANG: "en", ENCODING: UTF-8
// Author: Mihai Bazon, http://dynarch.com/mishoo
{
"Please confirm that you want to open this link": "אנא אשר שברצונך לפתוח קישור זה",
"Cancel": "ביטול",
"Dictionary": "מילון",
"Finished list of mispelled words": "הסתיימה רשימת המילים המאויתות באופן שגוי",
"I will open it in a new page.": "אני אפתח את זה בחלון חדש.",
"Ignore all": "התעלם מהכל",
"Ignore": "התעלם",
"No mispelled words found with the selected dictionary.": "לא נמצאו מילים מאויתות באופן שגוי עם המילון הנבחר.",
"Spell check complete, didn't find any mispelled words. Closing now...": "בדיקת האיות נסתיימה, לא נמצאו מילים מאויתות באופן שגוי. נסגר כעת...",
"OK": "אישור",
"Original word": "המילה המקורית",
"Please wait. Calling spell checker.": "אנא המתן. קורא לבודק איות.",
"Please wait: changing dictionary to": "אנא המתן: מחליף מילון ל-",
"This will drop changes and quit spell checker. Please confirm.": "זה יבטל את השינויים ויצא מבודק האיות. אנא אשר.",
"Re-check": "בדוק מחדש",
"Replace all": "החלף הכל",
"Replace with": "החלף ב-",
"Replace": "החלף",
"Revert": "החזר שינויים",
"Spell-check": "בדיקת איות",
"Suggestions": "הצעות",
"One moment...": "ענא המטן ;-)"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/he.js | JavaScript | art | 1,578 |
// I18N constants
//
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
//
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
//
// Last revision: 06 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Cancel": "Cancelar",
"Dictionary": "Dicionário",
"Finished list of mispelled words": "Finalizada lista de palavras desconhecidas",
"HTMLArea Spell Checker": "Dicionário HTMLArea",
"I will open it in a new page.": "Será aberto em uma nova página",
"Ignore": "Ignorar",
"Ignore all": "Ignorar todas",
"Info": "Informação",
"Learn": "Aprender",
"No mispelled words found with the selected dictionary.": "Nenhuma palavra desconhecida foi encontrada no dicionário selecionado",
"OK": "OK",
"Original word": "Palavra Original",
"Please confirm that you want to open this link": "Por favor, confirme se deseja abrir este link",
"Please wait. Calling spell checker.": "Por favor, aguarde. Chamando dicionário.",
"Please wait: changing dictionary to": "Por favor, aguarde: mudando dicionário para",
"Re-check": "Re-verificar",
"Replace": "Substituir",
"Replace all": "Substituir tudo",
"Replace with": "Substituir com",
"Revert": "Reverter",
"Spell Checker": "Dicionário",
"Spell-check": "Dicionário",
"Suggestions": "Sugestões",
"This will drop changes and quit spell checker. Please confirm.": "Isso desfará as mudanças e finalizará o dicionário. Por favor, confirme.",
"pliz weit ;-)": "Por favor, aguarde...",
"One moment...": "Um momento..."
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/lang/pt_br.js | JavaScript | art | 1,809 |
<!--
Strangely, IE sucks with or without the DOCTYPE switch.
I thought it would only suck without it.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Spell Checker Plugin for HTMLArea-3.0
Sponsored by www.americanbible.org
Implementation by Mihai Bazon, http://dynarch.com/mishoo/
(c) dynarch.com 2003.
Distributed under the same terms as HTMLArea itself.
This notice MUST stay intact for use (see license.txt).
$Id:spell-check-ui.html 987 2008-04-12 12:39:04Z ray $
-->
<html>
<head>
<title>Spell Checker</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="spell-check-ui.js"></script>
<style type="text/css">
html, body { height: 100%; margin: 0px; padding: 0px; background-color: #fff;
color: #000; }
a:link, a:visited { color: #00f; text-decoration: none; }
a:hover { color: #f00; text-decoration: underline; }
table { background-color: ButtonFace; color: ButtonText;
font-family: tahoma,verdana,sans-serif; font-size: 11px; }
iframe { background-color: #fff; color: #000; height: 100%; width: 100%; }
.controls { width: 13em; }
.controls .sectitle { /* background-color: #736c6c; color: #fff;
border-top: 1px solid #000; border-bottom: 1px solid #fff; */
text-align: center;
font-weight: bold; padding: 2px 4px; }
.controls .secbody { margin-bottom: 10px; }
button, select { font-family: tahoma,verdana,sans-serif; font-size: 11px; }
button { width: 6em; padding: 0px; }
input, select { font-family: fixed,"andale mono",monospace; }
#v_currentWord { color: #f00; font-weight: bold; }
#statusbar { padding: 7px 0px 0px 5px; }
#status { font-weight: bold; }
</style>
</head>
<body onload="initDocument()">
<form style="display: none;" action="spell-check-logic.cgi"
method="post" target="framecontent"
accept-charset="UTF-8"
><input type="hidden" name="content" id="f_content"
/><input type="hidden" name="dictionary" id="f_dictionary"
/><input type="hidden" name="init" id="f_init" value="1"
/><input type="hidden" name="utf8_to_entities" id="utf8_to_entities" value="1"
/></form>
<table style="height: 100%; width: 100%; border-collapse: collapse;" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" style="height: 1em; padding: 2px;">
<div style="float: right; padding: 2px;"><span>Dictionary</span>
<select id="v_dictionaries" style="width: 10em"></select>
<button id="b_recheck">Re-check</button>
</div>
<span id="status">Please wait. Calling spell checker.</span>
</td>
</tr>
<tr>
<td style="vertical-align: top;" class="controls">
<div class="secbody" style="text-align: center">
<button id="b_info">Info</button>
</div>
<div class="sectitle">Original word</div>
<div class="secbody" id="v_currentWord" style="text-align:
center; margin-bottom: 0px;">pliz weit ;-)</div>
<div class="secbody" style="text-align: center">
<button id="b_revert">Revert</button>
</div>
<div class="sectitle">Replace with</div>
<div class="secbody">
<input type="text" id="v_replacement" style="width: 94%; margin-left: 3%;" /><br />
<div style="text-align: center; margin-top: 2px;">
<button id="b_replace">Replace</button><button
id="b_replall">Replace all</button><br /><button
id="b_ignore">Ignore</button><button
id="b_ignall">Ignore all</button>
<button
id="b_learn">Learn</button>
</div>
</div>
<div class="sectitle">Suggestions</div>
<div class="secbody">
<select size="11" style="width: 94%; margin-left: 3%;" id="v_suggestions"></select>
</div>
</td>
<td>
<iframe src="../../popups/blank.html" width="100%" height="100%"
id="i_framecontent" name="framecontent"></iframe>
</td>
</tr>
<tr>
<td style="height: 1em;" colspan="2">
<div style="padding: 4px 2px 2px 2px; float: right;">
<button id="b_ok">OK</button>
<button id="b_cancel">Cancel</button>
</div>
<div id="statusbar"></div>
</td>
</tr>
</table>
</body>
</html>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/spell-check-ui.html | HTML | art | 4,627 |
<?php
$text = stripslashes($_POST['content']);
// Convert UTF-8 multi-bytes into decimal character entities. This is because
// aspell isn't fully utf8-aware - ticket:120 raises the possibility
// that this is not required (any more) and so you can turn it off
// with editor.config.SpellChecker.utf8_to_entities = false
if(!isset($_REQUEST['utf8_to_entitis']) || $_REQUEST['utf8_to_entities'])
{
$text = preg_replace('/([\xC0-\xDF][\x80-\xBF])/e', "'&#' . utf8_ord('\$1') . ';'", $text);
$text = preg_replace('/([\xE0-\xEF][\x80-\xBF][\x80-\xBF])/e', "'&#' . utf8_ord('\$1') . ';'", $text);
$text = preg_replace('/([\xF0-\xF7][\x80-\xBF][\x80-\xBF][\x80-\xBF])/e', "'&#' . utf8_ord('\$1') . ';'", $text);
}
function utf8_ord($chr)
{
switch(strlen($chr))
{
case 1 :
return ord($chr);
case 2 :
$ord = ord($chr{1}) & 63;
$ord = $ord | ((ord($chr{0}) & 31) << 6);
return $ord;
case 3 :
$ord = ord($chr{2}) & 63;
$ord = $ord | ((ord($chr{1}) & 63) << 6);
$ord = $ord | ((ord($chr{0}) & 15) << 12);
return $ord;
case 4 :
$ord = ord($chr{3}) & 63;
$ord = $ord | ((ord($chr{2}) & 63) << 6);
$ord = $ord | ((ord($chr{1}) & 63) << 12);
$ord = $ord | ((ord($chr{0}) & 7) << 18);
return $ord;
default :
trigger_error('Character not utf-8', E_USER_ERROR);
}
}
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'aspell_setup.php');
##############################################################################
header('Content-Type: text/html; charset=utf-8');
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="all" href="spell-check-style.css" />';
// Lets define some values outside the condition below, in case we have an empty
// document.
$textarray = array();
$varlines = '<script type="text/javascript">var suggested_words = { ';
$infolines = 'var spellcheck_info = {';
$counter = 0;
$suggest_count = 0;
if (trim($text) != "")
{
if ($fd = fopen($temptext, 'w'))
{
$textarray = explode("\n", $text);
fwrite ($fd, "!\n");
foreach ($textarray as $key=>$value)
{
// adding the carat to each line prevents the use of aspell commands within the text...
fwrite($fd, "^$value\n");
}
fclose($fd);
chmod($temptext, 0777);
// next run aspell
$return = shell_exec($aspellcommand . ' 2>&1');
// echo $return;
unlink($temptext);
$returnarray = explode("\n", $return);
$returnlines = count($returnarray);
//print_r(htmlentities($return));
$textlines = count($textarray);
$lineindex = -1;
$poscorrect = 0;
foreach ($returnarray as $key=>$value)
{
// if there is a correction here, processes it, else move the $textarray pointer to the next line
if (substr($value, 0, 1) == '&')
{
$counter=$counter+1;
$correction = explode(' ', $value);
$word = $correction[1];
$suggest_count += $correction[2];
$absposition = substr($correction[3], 0, -1) - 1;
$position = $absposition + $poscorrect;
$niceposition = $lineindex.','.$absposition;
$suggstart = strpos($value, ':') + 2;
$suggestions = substr($value, $suggstart);
$suggestionarray = explode(', ', $suggestions);
$beforeword = substr($textarray[$lineindex], 0, $position);
$afterword = substr($textarray[$lineindex], $position + strlen($word));
$textarray[$lineindex] = $beforeword.'<span class="HA-spellcheck-error">'.$word.'</span>'.$afterword;
$suggestion_list = '';
foreach ($suggestionarray as $key=>$value)
{
$suggestion_list .= $value.',';
}
$suggestion_list = substr($suggestion_list, 0, strlen($suggestion_list) - 1);
$varlines .= '"'.$word.'":"'.$suggestion_list.'",';
$poscorrect = $poscorrect + 41;
}
elseif (substr($value, 0, 1) == '#')
{
$correction = explode(' ', $value);
$word = $correction[1];
$absposition = $correction[2] - 1;
$position = $absposition + $poscorrect;
$niceposition = $lineindex.','.$absposition;
$beforeword = substr($textarray[$lineindex], 0, $position);
$afterword = substr($textarray[$lineindex], $position + strlen($word));
$textarray[$lineindex] = $beforeword.$word.$afterword;
$textarray[$lineindex] = $beforeword.'<span class="HA-spellcheck-error">'.$word.'</span><span class="HA-spellcheck-suggestions">'.$word.'</span>'.$afterword;
// $poscorrect = $poscorrect;
$poscorrect = $poscorrect + 88 + strlen($word);
}
else
{
//print "Done with line $lineindex, next line...<br><br>";
$poscorrect = 0;
$lineindex = $lineindex + 1;
}
}
}
else
{
// This one isnt used for anything at the moment!
$return = 'failed to open!';
}
}
else
{
$returnlines=0;
}
$infolines .= '"Language Used":"'.$lang.'",';
$infolines .= '"Mispelled words":"'.$counter.'",';
$infolines .= '"Total words suggested":"'.$suggest_count.'",';
$infolines .= '"Total Lines Checked":"'.$returnlines.'"';
$infolines .= '};';
$varlines = substr($varlines, 0, strlen($varlines) - 1);
echo $varlines.'};'.$infolines.'</script>';
echo '</head>
<body onload="window.parent.finishedSpellChecking();">';
foreach ($textarray as $key=>$value)
{
echo $value;
}
$dictionaries = str_replace(chr(10),",", shell_exec($aspelldictionaries));
if(ereg(",$",$dictionaries))
$dictionaries = ereg_replace(",$","",$dictionaries);
echo '<div id="HA-spellcheck-dictionaries">'.$dictionaries.'</div>';
echo '</body></html>';
?> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/spell-check-logic.php | PHP | art | 6,393 |
<?php
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'aspell_setup.php');
$to_p_dict = $_REQUEST['to_p_dict'] ? $_REQUEST['to_p_dict'] : array();
$to_r_list = $_REQUEST['to_r_list'] ? $_REQUEST['to_r_list'] : array();
print_r($to_r_list);
if($to_p_dict || $to_r_list)
{
if($fh = fopen($temptext, 'w'))
{
foreach($to_p_dict as $personal_word)
{
$cmd = '&' . $personal_word . "\n";
echo $cmd;
fwrite($fh, $cmd, strlen($cmd));
}
foreach($to_r_list as $replace_pair)
{
$cmd = '$$ra ' . $replace_pair[0] . ' , ' . $replace_pair[1] . "\n";
echo $cmd;
fwrite($fh, $cmd, strlen($cmd));
}
$cmd = "#\n";
echo $cmd;
fwrite($fh, $cmd, strlen($cmd));
fclose($fh);
}
else
{
die("Can't Write");
}
echo $aspellcommand."\n";
echo shell_exec($aspellcommand . ' 2>&1');
unlink($temptext);
}
?> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/SpellChecker/spell-check-savedicts.php | PHP | art | 947 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Paste as Plain Text": "Kopieer als platte tekst (geen opmaak)"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/lang/nl.js | JavaScript | art | 174 |
// I18N constants
// LANG: "de", ENCODING: UTF-8
{
"Paste as Plain Text": "unformatierten Text einfügen",
"Insert text in new paragraph" : "Neue Absätze eifügen"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/lang/de.js | JavaScript | art | 177 |
// I18N constants
// LANG: "pl", ENCODING: UTF-8
// translated: Krzysztof Kotowicz, http://www.eskot.krakow.pl/portfolio/, koto@webworkers.pl
{
"Paste as Plain Text": "Wklej jako czysty tekst"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/lang/pl.js | JavaScript | art | 204 |
// I18N constants
// LANG: "ru", ENCODING: UTF-8
{
"Paste as Plain Text": "Вставить как обычный текст"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/lang/ru.js | JavaScript | art | 130 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Paste as Plain Text": "Copier comme texte pur"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/lang/fr.js | JavaScript | art | 103 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Paste as Plain Text": "プレーンテキストとして貼り付け"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/lang/ja.js | JavaScript | art | 126 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Paste as Plain Text": "Lim inn som ren tekst"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/lang/nb.js | JavaScript | art | 178 |
// I18N constants
//
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
//
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
//
// Last revision: 06 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt)
{
"Cancel": "Cancelar",
"OK": "OK",
"Paste Text": "Colar Texto",
"Paste as Plain Text": "Colar um texto básico"
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/lang/pt_br.js | JavaScript | art | 617 |
// Paste Plain Text plugin for Xinha
// Distributed under the same terms as Xinha itself.
// This notice MUST stay intact for use (see license.txt).
function PasteText(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton({
id : "pastetext",
tooltip : this._lc("Paste as Plain Text"),
image : editor.imgURL("ed_paste_text.gif", "PasteText"),
textMode : false,
action : function() { self.show(); }
});
cfg.addToolbarElement("pastetext", ["paste", "killword"], 1);
}
PasteText._pluginInfo = {
name : "PasteText",
version : "1.2",
developer : "Michael Harris",
developer_url : "http://www.jonesadvisorygroup.com",
c_owner : "Jones Advisory Group",
sponsor : "Jones International University",
sponsor_url : "http://www.jonesinternational.edu",
license : "htmlArea"
};
PasteText.prototype._lc = function(string) {
return Xinha._lc(string, 'PasteText');
};
Xinha.Config.prototype.PasteText =
{
showParagraphOption : true,
newParagraphDefault :true
}
PasteText.prototype.onGenerateOnce = function()
{
var self = PasteText;
if (self.loading) return;
self.loading = true;
Xinha._getback(Xinha.getPluginDir("PasteText") + '/popups/paste_text.html', function(getback) { self.html = getback;});
};
PasteText.prototype._prepareDialog = function()
{
var self = this;
var editor = this.editor;
var self = this;
/// Now we have everything we need, so we can build the dialog.
this.dialog = new Xinha.Dialog(editor, PasteText.html, 'PasteText',{width:350})
// Connect the OK and Cancel buttons
this.dialog.getElementById('ok').onclick = function() {self.apply();}
this.dialog.getElementById('cancel').onclick = function() { self.dialog.hide()};
// do some tweaking
if (editor.config.PasteText.showParagraphOption)
{
this.dialog.getElementById("paragraphOption").style.display = "";
}
if (editor.config.PasteText.newParagraphDefault)
{
this.dialog.getElementById("insertParagraphs").checked = true;
}
// we can setup a custom function that cares for sizes etc. when the dialog is resized
this.dialog.onresize = function ()
{
this.getElementById("inputArea").style.height =
parseInt(this.height,10) // the actual height of the dialog
- this.getElementById('h1').offsetHeight // the title bar
- this.getElementById('buttons').offsetHeight // the buttons
- parseInt(this.rootElem.style.paddingBottom,10) // we have a padding at the bottom, gotta take this into acount
+ 'px'; // don't forget this ;)
this.getElementById("inputArea").style.width =(this.width - 2) + 'px'; // and the width
}
};
PasteText.prototype.show = function()
{
if (!this.dialog) this._prepareDialog();
// here we can pass values to the dialog
// each property pair consists of the "name" of the input we want to populate, and the value to be set
var inputs =
{
inputArea : '' // we want the textarea always to be empty on showing
}
// now calling the show method of the Xinha.Dialog object to set the values and show the actual dialog
this.dialog.show(inputs);
// Init the sizes (only if we have set up the custom resize function)
this.dialog.onresize();
this.dialog.getElementById("inputArea").focus();
};
// and finally ... take some action
PasteText.prototype.apply = function()
{
// the hide method of the dialog object returns the values of the inputs AND hides the dialog
// could also use this.dialog.getValues() here and hide it at the end
var returnValues = this.dialog.hide();
var html = returnValues.inputArea;
var insertParagraphs = returnValues.insertParagraphs;
html = html.replace(/</g, "<");
html = html.replace(/>/g, ">");
if ( returnValues.insertParagraphs)
{
html = html.replace(/\t/g," ");
html = html.replace(/\n/g,"</p><p>");
html="<p>" + html + "</p>";
if (Xinha.is_ie)
{
this.editor.insertHTML(html);
}
else
{
this.editor.execCommand("inserthtml",false,html);
}
}
else
{
html = html.replace(/\n/g,"<br />");
this.editor.insertHTML(html);
}
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/PasteText.js | JavaScript | art | 4,224 |
<h1 id="[h1]"><l10n>Paste as Plain Text</l10n></h1>
<textarea name="[inputArea]" id="[inputArea]" style="font-family:monospace;height:300px;border:none;"></textarea>
<div class="buttons" id="[buttons]">
<label style="float:left;display:none" id="[paragraphOption]">
<input type="checkbox" id="[insertParagraphs]" name="[insertParagraphs]" value="on" /> <l10n>Insert text in new paragraph</l10n>
</label>
<input type="button" id="[ok]" value="_(OK)" />
<input type="button" id="[cancel]" value="_(Cancel)" />
</div>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PasteText/popups/paste_text.html | HTML | art | 537 |
// DefinitionList plugin for Xinha
// Distributed under the same terms as Xinha itself.
// This notice MUST stay intact for use (see license.txt).
function DefinitionList(editor) {
this.editor = editor;
var cfg = editor.config;
var bl = DefinitionList.btnList;
var self = this;
// register the toolbar buttons provided by this plugin
var toolbar = ["linebreak"];
for (var i = 0; i < bl.length; ++i) {
var btn = bl[i];
if (!btn) {
toolbar.push("separator");
} else {
var id = btn[0];
cfg.registerButton(id, this._lc(btn[1]), editor.imgURL("ed_" + btn[0] + ".gif", "DefinitionList"), false,
function(editor, id) {
// dispatch button press event
self.buttonPress(editor, id);
});
toolbar.push(id);
}
}
// add a new line in the toolbar
cfg.toolbar.push(toolbar);
}
DefinitionList._pluginInfo = {
name : "DefinitionList",
version : "1.0",
developer : "Udo Schmal",
developer_url : "",
c_owner : "Udo Schmal",
license : "htmlArea"
};
// the list of buttons added by this plugin
DefinitionList.btnList = [
["dl", "definition list"],
["dt", "definition term"],
["dd", "definition description"]
];
DefinitionList.prototype._lc = function(string) {
return Xinha._lc(string, 'DefinitionList');
};
DefinitionList.prototype.onGenerate = function() {
this.editor.addEditorStylesheet(Xinha.getPluginDir('DefinitionList') + '/definition-list.css');
};
DefinitionList.prototype.buttonPress = function(editor,button_id) {
if (button_id=='dl') { //definition list
var pe = editor.getParentElement();
while (pe.parentNode.tagName.toLowerCase() != 'body') {
pe = pe.parentNode;
}
var dx = editor._doc.createElement(button_id);
dx.innerHTML = ' ';
if(pe.parentNode.lastChild==pe) {
pe.parentNode.appendChild(dx);
}else{
pe.parentNode.insertBefore(dx,pe.nextSibling);
}
} else if ((button_id=='dt')||(button_id=='dd')) { //definition term or description
var pe = editor.getParentElement();
while (pe && (pe.nodeType == 1) && (pe.tagName.toLowerCase() != 'body')) {
if(pe.tagName.toLowerCase() == 'dl') {
var dx = editor._doc.createElement(button_id);
dx.innerHTML = ' ';
pe.appendChild(dx);
break;
}else if((pe.tagName.toLowerCase() == 'dt')||(pe.tagName.toLowerCase() == 'dd')){
var dx = editor._doc.createElement(button_id)
dx.innerHTML = ' ';
if(pe.parentNode.lastChild==pe) {
pe.parentNode.appendChild(dx);
}else{
pe.parentNode.insertBefore(dx,pe.nextSibling);
}
break;
}
pe = pe.parentNode;
}
if(pe.tagName.toLowerCase() == 'body')
alert('You can insert a definition term or description only in a definition list!');
}
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/DefinitionList/DefinitionList.js | JavaScript | art | 2,892 |
dl { border: 1px dotted #800000; }
dt {
background-image: url(img/ed_dt.gif);
background-repeat: no-repeat;
background-position: left top;
padding-left: 19px;
color: #800000;
}
dd {
background-image: url(img/ed_dd.gif);
background-repeat: no-repeat;
background-position: left top;
padding-left: 19px;
color: #800000;
} | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/DefinitionList/definition-list.css | CSS | art | 338 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"definition list": "definitie lijst",
"definition term": "definitie term",
"definition description": "definitie omschrijving"
} | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/DefinitionList/lang/nl.js | JavaScript | art | 239 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"definition list": "定義リスト",
"definition term": "定義語",
"definition description": "定義の説明"
} | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/DefinitionList/lang/ja.js | JavaScript | art | 178 |
// I18N constants
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
// Last revision: 05 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"definition list": "Lista de definição",
"definition term": "Termo de definição",
"definition description": "Descrição de definição"
} | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/DefinitionList/lang/pt_br.js | JavaScript | art | 637 |
<h1 id="[h1]"><l10n>Abbreviation</l10n></h1>
<form name="form" action="" method="get" id="[inputs]">
<fieldset>
<legend><l10n>Expansion:</l10n></legend>
<input type="text" id="[title]" name="[title]" size="35" />
</fieldset>
<p />
<div class="buttons" id="[buttons]">
<input type="button" id="[ok]" value="_(OK)" />
<input type="button" id="[delete]" value="_(Delete)" />
<input type="button" id="[cancel]" value="_(Cancel)" />
</div>
</form>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/dialog.html | HTML | art | 487 |
abbr, acronym, span.abbr {
width: 18px;
height: 18px;
background-image: url(img/ed_abbreviation.gif);
background-repeat: no-repeat;
background-position: left top;
white-space : nowrap;
cursor: help;
border-bottom: 1px dashed #000;
padding-left: 19px;
} | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/abbreviation.css | CSS | art | 275 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Abbreviation": "Afkorting",
"Expansion:": "Uitbreiding:",
"Delete": "Verwijderen"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/lang/nl.js | JavaScript | art | 199 |
// I18N constants
// LANG: "de", ENCODING: UTF-8
// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"Abbreviation": "Abkürzung",
"Expansion:": "Erklärung:",
"Delete": "Löschen"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/lang/de.js | JavaScript | art | 233 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Abbreviation": "Abréviation",
"Expansion:": "Explication",
"Delete": "Supprimer"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/lang/fr.js | JavaScript | art | 142 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Abbreviation": "略語",
"Expansion:": "展開される語:",
"Delete": "削除"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/lang/ja.js | JavaScript | art | 141 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Abbreviation": "Beskrive forkortelse",
"Expansion:": "Betydning:",
"Delete": "Fjerne"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/lang/nb.js | JavaScript | art | 221 |
// I18N constants
// LANG: "en", ENCODING: UTF-8
// translated: Derick Leony <dleony@gmail.com>
{
"Abbreviation": "Abreviatura",
"Expansion:": "Explicación",
"Delete": "Suprimir"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/lang/es.js | JavaScript | art | 189 |
// I18N constants
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
// Last revision: 05 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Abbreviation": "Abreviação",
"Cancel": "Cancelar",
"Delete": "Apagar",
"Expansion:": "Expandir:",
"OK": "OK"
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/lang/pt_br.js | JavaScript | art | 613 |
// Abbreviation plugin for Xinha
// Implementation by Udo Schmal & Schaffrath NeueMedien
// Original Author - Udo Schmal
//
// (c) Udo Schmal & Schaffrath NeueMedien 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
function Abbreviation(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
// register the toolbar buttons provided by this plugin
cfg.registerButton({
id : "abbreviation",
tooltip : Xinha._lc("Abbreviation", "Abbreviation"),
image : editor.imgURL("ed_abbreviation.gif", "Abbreviation"),
textMode : false,
action : function(editor) {
self.show();
}
});
cfg.addToolbarElement("abbreviation", "inserthorizontalrule", 1);
}
Abbreviation._pluginInfo = {
name : "Abbreviation",
version : "1.0",
developer : "Udo Schmal",
developer_url : "",
sponsor : "L.N.Schaffrath NeueMedien",
sponsor_url : "http://www.schaffrath-neuemedien.de/",
c_owner : "Udo Schmal & Schaffrath-NeueMedien",
license : "htmlArea"
};
// Fills in the text field if the acronym is either known (i.e., in the [lang].js file)
// or if we're editing an existing abbreviation.
Abbreviation.prototype.fillText = function() {
var editor = this.editor;
var text = this.html.toUpperCase();
var abbr = Xinha.getPluginDir(this.constructor.name) + "/abbr/" + _editor_lang + ".js";
var abbrData = Xinha._geturlcontent(abbr);
if (abbrData) {
eval('abbrObj = ' + abbrData);
if (abbrObj != "") {
var dest = this.dialog.getElementById("title");
dest.value = this.title || "";
for (var i in abbrObj) {
same = (i.toUpperCase()==text);
if (same)
dest.value = abbrObj[i];
}
}
}
}
Abbreviation.prototype.onGenerateOnce = function(editor) {
this.editor.addEditorStylesheet(Xinha.getPluginDir('Abbreviation') + '/abbreviation.css');
this.methodsReady = true; //remove this?
var self = Abbreviation;
Xinha._getback(Xinha.getPluginDir('Abbreviation') + '/dialog.html', function(getback) { self.html = getback; self.dialogReady = true; });
};
Abbreviation.prototype.OnUpdateToolbar = function(editor) {
if (!(Abbreviation.dialogReady && Abbreviation.methodsReady))
{
this.editor._toolbarObjects.Abbreviation.state("enabled", false);
}
else this.onUpdateToolbar = null;
}
Abbreviation.prototype.prepareDialog = function(html) {
var self = this;
var editor = this.editor;
var dialog = this.dialog = new Xinha.Dialog(editor, Abbreviation.html, 'Xinha', {width: 260, height:140});
dialog.getElementById('ok').onclick = function() { self.apply(); };
dialog.getElementById('delete').onclick = function() { self.ondelete(); };
dialog.getElementById('cancel').onclick = function() { self.dialog.hide(); };
this.dialogReady = true;
}
Abbreviation.prototype.show = function(editor) {
var editor = this.editor;
this.html = editor.getSelectedHTML();
if (!this.dialog) this.prepareDialog();
var self = this;
var doc = editor._doc;
var sel = editor._getSelection();
var range = editor._createRange(sel);
var abbr = editor._activeElement(sel);
if(!(abbr != null && abbr.tagName.toLowerCase() == "abbr")) {
abbr = editor._getFirstAncestor(sel, 'abbr');
}
this.abbr = abbr;
if (abbr) this.title = abbr.title;
this.fillText();
this.dialog.getElementById("inputs").onsubmit = function() {
self.apply();
return false;
}
this.dialog.show();
this.dialog.getElementById("title").select();
}
Abbreviation.prototype.apply = function() {
var editor = this.editor;
var doc = editor._doc;
var abbr = this.abbr;
var html = this.html;
var param = this.dialog.hide();
if ( param ) {
var title = param["title"];
if (title == "" || title == null) {
if (abbr) {
var child = abbr.innerHTML;
abbr.parentNode.removeChild(abbr);
editor.insertHTML(child); // FIX: This doesn't work in Safari 3
}
return;
}
try {
if (!abbr) {
abbr = doc.createElement("abbr");
abbr.title = title;
abbr.innerHTML = html;
if (Xinha.is_ie) {
range.pasteHTML(abbr.outerHTML);
} else {
editor.insertNodeAtSelection(abbr);
}
} else {
abbr.title = title;
}
}
catch (e) { }
}
}
Abbreviation.prototype.ondelete = function() {
this.dialog.getElementById('title').value = "";
this.apply();
} | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/Abbreviation.js | JavaScript | art | 4,714 |
// I18N constants
// LANG: "de", ENCODING: UTF-8
// Author: Udo Schmal, <schmal@schaffrath-neuemedien.de>
//
// (c) Udo Schmal & Schaffrath NeueMedien 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Abs.": "Absatz",
"bspw.": "Beispielsweise",
"bzw.": "beziehungsweise",
"c/o": "care of / bei, zu Händen von",
"ca.": "circa",
"d.h.": "das heißt",
"d.J.": "des Jahres",
"Dr.": "Doktor",
"e.V.": "Eingetragener Verein",
"eG.": "Eingetragene Genossenschaft",
"ehem.": "ehemals",
"einschl.": "einschließlich",
"etc.": "et cetera / und so weiter",
"evtl.": "eventuell",
"ff.": "(fort) folgende",
"gem.": "gemäß",
"inkl.": "inklusive",
"max.": "maximal / maximum",
"min.": "mindestens / minimum / minimal",
"o.g.": "oben genannt",
"rd.": "rund",
"S.": "Seite",
"u.a.": "unter anderem",
"u.ä.": "und ähnlich",
"usw.": "und so weiter",
"vgl.": "vergleiche",
"z.B.": "zum Beispiel",
"z.T.": "zum Teil",
"z.Z.": "zur Zeit",
"zzgl.": "zuzüglich"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/abbr/de.js | JavaScript | art | 1,081 |
// I18N constants
// LANG: "en", ENCODING: UTF-8
// Author: Udo Schmal, <schmal@schaffrath-neuemedien.de>
//
// (c) Udo Schmal & Schaffrath NeueMedien 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"ANSI": "American National Standards Institute",
"ASA": "American Standards Association",
"ISO": "International Organisation for Standardization",
"mime": "Multipurpose Internet Mail Extensions",
"UTF": "Unicode Transformation Format",
"W3C": "World Wide Web Consortium"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/Abbreviation/abbr/en.js | JavaScript | art | 562 |
// Mask Language plugin for Xinha
// Implementation by Udo Schmal
//
// (c) Udo Schmal & Schaffrath NeueMedien 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
function LangMarks(editor, args) {
this.editor = editor;
var cfg = editor.config;
var self = this;
var options = {};
options[this._lc("— language —")] = '';
// Old configuration type
if(!cfg.LangMarks.languages)
{
Xinha.debugMsg('Warning: Old style LangMarks configuration detected, please update your LangMarks configuration.');
var newConfig = {
languages: [],
attributes: Xinha.Config.prototype.attributes
};
for (var i in cfg.LangMarks)
{
if (typeof i != 'string') continue;
newConfig.languages.push( { name: i, code: cfg.LangMarks[i] } );
}
cfg.LangMarks = newConfig;
}
for (var i = 0; i < cfg.LangMarks.languages.length; i++)
{
options[this._lc(cfg.LangMarks.languages[i].name)] = cfg.LangMarks.languages[i].code;
}
cfg.registerDropdown({
id : "langmarks",
tooltip : this._lc("language select"),
options : options,
action : function(editor) { self.onSelect(editor, this); },
refresh : function(editor) { self.updateValue(editor, this); }
});
cfg.addToolbarElement("langmarks", "inserthorizontalrule", 1);
}
LangMarks._pluginInfo = {
name : "LangMarks",
version : "1.0",
developer : "Udo Schmal",
developer_url : "",
sponsor : "L.N.Schaffrath NeueMedien",
sponsor_url : "http://www.schaffrath-neuemedien.de/",
c_owner : "Udo Schmal & Schaffrath NeueMedien",
license : "htmlArea"
};
Xinha.Config.prototype.LangMarks = {
'languages': [
{ name:"Greek", code: "el" } ,
{ name:"English", code: "en" },
{ name:"French", code: "fr" } ,
{ name:"Latin" , code: "la" }
],
'attributes': [
'lang',
'xml:lang'
]
};
LangMarks.prototype._lc = function(string) {
return Xinha._lc(string, 'LangMarks');
};
LangMarks.prototype.onGenerate = function() {
this.editor.addEditorStylesheet(Xinha.getPluginDir("LangMarks") + '/lang-marks.css');
};
LangMarks.prototype.onSelect = function(editor, obj, context, updatecontextclass) {
var tbobj = editor._toolbarObjects[obj.id];
var index = tbobj.element.selectedIndex;
var language = tbobj.element.value;
// retrieve parent element of the selection
var parent = editor.getParentElement();
var surround = true;
var is_span = (parent && parent.tagName.toLowerCase() == "span");
var update_parent = (context && updatecontextclass && parent && parent.tagName.toLowerCase() == context);
if (update_parent) {
parent.className = "haslang";
parent.lang = language;
for(var i = 0; i < this.editor.config.LangMarks.attributes.length; i++)
{
parent.setAttribute(this.editor.config.LangMarks.attributes[i], language);
}
editor.updateToolbar();
return;
}
if (is_span && index == 0 && !/\S/.test(parent.style.cssText)) {
while (parent.firstChild) {
parent.parentNode.insertBefore(parent.firstChild, parent);
}
parent.parentNode.removeChild(parent);
editor.updateToolbar();
return;
}
if (is_span) {
// maybe we could simply change the class of the parent node?
if (parent.childNodes.length == 1) {
parent.className = "haslang";
parent.lang = language;
for(var i = 0; i < this.editor.config.LangMarks.attributes.length; i++)
{
parent.setAttribute(this.editor.config.LangMarks.attributes[i], language);
}
surround = false;
// in this case we should handle the toolbar updation
// ourselves.
editor.updateToolbar();
}
}
// Other possibilities could be checked but require a lot of code. We
// can't afford to do that now.
if (surround) {
// shit happens ;-) most of the time. this method works, but
// it's dangerous when selection spans multiple block-level
// elements.
var html = '';
for(var i = 0; i < this.editor.config.LangMarks.attributes.length; i++)
{
html += ' ' +this.editor.config.LangMarks.attributes[i] + '="'+language+'"';
}
editor.surroundHTML('<span'+html+' class="haslang">', '</span>');
}
};
LangMarks.prototype.updateValue = function(editor, obj) {
var select = editor._toolbarObjects[obj.id].element;
var parents = editor.getAllAncestors();
var parent;
var lang;
for (var i=0;i<parents.length;i++)
{
for(var j = 0; j < editor.config.LangMarks.attributes.length; j++)
{
if(parents[i].getAttribute(this.editor.config.LangMarks.attributes[j]))
{
parent = parents[i];
lang = parents[i].getAttribute(this.editor.config.LangMarks.attributes[j]);
}
}
}
if (parent) {
var options = select.options;
var value = lang;
for (var i = options.length; --i >= 0;) {
var option = options[i];
if (value == option.value) {
select.selectedIndex = i;
return;
}
}
}
else select.selectedIndex = 0;
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/LangMarks/LangMarks.js | JavaScript | art | 5,199 |
span.haslang {
border-bottom: 1px dashed #aaa;
white-space : nowrap;
}
span[lang]::after {
content: attr(lang);
text-transform: uppercase;
font-family: sans-serif;
color: white;
background: red;
border: 1px solid red;
font-size: x-small;
font-weight: normal;
vertical-align: top;
}
/*
* NOTE: The "proper" way to do this is with a CSS namespace
* @namespace xml "http://www.w3.org/XML/1998/namespace";
* and putting xmlns:xml="http://www.w3.org/XML/1998/namespace"
* on the root <html> element or the <span> itself, then using
* span[xml|lang] as the selector, but this simply doesn't work
* in most browsers. Which sucks.
*/
span[xml\:lang]::after {
content: attr(xml\:lang);
text-transform: uppercase;
font-family: sans-serif;
color: white;
background: red;
border: 1px solid red;
font-size: x-small;
font-weight: normal;
vertical-align: top;
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/LangMarks/lang-marks.css | CSS | art | 892 |
// I18N constants
// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"language select": "Taalkeuze",
"— language —": "— taal —",
"Greek": "Grieks",
"English": "Engels",
"French": "Frans",
"Latin": "Latijns"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/LangMarks/lang/nl.js | JavaScript | art | 343 |
// I18N constants
// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"language select": "Sprachauswahl",
"— language —": "— Sprache —",
"Greek": "griechisch",
"English": "englisch",
"French": "französisch",
"Latin": "lateinisch"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/LangMarks/lang/de.js | JavaScript | art | 366 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"language select": "Sélection de la langue",
"— language —": "— Langue —",
"Greek": "grec",
"English": "anglais",
"French": "français",
"Latin": "latin"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/LangMarks/lang/fr.js | JavaScript | art | 256 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"language select": "言語の選択",
"— language —": "— 言語 —",
"Greek": "ギリシャ語",
"English": "英語",
"French": "フランス語",
"Latin": "ラテン語"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/LangMarks/lang/ja.js | JavaScript | art | 259 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"language select": "Språkvalg",
"— language —": "— Språk —",
"Greek": "grekisk",
"English": "engelsk",
"French": "fransk",
"Latin": "latin"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/LangMarks/lang/nb.js | JavaScript | art | 306 |
// I18N constants
// LANG: "es", ENCODING: UTF-8
// translated: Derick Leony <dleony@gmail.com>
{
"language select": "seleccionar idioma",
"— language —": "— idioma —",
"Greek": "Griego",
"English": "Inglés",
"French": "Francés",
"Latin": "Latín"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/LangMarks/lang/es.js | JavaScript | art | 300 |
// I18N constants
//
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
//
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
//
// Last revision: 06 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"language select": "Selecionar idioma",
"— language —": "— Idioma —",
"Greek": "Grego",
"English": "Inglês",
"French": "Francês",
"Latin": "Latim"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/LangMarks/lang/pt_br.js | JavaScript | art | 684 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Maarten Molenschot, maarten@nrgmm.nl
{
"Page break": "Pagina einde"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/InsertPagebreak/lang/nl.js | JavaScript | art | 137 |
// I18N constants
// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
// Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
{
"Page break": "Neue Seite"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/InsertPagebreak/lang/de.js | JavaScript | art | 193 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Page break": "Séparateur de page"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/InsertPagebreak/lang/fr.js | JavaScript | art | 91 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Page break": "改ページ"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/InsertPagebreak/lang/ja.js | JavaScript | art | 84 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Page break": "Sett inn sideskift"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/InsertPagebreak/lang/nb.js | JavaScript | art | 165 |
// I18N constants
//
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
//
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
//
// Last revision: 06 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Page break": "Quebra de página"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/InsertPagebreak/lang/pt_br.js | JavaScript | art | 535 |
// InsertPagebreak plugin for HTMLArea/Xinha
// Implementation by Udo Schmal & Schaffrath NeueMedien
// Original Author - Udo Schmal
//
// (c) Udo Schmal & Schaffrath NeueMedien 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
function InsertPagebreak(editor, args) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton({
id : "pagebreak",
tooltip : this._lc("Page break"),
image : editor.imgURL("pagebreak.gif", "InsertPagebreak"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
});
cfg.addToolbarElement("pagebreak", "inserthorizontalrule", 1);
}
InsertPagebreak._pluginInfo = {
name : "InsertPagebreak",
version : "1.0",
developer : "Udo Schmal",
developer_url : "",
sponsor : "L.N.Schaffrath NeueMedien",
sponsor_url : "http://www.schaffrath-neuemedien.de/",
c_owner : "Udo Schmal & Schaffrath NeueMedien",
license : "htmlArea"
};
InsertPagebreak.prototype._lc = function(string) {
return Xinha._lc(string, 'InsertPagebreak');
};
InsertPagebreak.prototype.buttonPress = function(editor, context, updatecontextclass) {
editor.insertHTML('<div style="font-size: 1px; page-break-after: always; height: 1px; background-color: rgb(192, 192, 192);" contenteditable="false" title="Page Break">');
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/InsertPagebreak/InsertPagebreak.js | JavaScript | art | 1,453 |
// FullPage Plugin for HTMLArea-3.0
// Implementation by Mihai Bazon. Sponsored by http://thycotic.com
//
// htmlArea v3.0 - Copyright (c) 2002 interactivetools.com, inc.
// This notice MUST stay intact for use (see license.txt).
//
// A free WYSIWYG editor replacement for <textarea> fields.
// For full source code and docs, visit http://www.interactivetools.com/
//
// Version 3.0 developed by Mihai Bazon for InteractiveTools.
// http://dynarch.com/mishoo
//
// $Id:full-page.js 856 2007-06-13 18:34:34Z wymsy $
function FullPage(editor) {
this.editor = editor;
var cfg = editor.config;
cfg.fullPage = true;
var self = this;
cfg.registerButton("FP-docprop", this._lc("Document properties"), editor.imgURL("docprop.gif", "FullPage"), false,
function(editor, id) {
self.buttonPress(editor, id);
});
// add a new line in the toolbar
cfg.addToolbarElement(["separator","FP-docprop"],"separator",-1);
}
FullPage._pluginInfo = {
name : "FullPage",
version : "1.0",
developer : "Mihai Bazon",
developer_url : "http://dynarch.com/mishoo/",
c_owner : "Mihai Bazon",
sponsor : "Thycotic Software Ltd.",
sponsor_url : "http://thycotic.com",
license : "htmlArea"
};
FullPage.prototype._lc = function(string) {
return Xinha._lc(string, 'FullPage');
};
FullPage.prototype.buttonPress = function(editor, id) {
var self = this;
switch (id) {
case "FP-docprop":
var doc = editor._doc;
var links = doc.getElementsByTagName("link");
var style1 = '';
var style2 = '';
var keywords = '';
var description = '';
var charset = '';
for (var i = links.length; --i >= 0;) {
var link = links[i];
if (/stylesheet/i.test(link.rel)) {
if (/alternate/i.test(link.rel))
style2 = link.href;
else
style1 = link.href;
}
}
var metas = doc.getElementsByTagName("meta");
for (var i = metas.length; --i >= 0;) {
var meta = metas[i];
if (/content-type/i.test(meta.httpEquiv)) {
r = /^text\/html; *charset=(.*)$/i.exec(meta.content);
charset = r[1];
} else if ((/keywords/i.test(meta.name)) || (/keywords/i.test(meta.id))) {
keywords = meta.content;
} else if ((/description/i.test(meta.name)) || (/description/i.test(meta.id))) {
description = meta.content;
}
}
var title = doc.getElementsByTagName("title")[0];
title = title ? title.innerHTML : '';
var init = {
f_doctype : editor.doctype,
f_title : title,
f_body_bgcolor : Xinha._colorToRgb(doc.body.style.backgroundColor),
f_body_fgcolor : Xinha._colorToRgb(doc.body.style.color),
f_base_style : style1,
f_alt_style : style2,
f_charset : charset,
f_keywords : keywords,
f_description : description,
editor : editor
};
editor._popupDialog("plugin://FullPage/docprop", function(params) {
self.setDocProp(params);
}, init);
break;
}
};
FullPage.prototype.setDocProp = function(params) {
var txt = "";
var doc = this.editor._doc;
var head = doc.getElementsByTagName("head")[0];
var links = doc.getElementsByTagName("link");
var metas = doc.getElementsByTagName("meta");
var style1 = null;
var style2 = null;
var charset = null;
var charset_meta = null;
var keywords = null;
var description = null;
for (var i = links.length; --i >= 0;) {
var link = links[i];
if (/stylesheet/i.test(link.rel)) {
if (/alternate/i.test(link.rel))
style2 = link;
else
style1 = link;
}
}
for (var i = metas.length; --i >= 0;) {
var meta = metas[i];
if (/content-type/i.test(meta.httpEquiv)) {
r = /^text\/html; *charset=(.*)$/i.exec(meta.content);
charset = r[1];
charset_meta = meta;
} else if ((/keywords/i.test(meta.name)) || (/keywords/i.test(meta.id))) {
keywords = meta;
} else if ((/description/i.test(meta.name)) || (/description/i.test(meta.id))) {
description = meta;
}
}
function createLink(alt) {
var link = doc.createElement("link");
link.rel = alt ? "alternate stylesheet" : "stylesheet";
head.appendChild(link);
return link;
}
function createMeta(httpEquiv, name, content) {
var meta = doc.createElement("meta");
if (httpEquiv!="") meta.httpEquiv = httpEquiv;
if (name!="") meta.name = name;
if (name!="") meta.id = name;
meta.content = content;
head.appendChild(meta);
return meta;
}
if (!style1 && params.f_base_style)
style1 = createLink(false);
if (params.f_base_style)
style1.href = params.f_base_style;
else if (style1)
head.removeChild(style1);
if (!style2 && params.f_alt_style)
style2 = createLink(true);
if (params.f_alt_style)
style2.href = params.f_alt_style;
else if (style2)
head.removeChild(style2);
if (charset_meta) {
head.removeChild(charset_meta);
charset_meta = null;
}
if (!charset_meta && params.f_charset)
charset_meta = createMeta("Content-Type","", "text/html; charset="+params.f_charset);
if (!keywords && params.f_keywords)
keywords = createMeta("","keywords", params.f_keywords);
else if (params.f_keywords)
keywords.content = params.f_keywords;
else if (keywords)
head.removeChild(keywords);
if (!description && params.f_description)
description = createMeta("","description", params.f_description);
else if (params.f_description)
description.content = params.f_description;
else if (description)
head.removeChild(description);
for (var i in params) {
var val = params[i];
switch (i) {
case "f_title":
var title = doc.getElementsByTagName("title")[0];
if (!title) {
title = doc.createElement("title");
head.appendChild(title);
} else while (node = title.lastChild)
title.removeChild(node);
if (!Xinha.is_ie)
title.appendChild(doc.createTextNode(val));
else
doc.title = val;
break;
case "f_doctype":
this.editor.setDoctype(val);
break;
case "f_body_bgcolor":
doc.body.style.backgroundColor = val;
break;
case "f_body_fgcolor":
doc.body.style.color = val;
break;
}
}
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/FullPage.js | JavaScript | art | 5,989 |
// I18N for the FullPage plugin
// LANG: "nl", ENCODING: UTF-8
{
"Alternate style-sheet:": "Wisselen van style-sheet:",
"Background color:": "Achtergrondkleur:",
"Cancel": "Annuleren",
"DOCTYPE:": "DOCTYPE:",
"Document properties": "Documenteigenschappen",
"Document title:": "Documenttitel:",
"OK": "OK",
"Primary style-sheet:": "Primaire style-sheet:",
"Text color:": "Tekstkleur:"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/lang/nl.js | JavaScript | art | 416 |
// I18N for the FullPage plugin
// LANG: "de", ENCODING: UTF-8
// Author: Holger Hees, http://www.systemconcept.de
{
"Alternate style-sheet:": "Alternativer Stylesheet:",
"Background color:": "Hintergrundfarbe:",
"Cancel": "Abbrechen",
"DOCTYPE:": "DOCTYPE:",
"Document properties": "Dokumenteigenschaften",
"Document title:": "Dokumenttitel:",
"OK": "OK",
"Primary style-sheet:": "Stylesheet:",
"Text color:": "Textfarbe:",
"Character set:": "Zeichensatz",
"Description:": "Beschreibung",
"Keywords:": "Schlüsselworte",
"UTF-8 (recommended)": "UTF-8 (empfohlen)"
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/lang/de.js | JavaScript | art | 593 |
// I18N for the FullPage plugin
// LANG: "pl", ENCODING: UTF-8
// translated: Krzysztof Kotowicz, koto1sa@o2.pl, http://www.eskot.krakow.pl/portfolio
{
"Alternate style-sheet:": "Alternatywny arkusz stylów:",
"Background color:": "Kolor tła:",
"Cancel": "Anuluj",
"DOCTYPE:": "DOCTYPE:",
"Document properties": "Właściwości dokumentu",
"Document title:": "Tytuł dokumentu:",
"OK": "OK",
"Primary style-sheet:": "Arkusz stylów:",
"Text color:": "Kolor tekstu:",
"Character set:": "Zestaw znaków",
"Description:": "Opis",
"Keywords:": "Słowa kluczowe",
"UTF-8 (recommended)": "UTF-8 (zalecany)"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/lang/pl.js | JavaScript | art | 631 |
// I18N for the FullPage plugin
// LANG: "fr", ENCODING: UTF-8
{
"Alternate style-sheet:": "Feuille CSS alternative",
"Background color:": "Couleur d'arrière plan",
"Cancel": "Annuler",
"DOCTYPE:": "DOCTYPE",
"Document properties": "Propriétés du document",
"Document title:": "Titre du document",
"OK": "OK",
"Primary style-sheet:": "Feuille CSS primaire",
"Text color:": "Couleur de texte",
"Character set:": "Jeu de caractères",
"Description:": "Description",
"Keywords:": "Mots clés",
"UTF-8 (recommended)": "UTF-8 (recommandé)"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/lang/fr.js | JavaScript | art | 567 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Alternate style-sheet:": "代替スタイルシート:",
"Background color:": "背景色:",
"Cancel": "中止",
"DOCTYPE:": "DOCTYPE:",
"Document properties": "文書のプロパティ",
"Document title:": "文書の表題:",
"OK": "OK",
"Primary style-sheet:": "優先スタイルシート:",
"Text color:": "文字色:",
"Character set:": "文字セット:",
"Description:": "説明:",
"Keywords:": "キーワード:",
"UTF-8 (recommended)": "UTF-8 (推奨)"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/lang/ja.js | JavaScript | art | 541 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
{
"Alternate style-sheet:": "Alternativt stilsett:",
"Background color:": "Bakgrunnsfarge:",
"Cancel": "Avbryt",
"DOCTYPE:": "DOCTYPE:",
"Keywords:": "Nøkkelord",
"Description:": "Beskrivelse",
"Character set:": "Tegnsett",
"Document properties": "Egenskaper for dokument",
"Document title:": "Tittel på dokument:",
"OK": "OK",
"Primary style-sheet:": "Stilsett:",
"Text color:": "Tekstfarge:"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/lang/nb.js | JavaScript | art | 546 |
// I18N for the FullPage plugin
// LANG: "en", ENCODING: UTF-8
// Author: Mihai Bazon, http://dynarch.com/mishoo
{
"Alternate style-sheet:": "Template CSS alternativ:",
"Background color:": "Culoare de fundal:",
"Cancel": "Renunţă",
"DOCTYPE:": "DOCTYPE:",
"Document properties": "Proprietăţile documentului",
"Document title:": "Titlul documentului:",
"OK": "Acceptă",
"Primary style-sheet:": "Template CSS principal:",
"Text color:": "Culoare text:"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/lang/ro.js | JavaScript | art | 478 |
// I18N for the FullPage plugin
// LANG: "he", ENCODING: UTF-8
// Author: Liron Newman, http://www.eesh.net, <plastish at ultinet dot org>
{
"Alternate style-sheet:": "גיליון סגנון אחר:",
"Background color:": "צבע רקע:",
"Cancel": "ביטול",
"DOCTYPE:": "DOCTYPE:",
"Document properties": "מאפייני מסמך",
"Document title:": "כותרת מסמך:",
"OK": "אישור",
"Primary style-sheet:": "גיליון סגנון ראשי:",
"Text color:": "צבע טקסט:"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/lang/he.js | JavaScript | art | 518 |
// I18N constants
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
// Last revision: 05 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Alternate style-sheet:": "Estilo alternativo:",
"Background color:": "Côr de Fundo:",
"Cancel": "Cancelar",
"Character set:": "Conjunto de Caracteres:",
"DOCTYPE:": "DOCTYPE:",
"Description:": "Descrição:",
"Document properties": "Propriedades do Documento",
"Document title:": "Título do Documento:",
"Keywords:": "Palavras chave:",
"OK": "OK",
"Primary style-sheet:": "Estilo Primário:",
"Test of FullPage plugin": "Teste do Plugin FullPage",
"Text color:": "Côr do Texto:",
"UTF-8 (recommended)": "UTF-8 (recomendado)",
"cyrillic (ISO-8859-5)": "Cirílico (ISO-8859-5)",
"cyrillic (KOI8-R)": "Cirílico (KOI8-R)",
"cyrillic (WINDOWS-1251)": "Círilico (WINDOWS-1251)",
"western (ISO-8859-1)": "Ocidental (ISO-8859-1)"
}
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/lang/pt_br.js | JavaScript | art | 1,255 |
<html>
<head>
<title>Document properties</title>
<script type="text/javascript" src="../../../popups/popup.js"></script>
<script type="text/javascript" src="../../../modules/ColorPicker/ColorPicker.js"></script>
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
<script type="text/javascript">
FullPage = window.opener.FullPage; // load the FullPage plugin and lang file ;-)
window.resizeTo(400, 130);
var accepted = {
f_doctype : true,
f_title : true,
f_body_bgcolor : true,
f_body_fgcolor : true,
f_base_style : true,
f_alt_style : true,
f_charset : true,
f_keywords : true,
f_description : true
};
var editor = null;
function Init() {
__dlg_translate('FullPage');
__dlg_init();
var params = window.dialogArguments;
for (var i in params) {
if (i in accepted) {
var el = document.getElementById(i);
el.value = params[i];
}
}
editor = params.editor;
var bgCol_pick = document.getElementById('bgCol_pick');
var f_body_bgcolor = document.getElementById('f_body_bgcolor');
var bgColPicker = new Xinha.colorPicker({cellsize:'5px',callback:function(color){f_body_bgcolor.value=color;}});
bgCol_pick.onclick = function() { bgColPicker.open('top,right', f_body_bgcolor ); }
var fgCol_pick = document.getElementById('fgCol_pick');
var f_body_fgcolor = document.getElementById('f_body_fgcolor');
var fgColPicker = new Xinha.colorPicker({cellsize:'5px',callback:function(color){f_body_fgcolor.value=color;}});
fgCol_pick.onclick = function() { fgColPicker.open('top,right', f_body_fgcolor ); }
document.getElementById("f_title").focus();
document.getElementById("f_title").select();
}
function onOK() {
var required = {
};
for (var i in required) {
var el = document.getElementById(i);
if (!el.value) {
alert(required[i]);
el.focus();
return false;
}
}
var param = {};
for (var i in accepted) {
var el = document.getElementById(i);
param[i] = el.value;
}
__dlg_close(param);
return false;
}
function onCancel() {
__dlg_close(null);
return false;
}
</script>
<style type="text/css">
.fr { width: 11em; float: left; padding: 2px 5px; text-align: right; }
.txt { width:200px; }
div { clear:both; }
.picker { width:30px; }
</style>
</head>
<body class="dialog" onload="Init()">
<div class="title">Document properties</div>
<div>
<label class="fr" for="f_title">Document title:</label>
<input type="text" id="f_title" class="txt" />
</div>
<div>
<label class="fr" for="f_doctype">DOCTYPE:</label>
<input type="text" id="f_doctype" class="txt" />
</div>
<div>
<label class="fr" for="f_keywords">Keywords:</label>
<input type="text" id="f_keywords" class="txt" />
</div>
<div>
<label class="fr" for="f_description">Description:</label>
<input type="text" id="f_description" class="txt" />
</div>
<div>
<label class="fr" for="f_charset">Character set:</label>
<select id="f_charset" class="txt">
<option value=""></option>
<option value="utf-8">UTF-8 (recommended)</option>
<option value="windows-1251">cyrillic (WINDOWS-1251)</option>
<option value="koi8-r">cyrillic (KOI8-R)</option>
<option value="iso-8859-5">cyrillic (ISO-8859-5)</option>
<option value="iso-8859-1">western (ISO-8859-1)</option>
</select>
</div>
<div>
<label class="fr" for="f_base_style">Primary style-sheet:</label>
<input type="text" id="f_base_style" class="txt" />
</div>
<div>
<label class="fr" for="f_alt_style">Alternate style-sheet:</label>
<input type="text" id="f_alt_style" class="txt" />
</div>
<div>
<label class="fr" for="f_body_bgcolor">Background color:</label>
<input name="f_body_bgcolor" type="text" id="f_body_bgcolor" size="7" />
<button type="button" id="bgCol_pick" class="picker">...</button>
</div>
<div>
<label class="fr" for="f_body_fgcolor">Text color:</label>
<input name="f_body_fgcolor" type="text" id="f_body_fgcolor" size="7" />
<button type="button" id="fgCol_pick" class="picker">...</button>
</div>
<div id="buttons">
<button type="button" name="ok" onclick="return onOK();"><span>OK</span></button>
<button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button>
</div>
</body>
</html> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FullPage/popups/docprop.html | HTML | art | 4,283 |
/**
Implemented now as GetHtmlImplementation plugin in modules/GetHtml/TransformInnerHTML.js
*/
function GetHtml(editor) {
editor.config.getHtmlMethod = "TransformInnerHTML";
}
GetHtml._pluginInfo = {
name : "GetHtml",
version : "1.0",
developer : "Nelson Bright",
developer_url : "http://www.brightworkweb.com/",
sponsor : "",
sponsor_url : "",
license : "htmlArea"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/GetHtml/GetHtml.js | JavaScript | art | 424 |
<?php
/**
* File Operations API
*
* This file contains the new backend File Operations API used for Xinha File
* Storage. It will serve as the documentation for others wishing to implement
* the backend in their own language, as well as the PHP implementation. The
* return data will come via the HTTP status in the case of an error, or JSON
* data when call has succeeded.
*
* Some examples of the URLS associated with this API:
* ** File Operations **
* ?file&rename&filename=''&newname=''
* ?file©&filename=''
* ?file&delete&filename=''
*
* ** Directory Operations **
* ?directory&listing
* ?directory&create&dirname=''
* ?directory&delete&dirname=''
* ?directory&rename&dirname=''&newname=''
*
* ** Image Operations **
* ?image&filename=''&[scale|rotate|convert]
*
* ** Upload **
* ?upload&filedata=[binary|text]&filename=''&replace=[true|false]
*
* @author Douglas Mayle <douglas@openplans.org>
* @version 1.0
* @package PersistentStorage
*
*/
/**
* Config file
*/
require_once('config.inc.php');
// Strip slashes if MQGPC is on
set_magic_quotes_runtime(0);
if(get_magic_quotes_gpc())
{
$to_clean = array(&$_GET, &$_POST, &$_REQUEST, &$_COOKIE);
while(count($to_clean))
{
$cleaning =& $to_clean[array_pop($junk = array_keys($to_clean))];
unset($to_clean[array_pop($junk = array_keys($to_clean))]);
foreach(array_keys($cleaning) as $k)
{
if(is_array($cleaning[$k]))
{
$to_clean[] =& $cleaning[$k];
}
else
{
$cleaning[$k] = stripslashes($cleaning[$k]);
}
}
}
}
// Set the return headers for a JSON response.
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
//header('Content-type: application/json');
/**#@+
* Constants
*
* Since this is being used as part of a web interface, we'll set some rather
* conservative limits to keep from overloading the user or the backend.
*/
/**
* This is the maximum folder depth to present to the user
*/
define('MAX_DEPTH', 10);
/**
* This is the maximum number of file entries per folder to show to the user,
*/
define('MAX_FILES_PER_FOLDER', 50);
/**
* This array contains the default HTTP Response messages
*
*/
$HTTP_ERRORS = array(
'HTTP_SUCCESS_OK' => array('code' => 200, 'message' => 'OK'),
'HTTP_SUCCESS_CREATED' => array('code' => 201, 'message' => 'Created'),
'HTTP_SUCCESS_ACCEPTED' => array('code' => 202, 'message' => 'Accepted'),
'HTTP_SUCCESS_NON_AUTHORITATIVE' => array('code' => 203, 'message' => 'Non-Authoritative Information'),
'HTTP_SUCCESS_NO_CONTENT' => array('code' => 204, 'message' => 'No Content'),
'HTTP_SUCCESS_RESET_CONTENT' => array('code' => 205, 'message' => 'Reset Content'),
'HTTP_SUCCESS_PARTIAL_CONTENT' => array('code' => 206, 'message' => 'Partial Content'),
'HTTP_REDIRECTION_MULTIPLE_CHOICES' => array('code' => 300, 'message' => 'Multiple Choices'),
'HTTP_REDIRECTION_PERMANENT' => array('code' => 301, 'message' => 'Moved Permanently'),
'HTTP_REDIRECTION_FOUND' => array('code' => 302, 'message' => 'Found'),
'HTTP_REDIRECTION_SEE_OTHER' => array('code' => 303, 'message' => 'See Other'),
'HTTP_REDIRECTION_NOT_MODIFIED' => array('code' => 304, 'message' => 'Not Modified'),
'HTTP_REDIRECTION_USE_PROXY' => array('code' => 305, 'message' => 'Use Proxy'),
'HTTP_REDIRECTION_UNUSED' => array('code' => 306, 'message' => '(Unused)'),
'HTTP_REDIRECTION_TEMPORARY' => array('code' => 307, 'message' => 'Temporary Redirect'),
'HTTP_CLIENT_BAD_REQUEST' => array('code' => 400, 'message' => 'Bad Request'),
'HTTP_CLIENT_UNAUTHORIZED' => array('code' => 401, 'message' => 'Unauthorized'),
'HTTP_CLIENT_PAYMENT_REQUIRED' => array('code' => 402, 'message' => 'Payment Required'),
'HTTP_CLIENT_FORBIDDEN' => array('code' => 403, 'message' => 'Forbidden'),
'HTTP_CLIENT_NOT_FOUND' => array('code' => 404, 'message' => 'Not Found'),
'HTTP_CLIENT_METHOD_NOT_ALLOWED' => array('code' => 405, 'message' => 'Method Not Allowed'),
'HTTP_CLIENT_NOT_ACCEPTABLE' => array('code' => 406, 'message' => 'Not Acceptable'),
'HTTP_CLIENT_PROXY_AUTH_REQUIRED' => array('code' => 407, 'message' => 'Proxy Authentication Required'),
'HTTP_CLIENT_REQUEST_TIMEOUT' => array('code' => 408, 'message' => 'Request Timeout'),
'HTTP_CLIENT_CONFLICT' => array('code' => 409, 'message' => 'Conflict'),
'HTTP_CLIENT_GONE' => array('code' => 410, 'message' => 'Gone'),
'HTTP_CLIENT_LENGTH_REQUIRED' => array('code' => 411, 'message' => 'Length Required'),
'HTTP_CLIENT_PRECONDITION_FAILED' => array('code' => 412, 'message' => 'Precondition Failed'),
'HTTP_CLIENT_REQUEST_TOO_LARGE' => array('code' => 413, 'message' => 'Request Entity Too Large'),
'HTTP_CLIENT_REQUEST_URI_TOO_LARGE' => array('code' => 414, 'message' => 'Request-URI Too Long'),
'HTTP_CLIENT_UNSUPPORTED_MEDIA_TYPE' => array('code' => 415, 'message' => 'Unsupported Media Type'),
'HTTP_CLIENT_REQUESTED_RANGE_NOT_POSSIBLE' => array('code' => 416, 'message' => 'Requested Range Not Satisfiable'),
'HTTP_CLIENT_EXPECTATION_FAILED' => array('code' => 417, 'message' => 'Expectation Failed'),
'HTTP_SERVER_INTERNAL' => array('code' => 500, 'message' => 'Internal Server Error'),
'HTTP_SERVER_NOT_IMPLEMENTED' => array('code' => 501, 'message' => 'Not Implemented'),
'HTTP_SERVER_BAD_GATEWAY' => array('code' => 502, 'message' => 'Bad Gateway'),
'HTTP_SERVER_SERVICE_UNAVAILABLE' => array('code' => 503, 'message' => 'Service Unavailable'),
'HTTP_SERVER_GATEWAY_TIMEOUT' => array('code' => 504, 'message' => 'Gateway Timeout'),
'HTTP_SERVER_UNSUPPORTED_VERSION' => array('code' => 505, 'message' => 'HTTP Version not supported')
);
/**
* This is a regular expression used to detect reserved or dangerous filenames.
* Most NTFS special filenames begin with a dollar sign ('$'), and most Unix
* special filenames begin with a period (.), so we'll keep them out of this
* list and just prevent those two characters in the first position. The rest
* of the special filenames are included below.
*/
define('RESERVED_FILE_NAMES', 'pagefile\.sys|a\.out|core');
/**
* This is a regular expression used to detect invalid file names. It's more
* strict than necessary, to be valid multi-platform, but not posix-strict
* because we want to allow unicode filenames. We do, however, allow path
* seperators in the filename because the file could exist in a subdirectory.
*/
define('INVALID_FILE_NAME','^[.$]|^(' . RESERVED_FILE_NAMES . ')$|[?%*:|"<>]');
/**#@-*/
function main($arguments) {
$config = get_config(true);
// Trigger authentication if it's configured.
if ($config['capabilities']['user_storage'] && empty($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="Xinha Persistent Storage"');
header('HTTP/1.0 401 Unauthorized');
echo "You must login in order to use Persistent Storage";
exit;
}
if (!input_valid($arguments, $config['capabilities'])) {
http_error_exit();
}
if (!method_valid($arguments)) {
http_error_exit('HTTP_CLIENT_METHOD_NOT_ALLOWED');
}
if (!dispatch($arguments)) {
http_error_exit();
}
exit();
}
main($_REQUEST + $_FILES);
// ************************************************************
// ************************************************************
// Helper Functions
// ************************************************************
// ************************************************************
/**
* Take the call and properly dispatch it to the methods below. This method
* assumes valid input.
*/
function dispatch($arguments) {
if (array_key_exists('file', $arguments)) {
if (array_key_exists('rename', $arguments)) {
if (!file_directory_rename($arguments['filename'], $arguments['newname'], working_directory())) {
http_error_exit('HTTP_CLIENT_FORBIDDEN');
}
return true;
}
if (array_key_exists('copy', $arguments)) {
if (!$newentry = file_copy($arguments['filename'], working_directory())) {
http_error_exit('HTTP_CLIENT_FORBIDDEN');
}
echo json_encode($newentry);
return true;
}
if (array_key_exists('delete', $arguments)) {
if (!file_delete($arguments['filename'], working_directory())) {
http_error_exit('HTTP_CLIENT_FORBIDDEN');
}
return true;
}
}
if (array_key_exists('directory', $arguments)) {
if (array_key_exists('listing', $arguments)) {
echo json_encode(directory_listing());
return true;
}
if (array_key_exists('create', $arguments)) {
if (!directory_create($arguments['dirname'], working_directory())) {
http_error_exit('HTTP_CLIENT_FORBIDDEN');
}
return true;
}
if (array_key_exists('delete', $arguments)) {
if (!directory_delete($arguments['dirname'], working_directory())) {
http_error_exit('HTTP_CLIENT_FORBIDDEN');
}
return true;
}
if (array_key_exists('rename', $arguments)) {
if (!file_directory_rename($arguments['dirname'], $arguments['newname'], working_directory())) {
http_error_exit('HTTP_CLIENT_FORBIDDEN');
}
return true;
}
}
if (array_key_exists('image', $arguments)) {
}
if (array_key_exists('upload', $arguments)) {
store_uploaded_file($arguments['filename'], $arguments['filedata'], working_directory());
return true;
}
return false;
}
/**
* Validation of the HTTP Method. For operations that make changes we require
* POST. To err on the side of safety, we'll only allow GET for known safe
* operations. This way, if the API is extended, and the method is not
* updated, we will not accidentally expose non-idempotent methods to GET.
* This method can only correctly validate the operation if the input is
* already known to be valid.
*
* @param array $arguments The arguments array received by the page.
* @return boolean Whether or not the HTTP method is correct for the given input.
*/
function method_valid($arguments) {
// We assume that the only
$method = $_SERVER['REQUEST_METHOD'];
if ($method == 'GET') {
if (array_key_exists('directory', $arguments) && array_key_exists('listing', $arguments)) {
return true;
}
return false;
}
if ($method == 'POST') {
return true;
}
return false;
}
/**
* Validation of the user input. We'll verify what we receive from the user,
* and send an error in the case of malformed input.
*
* Some examples of the URLS associated with this API:
* ** File Operations **
* ?file&delete&filename=''
* ?file©&filename=''
* ?file&rename&filename=''&newname=''
*
* ** Directory Operations **
* ?directory&listing
* ?directory&create&dirname=''
* ?directory&delete&dirname=''
* ?directory&rename&dirname=''&newname=''
*
* ** Image Operations **
* ?image&filename=''&[scale|rotate|convert]
*
* ** Upload **
* ?upload&filedata=[binary|text]&filename=''&replace=[true|false]
*
* @param array $arguments The arguments array received by the page.
* @param array $capabilities The capabilities config array used to limit operations.
* @return boolean Whether or not the input received is valid.
*/
function input_valid($arguments, $capabilities) {
// This is going to be really ugly code because it's basically a DFA for
// parsing arguments. To make things a little clearer, I'll put a
// pseudo-BNF for each block to show the decision structure.
//
// file[empty] filename[valid] (delete[empty] | copy[empty] | (rename[empty] newname[valid]))
if ($capabilities['file_operations'] &&
array_key_exists('file', $arguments) &&
empty($arguments['file']) &&
array_key_exists('filename', $arguments) &&
!ereg(INVALID_FILE_NAME, $arguments['filename'])) {
if (array_key_exists('delete', $arguments) &&
empty($arguments['delete']) &&
3 == count($arguments)) {
return true;
}
if (array_key_exists('copy', $arguments) &&
empty($arguments['copy']) &&
3 == count($arguments)) {
return true;
}
if (array_key_exists('rename', $arguments) &&
empty($arguments['rename']) &&
4 == count($arguments)) {
if (array_key_exists('newname', $arguments) &&
!ereg(INVALID_FILE_NAME, $arguments['newname'])) {
return true;
}
}
return false;
} elseif (array_key_exists('file', $arguments)) {
// This isn't necessary because we'll fall through to false, but I'd
// rather return earlier than later.
return false;
}
// directory[empty] (listing[empty] | (dirname[valid] (create[empty] | delete[empty] | (rename[empty] newname[valid]))))
if ($capabilities['directory_operations'] &&
array_key_exists('directory', $arguments) &&
empty($arguments['directory'])) {
if (array_key_exists('listing', $arguments) &&
empty($arguments['listing']) &&
2 == count($arguments)) {
return true;
}
if (array_key_exists('dirname', $arguments) &&
!ereg(INVALID_FILE_NAME, $arguments['dirname'])) {
if (array_key_exists('create', $arguments) &&
empty($arguments['create']) &&
3 == count($arguments)) {
return true;
}
if (array_key_exists('delete', $arguments) &&
empty($arguments['delete']) &&
3 == count($arguments)) {
return true;
}
if (array_key_exists('rename', $arguments) &&
empty($arguments['rename']) &&
4 == count($arguments)) {
if (array_key_exists('newname', $arguments) &&
!ereg(INVALID_FILE_NAME, $arguments['newname'])) {
return true;
}
}
}
return false;
} elseif (array_key_exists('directory', $arguments)) {
// This isn't necessary because we'll fall through to false, but I'd
// rather return earlier than later.
return false;
}
// image[empty] filename[valid] ((scale[empty] dimensions[valid]) | (rotate[empty] angle[valid]) | (convert[empty] imagetype[valid]))
if ($capabilities['image_operations'] &&
array_key_exists('image', $arguments) &&
empty($arguments['image']) &&
array_key_exists('filename', $arguments) &&
!ereg(INVALID_FILE_NAME, $arguments['filename']) &&
4 == count($arguments)) {
if (array_key_exists('scale', $arguments) &&
empty($arguments['scale']) &&
!ereg(INVALID_FILE_NAME, $arguments['dimensions'])) {
// TODO: FIX REGEX
http_error_exit();
return true;
}
if (array_key_exists('rotate', $arguments) &&
empty($arguments['rotate']) &&
!ereg(INVALID_FILE_NAME, $arguments['angle'])) {
// TODO: FIX REGEX
http_error_exit();
return true;
}
if (array_key_exists('convert', $arguments) &&
empty($arguments['convert']) &&
!ereg(INVALID_FILE_NAME, $arguments['imagetype'])) {
// TODO: FIX REGEX
http_error_exit();
return true;
}
return false;
} elseif (array_key_exists('image', $arguments)) {
// This isn't necessary because we'll fall through to false, but I'd
// rather return earlier than later.
return false;
}
// upload[empty] filedata[binary|text] replace[true|false] filename[valid]?
if ($capabilities['upload_operations'] &&
array_key_exists('upload', $arguments) &&
empty($arguments['upload']) &&
array_key_exists('filedata', $arguments) &&
!empty($arguments['filedata']) &&
array_key_exists('replace', $arguments) &&
ereg('true|false', $arguments['replace'])) {
if (4 == count($arguments) &&
array_key_exists('filename', $arguments) &&
!ereg(INVALID_FILE_NAME, $arguments['filename'])) {
return true;
}
if (3 == count($arguments)) {
return true;
}
return false;
} elseif (array_key_exists('upload', $arguments)) {
// This isn't necessary because we'll fall through to false, but I'd
// rather return earlier than later.
return false;
}
return false;
}
/**
* HTTP level error handling.
* @param integer $code The HTTP error code to return to the client. This defaults to 400.
* @param string $message Error message to send to the client. This defaults to the standard HTTP error messages.
*/
function http_error_exit($error = 'HTTP_CLIENT_BAD_REQUEST', $message='') {
global $HTTP_ERRORS;
$message = !empty($message) ? $message : "HTTP/1.0 {$HTTP_ERRORS[$error]['code']} {$HTTP_ERRORS[$error]['message']}";
header($message);
exit($message);
}
/**
* Process the config and return the absolute directory we should be working with,
* @return string contains the path of the directory all file operations are limited to.
*/
function working_directory() {
$config = get_config(true);
return realpath(getcwd() . DIRECTORY_SEPARATOR . $config['storage_dir'] . DIRECTORY_SEPARATOR);
}
/**
* Check to see if the supplied filename is inside
*/
function directory_contains($container_directory, $checkfile) {
// Get the canonical directory and canonical filename. We add a directory
// seperator to prevent the user from sidestepping into a sibling directory
// that starts with the same prefix. (e.g. from /home/john to
// /home/johnson)
$container_directory = realpath($container_directory) + DIRECTORY_SEPARATOR;
$checkfile = realpath($checkfile);
// Now that we have the canonical versions, we can do a string comparison
// to see if checkfile is inside of container_directory.
if (strlen($checkfile) <= strlen($container_directory)) {
// We don't consider the directory to be inside of itself. This
// prevents users from trying to perform operations on the container
// directory itself.
return false;
}
// PHP equivalent of string.startswith()
return substr($checkfile, 0, strlen($container_directory)) == $container_directory;
}
/**#@+
* Directory Operations
* {@internal *****************************************************************
* **************************************************************************}}
*/
/**
* Return a directory listing as a PHP array.
* @param string $directory The directory to return a listing of.
* @param integer $depth The private argument used to limit recursion depth.
* @return array representing the directory structure.
*/
function directory_listing($directory='', $depth=1) {
// We return an empty array if the directory is empty
$result = array('$type'=>'folder');
// We won't recurse below MAX_DEPTH.
if ($depth > MAX_DEPTH) {
return $result;
}
$path = empty($directory) ? working_directory() : $directory;
// We'll open the directory to check each of the entries
if ($dir = opendir($path)) {
// We'll keep track of how many file we process.
$count = 0;
// For each entry in the file
while (($file = readdir($dir)) !== false) {
// Limit the number of files we process in this folder
$count += 1;
if ($count > MAX_FILES_PER_FOLDER) {
return $result;
}
// Ignore hidden files (this includes special files '.' and '..')
if (strlen($file) && ($file[0] == '.')) {
continue;
}
$filepath = $path . DIRECTORY_SEPARATOR . $file;
if (filetype($filepath) == 'dir') {
// We'll recurse and add those results
$result[$file] = directory_listing($filepath, $depth + 1);
} else {
// We'll check to see if we can read any image information from
// the file. If so, we know it's an image, and we can return
// it's metadata.
$imageinfo = @getimagesize($filepath);
if ($imageinfo) {
$result[$file] = array('$type'=>'image','metadata'=>array(
'width'=>$imageinfo[0],
'height'=>$imageinfo[1],
'mimetype'=>$imageinfo['mime']
));
} elseif ($extension = strrpos($file, '.')) {
$extension = substr($file, $extension);
if (($extension == '.htm') || ($extension == '.html')) {
$result[$file] = array('$type'=>'html');
} else {
$result[$file] = array('$type'=>'text');
}
} else {
$result[$file] = array('$type'=>'document');
}
}
}
closedir($dir);
}
return $result;
}
/**
* Create a directory, limiting operations to the chroot directory.
* @param string $dirname The path to the directory, relative to $chroot.
* @param string $chroot Only directories inside this directory or its subdirectories can be affected.
* @return boolean Returns TRUE if successful, and FALSE otherwise.
*/
function directory_create($dirname, $chroot) {
// If chroot is empty, then we will not perform the operation.
if (empty($chroot)) {
return false;
}
// We have to take the dirname of the parent directory first, since
// realpath just returns false if the directory doesn't already exist on
// the filesystem.
$createparent = realpath(dirname($chroot . DIRECTORY_SEPARATOR . $dirname));
$createsub = basename($chroot . DIRECTORY_SEPARATOR . $dirname);
// The bailout rules for directories that don't exist are complicated
// because of having to work around realpath. If the parent directory is
// the same as the chroot, it won't be contained. For this case, we'll
// check to see if the chroot and the parent are the same and allow it only
// if the sub portion of dirname is not-empty.
if (!directory_contains($chroot, $createparent) &&
!(($chroot == $createparent) && !empty($createsub))) {
return false;
}
return @mkdir($createparent . DIRECTORY_SEPARATOR . $createsub);
}
/**
* Delete a directory, limiting operations to the chroot directory.
* @param string $dirname The path to the directory, relative to $chroot.
* @param string $chroot Only directories inside this directory or its subdirectories can be affected.
* @return boolean Returns TRUE if successful, and FALSE otherwise.
*/
function directory_delete($dirname, $chroot) {
// If chroot is empty, then we will not perform the operation.
if (empty($chroot)) {
return false;
}
// $dirname is relative to $chroot.
$dirname = realpath($chroot . DIRECTORY_SEPARATOR . $dirname);
// Limit directory operations to the supplied directory.
if (!directory_contains($chroot, $dirname)) {
return false;
}
return @rmdir($dirname);
}
/**#@-*/
/**#@+
* File Operations
* {@internal *****************************************************************
* **************************************************************************}}
*/
/**
* Rename a file or directory, limiting operations to the chroot directory.
* @param string $filename The path to the file or directory, relative to $chroot.
* @param string $renameto The path to the renamed file or directory, relative to $chroot.
* @param string $chroot Only files and directories inside this directory or its subdirectories can be affected.
* @return boolean Returns TRUE if successful, and FALSE otherwise.
*/
function file_directory_rename($filename, $renameto, $chroot) {
// If chroot is empty, then we will not perform the operation.
if (empty($chroot)) {
return false;
}
// $filename is relative to $chroot.
$filename = realpath($chroot . DIRECTORY_SEPARATOR . $filename);
// We have to take the dirname of the renamed file or directory first,
// since realpath just returns false if the file or direcotry doesn't
// already exist on the filesystem.
$renameparent = realpath(dirname($chroot . DIRECTORY_SEPARATOR . $renameto));
$renamefile = basename($chroot . DIRECTORY_SEPARATOR . $renameto);
// Limit file operations to the supplied directory.
if (!directory_contains($chroot, $filename)) {
return false;
}
// The bailout rules for the renamed file or directory are more complicated
// because of having to work around realpath. If the renamed parent
// directory is the same as the chroot, it won't be contained. For this
// case, we'll check to see if they're the same and allow it only if the
// file portion of renameto is not-empty.
if (!directory_contains($chroot, $renameparent) &&
!(($chroot == $renameparent) && !empty($renamefile))) {
return false;
}
return @rename($filename, $renameparent . DIRECTORY_SEPARATOR . $renamefile);
}
/**
* Copy a file, limiting operations to the chroot directory.
* @param string $filename The path to the file, relative to $chroot.
* @param string $chroot Only files inside this directory or its subdirectories can be affected.
* @return boolean Returns TRUE if successful, and FALSE otherwise.
*/
function file_copy($filename, $chroot) {
// If chroot is empty, then we will not perform the operation.
if (empty($chroot)) {
return false;
}
// $filename is relative to $chroot.
$filename = realpath($chroot . DIRECTORY_SEPARATOR . $filename);
// Limit file operations to the supplied directory.
if (!directory_contains($chroot, $filename)) {
return false;
}
// The PHP copy function blindly copies over existing files. We don't wish
// this to happen, so we have to perform the copy a bit differently. If we
// do a check to make sure the file exists, there's always the chance of a
// race condition where someone else creates the file in between the check
// and the copy. The only safe way to ensure we don't overwrite an
// existing file is to call fopen in create-only mode (mode 'x'). If it
// succeeds, the file did not exist before, and we've successfully created
// it, meaning we own the file. After that, we can safely copy over our
// own file.
for ($count=1; $count<MAX_FILES_PER_FOLDER; ++$count) {
if (strpos(basename($filename), '.')) {
$extpos = strrpos($filename, '.');
$copyname = substr($filename, 0, $extpos) . '_' . $count . substr($filename, $extpos);
} else {
// There's no extension, we we'll just add our copy count.
$copyname = $filename . '_' . $count;
}
if ($file = @fopen($copyname, 'x')) {
// We've successfully created a file, so it's ours. We'll close
// our handle.
if (!@fclose($file)) {
// There was some problem with our file handle.
return false;
}
// Now we copy over the file we created.
if (!@copy($filename, $copyname)) {
// The copy failed, even though we own the file, so we'll clean
// up by removing the file and report failure.
file_delete($filename, $chroot);
return false;
}
return array(basename($copyname)=>array('$type'=>'image'));
}
}
return false;
}
/**
* Delete a file, limiting operations to the chroot directory.
* @param string $filename The path to the file, relative to $chroot.
* @param string $chroot Only files inside this directory or its subdirectories can be affected.
* @return boolean Returns TRUE if successful, and FALSE otherwise.
*/
function file_delete($filename, $chroot) {
// If chroot is empty, then we will not perform the operation.
if (empty($chroot)) {
return false;
}
// $filename is relative to $chroot.
$filename = realpath($chroot . DIRECTORY_SEPARATOR . $filename);
// Limit file operations to the supplied directory.
if (!directory_contains($chroot, $filename)) {
return false;
}
return @unlink($filename);
}
/**#@-*/
/**#@+
* Upload Operations
* {@internal *****************************************************************
* **************************************************************************}}
*/
function store_uploaded_file($filename, $filedata, $chroot) {
// If chroot is empty, then we will not perform the operation.
if (empty($chroot)) {
return false;
}
// If the filename is empty, it was possibly supplied as part of the
// upload.
$filename = empty($filename) ? $filedata['name'] : $filename;
// We have to take the dirname of the parent directory first, since
// realpath just returns false if the directory doesn't already exist on
// the filesystem.
$uploadparent = realpath(dirname($chroot . DIRECTORY_SEPARATOR . $filename));
$uploadfile = basename($chroot . DIRECTORY_SEPARATOR . $filename);
// The bailout rules for directories that don't exist are complicated
// because of having to work around realpath. If the parent directory is
// the same as the chroot, it won't be contained. For this case, we'll
// check to see if the chroot and the parent are the same and allow it only
// if the sub portion of dirname is not-empty.
if (!directory_contains($chroot, $uploadparent) &&
!(($chroot == $uploadparent) && !empty($uploadfile))) {
return false;
}
$target_path = $uploadparent . DIRECTORY_SEPARATOR . $uploadfile;
if (is_array($filedata)) {
// We've received the file as an upload, so it's been saved to a temp
// directory. We'll move it to where it belongs.
if(move_uploaded_file($filedata['tmp_name'], $target_path)) {
return true;
}
} elseif ($file = @fopen($target_path, 'w')) {
// We've received the file as data. We'll create/open the file and
// save the data.
@fwrite($file, $filedata);
@fclose($file);
return true;
}
return false;
}
/**#@-*/
?>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PSServer/backend.php | PHP | art | 31,128 |
<?php
/**
* PersistentStorage Server backend configuration file.
* @author Douglas Mayle <douglas@openplans.org>
* @version 1.0
* @package PersistentStorage
*/
/**
* If this file is being requested over the web, we display a JSON version of
* the publicly viewable config info.
*/
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) {
echo json_encode(get_config());
}
/**
* Gets the configuration information used by this package.
* {@source }
* @param boolean $getprivates Return private configuration info merged with the public.
* @returns array The configuration information for this package.
*/
function get_config($getprivates=False) {
// We set up two different settings array, so that we can have settings
// that won't be shown to the public.
$Private = array();
$Public = array();
/**
* For demo purposes, we can lie to the frontend and pretend to have user
* storage. Since we don't have a password mechanism, this simulation will
* accept any password.
*/
$Private['simulate_user_auth'] = false;
/**
* The capabilities array contains directives about what major options to
* allow or disallow.
*/
$Public['capabilities'] = array(
// Allow directory operations (e.g. rename, create, delete directories)
'directory_operations' => true,
// Allow file operations (e.g. copy, rename, delete files)
'file_operations' => true,
// Allow image operations (e.g. scale, rotate, convert images)
'image_operations' => true,
// Allow file uploads
'upload_operations' => true,
// Stored files have a published URL
'shared_publish' => true,
// By default, if the user is authenticated, we enable user storage.
// Set to false to disable.
'user_storage' => !empty($_SERVER['PHP_AUTH_USER']) || $Private['simulate_user_auth']
);
/**
* Directory exposed to user operations. Be sure that the web server has
* read and write access to this directory.
*/
$Private['storage_dir'] = 'demo_images';
/**
* The URL that the storage directory is exposed as. By default, we try
* and guess based on the URL used to access this page. Also, since we
* allow user upload, this directory should not be executable by the
* server. A sample .htaccess file is included in demo_images.
*/
$Private['storage_url'] = str_replace( array("backend.php","manager.php"),
"", $_SERVER["PHP_SELF"] ) . $Private['storage_dir'];
/*
Possible values: true, false
TRUE - If PHP on the web server is in safe mode, set this to true.
SAFE MODE restrictions: directory creation will not be possible,
only the GD library can be used, other libraries require
Safe Mode to be off.
FALSE - Set to false if PHP on the web server is not in safe mode.
*/
$Private['safe_mode'] = ini_get('safe_mode');
/**
* If PHP Safe Mode is on than only the GD image library will function, so
* we force the default
*/
if ($Private['safe_mode']) {
@define('IMAGE_CLASS', 'GD');
} else {
/*
Possible values: 'GD', 'IM', or 'NetPBM'
The image manipulation library to use, either GD or ImageMagick or NetPBM.
*/
@define('IMAGE_CLASS', 'GD');
/*
After defining which library to use, if it is NetPBM or IM, you need to
specify where the binary for the selected library are. And of course
your server and PHP must be able to execute them (i.e. safe mode is OFF).
GD does not require the following definition.
*/
@define('IMAGE_TRANSFORM_LIB_PATH', '/usr/bin/');
}
/*
The prefix for thumbnail files, something like .thumb will do. The
thumbnails files will be named as "prefix_imagefile.ext", that is,
prefix + orginal filename.
*/
$Private['thumbnail_prefix'] = 't_';
/**
* The thumbnail array groups all of the configuration related to thumbnail
* operations.
*/
$Private['thumbnails'] = array(
// The prefix to apply to all created thumbnails.
'prefix' => 't_',
// A subdirectory to keep thumbnails in. If this is empty, thumbnails
// will be stored alongside the files.
'directory' => '',
// Whether or not to filter thumbnails from the directory listing.
'filter' => true,
// Filetypes which we restrict thumbnail operations to.
'filetypes' => array("jpg", "gif", "png", "bmp"),
// What pixel sizes to save the thumbnails as.
'width' => 84,
'height' => 84
);
/**
* Resized prefix
*
* The prefix for resized files, something like .resized will do. The
* resized files will be named <prefix>_<width>x<height>_<original>
* resized files are created when one changes the dimensions of an image
* in the image manager selection dialog - the image is scaled when the
* user clicks the ok button.
*/
$Private['resized_prefix'] = '.resized';
// -------------------------------------------------------------------------
/**
* Resized Directory
*
* Resized images may also be stored in a directory, except in safe mode.
*/
$Private['resized_dir'] = '';
/* Maximum upload file size
Possible values: number, "max"
number - maximum size in Kilobytes.
"max" - the maximum allowed by the server (the value is retrieved from the server configuration).
*/
$Private['max_filesize_kb_image'] = 200;
$Private['max_filesize_kb_link'] = 5000;
/* Maximum upload folder size in Megabytes. Use 0 to disable limit */
$Private['max_foldersize_mb'] = 0;
/*
Allowed extensions that can be shown and allowed to upload.
Available icons are for "doc,fla,gif,gz,html,jpg,js,mov,pdf,php,png,ppt,rar,txt,xls,zip"
-Changed by AFRU.
*/
$Private['allowed_image_extensions'] = array("jpg","gif","png","bmp");
$Private['allowed_link_extensions'] = array("jpg","gif","js","php","pdf","zip","txt","psd","png","html","swf","xml","xls","doc");
/*
Image Editor temporary filename prefix.
*/
$Private['tmp_prefix'] = '.editor_';
// Config variables are finished, this returns our data to the caller.
if ($getprivates) {
return $Public+$Private;
}
return $Public;
}
?>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PSServer/config.inc.php | PHP | art | 6,692 |
/**
* PSServer PSServer.js file.
* This plugin is a server based persistent storage backend.
*/
(function() {
var PSServer = window.PSServer = function PSServer(editor) {
this.editor = editor;
}
PSServer._pluginInfo = {
name : "PSServer",
version : "2.0",
developer : "Douglas Mayle",
developer_url : "http://xinha.org",
license : "MIT"
};
PSServer.prototype.onGenerateOnce = function () {
// We use _loadConfig to asynchronously load the config and then register the
// backend.
this._loadConfig();
};
PSServer.prototype._loadConfig = function() {
var self = this;
if (!this._serverConfig) {
Xinha._getback(Xinha.getPluginDir("PSServer") + "/config.inc.php",
function(config) {
self._serverConfig = eval('(' + config + ')');
self._serverConfig.user_affinity = 20;
self._serverConfig.displayName = 'Server';
self._loadConfig();
});
return;
}
this._registerBackend();
}
PSServer.prototype._registerBackend = function(timeWaited) {
var editor = this.editor;
var self = this;
if (!timeWaited) {
timeWaited = 0;
}
// Retry over a period of ten seconds to register. We back off exponentially
// to limit resouce usage in the case of misconfiguration.
var registerTimeout = 10000;
if (timeWaited > registerTimeout) {
// This is most likely a configuration error. We're loaded and
// PersistentStorage is not.
return;
}
if (!editor.plugins['PersistentStorage'] ||
!editor.plugins['PersistentStorage'].instance ||
!editor.plugins['PersistentStorage'].instance.ready) {
window.setTimeout(function() {self._registerBackend(timeWaited ? timeWaited*2 : 50);}, timeWaited ? timeWaited : 50);
return;
}
editor.plugins['PersistentStorage'].instance.registerBackend('PSServer', this, this._serverConfig);
}
PSServer.prototype.loadData = function (asyncCallback) {
var self = this;
Xinha._getback(Xinha.getPluginDir("PSServer") + "/backend.php?directory&listing",
function(json) {
self.dirTree = eval('(' + json + ')');
asyncCallback(self.dirTree);
});
}
var treeRecurse = function treeRecurse(tree, callback, root) {
if (typeof root == 'undefined') {
root = '/';
callback('/', '', tree);
}
for (var key in tree) {
callback(root, key, tree[key]);
if (tree[key].$type == 'folder') {
treeRecurse(tree[key], callback, root + key + '/');
}
}
};
PSServer.prototype.getFilters = function(dirTree) {
// Clear out the previous directory listing.
var filters = [];
treeRecurse(dirTree, function(path, key, value) {
if (value.$type != 'folder') {
return;
}
var filePath = key.length ? path + key + '/' : path;
var filePathDisplay = key.length ? path + key + '/' : path;
if (filePathDisplay.length > 1) {
filePathDisplay = filePathDisplay.substring(0, filePathDisplay.length-1);
}
filters.push({
value: filePath,
display: filePathDisplay
});
});
return filters;
}
PSServer.prototype.loadDocument = function(entry, asyncCallback) {
Xinha._getback(entry.URL,
function(documentSource) {
asyncCallback(documentSource);
});
}
PSServer.prototype.getMetadata = function(dirTree, pathFilter, typeFilter) {
var editor = this.editor;
var self = this;
var metadata = [];
var typeKeys = {};
for (var index=0; index<typeFilter.length; ++index) {
typeKeys[typeFilter[index]] = true;
}
treeRecurse(dirTree, function(path, key, value) {
if (!value.$type || !key) {
// This is a builtin property of objects, not one returned by the
// backend.
return;
}
if (path != pathFilter) {
return;
}
if (!(value.$type in typeKeys)) {
return;
}
if ((value.$type == 'folder') || (value.$type == 'html') ||
(value.$type == 'text') || (value.$type == 'document')) {
metadata.push({
name: key,
key: path + key,
$type: value.$type
});
} else {
metadata.push({
URL: Xinha.getPluginDir("PSServer") + '/demo_images' + path + key,
name: key,
key: path + key,
$type: value.$type
});
}
});
return metadata;
}
PSServer.prototype.loadDocument = function(entry, asyncCallback) {
var self = this;
Xinha._getback(Xinha.getPluginDir("PSServer") + '/demo_images' + entry.key,
function(documentSource) {
asyncCallback(documentSource);
});
}
PSServer.prototype.buildImportUI = function(dialog, element) {
// We receive an HTML element and are expected to build an HTML UI. We'll
// model it off of this HTML fragment:
// <form target="importFrame" action="../plugins/PSServer/backend.php?upload&replace=false&" id="importForm" method="post" enctype="multipart/form-data">
// File: <input type="file" name="filedata" /><input type="submit" value="_(Import)" />
// </form>
// <iframe id="importFrame" name="importFrame" src="#" style="display:none;"></iframe>
var iframeID = dialog.createId('importFrame');
var form = document.createElement('form');
form.setAttribute('enctype', 'multipart/form-data');
form.setAttribute('method', 'post');
form.setAttribute('action', Xinha.getPluginDir("PSServer") + "/backend.php?upload&replace=true&");
var fileentry = document.createElement('input');
fileentry.setAttribute('type', 'file');
fileentry.setAttribute('name', 'filedata');
var submitbutton = document.createElement('input');
submitbutton.setAttribute('type', 'submit');
submitbutton.setAttribute('value',Xinha._lc('Import', 'PSServer'));
var filetext = document.createTextNode(Xinha._lc('File: ', 'PSServer'));
filetext = form.appendChild(filetext);
fileentry = form.appendChild(fileentry);
submitbutton = form.appendChild(submitbutton);
form = element.appendChild(form);
form.setAttribute('target', iframeID);
// The iframe must be added to the document after the form has been, or the targeting fails.
var iframe = document.createElement('iframe');
iframe.setAttribute('src', 'about:blank');
iframe.style.display = 'none';
iframe.id = iframe.name = iframeID;
iframe.onload = function() {
var docCheck = iframe.contentDocument || iframe.contentWindow;
if (docCheck.location.href == 'about:blank') {
return;
}
// What to do on import? Add an entry to the UI, I guess...
alert('Add entry here');
}
iframe = element.appendChild(iframe);
}
PSServer.prototype.saveDocument = function(path, filename, documentSource, asyncCallback) {
Xinha._postback(Xinha.getPluginDir("PSServer") + "/backend.php?upload&replace=true&filedata=" + escape(documentSource)+"&filename="+escape(path + filename),
null,
function(response) {
asyncCallback(true);
},
function(response) {
asyncCallback(false);
});
}
PSServer.prototype.makeFolder = function(currentPath, folderName, asyncCallback) {
Xinha._postback(Xinha.getPluginDir("PSServer") + "/backend.php?directory&create&dirname="+escape(currentPath + '/' + folderName),
null,
function(response) {
asyncCallback(true);
},
function(response) {
asyncCallback(false);
});
}
PSServer.prototype.deleteEntry = function(entry, asyncCallback) {
Xinha._postback(Xinha.getPluginDir("PSServer") + "/backend.php?file&delete&filename="+escape(entry.key),
null,
function(response) {
asyncCallback(true);
},
function(response) {
asyncCallback(false);
});
}
PSServer.prototype.moveEntry = function(entry, container, asyncCallback) {
Xinha._postback(Xinha.getPluginDir("PSServer") + "/backend.php?file&rename&filename="+escape(entry.key)+'&newname='+escape(container.key + '/' + entry.name),
null,
function(json) {
asyncCallback(true);
},
function(json) {
asyncCallback(false);
});
}
PSServer.prototype.copyEntry = function(entry, asyncCallback) {
Xinha._postback(Xinha.getPluginDir("PSServer") + "/backend.php?file©&filename="+escape(entry.key),
null,
function(json) {
var newentry = eval('(' + json + ')');
asyncCallback(true, newentry);
},
function(json) {
var newentry = eval('(' + json + ')');
asyncCallback(false, newentry);
});
}
})();
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/PSServer/PSServer.js | JavaScript | art | 9,370 |
// I18N constants
// LANG: "nl", ENCODING: UTF-8
// Author: Michel Weegeerink (info@mmc-shop.nl), http://mmc-shop.nl
{
"Align": "Uitlijning",
"All four sides": "Alle 4 zijden",
"Background": "Achtergrond",
"Baseline": "Basis",
"Border": "Rand",
"Borders": "Randen",
"Bottom": "Onder",
"Style [CSS]": "CSS Style",
"Caption": "Opmerking",
"Cell Properties": "Celeigenschappen",
"Center": "Centreren",
"Char": "Karakter",
"Collapsed borders": "Geen randen",
"Color": "Kleur",
"Description": "Omschrijving",
"FG Color": "Voorgrond",
"Float": "Zwevend",
"Frames": "Frames",
"Height": "Hoogte",
"How many columns would you like to merge?": "Hoeveel kolommen wilt u samenvoegen?",
"How many rows would you like to merge?": "Hoeveel rijen wilt u samenvoegen?",
"Image URL": "Afbeelding URL",
"Justify": "Uitvullen",
"Layout": "Opmaak",
"Left": "Links",
"Margin": "Marge",
"Middle": "Midden",
"No rules": "Geen regels",
"No sides": "Geen zijlijnen",
"None": "Geen",
"Padding": "Celmarge",
"Please click into some cell": "Klik in een cel a.u.b.",
"Right": "Rechts",
"Row Properties": "Rijeigenschappen",
"Rules will appear between all rows and columns": "Regels verschijnen tussen alle rijen en kolommen",
"Rules will appear between columns only": "Regels verschijnen enkel tussen de kolommen",
"Rules will appear between rows only": "Regels verschijnen enkel tussen de rijen",
"Rules": "Regels",
"Spacing and padding": "Celmarge en afstand tussen cellen",
"Spacing": "marge",
"Summary": "Overzicht",
"Delete cell": "Cel verwijderen",
"Insert cell after": "Voeg cel toe achter",
"Insert cell before": "Voeg cel toe voor",
"Merge cells": "Cellen samenvoegen",
"Cell properties": "Celeigenschappen",
"Split cell": "Cel splitsen",
"Delete column": "Kolom verwijderen",
"Insert column after": "Kolom invoegen achter",
"Insert column before": "Kolom invoegen voor",
"Split column": "Kolom splitsen",
"Delete row": "Rij verwijderen",
"Insert row before": "Rij invoegen boven",
"Insert row after": "Rij invoegen onder",
"Row properties": "Rij eigenschappen",
"Split row": "Rij splitsen",
"Table properties": "Tabel eigenschappen",
"Table Properties": "Tabel eigenschappen",
"Text align": "Text uitlijning",
"The bottom side only": "Enkel aan de onderkant",
"The left-hand side only": "Enkel aan de linkerkant",
"The right and left sides only": "Enkel aan de linker en rechterkant",
"The right-hand side only": "Enkel aan de rechterkant",
"The top and bottom sides only": "Enkel aan de bovenen onderkant",
"The top side only": "Enkel aan de bovenkant",
"Top": "Boven",
"Unset color": "Wis kleur",
"Vertical align": "Vertikale uitlijning",
"Width": "Breedte",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha kan de laatste cel in deze tabel niet verwijderen.",
"Xinha cowardly refuses to delete the last column in table.": "Xinha kan de laatste kolom in deze tabel niet verwijderen.",
"Xinha cowardly refuses to delete the last row in table.": "Xinha kan de laatste rij in deze tabel niet verwijderen.",
"percent": "procent",
"pixels": "pixels"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/nl.js | JavaScript | art | 3,194 |
// I18N constants
// LANG: "it", ENCODING: UTF-8
// Author: Fabio Rotondo <fabio@rotondo.it>
{
"Align": "Allinea",
"All four sides": "Tutti e quattro i lati",
"Background": "Sfondo",
"Baseline": "Allineamento",
"Border": "Bordo",
"Borders": "Bordi",
"Bottom": "Basso",
"Style [CSS]": "Stile [CSS]",
"Caption": "Titolo",
"Cell Properties": "Proprietà della Cella",
"Center": "Centra",
"Char": "Carattere",
"Collapsed borders": "Bordi chiusi",
"Color": "Colore",
"Description": "Descrizione",
"FG Color": "Colore Principale",
"Float": "Fluttuante",
"Frames": "Frames",
"Height": "Altezza",
"How many columns would you like to merge?": "Quante colonne vuoi unire?",
"How many rows would you like to merge?": "Quante righe vuoi unire?",
"Image URL": "URL dell'Immagine",
"Justify": "Justifica",
"Layout": "Layout",
"Left": "Sinistra",
"Margin": "Margine",
"Middle": "Centrale",
"No rules": "Nessun righello",
"No sides": "Nessun lato",
"None": "Nulla",
"Padding": "Padding",
"Please click into some cell": "Per favore, clicca in una cella",
"Right": "Destra",
"Row Properties": "Proprietà della Riga",
"Rules will appear between all rows and columns": "Le linee appariranno tra tutte le righe e colonne",
"Rules will appear between columns only": "Le linee appariranno solo tra le colonne",
"Rules will appear between rows only": "Le linee appariranno solo tra le righe",
"Rules": "Linee",
"Spacing and padding": "Spaziatura e Padding",
"Spacing": "Spaziatura",
"Summary": "Sommario",
"Delete cell": "Cancella cella",
"Insert cell after": "Inserisci cella dopo",
"Insert cell before": "Inserisci cella prima",
"Merge cells": "Unisci celle",
"Cell properties": "Proprietà della cella",
"Split cell": "Dividi cella",
"Delete column": "Cancella colonna",
"Insert column after": "Inserisci colonna dopo",
"Insert column before": "Inserisci colonna prima",
"Split column": "Dividi colonna",
"Delete row": "Cancella riga",
"Insert row before": "Inserisci riga prima",
"Insert row after": "Inserisci riga dopo",
"Row properties": "Proprietà della riga",
"Split row": "Dividi riga",
"Table properties": "Proprietà della Tabella",
"Table Properties": "Proprietà della Tabella",
"Text align": "Allineamento del Testo",
"The bottom side only": "Solo la parte inferiore",
"The left-hand side only": "Solo la parte sinistra",
"The right and left sides only": "Solo destra e sinistra",
"The right-hand side only": "Solo la parte destra",
"The top and bottom sides only": "Solo sopra e sotto",
"The top side only": "Solo la parte sopra",
"Top": "Alto",
"Unset color": "Rimuovi colore",
"Vertical align": "Allineamento verticale",
"Width": "Larghezza",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha si rifiuta codardamente di cancellare l'ultima cella nella riga.",
"Xinha cowardly refuses to delete the last column in table.": "Xinha si rifiuta codardamente di cancellare l'ultima colonna nella tabella.",
"Xinha cowardly refuses to delete the last row in table.": "Xinha si rifiuta codardamente di cancellare l'ultima riga nella tabella.",
"percent": "percento",
"pixels": "pixels"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/it.js | JavaScript | art | 3,252 |
// I18N constants
// LANG: "de", ENCODING: UTF-8
// translated: Raimund Meyer xinha@ray-of-light.org
{
"Align": "Ausrichtung",
"All four sides": "Alle 4 Seiten",
"Background": "Hintergrund",
"Baseline": "Grundlinie",
"Border": "Rahmen",
"Borders": "Rahmen",
"Bottom": "Unten",
"Style [CSS]": "Style [CSS]",
"Caption": "Überschrift",
"Cell Properties": "Zellenoptionen",
"Center": "Zentriert",
"Char": "Zeichen",
"Collapsed borders": "Rahmen fallen zusammen",
"Color": "Farbe",
"Description": "Beschreibung",
"FG Color": "Vordergrundfarbe",
"Float": "Float",
"Frames": "Rahmen",
"Height": "Höhe",
"How many columns would you like to merge?": "Wieviele Spalten wollen Sie verbinden?",
"How many rows would you like to merge?": "Wieviele Zeilen wollen Sie verbinden?",
"Image URL": "Bild-URL",
"Justify": "Blocksatz",
"Layout": "Layout",
"Left": "Links",
"Margin": "Rand",
"Middle": "Mitte",
"No rules": "Keine Gitterlinien",
"No sides": "Keine Ränder",
"None": "Keine",
"Padding": "Innenabstand",
"Please click into some cell": "Bitte eine Zelle auswählen",
"Right": "Rechts",
"Row Properties": "Zeilenoptionen",
"Rules will appear between all rows and columns": "Linien zwischen Zeilen und Spalten",
"Rules will appear between columns only": "Linien zwischen Spalten",
"Rules will appear between rows only": "Linien zwischen Zeilen",
"Rules": "Linien",
"Spacing and padding": "Abstände",
"Spacing": "Abstand",
"Summary": "Zusammenfassung",
"Delete cell": "Zelle löschen",
"Insert cell after": "Zelle einfügen nach",
"Insert cell before": "Zelle einfügen vor",
"Merge cells": "Zellen zusammenfügen",
"Cell properties": "Zellenoptionen",
"Split cell": "Zellen teilen",
"Delete column": "Spalte löschen",
"Insert column after": "Spalte einfügen nach",
"Insert column before": "Spalte einfügen vor",
"Split column": "Spalte teilen",
"Delete row": "Reihe loeschen",
"Insert row before": "Reihe einfügen vor",
"Insert row after": "Reihe einfügen nach",
"Row properties": "Reiheneinstellungen",
"Split row": "Reihen aufteilen",
"Table properties": "Tabellenoptionen",
"Table Properties": "Tabellenoptionen",
"Text align": "Textausrichtung",
"The bottom side only": "Nur untere Seite",
"The left-hand side only": "Nur linke Seite",
"The right and left sides only": "Nur linke und rechte Seite",
"The right-hand side only": "Nur rechte Seite",
"The top and bottom sides only": "Nur obere und untere Seite",
"The top side only": "Nur obere Seite",
"Top": "Oben",
"Unset color": "Farbe entfernen",
"Vertical align": "Vertikale Ausrichtung",
"Width": "Breite",
"Xinha cowardly refuses to delete the last cell in row.": "Letzte Zelle in dieser Zeile kann nicht gelöscht werden",
"Xinha cowardly refuses to delete the last column in table.": "Letzte Spalte in dieser Tabelle kann nicht gelöscht werden",
"Xinha cowardly refuses to delete the last row in table.": "Letzte Reihe in dieser Tabelle kann nicht gelöscht werden",
"percent": "%",
"pixels": "Pixel",
"OK": "OK",
"Cancel": "Abbrechen"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/de.js | JavaScript | art | 3,151 |
// I18N constants
// LANG: "pl", ENCODING: UTF-8
// translated: Krzysztof Kotowicz koto@webworkers.pl
{
"Align": "Wyrównanie",
"All four sides": "Wszystkie 4 strony",
"Background": "Tło",
"Baseline": "Linia bazowa",
"Border": "Ramka",
"Borders": "Ramki",
"Bottom": "Dół",
"Style [CSS]": "Styl [CSS]",
"CSS Style": "Styl CSS",
"Caption": "Podpis",
"Cell Properties": "Właściwości komórki",
"Center": "Środek",
"Char": "Znak",
"Collapsed borders": "Ramki skolapsowane",
"Color": "Kolor",
"Description": "Opis",
"FG Color": "Kolor czcionek",
"Float": "Opływanie",
"Frames": "Ramki zewn.",
"Frame and borders": "Obramowania",
"Height": "Wysokość",
"How many columns would you like to merge?": "Ile kolumn chcesz scalić?",
"How many rows would you like to merge?": "Ile wierszy chcesz scalić?",
"Image URL": "URL obrazka",
"Justify": "Wyjustuj",
"Layout": "Layout",
"Left": "Lewo",
"Margin": "Margines",
"Middle": "Środek",
"No rules": "Bez wewnętrzych",
"No sides": "Bez ramek",
"None": "Brak",
"Padding": "Wcięcia",
"Please click into some cell": "Kliknij w jakąś komórkę",
"Right": "Prawo",
"Row Properties": "Właściwości wiersza",
"Rules will appear between all rows and columns": "Linie będą widoczne pomiędzy kolumnami i wierszami",
"Rules will appear between columns only": "Linie będą widoczne tylko pomiędzy kolumnami",
"Rules will appear between rows only": "Linie będą widoczne tylko pomiędzy wierszami",
"Rules": "Linie wewn.",
"Spacing and padding": "Spacjowanie",
"Spacing": "Odstęp",
"Summary": "Podsumowanie",
"Delete cell": "Usuń komórkę",
"Insert cell after": "Wstaw komórkę po",
"Insert cell before": "Wstaw komórkę przed",
"Merge cells": "Scal komórki",
"Cell properties": "Właściwości komórki",
"Split cell": "Rozdziel komórkę",
"Delete column": "Usuń kolumnę",
"Insert column after": "Wstaw kolumnę po",
"Insert column before": "Wstaw kolumnę przed",
"Split column": "Rozdziel kolumnę",
"Delete row": "Usuń wiersz",
"Insert row before": "Wstaw wiersz przed",
"Insert row after": "Wstaw wiersz po",
"Row properties": "Właściwości wiersza",
"Split row": "Rozdziel wiersz",
"Table properties": "Właściwości tabeli",
"Table Properties": "Właściwości tabeli",
"Text align": "Wyr. w poziomie",
"The bottom side only": "Tylko dolna linia",
"The left-hand side only": "Tylko lewa linia",
"The right and left sides only": "Lewa i prawa linia",
"The right-hand side only": "Tylko prawa linia",
"The top and bottom sides only": "Górna i dolna linia",
"The top side only": "Tylko górna linia",
"Top": "Góra",
"Unset color": "Usuń kolor",
"Vertical align": "Wyr. w pionie",
"Width": "Szerokość",
"Xinha cowardly refuses to delete the last cell in row.": "Nie możesz skasować ostatniej komórki w wierszu.",
"Xinha cowardly refuses to delete the last column in table.": "Nie możesz skasować ostatniej kolumny w tabeli.",
"Xinha cowardly refuses to delete the last row in table.": "Nie możesz skasować ostatniego wiersza w tabeli.",
"percent": "%",
"pixels": "pikseli",
"OK": "OK",
"Cancel": "Anuluj"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/pl.js | JavaScript | art | 3,237 |
// I18N constants
// LANG: "ru", ENCODING: UTF-8
// Author: Andrei Blagorazumov, a@fnr.ru
{
"Align": "Выравнивание",
"All four sides": "Все 4 стороны",
"Background": "Фон",
"Baseline": "Базовая линия",
"Border": "Рамка",
"Borders": "Рамки",
"Bottom": "Низ",
"Style [CSS]": "Стиль [CSS]",
"Caption": "Заголовок",
"Cell Properties": "Свойства ячеек",
"Center": "Центр",
"Char": "Символ",
"Collapsed borders": "Накладывающиеся рамки",
"Color": "Цвет",
"Description": "Описание",
"FG Color": "Цвет переднего плана",
"Float": "Обтекание",
"Frames": "Фреймы",
"Height": "Высота",
"How many columns would you like to merge?": "Сколько столбцов вы хотите объединить?",
"How many rows would you like to merge?": "Сколько строк вы хотите объединить?",
"Image URL": "URL картинки",
"Justify": "По правому краю",
"Layout": "Раскладка",
"Left": "Лево",
"Margin": "Отступ",
"Middle": "Середина",
"No rules": "Нет линейки",
"No sides": "Нет сторон",
"None": "Ничего",
"Padding": "Поля",
"Please click into some cell": "Пожалуйста щелкните в некоторые ячейки",
"Right": "Право",
"Row Properties": "Свойства строк",
"Rules will appear between all rows and columns": "Линейки появятся между всеми строками и столбцами",
"Rules will appear between columns only": "Линейки появятся только между столбцами",
"Rules will appear between rows only": "Линейки появятся только между строками",
"Rules": "Линейки",
"Spacing and padding": "Поля и отступы",
"Spacing": "Отступы",
"Summary": "Сводка",
"Delete cell": "Удалить ячейку",
"Insert cell after": "Вставить ячейку после",
"Insert cell before": "Вставить ячейку до",
"Merge cells": "Объединить ячейки",
"Cell properties": "Свойства ячеек",
"Split cell": "Разделить ячейку",
"Delete column": "Удалить столбец",
"Insert column after": "Вставить столбец после",
"Insert column before": "Вставить столбец до",
"Split column": "Разделить столбец",
"Delete row": "Удалить строку",
"Insert row before": "Вставить строку до",
"Insert row after": "Вставить строку после",
"Row properties": "Свойства строки",
"Split row": "Разделить строку",
"Table properties": "Свойства таблиц",
"Table Properties": "Свойства таблиц",
"Text align": "Выравнивание теста",
"The bottom side only": "Только нижний край",
"The left-hand side only": "Только левый край",
"The right and left sides only": "Только левый и правый край",
"The right-hand side only": "Только правый край",
"The top and bottom sides only": "Только верхний и нижний край",
"The top side only": "Только верхний край",
"Top": "Верх",
"Unset color": "Отменить цвет",
"Vertical align": "Вертикальное выравнивание",
"Width": "Ширина",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha отказалась удалять последнюю ячейку в строке.",
"Xinha cowardly refuses to delete the last column in table.": "Xinha отказалась удалять последний столбец в таблице.",
"Xinha cowardly refuses to delete the last row in table.": "Xinha отказалась удалять последнюю строку в таблице.",
"percent": "процентов",
"pixels": "пикселей"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/ru.js | JavaScript | art | 4,297 |
// I18N constants
// LANG: "sv" (Swedish), ENCODING: UTF-8
// translated into Swedish: Erik Dalén, <dalen@jpl.se>
{
"Align": "Justera",
"All four sides": "Alla fyra sidor",
"Background": "Bakgrund",
"Baseline": "Baslinje",
"Border": "Kantlinje",
"Borders": "Kantlinjer",
"Bottom": "Botten",
"Style [CSS]": "Stil [CSS]",
"Caption": "Överskrift",
"Cell Properties": "Cellegenskaper",
"Center": "Centrera",
"Char": "Tecken",
"Collapsed borders": "Osynliga kantlinjer",
"Color": "Färg",
"Description": "Beskrivning",
"FG Color": "Förgrundsfärg",
"Float": "Flytande",
"Frames": "ramar",
"Height": "Höjd",
"How many columns would you like to merge?": "Hur många kolumner vill du slå samman?",
"How many rows would you like to merge?": "Hur många rader vill du slå samman?",
"Image URL": "Bildens URL",
"Justify": "Justera",
"Layout": "Layout",
"Left": "Venster",
"Margin": "Marginal",
"Middle": "Mitten",
"No rules": "Ingen linjal",
"No sides": "Inga sidor",
"None": "Ingen",
"Padding": "Luft",
"Please click into some cell": "Klicka i valfri cell",
"Right": "Höger",
"Row Properties": "Egenskaper for rad",
"Rules will appear between all rows and columns": "Linjaler kommer att synas mellan alla rader och kolumner",
"Rules will appear between columns only": "Linjaler kommer enbart synas mellan kolumner",
"Rules will appear between rows only": "Linjaler kommer enbart synas mellan rader",
"Rules": "Linjaler",
"Spacing and padding": "Mellanrum och luft",
"Spacing": "Mellanrum",
"Summary": "Sammandrag",
"Delete cell": "Radera cell",
"Insert cell after": "Infoga cell efter",
"Insert cell before": "Infoga cell före",
"Merge cells": "Slå samman celler",
"Cell properties": "Egenskaper for cell",
"Split cell": "Dela cell",
"Delete column": "Radera kolumn",
"Insert column after": "Infoga kolumn efter",
"Insert column before": "Infoga kolumn före",
"Split column": "Dela kolumn",
"Delete row": "Radera rad",
"Insert row before": "Infoga rad före",
"Insert row after": "Infoga rad efter",
"Row properties": "Egenskaper för rad",
"Split row": "Dela rad",
"Table properties": "Tabellegenskaper",
"Table Properties": "Tabellegenskaper",
"Text align": "Justera text",
"The bottom side only": "Nederkanten enbart",
"The left-hand side only": "Vänstersidan enbart",
"The right and left sides only": "Höger- och vänstersidan enbart",
"The right-hand side only": "Högersidan enbart",
"The top and bottom sides only": "Över- och nederkanten enbart",
"The top side only": "Överkanten enbart",
"Top": "Överkant",
"Unset color": "Obestämd färg",
"Vertical align": "Vertikal justering",
"Width": "Bredd",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha nekar att radera sista cellen i tabellen.",
"Xinha cowardly refuses to delete the last column in table.": "Xinha nekar att radera sista kolumnen i tabellen.",
"Xinha cowardly refuses to delete the last row in table.": "Xinha nekar att radera sista raden i tabellen.",
"percent": "procent",
"pixels": "bildpunkter"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/sv.js | JavaScript | art | 3,143 |
// I18N constants
// LANG: "fr", ENCODING: UTF-8
{
"Align": "Aligner",
"All four sides": "Quatre cotés",
"Background": "Arrière plan",
"Baseline": "Ligne de base",
"Border": "Bordure",
"Borders": "Bordures",
"Bottom": "Bas",
"Style [CSS]": "Style [CSS]",
"Caption": "Étiquette",
"Cell Properties": "Propriétés de cellule",
"Center": "Centre",
"Char": "Charactère",
"Collapsed borders": "Bordure effondrés",
"Color": "Couleur",
"Description": "Description",
"FG Color": "Couleur de face",
"Float": "Flotteur",
"Frames": "Vues",
"Height": "Largeur",
"How many columns would you like to merge?": "Combien de colonnes voulez-vous fusionner?",
"How many rows would you like to merge?": "Combien de rangées voulez-vous fusionner?",
"Image URL": "URL pour l'image",
"Justify": "Justifié",
"Layout": "Arrangement",
"Left": "Gauche",
"Margin": "Marge",
"Middle": "Milieu",
"No rules": "Aucune règle",
"No sides": "Aucun côté",
"None": "Aucun",
"Padding": "Remplissage",
"Please click into some cell": "Cliquer sur une cellule",
"Right": "Droit",
"Row Properties": "Propriétés de rangée",
"Rules will appear between all rows and columns": "Règles entre les rangées et les cellules",
"Rules will appear between columns only": "Règles entre les colonnes seulement",
"Rules will appear between rows only": "Règles entre les rangées seulement",
"Rules": "Les règles",
"Spacing and padding": "Espacement et remplissage",
"Spacing": "Espacement",
"Summary": "Sommaire",
"Delete cell": "Supprimer une cellule",
"Insert cell after": "Insérer une cellule après",
"Insert cell before": "Insérer une cellule avant",
"Merge cells": "Fusionner les cellules",
"Cell properties": "Cell properties",
"Split cell": "Diviser la cellule",
"Delete column": "Supprimer la colonne",
"Insert column after": "Insérer une colonne après",
"Insert column before": "Insérer une colonne avant",
"Split column": "Diviser une colonne",
"Delete row": "Supprimer une rangée",
"Insert row before": "Insérer une rangée avant",
"Insert row after": "Insérer une rangée après",
"Row properties": "Propriétés de rangée",
"Split row": "Diviser la rangée",
"Table properties": "Propriétés de table",
"Table Properties": "Propriétés de table",
"Text align": "Alignement",
"The bottom side only": "Côté du bas seulement",
"The left-hand side only": "Côté gauche seulement",
"The right and left sides only": "Côté gauche et droit seulement",
"The right-hand side only": "Côté droit seulement",
"The top and bottom sides only": "Côté haut et bas seulement",
"The top side only": "Côté haut seulement",
"Top": "Haut",
"Unset color": "Enlever la couleur",
"Vertical align": "Vertical",
"Width": "Longeur",
"Xinha cowardly refuses to delete the last cell in row.": "Il est impossible de supprimer la dernière cellule de la rangée.",
"Xinha cowardly refuses to delete the last column in table.": "Il est impossible de supprimer la dernière colonne de la table.",
"Xinha cowardly refuses to delete the last row in table.": "Il est impossible de supprimer la dernière rangée de la table",
"percent": "%",
"pixels": "pixels"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/fr.js | JavaScript | art | 3,271 |
// I18N constants
// LANG: "ja", ENCODING: UTF-8
{
"Align": "行揃え",
"All four sides": "四辺すべて",
"Background": "背景",
"Baseline": "ベースライン",
"Border": "境界線",
"Borders": "境界線",
"Bottom": "下",
"Style [CSS]": "スタイル [CSS]",
"Caption": "キャプション",
"Cell Properties": "セルプロパティ",
"Center": "中央",
"Char": "文字",
"Collapsed borders": "隣接境界線を重ねる",
"Color": "色",
"Description": "説明",
"FG Color": "前景色",
"Float": "フロート",
"Frames": "外枠",
"Height": "高さ",
"How many columns would you like to merge?": "何列結合しますか?",
"How many rows would you like to merge?": "何行結合しますか?",
"Image URL": "画像URL",
"Justify": "両端揃え",
"Layout": "レイアウト",
"Left": "左",
"Margin": "間隔",
"Middle": "中",
"No rules": "区切りなし",
"No sides": "外枠なし",
"None": "なし",
"Padding": "余白",
"Please click into some cell": "いずれかのセル内をクリックしてください",
"Please select the cells you want to merge.": "結合したいセルを複数選択してください。",
"Right": "右",
"Row Properties": "行プロパティ",
"Rules will appear between all rows and columns": "すべての行間と列間に線を引く",
"Rules will appear between columns only": "列の間にのみ線を引く",
"Rules will appear between rows only": "行の間にのみ線を引く",
"Rules": "区切り",
"Spacing and padding": "間隔と余白",
"Spacing": "間隔",
"Summary": "要約",
"Delete cell": "セルの削除",
"Insert cell after": "次にセルを挿入",
"Insert cell before": "前にセルを挿入",
"Merge cells": "セルの結合",
"Cell properties": "セルのプロパティ",
"Split cell": "セルの分割",
"Delete column": "列の削除",
"Insert column after": "右に列を挿入",
"Insert column before": "左に列を挿入",
"Split column": "列の分割",
"Delete row": "行の削除",
"Insert row before": "上に行を挿入",
"Insert row after": "下に行を挿入",
"Row properties": "行のプロパティ",
"Split row": "行の分割",
"Table properties": "テーブルのプロパティ",
"Table Properties": "テーブルのプロパティ",
"Text align": "水平位置",
"The bottom side only": "下辺のみ",
"The left-hand side only": "左辺のみ",
"The right and left sides only": "左右辺のみ",
"The right-hand side only": "右辺のみ",
"The top and bottom sides only": "上下辺のみ",
"The top side only": "上辺のみ",
"Top": "上",
"Unset color": "色指定解除",
"Vertical align": "垂直位置",
"Width": "幅",
"Xinha cowardly refuses to delete the last cell in row.": "安全のために、行にひとつだけ残っている列の削除は拒否されます。",
"Xinha cowardly refuses to delete the last column in table.": "安全のために、テーブルにひとつだけ残っている列の削除は拒否されます。",
"Xinha cowardly refuses to delete the last row in table.": "安全のために、テーブルにひとつだけ残っている行の削除は拒否されます。",
"percent": "パーセント",
"pixels": "ピクセル",
"OK": "OK",
"Cancel": "中止",
"CSS Style": "CSSスタイル",
"Frame and borders": "外枠と境界線"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/ja.js | JavaScript | art | 3,448 |
// I18N constants
// LANG: "cz", ENCODING: UTF-8
// Author: Jiri Löw, <jirilow@jirilow.com>
{
"Align": "Zarovnání",
"All four sides": "Všechny čtyři strany",
"Background": "Pozadí",
"Baseline": "Základní linka",
"Border": "Obrys",
"Borders": "Obrysy",
"Bottom": "Dolů",
"Style [CSS]": "Kaskádové styly (CSS)",
"Caption": "Titulek",
"Cell Properties": "Vlastnosti buňky",
"Center": "Na střed",
"Char": "Znak",
"Collapsed borders": "Stlačené okraje",
"Color": "Barva",
"Description": "Popis",
"FG Color": "Barva popředí",
"Float": "Obtékání",
"Frames": "Rámečky",
"Height": "Výška",
"How many columns would you like to merge?": "Kolik sloupců si přejete spojit?",
"How many rows would you like to merge?": "Kolik řádků si přejete spojit?",
"Image URL": "Adresa obrázku",
"Justify": "Do stran",
"Layout": "Rozložení",
"Left": "Vlevo",
"Margin": "Okraj",
"Middle": "Na střed",
"No rules": "Žádné čáry",
"No sides": "Žádné strany",
"None": "Žádné",
"Padding": "Odsazování",
"Please click into some cell": "Prosím klikněte do některé buňky",
"Right": "Vpravo",
"Row Properties": "Vlastnosti řádku",
"Rules will appear between all rows and columns": "Čáry mezi všemi řádky i sloupci",
"Rules will appear between columns only": "Čáry pouze mezi sloupci",
"Rules will appear between rows only": "Čáry pouze mezi řádky",
"Rules": "Čáry",
"Spacing and padding": "Mezery a odsazování",
"Spacing": "Mezery",
"Summary": "Shrnutí",
"Delete cell": "Smazat buňku",
"Insert cell after": "Vložit buňku za",
"Insert cell before": "Vložit buňku před",
"Merge cells": "Spojit buňky",
"Cell properties": "Vlastnosti buňky",
"Split cell": "Rozdělit buňku",
"Delete column": "Smazat sloupec",
"Insert column after": "Vložit sloupec za",
"Insert column before": "Vložit sloupec před",
"Split column": "Rozdělit sloupec",
"Delete row": "Smazat řádek",
"Insert row before": "Smazat řádek nad",
"Insert row after": "Smazat řádek pod",
"Row properties": "Vlastnosti řádku",
"Split row": "Rozdělit řádek",
"Table properties": "Vlastnosti tabulky",
"Table Properties": "Vlastnosti tabulky",
"Text align": "Zarovnání textu",
"The bottom side only": "Pouze spodní strana",
"The left-hand side only": "Pouze levá strana",
"The right and left sides only": "Pouze levá a pravá strana",
"The right-hand side only": "Pouze pravá strana",
"The top and bottom sides only": "Pouze horní a dolní strana",
"The top side only": "Pouze horní strana",
"Top": "Nahoru",
"Unset color": "Zrušit barvu",
"Vertical align": "Svislé zarovnání",
"Width": "Šířka",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha zbaběle odmítá smazat poslední buňku v řádku.",
"Xinha cowardly refuses to delete the last column in table.": "Xinha zbaběle odmítá smazat poslední sloupec v tabulce.",
"Xinha cowardly refuses to delete the last row in table.": "Xinha zbaběle odmítá smazat poslední řádek v tabulce.",
"percent": "procent",
"pixels": "pixelů"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/cz.js | JavaScript | art | 3,182 |
// I18N constants
// LANG: "da", ENCODING: UTF-8
// Author: Steen Sønderup, <steen@soenderup.com>
// Niels Baggesen, <nba@users.sourceforge.net>, 0.95, 2009-08-15
{
"Align": "Placer",
"All four sides": "Alle fire sider",
"Background": "Baggrund",
"Baseline": "Bundlinie",
"Border": "Kant",
"Borders": "Kanter",
"Bottom": "Bund",
"Style [CSS]": "Stil [CSS]",
"Caption": "Titel",
"Cell Properties": "Celle egenskaber",
"Center": "Centrer",
"Char": "Plads",
"Collapsed borders": "Sammensmelt rammer",
"Color": "Farve",
"Description": "Beskrivelse",
"FG Color": "Font farve",
"Float": "Justering",
"Frames": "Udvendig",
"Height": "Højde",
"How many columns would you like to merge?": "Hvor mange kollonner vil du samle?",
"How many rows would you like to merge?": "Hvor mange rækker vil du samle?",
"Image URL": "Billede URL",
"Justify": "Lige margener",
"Layout": "Opsætning",
"Left": "Venstre",
"Margin": "Margen",
"Middle": "Centrer",
"No rules": "Ingen rammer",
"No sides": "Ingen sider",
"None": "Ingen",
"Padding": "Margen",
"Please click into some cell": "Klik på en celle",
"Right": "Højre",
"Row Properties": "Række egenskaber",
"Rules will appear between all rows and columns": "Rammer mellem rækker og kolonner",
"Rules will appear between columns only": "Kun rammer mellem kolonner",
"Rules will appear between rows only": "Kun rammer mellem rækker",
"Rules": "Invendig",
"Spacing and padding": "Afstand og margen",
"Spacing": "Afstand",
"Summary": "Beskrivelse",
"Delete cell": "Slet celle",
"Insert cell after": "Indsæt celle efter",
"Insert cell before": "Indsæt celle før",
"Merge cells": "Sammensæt celler",
"Cell properties": "Celle egenskaber",
"Split cell": "Opdel celle",
"Delete column": "Slet kollonne",
"Insert column after": "Indsæt kolonne efter",
"Insert column before": "Indsæt kolonne før",
"Split column": "Opdel kolonne",
"Delete row": "Slet række",
"Insert row before": "Indsæt række før",
"Insert row after": "Indsæt række efter",
"Row properties": "Række egenskaber",
"Split row": "Opdel række",
"Table properties": "Tabel egenskaber",
"Table Properties": "Tabel egenskaber",
"Text align": "Tekst",
"The bottom side only": "Kun i bunden",
"The left-hand side only": "Kun i højre side",
"The right and left sides only": "Kun i siderne",
"The right-hand side only": "Kun i venstre side",
"The top and bottom sides only": "Kun i top og bund",
"The top side only": "Kun i toppen",
"Top": "Top",
"Unset color": "Farve ikke valgt",
"Vertical align": "Vertikal placering",
"Width": "Bredde",
"Xinha cowardly refuses to delete the last cell in row.": "Du kan ikke slette den sidste celle i en række.",
"Xinha cowardly refuses to delete the last column in table.": "Du kan ikke slette den sidste kolonne i en tabel.",
"Xinha cowardly refuses to delete the last row in table.": "Du kan ikke slette den sidste række i en tabel.",
"percent": "procent",
"pixels": "pixel",
"OK": "OK",
"Cancel": "Fortryd"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/da.js | JavaScript | art | 3,112 |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
// Author: Mihai Bazon, <mihai_bazon@yahoo.com>
// translated into Norwegian: ses@online.no 11.11.03
{
"Align": "Juster",
"All four sides": "Alle fire sider",
"Background": "Bakgrund",
"Baseline": "Grunnlinje",
"Border": "Kantlinje",
"Borders": "Kantlinjer",
"Bottom": "Bunn",
"Style [CSS]": "Stil [CSS]",
"Caption": "Overskrift",
"Cell Properties": "Celleegenskaper",
"Center": "Sentrer",
"Char": "Tegn",
"Collapsed borders": "Fjern kantlinjer",
"Color": "Farge",
"Description": "Beskrivelse",
"FG Color": "FG farge",
"Float": "Flytende",
"Frames": "rammer",
"Height": "Høyde",
"How many columns would you like to merge?": "Hvor mange kolonner vil du slå sammen?",
"How many rows would you like to merge?": "Hvor mange rader vil du slå sammen?",
"Image URL": "Bildets URL",
"Justify": "Juster",
"Layout": "Layout",
"Left": "Venstre",
"Margin": "Marg",
"Middle": "Midten",
"No rules": "Ingen linjal",
"No sides": "Ingen sider",
"None": "Ingen",
"Padding": "Luft",
"Please click into some cell": "Klikk i en eller annen celle",
"Right": "Høyre",
"Row Properties": "Egenskaper for rad",
"Rules will appear between all rows and columns": "Linjer vil synes mellom alle rader og kolonner",
"Rules will appear between columns only": "Linjer vil synes kun mellom kolonner",
"Rules will appear between rows only": "Linjer vil synes kun mellom rader",
"Rules": "Linjer",
"Spacing and padding": "Luft",
"Spacing": "Luft",
"Summary": "Sammendrag",
"Delete cell": "Slett celle",
"Insert cell after": "Sett inn celle etter",
"Insert cell before": "Sett inn celle foran",
"Merge cells": "Slå sammen celler",
"Cell properties": "Egenskaper for celle",
"Split cell": "Del celle",
"Delete column": "Slett kolonne",
"Insert column after": "Skyt inn kolonne etter",
"Insert column before": "Skyt inn kolonne før",
"Split column": "Del kolonne",
"Delete row": "Slett rad",
"Insert row before": "Skyt inn rad foran",
"Insert row after": "Skyt inn rad etter",
"Row properties": "Egenskaper for rad",
"Split row": "Del rad",
"Table properties": "Tabellegenskaper",
"Table Properties": "Tabellegenskaper",
"Text align": "Juster tekst",
"The bottom side only": "Bunnen kun",
"The left-hand side only": "Venstresiden kun",
"The right and left sides only": "Høyre- og venstresiden kun",
"The right-hand side only": "Høyresiden kun",
"The top and bottom sides only": "The top and bottom sides only",
"The top side only": "Overkanten kun",
"Top": "Overkant",
"Unset color": "Ikke-bestemt farge",
"Vertical align": "Vertikal justering",
"Width": "Bredde",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha nekter å slette siste cellen i tabellen.",
"Xinha cowardly refuses to delete the last column in table.": "Xinha nekter å slette siste kolonnen i tabellen.",
"Xinha cowardly refuses to delete the last row in table.": "Xinha nekter å slette siste raden i tabellen.",
"percent": "prosent",
"pixels": "billedpunkter"
}; | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/nb.js | JavaScript | art | 3,115 |
// I18N constants
// LANG: "el", ENCODING: UTF-8
// Author: Dimitris Glezos, dimitris@glezos.com
{
"Align": "Στοίχηση",
"All four sides": "Και οι 4 πλευρές",
"Background": "Φόντο",
"Baseline": "Baseline",
"Border": "Περίγραμμα",
"Borders": "Περιγράμματα",
"Bottom": "Κάτω μέρος",
"Style [CSS]": "Στυλ [CSS]",
"Caption": "Λεζάντα",
"Cell Properties": "Ιδιότητες Κελιού",
"Center": "Κέντρο",
"Char": "Χαρακτήρας",
"Collapsed borders": "Συμπτυγμένα περιγράμματα",
"Color": "Χρώμα",
"Description": "Περιγραφή",
"FG Color": "Χρώμα αντικειμένων",
"Float": "Float",
"Frames": "Frames",
"Height": "Ύψος",
"How many columns would you like to merge?": "Πόσες στήλες θέλετε να ενώσετε;",
"How many rows would you like to merge?": "Πόσες γραμμές θέλετε να ενώσετε;",
"Image URL": "URL εικόνας",
"Justify": "Πλήρης στοίχηση",
"Layout": "Διάταξη",
"Left": "Αριστερά",
"Margin": "Περιθώριο",
"Middle": "Κέντρο",
"No rules": "Χωρίς Γραμμές",
"No sides": "No sides",
"None": "Τίποτα",
"Padding": "Εσοχή",
"Please click into some cell": "Κάντε κλικ μέσα σε κάποιο κελί",
"Right": "Δεξιά",
"Row Properties": "Ιδιότητες Γραμμής",
"Rules will appear between all rows and columns": "Γραμμές θα εμφανίζονται μεταξύ όλων των γραμμών και στηλών",
"Rules will appear between columns only": "Γραμμές θα εμφανίζονται μόνο μεταξύ στηλών",
"Rules will appear between rows only": "Γραμμές θα εμφανίζονται μόνο μεταξύ γραμμών",
"Rules": "Γραμμές",
"Spacing and padding": "Αποστάσεις και εσοχές",
"Spacing": "Αποστάσεις",
"Summary": "Σύνοψη",
"Delete cell": "Διαγραφή κελιού",
"Insert cell after": "Εισαγωγή κελιού μετά",
"Insert cell before": "Εισαγωγή κελιού πριν",
"Merge cells": "Συγχώνευση κελιών",
"Cell properties": "Ιδιότητες κελιού",
"Split cell": "Διαίρεση κελιού",
"Delete column": "Διαγραφή στήλης",
"Insert column after": "Εισαγωγή στήλης μετά",
"Insert column before": "Εισαγωγή στήλης πριν",
"Split column": "Διαίρεση στήλης",
"Delete row": "Διαγραφή γραμμής",
"Insert row before": "Εισαγωγή γραμμής μετά",
"Insert row after": "Εισαγωγή γραμμής πριν",
"Row properties": "Ιδιότητες γραμμής",
"Split row": "Διαίρεση γραμμής",
"Table properties": "Ιδιότητες πίνακα",
"Table Properties": "Ιδιότητες πίνακα",
"Text align": "Στοίχηση κειμένου",
"The bottom side only": "Η κάτω πλευρά μόνο",
"The left-hand side only": "Η αριστερή πλευρά μόνο",
"The right and left sides only": "Οι δεξιές και αριστερές πλευρές μόνο",
"The right-hand side only": "Η δεξιά πλευρά μόνο",
"The top and bottom sides only": "Οι πάνω και κάτω πλευρές μόνο",
"The top side only": "Η πάνω πλευρά μόνο",
"Top": "Πάνω",
"Unset color": "Αναίρεση χρώματος",
"Vertical align": "Κατακόρυφη στοίχηση",
"Width": "Πλάτος",
"Xinha cowardly refuses to delete the last cell in row.": "Δεν μπορεί να διαγραφεί το τελευταίο κελί σε μια γραμμή.",
"Xinha cowardly refuses to delete the last column in table.": "Δεν μπορεί να διαγραφεί η τελευταία στήλη σε ένα πίνακα.",
"Xinha cowardly refuses to delete the last row in table.": "Δεν μπορεί να διαγραφεί η τελευταία γραμμή σε ένα πίνακα.",
"percent": "τοις εκατόν",
"pixels": "pixels"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/el.js | JavaScript | art | 4,318 |
// I18N constants
// LANG: "es", ENCODING: UTF-8
// translated: Derick Leony <dleony@gmail.com>
{
"Align": "Alinear",
"All four sides": "Todos los cuatro lados",
"Background": "Fondo",
"Baseline": "Línea base",
"Border": "Borde",
"Borders": "Bordes",
"Bottom": "Abajo",
"Style [CSS]": "Estilo [CSS]",
"Caption": "Título",
"Cell Properties": "Propiedades de la Celda",
"Center": "Centrar",
"Char": "Carácter",
"Collapsed borders": "Bordes colapsados",
"Color": "Color",
"Description": "Descripción",
"FG Color": "Color Principal",
"Float": "Flotante",
"Frames": "Marcos",
"Height": "Altura",
"How many columns would you like to merge?": "¿Cuántas columnas desea unir?",
"How many rows would you like to merge?": "¿Cuántas filas desea unir?",
"Image URL": "URL de la imágen",
"Justify": "Justificar",
"Layout": "Diseño",
"Left": "Izquierda",
"Margin": "Margen",
"Middle": "Medio",
"No rules": "Ninguna regla",
"No sides": "Ningún lado",
"None": "Ninguno",
"Padding": "Relleno (Padding)",
"Please click into some cell": "Por favor, haz clic en alguna celda",
"Right": "Derecha",
"Row Properties": "Propiedades de la Fila",
"Rules will appear between all rows and columns": "Las líneas aparecerán entre todas las filas y columnas",
"Rules will appear between columns only": "Las líneas aparecerán solo entre las columnas",
"Rules will appear between rows only": "Las líneas aparecerán solo entre las filas",
"Rules": "Líneas",
"Spacing and padding": "Espaciado y Relleno",
"Spacing": "Espaciado",
"Summary": "Resumen",
"Delete cell": "Suprimir celda",
"Insert cell after": "Insertar celda detrás",
"Insert cell before": "Insertar celda delante",
"Merge cells": "Unir celdas",
"Cell properties": "Propiedades de la celda",
"Split cell": "Dividir celda",
"Delete column": "Suprimir columna",
"Insert column after": "Insertar columna detrás",
"Insert column before": "Insertar columna delante",
"Split column": "Dividir columna",
"Delete row": "Suprimir fila",
"Insert row before": "Insertar fila delante",
"Insert row after": "Insertar fila detrás",
"Row properties": "Propiedades de la fila",
"Split row": "Dividir fila",
"Table properties": "Propiedades de la tabla",
"Table Properties": "Propiedades de la Tabla",
"Text align": "Alineación del texto",
"The bottom side only": "Solo el lado inferior",
"The left-hand side only": "Solo el lado izquierdo",
"The right and left sides only": "Solo los lados derecho e izquierdo",
"The right-hand side only": "Solo el lado derecho",
"The top and bottom sides only": "Solo los lados superior e inferior",
"The top side only": "Solo el lado superior",
"Top": "Alto",
"Unset color": "Remover color",
"Vertical align": "Alineación vertical",
"Width": "Ancho",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha se reusa cobardemente a eliminar la última celda en la fila.",
"Xinha cowardly refuses to delete the last column in table.": "Xinha se reusa cobardemente a eliminar la última columna en la tabla.",
"Xinha cowardly refuses to delete the last row in table.": "Xinha se reusa cobardemente a eliminar la última fila en la tabla.",
"percent": "por ciento",
"pixels": "píxeles"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/es.js | JavaScript | art | 3,312 |
// I18N constants
// LANG: "fi", ENCODING: UTF-8
{
"Align": "Kohdistus",
"All four sides": "Kaikki neljä sivua",
"Background": "Tausta",
"Baseline": "Takaraja",
"Border": "Reuna",
"Borders": "Reunat",
"Bottom": "Alle",
"Style [CSS]": "Tyyli [CSS]",
"Caption": "Otsikko",
"Cell Properties": "Solun asetukset",
"Center": "Keskelle",
"Char": "Merkki",
"Collapsed borders": "Luhistetut reunat",
"Color": "Väri",
"Description": "Kuvaus",
"FG Color": "FG Väri",
"Frames": "Kehykset",
"Image URL": "Kuvan osoite",
"Layout": "Sommittelu",
"Left": "Vasen",
"Margin": "Marginaali",
"Middle": "Keskelle",
"No rules": "Ei viivoja",
"No sides": "Ei sivuja",
"Padding": "Palstantäyte",
"Right": "Oikea",
"Row Properties": "Rivin asetukset",
"Rules will appear between all rows and columns": "Viivat jokaisen rivin ja sarakkeen välillä",
"Rules will appear between columns only": "Viivat ainoastaan sarakkeiden välillä",
"Rules will appear between rows only": "Viivat ainoastaan rivien välillä",
"Rules": "Viivat",
"Spacing": "Palstatila",
"Summary": "Yhteenveto",
"Delete cell": "Poista solu",
"Insert cell after": "Lisää solu perään",
"Insert cell before": "Lisää solu ennen",
"Merge cells": "Yhdistä solut",
"Cell properties": "Solun asetukset",
"Split cell": "Jaa solu",
"Delete column": "Poista sarake",
"Insert column after": "Lisää sarake perään",
"Insert column before": "Lisää sarake ennen",
"Split column": "Jaa sarake",
"Delete row": "Poista rivi",
"Insert row before": "Lisää rivi yläpuolelle",
"Insert row after": "Lisää rivi alapuolelle",
"Row properties": "Rivin asetukset",
"Split row": "Jaa rivi",
"Table properties": "Taulukon asetukset",
"Top": "Ylös",
"Table Properties": "Taulukon asetukset",
"The bottom side only": "Ainoastaan alapuolelle",
"The left-hand side only": "Ainoastaan vasenreuna",
"The right and left sides only": "Oikea- ja vasenreuna",
"The right-hand side only": "Ainoastaan oikeareuna",
"The top and bottom sides only": "Ylä- ja alapuoli.",
"The top side only": "Ainoastaan yläpuoli",
"Vertical align": "Vertikaali kohdistus",
"Width": "Leveys",
"Xinha cowardly refuses to delete the last cell in row.": "Ei voida poistaa viimeistä solua rivistä.",
"Xinha cowardly refuses to delete the last column in table.": "Ei voida poistaa viimeistä saraketta taulusta.",
"Xinha cowardly refuses to delete the last row in table.": "Ei voida poistaa viimeistä riviä taulusta.",
"percent": "prosenttia",
"pixels": "pikseliä"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/fi.js | JavaScript | art | 2,604 |
// I18N constants
// LANG: "ro", ENCODING: UTF-8
// Author: Mihai Bazon, http://dynarch.com/mishoo
{
"Align": "Aliniere",
"All four sides": "Toate părţile",
"Background": "Fundal",
"Baseline": "Baseline",
"Border": "Chenar",
"Borders": "Chenare",
"Bottom": "Jos",
"Style [CSS]": "Stil [CSS]",
"Caption": "Titlu de tabel",
"Cell Properties": "Proprietăţile celulei",
"Center": "Centru",
"Char": "Caracter",
"Collapsed borders": "Chenare asimilate",
"Color": "Culoare",
"Description": "Descriere",
"FG Color": "Culoare text",
"Float": "Poziţie",
"Frames": "Chenare",
"Height": "Înălţimea",
"How many columns would you like to merge?": "Câte coloane vrei să uneşti?",
"How many rows would you like to merge?": "Câte linii vrei să uneşti?",
"Image URL": "URL-ul imaginii",
"Justify": "Justify",
"Layout": "Aranjament",
"Left": "Stânga",
"Margin": "Margine",
"Middle": "Mijloc",
"No rules": "Fără linii",
"No sides": "Fără părţi",
"None": "Nimic",
"Padding": "Spaţiere",
"Please click into some cell": "Vă rog să daţi click într-o celulă",
"Right": "Dreapta",
"Row Properties": "Proprietăţile liniei",
"Rules will appear between all rows and columns": "Vor apărea linii între toate rândurile şi coloanele",
"Rules will appear between columns only": "Vor apărea doar linii verticale",
"Rules will appear between rows only": "Vor apărea doar linii orizontale",
"Rules": "Linii",
"Spacing and padding": "Spaţierea",
"Spacing": "Între celule",
"Summary": "Sumar",
"Delete cell": "Şterge celula",
"Insert cell after": "Inserează o celulă la dreapta",
"Insert cell before": "Inserează o celulă la stânga",
"Merge cells": "Uneşte celulele",
"Cell properties": "Proprietăţile celulei",
"Split cell": "Împarte celula",
"Delete column": "Şterge coloana",
"Insert column after": "Inserează o coloană la dreapta",
"Insert column before": "Inserează o coloană la stânga",
"Split column": "Împarte coloana",
"Delete row": "Şterge rândul",
"Insert row before": "Inserează un rând înainte",
"Insert row after": "Inserează un rând după",
"Row properties": "Proprietăţile rândului",
"Split row": "Împarte rândul",
"Table properties": "Proprietăţile tabelei",
"Table Properties": "Proprietăţile tabelei",
"Text align": "Aliniere",
"The bottom side only": "Doar partea de jos",
"The left-hand side only": "Doar partea din stânga",
"The right and left sides only": "Partea din stânga şi cea din dreapta",
"The right-hand side only": "Doar partea din dreapta",
"The top and bottom sides only": "Partea de sus si cea de jos",
"The top side only": "Doar partea de sus",
"Top": "Sus",
"Unset color": "Dezactivează culoarea",
"Vertical align": "Aliniere pe verticală",
"Width": "Lăţime",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha refuză cu laşitate să şteargă ultima celulă din rând.",
"Xinha cowardly refuses to delete the last column in table.": "Xinha refuză cu laşitate să şteargă ultima coloamă din tabela.",
"Xinha cowardly refuses to delete the last row in table.": "Xinha refuză cu laşitate să şteargă ultimul rând din tabela.",
"percent": "procente",
"pixels": "pixeli"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/ro.js | JavaScript | art | 3,319 |
// I18N constants
// LANG: "he", ENCODING: UTF-8
// Author: Liron Newman, http://www.eesh.net, <plastish at ultinet dot org>
{
"Align": "ישור",
"All four sides": "כל ארבעת הצדדים",
"Background": "רקע",
"Baseline": "קו בסיס",
"Border": "גבול",
"Borders": "גבולות",
"Bottom": "תחתון",
"Style [CSS]": "סגנון [CSS]",
"Caption": "כותרת",
"Cell Properties": "מאפייני תא",
"Center": "מרכז",
"Char": "תו",
"Collapsed borders": "גבולות קורסים",
"Color": "צבע",
"Description": "תיאור",
"FG Color": "צבע קידמה",
"Float": "מרחף",
"Frames": "מסגרות",
"Height": "גובה",
"How many columns would you like to merge?": "כמה טורים ברצונך למזג?",
"How many rows would you like to merge?": "כמה שורות ברצונך למזג?",
"Image URL": "URL התמונה",
"Justify": "ישור",
"Layout": "פריסה",
"Left": "שמאל",
"Margin": "שוליים",
"Middle": "אמצע",
"No rules": "ללא קווים",
"No sides": "ללא צדדים",
"None": "אין",
"Padding": "ריווח בשוליים",
"Please click into some cell": "אנא לחץ על תא כלשהו",
"Right": "ימין",
"Row Properties": "מאפייני שורה",
"Rules will appear between all rows and columns": "קווים יופיעו בין כל השורות והטורים",
"Rules will appear between columns only": "קווים יופיעו בין טורים בלבד",
"Rules will appear between rows only": "קווים יופיעו בין שורות בלבד",
"Rules": "קווים",
"Spacing and padding": "ריווח ושוליים",
"Spacing": "ריווח",
"Summary": "סיכום",
"Delete cell": "מחק תא",
"Insert cell after": "הכנס תא אחרי",
"Insert cell before": "הכנס תא לפני",
"Merge cells": "מזג תאים",
"Cell properties": "מאפייני תא",
"Split cell": "פצל תא",
"Delete column": "מחק טור",
"Insert column after": "הכנס טור אחרי",
"Insert column before": "הכנס טור לפני",
"Split column": "פצל טור",
"Delete row": "מחק שורה",
"Insert row before": "הכנס שורה לפני",
"Insert row after": "הכנס שורה אחרי",
"Row properties": "מאפייני שורה",
"Split row": "פצל שורה",
"Table properties": "מאפייני טבלה",
"Table Properties": "מאפייני טבלה",
"Text align": "ישור טקסט",
"The bottom side only": "הצד התחתון בלבד",
"The left-hand side only": "הצד השמאלי בלבד",
"The right and left sides only": "הצדדים הימני והשמאלי בלבד",
"The right-hand side only": "הצד הימני בלבד",
"The top and bottom sides only": "הצדדים העליון והתחתון בלבד",
"The top side only": "הצד העליון בלבד",
"Top": "עליון",
"Unset color": "צבע לא נבחר",
"Vertical align": "יישור אנכי",
"Width": "רוחב",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha מסרב בפחדנות למחוק את התא האחרון בשורה.",
"Xinha cowardly refuses to delete the last column in table.": "Xinha מסרב בפחדנות למחוק את הטור האחרון בטבלה.",
"Xinha cowardly refuses to delete the last row in table.": "Xinha מסרב בפחדנות למחוק את השורה האחרונה בטבלה.",
"percent": "אחוז",
"pixels": "פיקסלים"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/he.js | JavaScript | art | 3,566 |
// I18N constants
//
// LANG: "pt_br", ENCODING: UTF-8
// Portuguese Brazilian Translation
//
// Author: Marcio Barbosa, <marcio@mpg.com.br>
// MSN: tomarshall@msn.com - ICQ: 69419933
// Site: http://www.mpg.com.br
//
// Last revision: 06 september 2007
// Please don´t remove this information
// If you modify any source, please insert a comment with your name and e-mail
//
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
{
"Align": "Alinhamento",
"All four sides": "todos os quatro lados",
"Background": "Fundo",
"Baseline": "Linha de base",
"Border": "Bordar",
"Borders": "Bordas",
"Bottom": "Botão",
"CSS Style": "Estilo (CSS)",
"Cancel": "Cancelar",
"Style [CSS]": "Estilo [CSS]",
"Caption": "Captação",
"Cell Properties": "Propriedades da célula",
"Cells down": "Células para baixo",
"Cells to the right, and": "Células para direita, e",
"Center": "Centralizar",
"Char": "Caracter",
"Collapsed borders": "Bordas fechadas",
"Color": "Cores",
"Columns": "Colunas",
"Description": "Descrição",
"FG Color": "Cor de primeiro plano",
"Float": "Flutuante",
"Frame and borders": "Frames e bordas",
"Frames": "Frames",
"Height": "Altura",
"How many columns would you like to merge?": "Quantas colunas você deseja mesclar?",
"How many rows would you like to merge?": "Quantas linhas você deseja mesclar?",
"Image URL": "URL da imagem",
"Justify": "Justificado",
"Layout": "Layout",
"Left": "Esquerda",
"Margin": "Margem",
"Merge Cells": "Mesclar Células",
"Merge current cell with:": "Mesclar célula atual com:",
"Middle": "Meio",
"No rules": "Sem regras",
"No sides": "Sem lados",
"None": "Nenhum",
"OK": "OK",
"Padding": "Espaço interno",
"Please click into some cell": "Por favor, clique em alguma célula",
"Right": "Direita",
"Row Properties": "Propriedades da Linha",
"Rows": "Linhas",
"Rules": "Regras",
"Rules will appear between all rows and columns": "As Regras apareceram entre todas as linhas e colunas",
"Rules will appear between columns only": "Regras apareceram somente nas colunas",
"Rules will appear between rows only": "Regras apareceram somente nas linhas",
"Rules": "Regras",
"Spacing": "Espaçamento",
"Spacing and padding": "Espaçamentos",
"Summary": "Sumário",
"Table Properties": "Propriedades da Tabela",
"Text align": "Alinhamento do texto",
"The bottom side only": "Somente na parte inferior",
"The left-hand side only": "Somente na parte esquerda",
"The right and left sides only": "Somente nas parte direita e esquerda",
"The right-hand side only": "Somente na parte direita",
"The top and bottom sides only": "Somente na parte inferior e superior",
"The top side only": "Somente na parte superior",
"Top": "Topo",
"Unset color": "Cor não definida",
"Vertical align": "Alinhamento vertical",
"Width": "Largura",
"Xinha cowardly refuses to delete the last cell in row.": "Xinha recusa-se a apagar a última célula na linha",
"Xinha cowardly refuses to delete the last column in table.": "Xinha recusa-se a apagar a última coluna da tabela",
"Xinha cowardly refuses to delete the last row in table.": "Xinha recusa-se a apagar a última linha da tabela",
"percent": "%",
"pixels": "Pixel",
// not find with lc_parse_strings.php
"Delete cell": "Apagar célula",
"Insert cell after": "Inserir célula antes",
"Insert cell before": "Inserir célula depois",
"Split cell": "Separar célula",
"Delete column": "Apagar coluna",
"Insert column after": "Inserir coluna antes",
"Insert column before": "Inserir coluna depois",
"Split column": "Separar colunas",
"Delete row": "Apagar linha",
"Insert row before": "Inserir linha antes",
"Insert row after": "Inserir linha depois",
"Split row": "Separar linhas"
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/lang/pt_br.js | JavaScript | art | 3,897 |
// Table Operations Plugin for HTMLArea-3.0
// Implementation by Mihai Bazon. Sponsored by http://www.bloki.com
//
// htmlArea v3.0 - Copyright (c) 2002 interactivetools.com, inc.
// This notice MUST stay intact for use (see license.txt).
//
// A free WYSIWYG editor replacement for <textarea> fields.
// For full source code and docs, visit http://www.interactivetools.com/
//
// Version 3.0 developed by Mihai Bazon for InteractiveTools.
// http://dynarch.com/mishoo
//
// $Id: TableOperations.js 1260 2010-05-11 12:31:04Z gogo $
// Object that will encapsulate all the table operations provided by
// HTMLArea-3.0 (except "insert table" which is included in the main file)
Xinha.Config.prototype.TableOperations = {
'showButtons' : true // Set to false to hide all but inserttable and toggleborders buttons on the toolbar
// this is useful if you have the ContextMenu plugin and want to save toolbar space
// (the context menu can perform all the button operations)
}
function TableOperations(editor) {
this.editor = editor;
var cfg = editor.config;
var bl = TableOperations.btnList;
var self = this;
// register the toolbar buttons provided by this plugin
// Remove existing inserttable and toggleborders, we will replace it in our group
cfg.removeToolbarElement(' inserttable toggleborders ');
var toolbar = ["linebreak", "inserttable", "toggleborders"];
for (var i = 0; i < bl.length; ++i) {
var btn = bl[i];
if (!btn) {
if(cfg.TableOperations.showButtons) toolbar.push("separator");
} else {
var id = "TO-" + btn[0];
cfg.registerButton(id, Xinha._lc(btn[2], "TableOperations"), editor.imgURL(btn[0] + ".gif", "TableOperations"), false,
function(editor, id) {
// dispatch button press event
self.buttonPress(editor, id);
}, btn[1]);
if(cfg.TableOperations.showButtons) toolbar.push(id);
}
}
// add a new line in the toolbar
cfg.toolbar.push(toolbar);
if ( typeof PopupWin == 'undefined' )
{
Xinha._loadback(_editor_url + 'modules/Dialogs/popupwin.js');
}
if ( typeof Xinha.InlineStyler == 'undefined' )
{
Xinha._loadback(_editor_url + 'modules/InlineStyler/InlineStyler.js');
}
}
TableOperations._pluginInfo = {
name : "TableOperations",
version : "1.0",
developer : "Mihai Bazon",
developer_url : "http://dynarch.com/mishoo/",
c_owner : "Mihai Bazon",
sponsor : "Zapatec Inc.",
sponsor_url : "http://www.bloki.com",
license : "htmlArea"
};
TableOperations.prototype._lc = function(string) {
return Xinha._lc(string, 'TableOperations');
};
/************************
* UTILITIES
************************/
// retrieves the closest element having the specified tagName in the list of
// ancestors of the current selection/caret.
TableOperations.prototype.getClosest = function(tagName) {
var editor = this.editor;
var ancestors = editor.getAllAncestors();
var ret = null;
tagName = ("" + tagName).toLowerCase();
for (var i = 0; i < ancestors.length; ++i) {
var el = ancestors[i];
if (el.tagName.toLowerCase() == tagName) {
ret = el;
break;
}
}
return ret;
};
// this function gets called when some button from the TableOperations toolbar
// was pressed.
TableOperations.prototype.buttonPress = function(editor, button_id) {
this.editor = editor;
var mozbr = Xinha.is_gecko ? "<br />" : "";
// helper function that clears the content in a table row
function clearRow(tr) {
var tds = tr.getElementsByTagName("td");
for (var i = tds.length; --i >= 0;) {
var td = tds[i];
td.rowSpan = 1;
td.innerHTML = mozbr;
}
}
function splitRow(td) {
var n = parseInt("" + td.rowSpan);
var nc = parseInt("" + td.colSpan);
td.rowSpan = 1;
tr = td.parentNode;
var itr = tr.rowIndex;
var trs = tr.parentNode.rows;
var index = td.cellIndex;
while (--n > 0) {
tr = trs[++itr];
var otd = editor._doc.createElement("td");
otd.colSpan = td.colSpan;
otd.innerHTML = mozbr;
tr.insertBefore(otd, tr.cells[index]);
}
editor.forceRedraw();
editor.updateToolbar();
}
function splitCol(td) {
var nc = parseInt("" + td.colSpan);
td.colSpan = 1;
tr = td.parentNode;
var ref = td.nextSibling;
while (--nc > 0) {
var otd = editor._doc.createElement("td");
otd.rowSpan = td.rowSpan;
otd.innerHTML = mozbr;
tr.insertBefore(otd, ref);
}
editor.forceRedraw();
editor.updateToolbar();
}
function splitCell(td) {
var nc = parseInt("" + td.colSpan);
splitCol(td);
var items = td.parentNode.cells;
var index = td.cellIndex;
while (nc-- > 0) {
splitRow(items[index++]);
}
}
function selectNextNode(el) {
var node = el.nextSibling;
while (node && node.nodeType != 1) {
node = node.nextSibling;
}
if (!node) {
node = el.previousSibling;
while (node && node.nodeType != 1) {
node = node.previousSibling;
}
}
if (!node) {
node = el.parentNode;
}
editor.selectNodeContents(node);
}
function cellMerge(table, cell_index, row_index, no_cols, no_rows) {
var rows = [];
var cells = [];
try {
for (i=row_index; i<row_index+no_rows; i++) {
var row = table.rows[i];
for (j=cell_index; j<cell_index+no_cols; j++) {
if (row.cells[j].colSpan > 1 || row.cells[j].rowSpan > 1) {
splitCell(row.cells[j]);
}
cells.push(row.cells[j]);
}
if (cells.length > 0) {
rows.push(cells);
cells = [];
}
}
} catch(e) {
alert("Invalid selection");
return false;
}
var row_index1 = rows[0][0].parentNode.rowIndex;
var row_index2 = rows[rows.length-1][0].parentNode.rowIndex;
var row_span2 = rows[rows.length-1][0].rowSpan;
var HTML = "";
for (i = 0; i < rows.length; ++i) {
var cells = rows[i];
for (var j = 0; j < cells.length; ++j) {
var cell = cells[j];
HTML += cell.innerHTML;
(i || j) && (cell.parentNode.removeChild(cell));
}
}
var td = rows[0][0];
td.innerHTML = HTML;
td.rowSpan = row_index2 - row_index1 + row_span2;
var col_span = 0;
for(j=0; j<rows[0].length; j++) {
col_span += rows[0][j].colSpan;
}
td.colSpan = col_span;
editor.selectNodeContents(td);
editor.forceRedraw();
editor.focusEditor();
}
switch (button_id) {
// ROWS
case "TO-row-insert-above":
case "TO-row-insert-under":
var tr = this.getClosest("tr");
if (!tr) {
break;
}
var otr = tr.cloneNode(true);
clearRow(otr);
tr.parentNode.insertBefore(otr, /under/.test(button_id) ? tr.nextSibling : tr);
editor.forceRedraw();
editor.focusEditor();
break;
case "TO-row-delete":
var tr = this.getClosest("tr");
if (!tr) {
break;
}
var par = tr.parentNode;
if (par.rows.length == 1) {
alert(Xinha._lc("Xinha cowardly refuses to delete the last row in table.", "TableOperations"));
break;
}
// set the caret first to a position that doesn't
// disappear.
selectNextNode(tr);
par.removeChild(tr);
editor.forceRedraw();
editor.focusEditor();
editor.updateToolbar();
break;
case "TO-row-split":
var td = this.getClosest("td");
if (!td) {
break;
}
splitRow(td);
break;
// COLUMNS
case "TO-col-insert-before":
case "TO-col-insert-after":
var td = this.getClosest("td");
if (!td) {
break;
}
var rows = td.parentNode.parentNode.rows;
var index = td.cellIndex;
var lastColumn = (td.parentNode.cells.length == index + 1);
for (var i = rows.length; --i >= 0;) {
var tr = rows[i];
var otd = editor._doc.createElement("td");
otd.innerHTML = mozbr;
if (lastColumn && Xinha.is_ie)
{
tr.insertBefore(otd);
}
else
{
var ref = tr.cells[index + (/after/.test(button_id) ? 1 : 0)];
tr.insertBefore(otd, ref);
}
}
editor.focusEditor();
break;
case "TO-col-split":
var td = this.getClosest("td");
if (!td) {
break;
}
splitCol(td);
break;
case "TO-col-delete":
var td = this.getClosest("td");
if (!td) {
break;
}
var index = td.cellIndex;
if (td.parentNode.cells.length == 1) {
alert(Xinha._lc("Xinha cowardly refuses to delete the last column in table.", "TableOperations"));
break;
}
// set the caret first to a position that doesn't disappear
selectNextNode(td);
var rows = td.parentNode.parentNode.rows;
for (var i = rows.length; --i >= 0;) {
var tr = rows[i];
tr.removeChild(tr.cells[index]);
}
editor.forceRedraw();
editor.focusEditor();
editor.updateToolbar();
break;
// CELLS
case "TO-cell-split":
var td = this.getClosest("td");
if (!td) {
break;
}
splitCell(td);
break;
case "TO-cell-insert-before":
case "TO-cell-insert-after":
var td = this.getClosest("td");
if (!td) {
break;
}
var tr = td.parentNode;
var otd = editor._doc.createElement("td");
otd.innerHTML = mozbr;
tr.insertBefore(otd, /after/.test(button_id) ? td.nextSibling : td);
editor.forceRedraw();
editor.focusEditor();
break;
case "TO-cell-delete":
var td = this.getClosest("td");
if (!td) {
break;
}
if (td.parentNode.cells.length == 1) {
alert(Xinha._lc("Xinha cowardly refuses to delete the last cell in row.", "TableOperations"));
break;
}
// set the caret first to a position that doesn't disappear
selectNextNode(td);
td.parentNode.removeChild(td);
editor.forceRedraw();
editor.updateToolbar();
break;
case "TO-cell-merge":
//Mozilla, as opposed to IE, allows the selection of several cells, which is fine :)
var sel = editor._getSelection();
if (!Xinha.is_ie && sel.rangeCount > 1) {
var range = sel.getRangeAt(0);
var td = range.startContainer.childNodes[range.startOffset];
var tr = td.parentNode;
var cell_index = td.cellIndex;
var row_index = tr.rowIndex;
var row_index2 = 0;
var rownum = row_index;
var no_cols = 0;
var row_colspan = 0;
var td2, tr2;
for(i=0; i<sel.rangeCount; i++) {
range = sel.getRangeAt(i);
td2 = range.startContainer.childNodes[range.startOffset];
tr2 = td2.parentNode;
if(tr2.rowIndex != rownum) {
rownum = tr2.rowIndex;
row_colspan = 0;
}
row_colspan += td2.colSpan;
if(row_colspan > no_cols) {
no_cols = row_colspan;
}
if(tr2.rowIndex + td2.rowSpan - 1 > row_index2) {
row_index2 = tr2.rowIndex + td2.rowSpan - 1;
}
}
var no_rows = row_index2 - row_index + 1;
var table = tr.parentNode;
cellMerge(table, cell_index, row_index, no_cols, no_rows);
} else {
// Internet Explorer "browser" or not more than one cell selected in Moz
var td = this.getClosest("td");
if (!td) {
alert(Xinha._lc("Please click into some cell", "TableOperations"));
break;
}
var tr = td.parentNode;
var cell_index = td.cellIndex;
var row_index = tr.rowIndex;
// pass cellMerge and the indices so apply() can call cellMerge and know
// what cell was selected when the dialog was opened
this.dialogMerge(cellMerge, cell_index, row_index);
}
break;
// PROPERTIES
case "TO-table-prop":
this.dialogTableProperties();
break;
case "TO-row-prop":
this.dialogRowCellProperties(false);
break;
case "TO-cell-prop":
this.dialogRowCellProperties(true);
break;
default:
alert("Button [" + button_id + "] not yet implemented");
}
};
// the list of buttons added by this plugin
TableOperations.btnList = [
// table properties button
["table-prop", "table", "Table properties"],
null, // separator
// ROWS
["row-prop", "tr", "Row properties"],
["row-insert-above", "tr", "Insert row before"],
["row-insert-under", "tr", "Insert row after"],
["row-delete", "tr", "Delete row"],
["row-split", "td[rowSpan!=1]", "Split row"],
null,
// COLS
["col-insert-before", "td", "Insert column before"],
["col-insert-after", "td", "Insert column after"],
["col-delete", "td", "Delete column"],
["col-split", "td[colSpan!=1]", "Split column"],
null,
// CELLS
["cell-prop", "td", "Cell properties"],
["cell-insert-before", "td", "Insert cell before"],
["cell-insert-after", "td", "Insert cell after"],
["cell-delete", "td", "Delete cell"],
["cell-merge", "tr", "Merge cells"],
["cell-split", "td[colSpan!=1,rowSpan!=1]", "Split cell"]
];
TableOperations.prototype.dialogMerge = function(merge_func, cell_index, row_index) {
var table = this.getClosest("table");
var self = this;
var editor = this.editor;
if (!this.dialogMergeCellsHtml) {
Xinha._getback(Xinha.getPluginDir("TableOperations") + '/popups/dialogMergeCells.html', function(getback) { self.dialogMergeCellsHtml = getback; self.dialogMerge(merge_func, cell_index, row_index); });
return;
}
if (!this.dialogMergeCells) {
this.dialogMergeCells = new Xinha.Dialog(editor, this.dialogMergeCellsHtml, 'TableOperations', {width:400});
this.dialogMergeCells.getElementById('cancel').onclick = function() { self.dialogMergeCells.hide(); };
}
var dialog = this.dialogMergeCells;
function apply() {
dialog.hide();
no_cols = parseInt(dialog.getElementById('f_cols').value,10) + 1;
no_rows = parseInt(dialog.getElementById('f_rows').value,10) + 1;
merge_func(table, cell_index, row_index, no_cols, no_rows);
return
}
this.dialogMergeCells.getElementById('ok').onclick = apply;
this.dialogMergeCells.show();
this.dialogMergeCells.getElementById('f_cols').focus();
}
TableOperations.prototype.dialogTableProperties = function() {
var table = this.getClosest("table");
var self = this;
var editor = this.editor;
if(!this.dialogTablePropertiesHtml){ // retrieve the raw dialog contents
Xinha._getback( Xinha.getPluginDir("TableOperations") + '/popups/dialogTable.html', function(getback) { self.dialogTablePropertiesHtml = getback; self.dialogTableProperties(); });
return;
}
if (!this.dialogTable) {
// Now we have everything we need, so we can build the dialog.
this.dialogTable = new Xinha.Dialog(editor, this.dialogTablePropertiesHtml, 'TableOperations',{width:440})
this.dialogTable.getElementById('cancel').onclick = function() { self.dialogTable.hide()};
}
var dialog = this.dialogTable;
var Styler = new Xinha.InlineStyler(table, this.editor, dialog);
function apply() {
var params = dialog.hide();
Styler.applyStyle(params);
for (var i in params) {
if(typeof params[i] == 'function') continue;
var val = params[i];
//if (val == null) continue;
if (typeof val == 'object' && val != null && val.tagName) val = val.value;
switch (i) {
case "caption":
if (/\S/.test(val)) {
// contains non white-space characters
var caption = table.getElementsByTagName("caption")[0];
if (!caption) {
caption = dialog.editor._doc.createElement("caption");
table.insertBefore(caption, table.firstChild);
}
caption.innerHTML = val;
} else {
// search for caption and delete it if found
var caption = table.getElementsByTagName("caption")[0];
if (caption) {
caption.parentNode.removeChild(caption);
}
}
break;
case "summary":
table.summary = val;
break;
case "align":
table.align = val;
break;
case "spacing":
table.cellSpacing = val;
break;
case "padding":
table.cellPadding = val;
break;
case "borders":
table.border = val;
break;
case "frames":
table.frame = val;
break;
case "rules":
table.rules = val;
break;
}
}
// various workarounds to refresh the table display (Gecko,
// what's going on?! do not disappoint me!)
self.editor.forceRedraw();
self.editor.focusEditor();
self.editor.updateToolbar();
var save_collapse = table.style.borderCollapse;
table.style.borderCollapse = "collapse";
table.style.borderCollapse = "separate";
table.style.borderCollapse = save_collapse;
}
var st_layout = Styler.createStyleLayoutFieldset();
var p = dialog.getElementById("TO_layout");
p.replaceChild(st_layout,p.firstChild);
var st_prop = Styler.createStyleFieldset();
p = dialog.getElementById("TO_style");
p.replaceChild(st_prop,p.firstChild);
this.dialogTable.getElementById('ok').onclick = apply;
// gather element's values
var values = {};
var capel = table.getElementsByTagName("caption")[0];
if (capel) {
values['caption'] = capel.innerHTML;
}
else values['caption'] = "";
values['summary'] = table.summary;
values['spacing'] = table.cellSpacing;
values['padding'] = table.cellPadding;
var f_borders = table.border;
values['frames'] = table.frame;
values['rules'] = table.rules;
this.dialogTable.show(values);
};
TableOperations.prototype.dialogRowCellProperties = function(cell) {
// retrieve existing values
var element = this.getClosest(cell ? "td" : "tr");
var table = this.getClosest("table");
var self = this;
var editor = this.editor;
if(!self.dialogRowCellPropertiesHtml) // retrieve the raw dialog contents
{
Xinha._getback( Xinha.getPluginDir("TableOperations") + '/popups/dialogRowCell.html', function(getback) { self.dialogRowCellPropertiesHtml = getback; self.dialogRowCellProperties(cell); });
return;
}
if (!this.dialogRowCell) {
// Now we have everything we need, so we can build the dialog.
this.dialogRowCell = new Xinha.Dialog(editor, self.dialogRowCellPropertiesHtml, 'TableOperations',{width:440})
this.dialogRowCell.getElementById('cancel').onclick = function() { self.dialogRowCell.hide()};
}
var dialog = this.dialogRowCell;
dialog.getElementById('title').innerHTML = cell ? Xinha._lc("Cell Properties", "TableOperations") : Xinha._lc("Row Properties", "TableOperations");
var Styler = new Xinha.InlineStyler(element, self.editor, dialog);
function apply() {
var params = dialog.hide();
Styler.applyStyle(params);
// various workarounds to refresh the table display (Gecko,
// what's going on?! do not disappoint me!)
self.editor.forceRedraw();
self.editor.focusEditor();
self.editor.updateToolbar();
var save_collapse = table.style.borderCollapse;
table.style.borderCollapse = "collapse";
table.style.borderCollapse = "separate";
table.style.borderCollapse = save_collapse;
}
var st_layout = Styler.createStyleLayoutFieldset();
var p = dialog.getElementById("TO_layout");
p.replaceChild(st_layout,p.firstChild);
var st_prop = Styler.createStyleFieldset();
p = dialog.getElementById("TO_style");
p.replaceChild(st_prop,p.firstChild);
this.dialogRowCell.getElementById('ok').onclick = apply;
this.dialogRowCell.show();
};
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/TableOperations.js | JavaScript | art | 19,654 |
<h1 id="[h1]"><l10n>Merge Cells</l10n></h1>
<table width="100%">
<tr>
<td colspan="2">
<l10n>Merge current cell with:</l10n>
</td>
</tr>
<tr>
<td style="text-align: right;" width="30%"><input type="text" name="[cols]" value="0" id="[f_cols]" size="4" title="Columns" /></td>
<td width="70%"><l10n>Cells to the right, and</l10n></td>
</tr>
<tr>
<td style="text-align: right;"><input type="text" name="[rows]" value="0" id="[f_rows]" size="4" title="Rows" /></td>
<td><l10n>Cells down</l10n></td>
</tr>
<tr>
<td colspan="2" style="text-align: right;">
<hr />
<div class="buttons" id="[buttons]">
<input type="button" id="[ok]" value="_(OK)" />
<input type="button" id="[cancel]" value="_(Cancel)" />
</div>
</td>
</tr>
</table>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/popups/dialogMergeCells.html | HTML | art | 801 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Merge Cells</title>
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
<style type="text/css">
html,body {width: 400px; height: 150px;}
</style>
<script type="text/javascript" src="../../../popups/popup.js"></script>
<script type="text/javascript">
function Init() {
window.resizeTo(400,170);
__dlg_init();
document.getElementById("f_cols").focus();
}
function onOK() {
var param = new Object();
param["f_cols"] = document.getElementById("f_cols").value;
param["f_rows"] = document.getElementById("f_rows").value;
__dlg_close(param);
return false;
}
function onCancel() {
__dlg_close(null);
return false;
}
</script>
</head>
<body onload="Init()">
<form action="" method="get">
<table width="100%">
<tr>
<td colspan="2">
<div class="title">Merge Cells</div>
</td>
</tr>
<tr>
<td colspan="2">
Merge current cell with:
</td>
</tr>
<tr>
<td style="text-align: right;" width="30%"><input type="text" name="cols" value="0" id="f_cols" size="4" title="Columns" /></td>
<td width="70%">Cells to the right, and</td>
</tr>
<tr>
<td style="text-align: right;"><input type="text" name="rows" value="0" id="f_rows" size="4" title="Rows" /></td>
<td>Cells down</td>
</tr>
<tr>
<td colspan="2" style="text-align: right;">
<hr />
<button type="button" name="ok" onclick="return onOK();">OK</button>
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
</td>
</tr>
</table>
</form>
</body>
</html>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/popups/merge_cells.html | HTML | art | 1,623 |
<h1 id="[title]">Title</h1>
<table style="width:100%">
<tr>
<td id="[TO_layout]"><br />
</td>
</tr>
<tr>
<td id="[TO_style]"><br />
</td>
</tr>
</table>
<div class="buttons" id="[buttons]">
<input type="button" id="[ok]" value="_(OK)" />
<input type="button" id="[cancel]" value="_(Cancel)" />
</div> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/popups/dialogRowCell.html | HTML | art | 360 |
<h1 id="[h1]"><l10n>Table Properties</l10n></h1>
<table style="width: 100%;">
<tbody>
<tr>
<td>
<fieldset>
<legend>
<l10n>Description</l10n>
</legend>
<table style="width: 100%;">
<tbody>
<tr>
<td class="label">
<l10n>Caption</l10n>:
</td>
<td class="value">
<input name="[caption]" value="" type="text">
</td>
</tr>
<tr>
<td class="label">
<l10n>Summary</l10n>:
</td>
<td class="value">
<input name="[summary]" value="" type="text">
</td>
</tr>
</tbody>
</table>
</fieldset>
</td>
</tr>
<tr>
<td id="[TO_layout]"><br />
</td>
</tr>
<tr>
<td>
<fieldset>
<legend>
<l10n>Spacing and padding</l10n>
</legend>
<table style="width: 100%;">
<tbody>
<tr>
<td class="label">
<l10n>Spacing</l10n>:
</td>
<td>
<input name="[spacing]" size="5" value="" type="text"> <l10n>Padding</l10n>: <input name="[padding]" size="5" value="5" type="text"> <l10n>pixels</l10n>
</td>
</tr>
</tbody>
</table>
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend>
<l10n>Frame and borders</l10n>
</legend>
<table width="100%">
<tbody>
<tr>
<td class="label">
<l10n>Borders</l10n>:
</td>
<td>
<input name="[borders]" size="5" value="" type="text"> <l10n>pixels</l10n>
</td>
</tr>
<tr>
<td class="label">
<l10n>Frames</l10n>:
</td>
<td>
<select name="[frames]">
<option value="void"><l10n>No sides</l10n></option>
<option value="above"><l10n>The top side only</l10n></option>
<option value="below"><l10n>The bottom side only</l10n></option>
<option value="hsides"><l10n>The top and bottom sides only</l10n></option>
<option value="vsides"><l10n>The right and left sides only</l10n></option>
<option value="lhs"><l10n>The left-hand side only</l10n></option>
<option value="rhs"><l10n>The right-hand side only</l10n></option>
<option value="box"><l10n>All four sides</l10n></option>
</select>
</td>
</tr>
<tr>
<td class="label">
<l10n>Rules:
</td>
<td>
<select name="[rules]">
<option value="none"><l10n>No rules</l10n></option>
<option value="rows"><l10n>Rules will appear between rows only</l10n></option>
<option value="cols"><l10n>Rules will appear between columns only</l10n></option>
<option value="all"><l10n>Rules will appear between all rows and columns</l10n></option>
</select>
</td>
</tr>
</tbody>
</table>
</fieldset>
</td>
</tr>
<tr>
<td id="[TO_style]"><br />
</td>
</tr>
</tbody>
</table>
<div class="buttons" id="[buttons]">
<input type="button" id="[ok]" value="_(OK)" />
<input type="button" id="[cancel]" value="_(Cancel)" />
</div>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/TableOperations/popups/dialogTable.html | HTML | art | 5,537 |
<?php
$send_to = 'Website Enquiries <enquiries@' . preg_replace('/^www./', '', $_SERVER['HTTP_HOST']) . '>';
$emailfield = NULL;
$subjectfield = NULL;
$namefield = NULL;
$when_done_goto = isset($_REQUEST['when_done_goto']) ? $_REQUEST['when_done_goto'] : NULL;
if($_POST)
{
unset($_POST['when_done_goto']);
$message = '';
$longestKey = 0;
foreach(array_keys($_POST) as $key)
{
$longestKey = max(strlen($key), $longestKey);
}
$longestKey = max($longestKey, 15);
foreach($_POST as $Var => $Val)
{
if(!$emailfield)
{
if(preg_match('/(^|\s)e-?mail(\s|$)/i', $Var))
{
$emailfield = $Var;
}
}
if(!$subjectfield)
{
if(preg_match('/(^|\s)subject(\s|$)/i', $Var))
{
$subjectfield = $Var;
}
}
if(!$namefield)
{
if(preg_match('/(^|\s)from(\s|$)/i', $Var) || preg_match('/(^|\s)name(\s|$)/i', $Var))
{
$namefield = $Var;
}
}
if(is_array($Val))
{
$Val = implode(', ', $Val);
}
$message .= $Var;
if(strlen($Var) < $longestKey)
{
$message .= str_repeat('.', $longestKey - strlen($Var));
}
$message .= ':';
if((64 - max(strlen($Var), $longestKey) < strlen($Val)) || preg_match('/\r?\n/', $Val))
{
$message .= "\r\n ";
$message .= preg_replace('/\r?\n/', "\r\n ", wordwrap($Val, 62));
}
else
{
$message .= ' ' . $Val . "\r\n";
}
}
$subject = $subjectfield ? $_POST[$subjectfield] : 'Enquiry';
$email = $emailfield ? $_POST[$emailfield] : $send_to;
if($namefield)
{
$from = $_POST[$namefield] . ' <' . $email . '>';
}
else
{
$from = 'Website Visitor' . ' <' . $email . '>';
}
mail($send_to, $subject, $message, "From: $from");
if(!$when_done_goto)
{
?>
<html><head><title>Message Sent</title></head><body><h1>Message Sent</h1></body></html>
<?php
}
else
{
header("location: $when_done_goto");
exit;
}
}
?>
| zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FormOperations/formmail.php | PHP | art | 2,169 |
<form>
<table class="contact_form">
<caption>Contact Us</caption>
<tbody>
<tr>
<th>Your name:</th>
<td><input type="text" name="Name" value="" /></td>
</tr>
<tr>
<th>Your email:</th>
<td><input type="text" name="Email" value="" /></td>
</tr>
<tr>
<th>Message Subject:</th>
<td><input type="text" name="Subject" value="" /></td>
</tr>
<tr>
<th>What are your hobbies?</th>
<td>
<input type="checkbox" value="Marbles" name="Hobbies[]" /> Marbles <br />
<input type="checkbox" value="Conkers" name="Hobbies[]" /> Conkers <br />
<input type="checkbox" value="Jacks" name="Hobbies[]" /> Jacks
</td>
</tr>
<tr>
<th>Message Body:</th>
</tr>
<tr>
<td colspan="2">
<textarea name="Message"> </textarea>
</td>
</tr>
</tbody>
</table>
<input type="submit" value="Send" /> <input type="reset" value="Reset" />
</form> | zzh-simple-hr | ZJs/webapp/html-editor/XinHa/plugins/FormOperations/default_form.html | HTML | art | 1,043 |