From 4b62407f87cbbf620ad17f08d9ee114f73db9185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 16 Oct 2018 11:30:34 +0200 Subject: [PATCH] MOBILE-2616 lang: Sort lang files on components --- scripts/moodle_to_json.php | 1 + src/addon/block/timeline/lang/en.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/moodle_to_json.php b/scripts/moodle_to_json.php index 923581522..2eccc8c1d 100644 --- a/scripts/moodle_to_json.php +++ b/scripts/moodle_to_json.php @@ -279,6 +279,7 @@ function save_key($key, $value, $path) { $value = html_entity_decode($value); if ($file[$key] != $value) { $file[$key] = $value; + ksort($file); file_put_contents($filePath, str_replace('\/', '/', json_encode($file, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT))); } } diff --git a/src/addon/block/timeline/lang/en.json b/src/addon/block/timeline/lang/en.json index 390595490..1086d152e 100644 --- a/src/addon/block/timeline/lang/en.json +++ b/src/addon/block/timeline/lang/en.json @@ -1,11 +1,11 @@ { "duedate": "Due date", - "nocoursesinprogress": "No in progress courses", - "noevents": "No upcoming activities due", "next30days": "Next 30 days", - "next7days": "Next 7 days", "next3months": "Next 3 months", "next6months": "Next 6 months", + "next7days": "Next 7 days", + "nocoursesinprogress": "No in progress courses", + "noevents": "No upcoming activities due", "overdue": "Overdue", "sortbycourses": "Sort by courses", "sortbydates": "Sort by dates"