From dc166fbbc3cfab0be6d5e3ecf9edfb5ff5de6591 Mon Sep 17 00:00:00 2001 From: Jens Pfeifer Date: Thu, 2 Feb 2017 14:37:49 +0000 Subject: [PATCH] Added version number to i18n web service calls. --- app/models/locale.rb | 4 +++- app/models/translation.rb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/models/locale.rb b/app/models/locale.rb index f6b890270..619ef4c4a 100644 --- a/app/models/locale.rb +++ b/app/models/locale.rb @@ -92,7 +92,9 @@ all: result = UserAgent.get( url, - {}, + { + version: Version.get, + }, { json: true, } diff --git a/app/models/translation.rb b/app/models/translation.rb index 722368d27..6f1fb2da0 100644 --- a/app/models/translation.rb +++ b/app/models/translation.rb @@ -257,7 +257,9 @@ all: end result = UserAgent.get( url, - {}, + { + version: Version.get, + }, { json: true, open_timeout: 8,