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
master
Jeff Schiller 2010-01-13 16:28:33 +00:00
parent fc41d62a66
commit 8bff0591d3
55 changed files with 90 additions and 61 deletions

View File

@ -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"
}
}
];
]

View File

@ -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"
}
}
];
]

View File

@ -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"
}
}
];
]

View File

@ -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"
}
}
];
]

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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"
}
}
];
]

View File

@ -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",

View File

@ -133,7 +133,7 @@
{"js_strings": {
"invalidAttrValGiven":"‫مقدار داده شده نامعتبر است‬",
"noContentToFitTo":"‫محتوایی برای هم اندازه شدن وجود ندارد‬",
'layer':"‫لایه‬",
"layer":"‫لایه‬",
"dupeLayerName":"‫لایه ای با آن نام وجود دارد!",
"enterUniqueLayerName":"‫لطفا یک نام لایه یکتا انتخاب کنید‬",
"enterNewLayerName":"‫لطفا نام لایه جدید را وارد کنید‬",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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"
}
}
];
]

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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"
}
}
];
]

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

29
extras/update-langs.py Executable file
View File

@ -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)