summaryrefslogtreecommitdiff
path: root/modules/gettext.js
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2010-04-30 21:49:09 -0400
committerHavoc Pennington <hp@pobox.com>2010-04-30 21:55:22 -0400
commit941791d4cbcf4a42ecac63d47ab2333613d847b8 (patch)
tree03c5f9687a52e26255db69969a571d3374ff3a41 /modules/gettext.js
parentaf35036dace70004327f213598de22f8bcc136c3 (diff)
downloadgjs-941791d4cbcf4a42ecac63d47ab2333613d847b8.tar.gz
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
Diffstat (limited to 'modules/gettext.js')
-rw-r--r--modules/gettext.js12
1 files changed, 6 insertions, 6 deletions
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);
}