diff options
author | Bill Nottingham <notting@redhat.com> | 2003-01-14 05:40:44 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-01-14 05:40:44 +0000 |
commit | 9dd40ac33da07b7c1a246be0ec185dbf4f3f85a8 (patch) | |
tree | 892d610bc792586d262ac153983da52733d59541 /po/xgettext_sh.py | |
parent | 04743dec20383d6d1e76d87330f8ec757a8769cf (diff) | |
download | initscripts-9dd40ac33da07b7c1a246be0ec185dbf4f3f85a8.tar initscripts-9dd40ac33da07b7c1a246be0ec185dbf4f3f85a8.tar.gz initscripts-9dd40ac33da07b7c1a246be0ec185dbf4f3f85a8.tar.bz2 initscripts-9dd40ac33da07b7c1a246be0ec185dbf4f3f85a8.tar.xz initscripts-9dd40ac33da07b7c1a246be0ec185dbf4f3f85a8.zip |
fix it to accept foo=$"blah"
Diffstat (limited to 'po/xgettext_sh.py')
-rw-r--r-- | po/xgettext_sh.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/po/xgettext_sh.py b/po/xgettext_sh.py index 7278b6ae..16fc4572 100644 --- a/po/xgettext_sh.py +++ b/po/xgettext_sh.py @@ -39,7 +39,10 @@ def xgettext(arq, tokens_i18n): elif l[0:1] == '\n': continue else: for token in tokens_i18n: - pos = find(l, token + ' $"') + if token == '=': + pos = find(l, token + '$"') + else + pos = find(l, token + ' $"') if pos != -1: text = split(l[pos:], '"')[1] #if find (text, '$') != -1: @@ -86,6 +89,7 @@ def main(): i18n_tokens.append('runcmd') i18n_tokens.append('success') i18n_tokens.append('/sbin/getkey -c $AUTOFSCK_TIMEOUT -m') + i18n_tokens.append('=') for a in argv: xgettext(a, i18n_tokens) |