rails:2871
From: hada <k_hada@m...>
Date: Tue, 07 Oct 2008 17:17:51 +0900
Subject: [rails:2871] Re: will_paginateの日本語化
ご回答ありがとうございます。
ご指摘の通り文字コードの誤りでした。
EUCで編集していたところをUTF−8で編集しなおしたところ
正常に起動するようになりました。ありがとうございました。
------------------以下が、コンパイルエラーの内容です----------------------
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:138: syntax error, unexpected tCONSTANT, expecting kEND (SyntaxError)
when 1; 'Displaying <b>1</b> entry'
^
c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:139: unknown regexp option - b
c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:139: syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '('
c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:197: syntax error, unexpected tIDENTIFIER, expecting kEND
# pagination of Post models will have the ID of "posts_pagination"
^
c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:208: syntax error, unexpected tIDENTIFIER, expecting kEND
# <span class="gap">…</span>
^
c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:210: syntax error, unexpected tIDENTIFIER, expecting kEND
'<span class="gap">…</span>'
^
c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:328: syntax error, unexpected kEND, expecting $end from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate.rb:21:in `enable_actionpack'
from c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate.rb:14:in `enable'
from c:/ruby/lib/ruby/gems/1.8/gems/will_paginate-2.2.2/lib/will_paginate.rb:85
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
... 18 levels...
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from ./script/server:3
from -e:2:in `load'
from -e:2
"OZAWA Sakuro" <sakuro@2...> wrote:
> さくです。
>
> コンパイルエラーということは、文字コードが不一致なのではないでしょうか。
>
> 2008/10/07 15:02 hada <k_hada@m...>:
> > いつもお世話になります。hadaです。
> >
> > will_paginateの日本語化について質問です。
> >
> > will_paginateを使用し、改ページを行う処理を作成しております。
> > そこで、page_entries_infoで表示される下記の部分を
> > 日本語化できずに困っております。
> > ------------------ 以下、表示される内容-----------------
> > (No entries found)
> > (Displaying all 4 entries)
> > ---------------------------------------------------------
> > 対応として、
> > ruby\lib\ruby\gems\1.8\gems\will_paginate-2.2.2\lib\
> > will_paginate\view_helpers.rb
> > の
> > when 0; 'No entries found'
> > を when 0; 'データが存在しません'
> > と変更してみたのですが、コンパイルエラーとなってしまいます。
> >
> > page_entries_infoで表示される内容を日本語化する方法をご教授
> > お願いいたします。
> >
> >
> > 環境-------------
> > will_paginate-2.2.2
> > ruby 1.8.6
> > Rails 2.1.0
> >
> >
> > --
> > ML: rails@r...
> > 使い方: http://QuickML.com/
> >
>
>
>
> --
> OZAWA Sakuro <mailto:sakuro@2...>
> Wassrはじめました http://wassr.jp/user/sakuro
>
> --
> ML: rails@r...
> 使い方: http://QuickML.com/
>
┏┏┏┏┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┏┏┏┏
秦 耕造(kozo hada)
マネージメントサービス 株式会社
システム本部システム技術部
〒150-0044 東京都渋谷区円山町3-6 E・スペースタワー
TEL:??-????-???? FAX:??-????-????
E-Mail:k_hada@m...
┏┏┏┏┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┏┏┏┏
--
ML: rails@r...
使い方: http://QuickML.com/
2866 2008-10-02 09:28 [sgabon@n... ] 参加します 2869 2008-10-07 08:02 ┗[k_hada@m... ] will_paginateの日本語化 2870 2008-10-07 08:31 ┗[sakuro@2... ] -> 2871 2008-10-07 10:17 ┗[k_hada@m... ]