From: Masao Mutoh Date: 2006-06-04T13:22:08+09:00 Subject: Re: "numeric literal without digits" rake update_po error Hi, Your problem is similer with this FAQ: http://www.yotabanana.com/hiki/?ruby-gettext-faq#rgettext+or+rake+updatepo+doesn%27t+work+with+%22numeric+literal+without+digits%22. Actually, your code works on my linux box. % ruby -v ruby 1.8.4 (2005-12-24) [i686-linux] Confirm your ruby version again ? On Sun, 4 Jun 2006 08:08:33 +0900 Maxime Curioni wrote: > 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: > // test.rb > line > ... > 10 a = [1,2] > 11 a[0] > ... > > and I run : > > rgettext test.rb > > I get the following result > > # SOME DESCRIPTIVE TITLE. > # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER > # This file is distributed under the same license as the PACKAGE > package. > # FIRST AUTHOR , YEAR. > # > #, fuzzy > msgid "" > msgstr "" > "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 \n" > "Language-Team: LANGUAGE \n" > "MIME-Version: 1.0\n" > "Content-Type: text/plain; charset=UTF-8\n" > "Content-Transfer-Encoding: 8bit\n" > "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" > numeric literal without digits > Exit 1 > > > 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 ? > > -- > Posted via http://www.ruby-forum.com/. > > -- -- .:% Masao Mutoh