diff options
Diffstat (limited to 'install/ui/src/freeipa/text.js')
-rw-r--r-- | install/ui/src/freeipa/text.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/text.js b/install/ui/src/freeipa/text.js new file mode 100644 index 000000000..1e5b0e591 --- /dev/null +++ b/install/ui/src/freeipa/text.js @@ -0,0 +1,40 @@ +/* Authors: + * Petr Vobornik <pvoborni@redhat.com> + * + * Copyright (C) 2013 Red Hat + * see file 'COPYING' for use and warranty information + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +/** + * Text provider + * + * Serves for returning labels, titles, messages from various providers. + * Other providers can extends functionality. + */ +define(['./_base/Provider', './_base/i18n', './_base/metadata_provider'], + function(Provider, i18n, metadata) { + + var text = new Provider({ + providers: [ + i18n, + metadata + ], + null_value: '', + required_type: 'string' + }); + + return text; +});
\ No newline at end of file |