Stop fetching translations at metadata phase

Now i18n data is loaded at "translations" module resolve,
on which "text" module depends. Therefore, there is no
need to do it twice.

Fixes: https://pagure.io/freeipa/issue/7559
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Stanislav Levin 2018-06-26 12:59:32 +03:00 committed by Rob Crittenden
parent 9492fb7f86
commit c0c6b21ba1

View File

@ -76,13 +76,6 @@ var IPA = function () {
processData: false
};
/**
* i18n messages
* @deprecated
* @property {Object}
*/
that.messages = {};
/**
* User information
*
@ -175,14 +168,6 @@ var IPA = function () {
}
});
batch.add_command(rpc.command({
method: 'i18n_messages',
on_success: function(data, text_status, xhr) {
that.messages = data.texts;
i18n.source = that.messages;
}
}));
batch.add_command(rpc.command({
entity: 'config',
method: 'show',