From f0b0650531d1b147f2031e2465edca013b72e836 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 13 May 2017 21:54:31 +1200 Subject: [PATCH] Update translation script --- translate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate.py b/translate.py index cfc2716..d23231f 100755 --- a/translate.py +++ b/translate.py @@ -25,11 +25,11 @@ def request(url): req.add_header("Authorization", "Basic %s" % auth) return urllib2.urlopen(req) -resource = json.load(request("https://www.transifex.com/api/2/project/traccar/resource/client-android/?details")) +resource = json.load(request("https://www.transifex.com/api/2/project/traccar/resource/client/?details")) for language in resource["available_languages"]: code = language["code"] - data = request("https://www.transifex.com/api/2/project/traccar/resource/client-android/translation/" + code + "?file") + data = request("https://www.transifex.com/api/2/project/traccar/resource/client/translation/" + code + "?file") if code == "en": filename = path + "values/strings.xml" else: