aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@dracos.co.uk>2011-02-10 12:14:25 +0000
committerMatthew Somerville <matthew@dracos.co.uk>2011-02-10 12:14:25 +0000
commitd268531eb127f2a0767cadc5cc0fdaa40d4dfe30 (patch)
tree754d8bde7fedb0f0de11720e998a29aeda84af33
parent7fa3d36e8a1d245e55a1d6100e61ca88b43feb5b (diff)
Translation update from Petter.
-rw-r--r--locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po253
-rwxr-xr-xweb/reports.cgi2
2 files changed, 47 insertions, 208 deletions
diff --git a/locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po b/locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po
index 4b02ea254..aa20127f4 100644
--- a/locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po
+++ b/locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po
@@ -1,56 +1,56 @@
+# translation of FixMyStreet.po to Norwegian Bokmål
# FixMyStreet original .po file, autogenerated by gettext-extract.
# Copyright (C) 2008 UK Citizens Online Democracy
# This file is distributed under the same license as the main FixMyStreet code.
-# Matthew Somerville <matthew@mysociety.org>, 2008-04-15.
#
-#, fuzzy
+# Matthew Somerville <matthew@mysociety.org>, 2008-04-15.
+# Petter Reinholdtsen <pere@hungry.com>, 2011.
msgid ""
msgstr ""
-"Project-Id-Version: 1.0\n"
+"Project-Id-Version: FixMyStreet\n"
"Report-Msgid-Bugs-To: matthew@mysociety.org\n"
"POT-Creation-Date: 2009-08-12 12:28+0100\n"
-"PO-Revision-Date: 2009-01-12 15:00+ZONE\n"
+"PO-Revision-Date: 2011-02-07 20:28MET\n"
"Last-Translator: Petter Reinholdtsen <pere@hungry.com>\n"
-"Language-Team: Norwegian <i18n-no@lister.ping.uio.no>\n"
+"Language-Team: Norwegian Bokmål <i18n-nb@lister.ping.uio.no>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: KBabel 1.11.4\n"
#: fixmystreet/perllib/Page.pm:78
#, perl-format
msgid "Please try again later, or <a href=\"mailto:%s\">email us</a> to let us know."
-msgstr ""
+msgstr "Vær så snill å forsøk igjen senere, eller <a href=\"mailto:%s\">send oss en epost</a> og gi oss beskjed."
#: fixmystreet/perllib/Page.pm:79
msgid "Sorry! Something's gone wrong."
-msgstr ""
+msgstr "Beklager! Noe har gått galt."
#: fixmystreet/perllib/Page.pm:80
msgid "The text of the error was:"
msgstr ""
#: fixmystreet/perllib/Page.pm:167 fixmystreet/perllib/Page.pm:260
-#, fuzzy
msgid "Report a problem"
-msgstr "Legger til en sak"
+msgstr "Rapporter et problem"
#: fixmystreet/perllib/Page.pm:168 fixmystreet/perllib/Page.pm:261
-#, fuzzy
msgid "All reports"
-msgstr "Oppsummerings rapporter"
+msgstr "Alle rapporter"
#: fixmystreet/perllib/Page.pm:169 fixmystreet/perllib/Page.pm:262
msgid "Local alerts"
-msgstr ""
+msgstr "Lokale varsler"
#: fixmystreet/perllib/Page.pm:170 fixmystreet/perllib/Page.pm:263
msgid "Help"
-msgstr ""
+msgstr "Hjelp"
#: fixmystreet/perllib/Page.pm:171 fixmystreet/web/about.cgi:19 fixmystreet/web/about.cgi:21
msgid "About us"
-msgstr ""
+msgstr "Om oss"
#: fixmystreet/perllib/Page.pm:172 fixmystreet/bin/send-questionnaires-eha:93
msgid "Report Empty Homes"
@@ -66,16 +66,15 @@ msgstr ""
#: fixmystreet/perllib/Page.pm:207
msgid "This is a developer site; things might break at any time."
-msgstr ""
+msgstr "Dette er et utviklingsnettsted. Ting kan knekke når som helst."
#: fixmystreet/perllib/Page.pm:259
msgid "Navigation"
-msgstr ""
+msgstr "Navigasjon"
#: fixmystreet/perllib/Page.pm:264
-#, fuzzy
msgid "Contact"
-msgstr "Kontakt oss"
+msgstr "Kontakt"
#: fixmystreet/perllib/Page.pm:265
msgid "<a href=\"http://www.mysociety.org/\"><img id=\"logo\" width=\"133\" height=\"26\" src=\"/i/mysociety-dark.png\" alt=\"View mySociety.org\"><span id=\"logoie\"></span></a>"
@@ -87,7 +86,7 @@ msgstr ""
#: fixmystreet/perllib/Page.pm:299
msgid "Error"
-msgstr ""
+msgstr "Feil"
#: fixmystreet/perllib/Page.pm:375
msgid "Crown copyright. All rights reserved. Ministry of Justice"
@@ -134,28 +133,27 @@ msgstr ""
#: fixmystreet/perllib/Page.pm:586
msgid "today"
-msgstr ""
+msgstr "idag"
#: fixmystreet/perllib/Page.pm:608
msgid "less than a minute"
-msgstr ""
+msgstr "mindre enn et minutt"
#: fixmystreet/perllib/Page.pm:611
msgid "week"
-msgstr ""
+msgstr "uke"
#: fixmystreet/perllib/Page.pm:612
msgid "day"
-msgstr ""
+msgstr "dag"
#: fixmystreet/perllib/Page.pm:613
-#, fuzzy
msgid "hour"
-msgstr "eller"
+msgstr "timer"
#: fixmystreet/perllib/Page.pm:614
msgid "minute"
-msgstr ""
+msgstr "minutt"
#: fixmystreet/perllib/Page.pm:634
#, fuzzy, perl-format
@@ -178,9 +176,9 @@ msgid "Reported by %s in the %s category by %s at %s"
msgstr ""
#: fixmystreet/perllib/Page.pm:644
-#, fuzzy, perl-format
+#, perl-format
msgid "Reported by %s anonymously at %s"
-msgstr "Publisert av anonym bruker"
+msgstr "Publisert av %s anonymt den %s"
#: fixmystreet/perllib/Page.pm:646
#, perl-format
@@ -198,36 +196,36 @@ msgid "Reported in the %s category by %s at %s"
msgstr ""
#: fixmystreet/perllib/Page.pm:652
-#, fuzzy, perl-format
-
-#~ msgid "How do I use the site?"
-#~ msgstr "Hvordan bruker jeg nettsiden?"
-
-#~ msgid ""
-#~ "After entering a postcode or location, you are presented\n"
-#~ "with a map of that area. You can view problems already reported in that area,\n"
-#~ "or report ones of your own simply by clicking on the map at the location of\n"
-#~ "the problem."
-#~ msgstr "Ved å ha lagt inn en lokasjon vil du få et kart over området. Du kan se andre saker i området, eller rapportere din egen sak ganske enkelte ved å klikke på kartet der du saken hører hjemme. "
-
-#~ msgid "How are the problems solved?"
-#~ msgstr "Hvordan er problemet løst?"
-
-#~ msgid ""
-#~ "They are reported to the relevant council by email. The\n"
-#~ "council can then resolve the problem the way they normally would.\n"
-#~ "Alternatively, you can discuss the problem on the website with others, and\n"
-#~ "then together lobby the council to fix it, or fix it directly yourselves."
-#~ msgstr ""
-#~ "De er rapportert til den riktige kommunen via epost. Kommunen\n"
-#~ "saken i henhold til deres prosedyrer og reglere.\n"
-#~ "Det er også et alternativ å løse saken selv, eller henvende deg til kommunen via en anne kanal."
-
-#~ msgid "Is it free?"
-#~ msgstr "Er dette gratis?"
-
-#~ msgid ""
-#~ "The site is free to use, yes. FixMyStreet is run\n"
-#~ "by a registered charity, though, so if you want to make a contribution, <a\n"
-#~ "href=\"https://secure.mysociety.org/donate/\">please do</a>."
-#~ msgstr ""
-#~ "Nettsiden er gratis å bruke. FiksGataMi.no er drevet\n"
-#~ "av frivillige, du kan donere hvis du ønsker det, <a\n"
-#~ "href=\"https://secure.mysociety.org/donate/\">klikke her</a>."
-
-#~ msgid "Practical Questions"
-#~ msgstr "Praktiske spørsmål"
-
-#~ msgid "I'm from a council, where do you send the reports?"
-#~ msgstr "Jeg representerer kommunen, hvor sender dere sakene?"
-
-#~ msgid "Do you remove silly or illegal content?"
-#~ msgstr "Fjerner du usaklig eller ulovlig innhold?"
-
-#~ msgid ""
-#~ "We reserve the right to remove any problems or updates\n"
-#~ "which we consider to be inappropriate."
-#~ msgstr ""
-#~ "Vi forbeholder oss retten til å fjerne alle elementer\n"
-#~ "vi finner upassende."
-
-#~ msgid "Why doesn't dragging the map work on reporting-a-problem pages in Safari or Konqueror?"
-#~ msgstr "Hvorfor fungerer ikke drag-dropp i Safari eller Konqueror?"
-
-#~ msgid "Do you have any publicity material?"
-#~ msgstr "Har du noe offentlig materiale="
-
-#~ msgid "Privacy Questions"
-#~ msgstr "Spørsmål som er personsensitivt"
-
-#~ msgid "Who gets to see my email address?"
-#~ msgstr "Hvem kan se min epostadresse?"
-
-#, fuzzy
-#~ msgid ""
-#~ "If you submit a problem, we pass on your details, and details\n"
-#~ "of the problem, to the council contact or contacts responsible for the\n"
-#~ "area where you located the problem. Your name is displayed upon the\n"
-#~ "site if you let us, but not your email address; similarly with updates. We will\n"
-#~ "never give or sell your email address to anyone else, unless we are\n"
-#~ "obliged to by law."
-#~ msgstr ""
-#~ "NÅr du melder problemet sender vi saken videre, med ditt navn og epost adresse\n"
-#~ ", beskrivelsen av saken til kommunen. \n"
-#~ "Ditt navn blir kun synlig hvis du gir oss bekreftlse på dette når du lager saken\n"
-#~ "Din eostadresse blir ikke lagt ut på nettsiden. "
-
-#~ msgid "Will you send nasty, brutish spam to my email address?"
-#~ msgstr "Kommer dere til å sende spam via epost?"
-
-#~ msgid ""
-#~ "Never. We will email you if someone leaves an update on a\n"
-#~ "problem you&rsquo;ve reported, and send you a questionnaire email four weeks\n"
-#~ "after you submit a problem, asking for a status update; we&rsquo;ll only ever\n"
-#~ "send you emails in relation to your problem."
-#~ msgstr ""
-#~ "Det vil aldri skje! Vi sender deg en epost hvis noen oppdaterer saken a\n"
-#~ " du&rsquo; har meldt, og sende det et skjema fire weeks\n"
-#~ "etter at du har meldt saken, dette gjør vi for å få en status på saken; vi&rsquo; vil utelukkende \n"
-#~ "sende sende deg epost i forbindelse med din sak."
-
-#~ msgid "Organisation Questions"
-#~ msgstr "Spørsmål om organisasjonen"
-
-#~ msgid "Who built FixMyStreet?"
-#~ msgstr "Hvorfor lanserte vi FiksGataMi"
-
-#~ msgid ""
-#~ "FixMyStreet was paid for via the Department for\n"
-#~ "Constitutional Affairs Innovations Fund."
-#~ msgstr ""
-#~ "FixMyStreet, som FiksGataMi er basert på, ble finansiert av the Department for\n"
-#~ "Constitutional Affairs Innovations Fund. Det norske prosjektet er drevet av frivillige."
-
-#~ msgid "Do you need any help with the project?"
-#~ msgstr "Trenger dere hjelp med ditt prosjekt?"
-
-#~ msgid ""
-#~ "Yes, we can use help in all sorts of ways, technical or\n"
-#~ "non-technical. Please see our <a\n"
-#~ "href=\"http://www.mysociety.org/volunteertasks\">volunteers page</a>."
-#~ msgstr ""
-#~ "Ja, vi trenger hjelp på flere måter, teknisk eller\n"
-#~ "ikketeknisk. Se vår <a\n"
-#~ "href=\"http://www.mysociety.org/volunteertasks\">side for frivillige.</a>."
-
-#~ msgid "Where&rsquo;s the \"source code\" to this site?"
-#~ msgstr "Hvor finner man kildekoden til prosjektet?"
-
-#~ msgid ""
-#~ "The software behind this site is open source, and available\n"
-#~ "to you mainly under the GNU Affero GPL software license. You can <a\n"
-#~ "href=\"http://github.com/mysociety/fixmystreet\">download the\n"
-#~ "source code</a> and help us develop it.\n"
-#~ "You&rsquo;re welcome to use it in your own projects, although you must also\n"
-#~ "make available the source code to any such projects."
-#~ msgstr "Programvaren er lagt ut under en fri lisens, du finner koden ved å gå på: "
diff --git a/web/reports.cgi b/web/reports.cgi
index fe4213be4..999e82bb3 100755
--- a/web/reports.cgi
+++ b/web/reports.cgi
@@ -22,9 +22,11 @@ sub main {
my $all = $q->param('all') || 0;
my $rss = $q->param('rss') || '';
my $cobrand = Page::get_cobrand($q);
+
# Look up council name, if given
my $q_council = $q->param('council') || '';
my $base_url = Cobrand::base_url($cobrand);
+
# Manual misspelling redirect
if ($q_council =~ /^rhondda cynon taff$/i) {
print $q->redirect($base_url . '/reports/Rhondda+Cynon+Taf');
ss="nx">responseText=p.value;o.status=Number(p.getAttribute("status"))||o.status;o.statusText=p.getAttribute("statusText")||o.statusText}else if(l){var q=z.getElementsByTagName("pre")[0];var t=z.getElementsByTagName("body")[0];if(q){o.responseText=q.textContent?q.textContent:q.innerHTML}else if(t){o.responseText=t.innerHTML}}}else if(j.dataType=="xml"&&!o.responseXML&&o.responseText!=null){o.responseXML=D(o.responseText)}try{y=F(o,j.dataType,j)}catch(c){e="parsererror";o.error=f=c||e}}catch(c){b("error caught: ",c);e="error";o.error=f=c||e}if(o.aborted){b("upload aborted");e=null}if(o.status){e=o.status>=200&&o.status<300||o.status===304?"success":"error"}if(e==="success"){j.success&&j.success.call(j.context,y,"success",o);k&&a.event.trigger("ajaxSuccess",[o,j])}else if(e){if(f==undefined)f=o.statusText;j.error&&j.error.call(j.context,o,e,f);k&&a.event.trigger("ajaxError",[o,j,f])}k&&a.event.trigger("ajaxComplete",[o,j]);if(k&&!--a.active){a.event.trigger("ajaxStop")}j.complete&&j.complete.call(j.context,o,e);B=true;if(j.timeout)clearTimeout(s);setTimeout(function(){if(!j.iframeTarget)m.remove();o.responseXML=null},100)}function x(){function h(){try{var a=w(n).readyState;b("state = "+a);if(a.toLowerCase()=="uninitialized")setTimeout(h,50)}catch(c){b("Server abort: ",c," (",c.name,")");C(v);s&&clearTimeout(s);s=undefined}}var c=g.attr("target"),e=g.attr("action");f.setAttribute("target",l);if(!d){f.setAttribute("method","POST")}if(e!=j.url){f.setAttribute("action",j.url)}if(!j.skipEncodingOverride&&(!d||/post/i.test(d))){g.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(j.timeout){s=setTimeout(function(){r=true;C(u)},j.timeout)}var i=[];try{if(j.extraData){for(var k in j.extraData){i.push(a('<input type="hidden" name="'+k+'" />').attr("value",j.extraData[k]).appendTo(f)[0])}}if(!j.iframeTarget){m.appendTo("body");n.attachEvent?n.attachEvent("onload",C):n.addEventListener("load",C,false)}setTimeout(h,15);f.submit()}finally{f.setAttribute("action",e);if(c){f.setAttribute("target",c)}else{g.removeAttr("target")}a(i).remove()}}function w(a){var b=a.contentWindow?a.contentWindow.document:a.contentDocument?a.contentDocument:a.document;return b}var f=g[0],h,i,j,k,l,m,n,o,p,q,r,s;var t=!!a.fn.prop;if(e){for(i=0;i<e.length;i++){h=a(f[e[i].name]);h[t?"prop":"attr"]("disabled",false)}}if(a(":input[name=submit],:input[id=submit]",f).length){alert('Error: Form elements must not have name or id of "submit".');return}j=a.extend(true,{},a.ajaxSettings,c);j.context=j.context||j;l="jqFormIO"+(new Date).getTime();if(j.iframeTarget){m=a(j.iframeTarget);q=m.attr("name");if(q==null)m.attr("name",l);else l=q}else{m=a('<iframe name="'+l+'" src="'+j.iframeSrc+'" />');m.css({position:"absolute",top:"-1000px",left:"-1000px"})}n=m[0];o={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(c){var d=c==="timeout"?"timeout":"aborted";b("aborting upload... "+d);this.aborted=1;m.attr("src",j.iframeSrc);o.error=d;j.error&&j.error.call(j.context,o,d,c);k&&a.event.trigger("ajaxError",[o,j,d]);j.complete&&j.complete.call(j.context,o,d)}};k=j.global;if(k&&!(a.active++)){a.event.trigger("ajaxStart")}if(k){a.event.trigger("ajaxSend",[o,j])}if(j.beforeSend&&j.beforeSend.call(j.context,o,j)===false){if(j.global){a.active--}return}if(o.aborted){return}p=f.clk;if(p){q=p.name;if(q&&!p.disabled){j.extraData=j.extraData||{};j.extraData[q]=p.value;if(p.type=="image"){j.extraData[q+".x"]=f.clk_x;j.extraData[q+".y"]=f.clk_y}}}var u=1;var v=2;if(j.forceSync){x()}else{setTimeout(x,10)}var y,z,A=50,B;var D=a.parseXML||function(a,b){if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";b.loadXML(a)}else{b=(new DOMParser).parseFromString(a,"text/xml")}return b&&b.documentElement&&b.documentElement.nodeName!="parsererror"?b:null};var E=a.parseJSON||function(a){return window["eval"]("("+a+")")};var F=function(b,c,d){var e=b.getResponseHeader("content-type")||"",f=c==="xml"||!c&&e.indexOf("xml")>=0,g=f?b.responseXML:b.responseText;if(f&&g.documentElement.nodeName==="parsererror"){a.error&&a.error("parsererror")}if(d&&d.dataFilter){g=d.dataFilter(g,c)}if(typeof g==="string"){if(c==="json"||!c&&e.indexOf("json")>=0){g=E(g)}else if(c==="script"||!c&&e.indexOf("javascript")>=0){a.globalEval(g)}}return g}}if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}var d,e,f,g=this;if(typeof c=="function"){c={success:c}}d=this.attr("method");e=this.attr("action");f=typeof e==="string"?a.trim(e):"";f=f||window.location.href||"";if(f){f=(f.match(/^([^#]+)/)||[])[1]}c=a.extend(true,{url:f,success:a.ajaxSettings.success,type:d||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c);var h={};this.trigger("form-pre-serialize",[this,c,h]);if(h.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(c.beforeSerialize&&c.beforeSerialize(this,c)===false){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var i,j,k=this.formToArray(c.semantic);if(c.data){c.extraData=c.data;for(i in c.data){if(c.data[i]instanceof Array){for(var l in c.data[i]){k.push({name:i,value:c.data[i][l]})}}else{j=c.data[i];j=a.isFunction(j)?j():j;k.push({name:i,value:j})}}}if(c.beforeSubmit&&c.beforeSubmit(k,this,c)===false){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[k,this,c,h]);if(h.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var m=a.param(k);if(c.type.toUpperCase()=="GET"){c.url+=(c.url.indexOf("?")>=0?"&":"?")+m;c.data=null}else{c.data=m}var n=[];if(c.resetForm){n.push(function(){g.resetForm()})}if(c.clearForm){n.push(function(){g.clearForm()})}if(!c.dataType&&c.target){var o=c.success||function(){};n.push(function(b){var d=c.replaceTarget?"replaceWith":"html";a(c.target)[d](b).each(o,arguments)})}else if(c.success){n.push(c.success)}c.success=function(a,b,d){var e=c.context||c;for(var f=0,h=n.length;f<h;f++){n[f].apply(e,[a,b,d||g,g])}};var p=a("input:file",this).length>0;var q="multipart/form-data";var r=g.attr("enctype")==q||g.attr("encoding")==q;if(c.iframe!==false&&(p||c.iframe||r)){if(c.closeKeepAlive){a.get(c.closeKeepAlive,function(){t(k)})}else{t(k)}}else{if(a.browser.msie&&d=="get"){var s=g[0].getAttribute("method");if(typeof s==="string")c.type=s}a.ajax(c)}this.trigger("form-submit-notify",[this,c]);return this};a.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!a.isReady&&d.s){b("DOM not ready, queuing ajaxForm");a(function(){a(d.s,d.c).ajaxForm(c)});return this}b("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(b){if(!b.isDefaultPrevented()){b.preventDefault();a(this).ajaxSubmit(c)}}).bind("click.form-plugin",function(b){var c=b.target;var d=a(c);if(!d.is(":submit,input:image")){var e=d.closest(":submit");if(e.length==0){return}c=e[0]}var f=this;f.clk=c;if(c.type=="image"){if(b.offsetX!=undefined){f.clk_x=b.offsetX;f.clk_y=b.offsetY}else if(typeof a.fn.offset=="function"){var g=d.offset();f.clk_x=b.pageX-g.left;f.clk_y=b.pageY-g.top}else{f.clk_x=b.pageX-c.offsetLeft;f.clk_y=b.pageY-c.offsetTop}}setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)})};a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};a.fn.formToArray=function(b){var c=[];if(this.length===0){return c}var d=this[0];var e=b?d.getElementsByTagName("*"):d.elements;if(!e){return c}var f,g,h,i,j,k,l;for(f=0,k=e.length;f<k;f++){j=e[f];h=j.name;if(!h){continue}if(b&&d.clk&&j.type=="image"){if(!j.disabled&&d.clk==j){c.push({name:h,value:a(j).val()});c.push({name:h+".x",value:d.clk_x},{name:h+".y",value:d.clk_y})}continue}i=a.fieldValue(j,true);if(i&&i.constructor==Array){for(g=0,l=i.length;g<l;g++){c.push({name:h,value:i[g]})}}else if(i!==null&&typeof i!="undefined"){c.push({name:h,value:i})}}if(!b&&d.clk){var m=a(d.clk),n=m[0];h=n.name;if(h&&!n.disabled&&n.type=="image"){c.push({name:h,value:m.val()});c.push({name:h+".x",value:d.clk_x},{name:h+".y",value:d.clk_y})}}return c};a.fn.formSerialize=function(b){return a.param(this.formToArray(b))};a.fn.fieldSerialize=function(b){var c=[];this.each(function(){var d=this.name;if(!d){return}var e=a.fieldValue(this,b);if(e&&e.constructor==Array){for(var f=0,g=e.length;f<g;f++){c.push({name:d,value:e[f]})}}else if(e!==null&&typeof e!="undefined"){c.push({name:this.name,value:e})}});return a.param(c)};a.fn.fieldValue=function(b){for(var c=[],d=0,e=this.length;d<e;d++){var f=this[d];var g=a.fieldValue(f,b);if(g===null||typeof g=="undefined"||g.constructor==Array&&!g.length){continue}g.constructor==Array?a.merge(c,g):c.push(g)}return c};a.fieldValue=function(b,c){var d=b.name,e=b.type,f=b.tagName.toLowerCase();if(c===undefined){c=true}if(c&&(!d||b.disabled||e=="reset"||e=="button"||(e=="checkbox"||e=="radio")&&!b.checked||(e=="submit"||e=="image")&&b.form&&b.form.clk!=b||f=="select"&&b.selectedIndex==-1)){return null}if(f=="select"){var g=b.selectedIndex;if(g<0){return null}var h=[],i=b.options;var j=e=="select-one";var k=j?g+1:i.length;for(var l=j?g:0;l<k;l++){var m=i[l];if(m.selected){var n=m.value;if(!n){n=m.attributes&&m.attributes["value"]&&!m.attributes["value"].specified?m.text:m.value}if(j){return n}h.push(n)}}return h}return a(b).val()};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){var a=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var b=this.type,c=this.tagName.toLowerCase();if(a.test(b)||c=="textarea"){this.value=""}else if(b=="checkbox"||b=="radio"){this.checked=false}else if(c=="select"){this.selectedIndex=-1}})};a.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType){this.reset()}})};a.fn.enable=function(a){if(a===undefined){a=true}return this.each(function(){this.disabled=!a})};a.fn.selected=function(b){if(b===undefined){b=true}return this.each(function(){var c=this.type;if(c=="checkbox"||c=="radio"){this.checked=b}else if(this.tagName.toLowerCase()=="option"){var d=a(this).parent("select");if(b&&d[0]&&d[0].type=="select-one"){d.find("option").selected(false)}this.selected=b}})};})(jQuery)