git-sh-i18n.shon commit git-p4: document and test --import-local (5a92a6c)
   1#!/bin/sh
   2#
   3# Copyright (c) 2010 Ævar Arnfjörð Bjarmason
   4#
   5# This is a skeleton no-op implementation of gettext for Git. It'll be
   6# replaced by something that uses gettext.sh in a future patch series.
   7
   8if test -z "$GIT_GETTEXT_POISON"
   9then
  10        gettext () {
  11                printf "%s" "$1"
  12        }
  13
  14        gettextln() {
  15                printf "%s\n" "$1"
  16        }
  17
  18        eval_gettext () {
  19                printf "%s" "$1" | (
  20                        export PATH $(git sh-i18n--envsubst --variables "$1");
  21                        git sh-i18n--envsubst "$1"
  22                )
  23        }
  24
  25        eval_gettextln () {
  26                printf "%s\n" "$1" | (
  27                        export PATH $(git sh-i18n--envsubst --variables "$1");
  28                        git sh-i18n--envsubst "$1"
  29                )
  30        }
  31else
  32        gettext () {
  33                printf "%s" "# GETTEXT POISON #"
  34        }
  35
  36        gettextln () {
  37                printf "%s\n" "# GETTEXT POISON #"
  38        }
  39
  40        eval_gettext () {
  41                printf "%s" "# GETTEXT POISON #"
  42        }
  43
  44        eval_gettextln () {
  45                printf "%s\n" "# GETTEXT POISON #"
  46        }
  47fi
  48