MOBILE-2616 lang: Sort lang files on components

main
Pau Ferrer Ocaña 2018-10-16 11:30:34 +02:00
parent f66c8375ea
commit 4b62407f87
2 changed files with 4 additions and 3 deletions

View File

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

View File

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