First off, I am using ruby 1.8.4 installed under Ubuntu Breezy Badger,
with ruby-gettext 1.5.0 installed as a gem.
I have found a weird behavior with rgettext parsing certain .rb files.
Whenever rgettext encounters a file containing an array whose first
element is being accessed in the code, I get the following error:
“numeric literal without digits”
For example, if I include the following code:
10 a = [1,2]
and I run :
I get the following result
SOME DESCRIPTIVE TITLE.
Copyright © YEAR THE PACKAGE’S COPYRIGHT HOLDER
This file is distributed under the same license as the PACKAGE
FIRST AUTHOR EMAIL@ADDRESS, YEAR.
“Project-Id-Version: PACKAGE VERSION\n”
“POT-Creation-Date: 2006-06-04 00:47+0200\n”
“PO-Revision-Date: 2006-06-04 00:47+0200\n”
“Last-Translator: FULL NAME EMAIL@ADDRESS\n”
“Language-Team: LANGUAGE firstname.lastname@example.org\n”
“Content-Type: text/plain; charset=UTF-8\n”
“Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n”
numeric literal without digits
If I remove that piece of code, it all runs smoothly.
Would anyone know what that error could be caused by ? Is there any way
to fix it ?