From 941791d4cbcf4a42ecac63d47ab2333613d847b8 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 30 Apr 2010 21:49:09 -0400 Subject: fix indentation, tabs, and trailing whitespace As reported by: FILES=`find -name "*.[hc]" -o -name "*.js" | grep -v -- '-introspection.c'` for F in $FILES ; do COUNT=`egrep '[ ]+$' $F | wc -l` if test x"$COUNT" != x0 ; then echo "$F: $COUNT trailing spaces" fi COUNT=`grep ' ' $F | wc -l` if test x"$COUNT" != x0 ; then echo "$F: $COUNT tabs" fi done --- modules/gettext.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/gettext.js') diff --git a/modules/gettext.js b/modules/gettext.js index f569388d..60f7212e 100644 --- a/modules/gettext.js +++ b/modules/gettext.js @@ -21,12 +21,12 @@ /** * This module provides bindings for the "gettext" family of functions. * Usage: - * + * * const Gettext = imports.gettext; - * + * * Gettext.textdomain("myapp"); * Gettext.bindtextdomain("myapp", "/usr/share/locale"); - * + * * let translated = Gettext.gettext("Hello world!"); */ @@ -38,7 +38,7 @@ Lang.copyProperties(imports.gettextNative, this); /** * Create an object with bindings for gettext, ngettext, * and pgettext bound to a particular translation domain. - * + * * @param domainName Translation domain string * @returns: an object with gettext bindings * @type: function @@ -48,11 +48,11 @@ var domain = function(domainName) { gettext: function(msgid) { return dgettext(domainName, msgid); }, - + ngettext: function(msgid1, msgid2, n) { return dngettext(domainName, msgid1, msgid2, n); }, - + pgettext: function(context, msgid) { return dpgettext(domainName, context, msgid); } -- cgit v1.2.1