Revert "Ensure client-side translations are correctly extracted into the message templates."

This reverts commit 82bd97aed0.

There are still issues extracting with these changes.
This commit is contained in:
Dave Page
2017-03-27 13:53:40 -04:00
parent 82bd97aed0
commit 95f43d59b8
9 changed files with 98 additions and 99 deletions

View File

@@ -1,4 +1,4 @@
define(['sources/gettext', 'alertify'], function (gettext, alertify) {
define(['sources/translate', 'alertify'], function (t, alertify) {
var clipboard = {
copyTextToClipboard: function (text) {
var textArea = document.createElement("textarea");
@@ -50,8 +50,8 @@ define(['sources/gettext', 'alertify'], function (gettext, alertify) {
document.execCommand('copy');
} catch (err) {
alertify.alert(
gettext('Error'),
gettext('Oops, unable to copy to clipboard'));
t('Error'),
t('Oops, unable to copy to clipboard'));
}
document.body.removeChild(textArea);

View File

@@ -9,7 +9,7 @@ define(["translations"], function (translations) {
* @param {String} text
* @param {Object} substitutions
*/
return function gettext(text, substitutions) {
return function translate(text, substitutions) {
var rawTranslation = translations[text] ? translations[text] : text;