From 8bff0591d3a051810aa4ba9256ff62a960b2ab28 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Wed, 13 Jan 2010 16:28:33 +0000 Subject: [PATCH] Fix all lang files so they are proper JSON (JSON does not allow single-quoted strings) except for lang.es.js. Started a python script that will help use manage the translation files going forward git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1205 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/locale/lang.af.js | 4 ++-- editor/locale/lang.ar.js | 4 ++-- editor/locale/lang.az.js | 4 ++-- editor/locale/lang.be.js | 4 ++-- editor/locale/lang.bg.js | 2 +- editor/locale/lang.ca.js | 2 +- editor/locale/lang.cs.js | 2 +- editor/locale/lang.cy.js | 2 +- editor/locale/lang.da.js | 2 +- editor/locale/lang.de.js | 2 +- editor/locale/lang.el.js | 2 +- editor/locale/lang.en.js | 4 ++-- editor/locale/lang.et.js | 2 +- editor/locale/lang.fa.js | 2 +- editor/locale/lang.fi.js | 2 +- editor/locale/lang.fr.js | 2 +- editor/locale/lang.ga.js | 2 +- editor/locale/lang.gl.js | 2 +- editor/locale/lang.he.js | 2 +- editor/locale/lang.hi.js | 2 +- editor/locale/lang.hr.js | 2 +- editor/locale/lang.hu.js | 2 +- editor/locale/lang.hy.js | 2 +- editor/locale/lang.id.js | 2 +- editor/locale/lang.is.js | 2 +- editor/locale/lang.it.js | 2 +- editor/locale/lang.ja.js | 4 ++-- editor/locale/lang.ko.js | 2 +- editor/locale/lang.lt.js | 2 +- editor/locale/lang.lv.js | 2 +- editor/locale/lang.mk.js | 2 +- editor/locale/lang.ms.js | 2 +- editor/locale/lang.mt.js | 2 +- editor/locale/lang.nl.js | 4 ++-- editor/locale/lang.no.js | 2 +- editor/locale/lang.pl.js | 2 +- editor/locale/lang.pt-PT.js | 2 +- editor/locale/lang.ro.js | 2 +- editor/locale/lang.ru.js | 2 +- editor/locale/lang.sk.js | 2 +- editor/locale/lang.sl.js | 2 +- editor/locale/lang.sq.js | 2 +- editor/locale/lang.sr.js | 2 +- editor/locale/lang.sv.js | 2 +- editor/locale/lang.sw.js | 2 +- editor/locale/lang.th.js | 2 +- editor/locale/lang.tl.js | 2 +- editor/locale/lang.tr.js | 2 +- editor/locale/lang.uk.js | 2 +- editor/locale/lang.vi.js | 2 +- editor/locale/lang.yi.js | 2 +- editor/locale/lang.zh-CN.js | 2 +- editor/locale/lang.zh-TW.js | 2 +- editor/locale/lang.zh.js | 2 +- extras/update-langs.py | 29 +++++++++++++++++++++++++++++ 55 files changed, 90 insertions(+), 61 deletions(-) create mode 100755 extras/update-langs.py diff --git a/editor/locale/lang.af.js b/editor/locale/lang.af.js index 9a4c6ed2..2caabb4c 100644 --- a/editor/locale/lang.af.js +++ b/editor/locale/lang.af.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", @@ -154,4 +154,4 @@ "key_del":"delete" } } -]; \ No newline at end of file +] \ No newline at end of file diff --git a/editor/locale/lang.ar.js b/editor/locale/lang.ar.js index a7ac31e4..eff6009a 100644 --- a/editor/locale/lang.ar.js +++ b/editor/locale/lang.ar.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", @@ -154,4 +154,4 @@ "key_del":"delete" } } -]; \ No newline at end of file +] \ No newline at end of file diff --git a/editor/locale/lang.az.js b/editor/locale/lang.az.js index 9d61a834..038b48a4 100644 --- a/editor/locale/lang.az.js +++ b/editor/locale/lang.az.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", @@ -154,4 +154,4 @@ "key_del":"delete" } } -]; +] \ No newline at end of file diff --git a/editor/locale/lang.be.js b/editor/locale/lang.be.js index 699a82af..b3f624db 100644 --- a/editor/locale/lang.be.js +++ b/editor/locale/lang.be.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", @@ -154,4 +154,4 @@ "key_del":"delete" } } -]; +] \ No newline at end of file diff --git a/editor/locale/lang.bg.js b/editor/locale/lang.bg.js index ec3459ef..1bc38a78 100644 --- a/editor/locale/lang.bg.js +++ b/editor/locale/lang.bg.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.ca.js b/editor/locale/lang.ca.js index f44a86ca..1a176fdf 100644 --- a/editor/locale/lang.ca.js +++ b/editor/locale/lang.ca.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.cs.js b/editor/locale/lang.cs.js index 93f210ea..d13fe6ba 100644 --- a/editor/locale/lang.cs.js +++ b/editor/locale/lang.cs.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Nevhodná hodnota", "noContentToFitTo":"Vyberte oblast pro přizpůsobení", - 'layer':"Vrstva", + "layer":"Vrstva", "dupeLayerName":"Taková vrstva už bohužel existuje", "enterUniqueLayerName":"Zadejte prosím jedinečné jméno pro vrstvu", "enterNewLayerName":"Zadejte prosím jméno pro novou vrstvu", diff --git a/editor/locale/lang.cy.js b/editor/locale/lang.cy.js index 581c5ffd..9dc84c94 100644 --- a/editor/locale/lang.cy.js +++ b/editor/locale/lang.cy.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.da.js b/editor/locale/lang.da.js index 088a7d06..d4b9caea 100644 --- a/editor/locale/lang.da.js +++ b/editor/locale/lang.da.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.de.js b/editor/locale/lang.de.js index 227ce45c..d0587b23 100644 --- a/editor/locale/lang.de.js +++ b/editor/locale/lang.de.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Fehlerhafter Wert", "noContentToFitTo":"Kein Inhalt anzupassen", - 'layer':"Ebene", + "layer":"Ebene", "dupeLayerName":"Eine Ebene hat bereits diesen Namen!", "enterUniqueLayerName":"Verwenden Sie einen eindeutigen Namen für die Ebene", "enterNewLayerName":"Geben Sie bitte einen neuen Namen für die Ebene ein", diff --git a/editor/locale/lang.el.js b/editor/locale/lang.el.js index fd31337e..1f93cd60 100644 --- a/editor/locale/lang.el.js +++ b/editor/locale/lang.el.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.en.js b/editor/locale/lang.en.js index 9d61a834..038b48a4 100644 --- a/editor/locale/lang.en.js +++ b/editor/locale/lang.en.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", @@ -154,4 +154,4 @@ "key_del":"delete" } } -]; +] \ No newline at end of file diff --git a/editor/locale/lang.et.js b/editor/locale/lang.et.js index 1faf97bb..9272971c 100644 --- a/editor/locale/lang.et.js +++ b/editor/locale/lang.et.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.fa.js b/editor/locale/lang.fa.js index 9142089e..6eea1a96 100644 --- a/editor/locale/lang.fa.js +++ b/editor/locale/lang.fa.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"‫مقدار داده شده نامعتبر است‬", "noContentToFitTo":"‫محتوایی برای هم اندازه شدن وجود ندارد‬", - 'layer':"‫لایه‬", + "layer":"‫لایه‬", "dupeLayerName":"‫لایه ای با آن نام وجود دارد!‬", "enterUniqueLayerName":"‫لطفا یک نام لایه یکتا انتخاب کنید‬", "enterNewLayerName":"‫لطفا نام لایه جدید را وارد کنید‬", diff --git a/editor/locale/lang.fi.js b/editor/locale/lang.fi.js index 08346dd2..899ee6c4 100644 --- a/editor/locale/lang.fi.js +++ b/editor/locale/lang.fi.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.fr.js b/editor/locale/lang.fr.js index 9e755873..a407b07b 100644 --- a/editor/locale/lang.fr.js +++ b/editor/locale/lang.fr.js @@ -134,7 +134,7 @@ {"js_strings": { "invalidAttrValGiven":"Valeur fournie invalide", "noContentToFitTo":"Il n'y a pas de contenu auquel ajuster", - 'layer':"Calque", + "layer":"Calque", "dupeLayerName":"Il existe déjà un calque de ce nom !", "enterUniqueLayerName":"Veuillez entrer un nom (unique) pour le calque", "enterNewLayerName":"Veuillez entrer le nouveau nom du calque", diff --git a/editor/locale/lang.ga.js b/editor/locale/lang.ga.js index dfb8bca6..be1f3ac8 100644 --- a/editor/locale/lang.ga.js +++ b/editor/locale/lang.ga.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.gl.js b/editor/locale/lang.gl.js index 5dd25f16..54c537a0 100644 --- a/editor/locale/lang.gl.js +++ b/editor/locale/lang.gl.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.he.js b/editor/locale/lang.he.js index 32547e58..ee5ce60c 100755 --- a/editor/locale/lang.he.js +++ b/editor/locale/lang.he.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.hi.js b/editor/locale/lang.hi.js index 1ca9560b..5249388a 100644 --- a/editor/locale/lang.hi.js +++ b/editor/locale/lang.hi.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.hr.js b/editor/locale/lang.hr.js index f6147021..3df02a81 100644 --- a/editor/locale/lang.hr.js +++ b/editor/locale/lang.hr.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.hu.js b/editor/locale/lang.hu.js index f47e7072..d8bc1a4e 100644 --- a/editor/locale/lang.hu.js +++ b/editor/locale/lang.hu.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.hy.js b/editor/locale/lang.hy.js index 2ed36572..efa25f6e 100644 --- a/editor/locale/lang.hy.js +++ b/editor/locale/lang.hy.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.id.js b/editor/locale/lang.id.js index 16ba15dd..ad101000 100644 --- a/editor/locale/lang.id.js +++ b/editor/locale/lang.id.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.is.js b/editor/locale/lang.is.js index 312901df..8da51e8e 100644 --- a/editor/locale/lang.is.js +++ b/editor/locale/lang.is.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.it.js b/editor/locale/lang.it.js index ea5cd079..a8e1f60f 100644 --- a/editor/locale/lang.it.js +++ b/editor/locale/lang.it.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.ja.js b/editor/locale/lang.ja.js index c7a43b3d..3430aac0 100644 --- a/editor/locale/lang.ja.js +++ b/editor/locale/lang.ja.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", @@ -154,4 +154,4 @@ "key_del":"delete" } } -]; +] \ No newline at end of file diff --git a/editor/locale/lang.ko.js b/editor/locale/lang.ko.js index 98579c7e..96473766 100644 --- a/editor/locale/lang.ko.js +++ b/editor/locale/lang.ko.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.lt.js b/editor/locale/lang.lt.js index 6120aba8..3e1d7ec0 100644 --- a/editor/locale/lang.lt.js +++ b/editor/locale/lang.lt.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.lv.js b/editor/locale/lang.lv.js index f6fe6b68..8b6d720a 100644 --- a/editor/locale/lang.lv.js +++ b/editor/locale/lang.lv.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.mk.js b/editor/locale/lang.mk.js index dd3fdb37..dc981faa 100644 --- a/editor/locale/lang.mk.js +++ b/editor/locale/lang.mk.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.ms.js b/editor/locale/lang.ms.js index 71573ce4..88a289eb 100644 --- a/editor/locale/lang.ms.js +++ b/editor/locale/lang.ms.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.mt.js b/editor/locale/lang.mt.js index 9075c18f..4e9697c0 100644 --- a/editor/locale/lang.mt.js +++ b/editor/locale/lang.mt.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.nl.js b/editor/locale/lang.nl.js index fadd6872..7613fa17 100644 --- a/editor/locale/lang.nl.js +++ b/editor/locale/lang.nl.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Verkeerde waarde gegeven", "noContentToFitTo":"Geen inhoud om omheen te passen", - 'layer':"Laag", + "layer":"Laag", "dupeLayerName":"Er is al een laag met die naam!", "enterUniqueLayerName":"Geef een unieke laag naam", "enterNewLayerName":"Geef een nieuwe laag naam", @@ -154,4 +154,4 @@ "key_del":"delete" } } -]; +] diff --git a/editor/locale/lang.no.js b/editor/locale/lang.no.js index 96754839..d895e582 100644 --- a/editor/locale/lang.no.js +++ b/editor/locale/lang.no.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.pl.js b/editor/locale/lang.pl.js index 15db32dc..b97d430b 100644 --- a/editor/locale/lang.pl.js +++ b/editor/locale/lang.pl.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.pt-PT.js b/editor/locale/lang.pt-PT.js index e811072f..906e3503 100644 --- a/editor/locale/lang.pt-PT.js +++ b/editor/locale/lang.pt-PT.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.ro.js b/editor/locale/lang.ro.js index d97c4748..e456de99 100644 --- a/editor/locale/lang.ro.js +++ b/editor/locale/lang.ro.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Valoarea data nu este valida", "noContentToFitTo":"Fara continut de referinta", - 'layer':"Strat", + "layer":"Strat", "dupeLayerName":"Deja exista un strat numis asa!", "enterUniqueLayerName":"Rog introduceti un nume unic", "enterNewLayerName":"Rog introduceti un nume pentru strat", diff --git a/editor/locale/lang.ru.js b/editor/locale/lang.ru.js index 5f697066..044fc34b 100644 --- a/editor/locale/lang.ru.js +++ b/editor/locale/lang.ru.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.sk.js b/editor/locale/lang.sk.js index fd990539..fee1acd1 100644 --- a/editor/locale/lang.sk.js +++ b/editor/locale/lang.sk.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Neplatná hodnota", "noContentToFitTo":"Žiaden obsah na prispôsobenie", - 'layer':"Vrstva", + "layer":"Vrstva", "dupeLayerName":"Vrstva s daným názvom už existuje!", "enterUniqueLayerName":"Zadajte unikátny názov vrstvy", "enterNewLayerName":"Zadajte názov vrstvy", diff --git a/editor/locale/lang.sl.js b/editor/locale/lang.sl.js index e1706e94..66922cf6 100644 --- a/editor/locale/lang.sl.js +++ b/editor/locale/lang.sl.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.sq.js b/editor/locale/lang.sq.js index b0dc90a2..aae51a49 100644 --- a/editor/locale/lang.sq.js +++ b/editor/locale/lang.sq.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.sr.js b/editor/locale/lang.sr.js index be9d52f1..a0333f04 100644 --- a/editor/locale/lang.sr.js +++ b/editor/locale/lang.sr.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.sv.js b/editor/locale/lang.sv.js index cd73eaca..887c86a9 100644 --- a/editor/locale/lang.sv.js +++ b/editor/locale/lang.sv.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.sw.js b/editor/locale/lang.sw.js index b31ccaf0..43f13bb0 100644 --- a/editor/locale/lang.sw.js +++ b/editor/locale/lang.sw.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.th.js b/editor/locale/lang.th.js index 4210a814..7778039f 100644 --- a/editor/locale/lang.th.js +++ b/editor/locale/lang.th.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.tl.js b/editor/locale/lang.tl.js index f998fe90..c9f7dca4 100644 --- a/editor/locale/lang.tl.js +++ b/editor/locale/lang.tl.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.tr.js b/editor/locale/lang.tr.js index 7b11b837..9394ce59 100644 --- a/editor/locale/lang.tr.js +++ b/editor/locale/lang.tr.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.uk.js b/editor/locale/lang.uk.js index 7945d048..1031bd65 100644 --- a/editor/locale/lang.uk.js +++ b/editor/locale/lang.uk.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.vi.js b/editor/locale/lang.vi.js index 6195d71f..485e8419 100644 --- a/editor/locale/lang.vi.js +++ b/editor/locale/lang.vi.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.yi.js b/editor/locale/lang.yi.js index 1261e302..a7f66d94 100644 --- a/editor/locale/lang.yi.js +++ b/editor/locale/lang.yi.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.zh-CN.js b/editor/locale/lang.zh-CN.js index fa488c24..5286f7b3 100644 --- a/editor/locale/lang.zh-CN.js +++ b/editor/locale/lang.zh-CN.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.zh-TW.js b/editor/locale/lang.zh-TW.js index 9769bb67..ef5b9934 100644 --- a/editor/locale/lang.zh-TW.js +++ b/editor/locale/lang.zh-TW.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/editor/locale/lang.zh.js b/editor/locale/lang.zh.js index 75737ade..ed52fc07 100644 --- a/editor/locale/lang.zh.js +++ b/editor/locale/lang.zh.js @@ -133,7 +133,7 @@ {"js_strings": { "invalidAttrValGiven":"Invalid value given", "noContentToFitTo":"No content to fit to", - 'layer':"Layer", + "layer":"Layer", "dupeLayerName":"There is already a layer named that!", "enterUniqueLayerName":"Please enter a unique layer name", "enterNewLayerName":"Please enter the new layer name", diff --git a/extras/update-langs.py b/extras/update-langs.py new file mode 100755 index 00000000..650d8a45 --- /dev/null +++ b/extras/update-langs.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# This is a helper script for the svg-edit project, useful for updating language files +# Licensed under the Apache 2 License as is the rest of the project +# Requires Python 2.6 +# +# Copyright (c) 2010 Jeff Schiller + +# TODO: Fix lang.es.js which apparently is not proper JSON (encoding issues?) + +import os +import sys +import re +import json + +def processFile(filename): + in_string = open('./editor/locale/'+filename).read() + try: + j = json.loads(in_string) + pass + except ValueError: + print "ERROR! " + filename + " was not valid JSON, please fix it!" + +if __name__ == '__main__': + # get list of all lang files + for file in os.listdir('./editor/locale/'): + if file[:4] == "lang": + processFile(file) \ No newline at end of file