← Back to team overview

touch-packages team mailing list archive

[Bug 606993] Re: gettext works only if the bash script is started with ./ command

 

Closing that outdated report as EOL has been reached long time ago

** Changed in: gettext (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gettext in Ubuntu.
https://bugs.launchpad.net/bugs/606993

Title:
  gettext works only if the bash script is started with ./ command

Status in gettext package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: gettext

  I have some bash scripts localized using gettext. In the header of
  each file I have

  #----------------------------------------------------------------------------------------------------

  export TEXTDOMAINDIR=$HOME/.tv-recorder/translations
  export TEXTDOMAIN=$0

  #----------------------------------------------------------------------------------------------------

  the gettext command I use is (i.e.)

  Erro="zenity --error --title "$TITOLO" --text=""'"$(gettext "Conf file missed. Aborting!")"'"
  eval $Erro

  That is working when I start the script form a shell with the command   ./script.sh
  But if I start the script from the menu, or with a double click in Nautilus window, or from a shell with the absolute address /home/luca/.folder/script.sh , gettext doesn't translate nothing.
  The only way to start the script with proper localization is to use a meta script in the menu that cds to the folder and start the script with the ./script.sh command.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: gettext 0.17-8ubuntu3
  ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
  Uname: Linux 2.6.32-23-generic x86_64
  NonfreeKernelModules: nvidia
  Architecture: amd64
  CheckboxSubmission: 1e05fcfd28b04117916c4d2c2d6e28c0
  CheckboxSystem: da9af3b901b5569a389df6337f3d812f
  Date: Sun Jul 18 15:39:25 2010
  InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
  ProcEnviron:
   LANG=es_PE.utf8
   SHELL=/bin/bash
  SourcePackage: gettext

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gettext/+bug/606993/+subscriptions