From 68ea2252142a20b4b9d59fbc1576166d8ebccf8d Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Sat, 30 May 2020 08:21:30 -0700 Subject: [PATCH] Fix json loc parser --- translations/qgc-json.ts | 35 +++++++++++++++++--------------- translations/qgc-lupdate-json.py | 3 +++ 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/translations/qgc-json.ts b/translations/qgc-json.ts index 02565bfa3..d7a88f3f9 100644 --- a/translations/qgc-json.ts +++ b/translations/qgc-json.ts @@ -1,3 +1,6 @@ + + + SubmarineFact.json @@ -3343,9 +3346,9 @@ - .QGC.MetaData.Facts[language].shortDescription, + .QGC.MetaData.Facts[virtualJoystickAutoCenterThrottle].longDescription, - Language + If enabled the throttle stick will snap back to center when released. @@ -3354,6 +3357,12 @@ Indoor,Outdoor + + .QGC.MetaData.Facts[virtualJoystickAutoCenterThrottle].shortDescription, + + Auto-Center Throttle + + .QGC.MetaData.Facts[showLargeCompass].longDescription, @@ -3426,6 +3435,12 @@ This value defines the default speed for calculating mission statistics for multi-rotor vehicles or VTOL vehicle in multi-rotor mode. It does not modify the flight speed for a specific flight plan. + + .QGC.MetaData.Facts[language].shortDescription, + + Language + + .QGC.MetaData.Facts[firstRunPromptIdsShown].shortDescription, @@ -3480,12 +3495,6 @@ If this option is enabled the preflight checklist must pass before arming. - - .QGC.MetaData.Facts[virtualJoystickCentralized].longDescription, - - If this option is enabled the virtual joystick throttle stick will be centralized. - - .QGC.MetaData.Facts[enforceChecklist].shortDescription, @@ -3685,9 +3694,9 @@ - .QGC.MetaData.Facts[virtualJoystickCentralized].shortDescription, + .QGC.MetaData.Facts[indoorPalette].longDescription, - Set virtual joystick to be centralize throttle (spring-loaded). + The color scheme for the user interface. @@ -3702,12 +3711,6 @@ This value defines the default speed for calculating mission statistics for vehicles which do not support hover or VTOL vehicles in fixed wing mode. It does not modify the flight speed for a specific flight plan. - - .QGC.MetaData.Facts[indoorPalette].longDescription, - - The color scheme for the user interface. - - .QGC.MetaData.Facts[enableTaisyncVideo].shortDescription, .QGC.MetaData.Facts[enableTaisyncVideo].longDescription, diff --git a/translations/qgc-lupdate-json.py b/translations/qgc-lupdate-json.py index 2faa978b6..016cd29b1 100755 --- a/translations/qgc-lupdate-json.py +++ b/translations/qgc-lupdate-json.py @@ -88,6 +88,9 @@ def walkDirectoryTreeForJsonFiles(dir, multiFileLocArray): def writeJsonTSFile(multiFileLocArray): jsonTSFile = codecs.open('qgc-json.ts', 'w', "utf-8") + jsonTSFile.write("\n") + jsonTSFile.write("\n") + jsonTSFile.write("\n") for entry in multiFileLocArray: jsonTSFile.write("\n") jsonTSFile.write(" %s\n" % entry[0]) -- 2.22.0