https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-12-01T17:58:05ZRedmineRedmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228862010-12-01T17:58:05ZEthan Fremen
<ul></ul><p>I see this issue as well - it affects other pages / macro components too. I think it has something to do with i18n...</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228892010-12-01T18:23:17ZJames Byrne
<ul></ul><p>Funnily enough, if the count value is '1' then that shows. But no other number does.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228902010-12-01T18:25:12ZJames Byrne
<ul></ul><p>I wonder if the problem is in the pluralizer?</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228922010-12-01T19:16:44ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>I don't see this problem on trunk. Can you give a list of your installed gems please?</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228942010-12-01T19:28:31ZKennison Martin
<ul></ul><p>I see this as well.</p>
<blockquote>
<p>Added by {{author}} {{age}} ago. Updated {{value}} ago.</p>
</blockquote>
<p>installed gems:</p>
<p>actionmailer (2.3.5)<br />actionpack (2.3.5)<br />activemodel (3.0.3)<br />activerecord (2.3.5)<br />activeresource (3.0.3, 2.3.5)<br />activesupport (3.0.3, 2.3.5)<br />builder (2.1.2)<br />eventmachine (0.12.10)<br />fastthread (1.0.7)<br />gearman-ruby (2.0.0)<br />gruff (0.3.6)<br />holidays (1.0.0)<br />i18n (0.5.0)<br />icalendar (1.1.5)<br />macaddr (1.0.0)<br />mysql (2.8.1)<br />passenger (2.2.10)<br />prawn (0.8.4)<br />prawn-core (0.8.4)<br />prawn-layout (0.8.4)<br />prawn-security (0.8.4)<br />rack (1.0.1)<br />rails (2.3.5)<br />rake (0.8.7)<br />rmagick (2.13.1)<br />uuid (2.2.0)</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228952010-12-01T19:29:06ZKennison Martin
<ul></ul><p>also using the redmine_backlog plugin</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228962010-12-01T19:37:32ZJames Byrne
<ul></ul><pre>
# gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.8
- /root/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org"]
- REMOTE SOURCES:
- http://gems.rubyforge.org
# gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.3, 2.3.8, 2.3.5)
actionpack (3.0.3, 2.3.8, 2.3.5)
activemodel (3.0.3)
activerecord (3.0.3, 2.3.8, 2.3.5)
activeresource (3.0.3, 2.3.8, 2.3.5)
activesupport (3.0.3, 2.3.8, 2.3.5)
arel (2.0.5)
authlogic (2.1.6)
builder (2.1.2)
bundler (1.0.7)
daemon_controller (0.2.5)
erubis (2.6.6)
fastercsv (1.5.3)
fastthread (1.0.7)
file-tail (1.0.5)
i18n (0.5.0)
mail (2.2.11)
mime-types (1.16)
nokogiri (1.4.4)
passenger (3.0.0)
pg (0.9.0)
polyglot (0.3.1)
rack (1.2.1, 1.1.0, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.6)
rails (3.0.3, 2.3.8, 2.3.5)
railties (3.0.3)
rake (0.8.7)
searchlogic (2.4.27)
spruz (0.2.2)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.23)
</pre> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228972010-12-01T19:53:56ZIvan Flores
<ul></ul><p>Hi :</p>
<p>I have same problema en All page with total, the system information :</p>
<p>$ gem environment<br />RubyGems Environment:<br /> - RUBYGEMS VERSION: 1.3.5<br /> - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]<br /> - INSTALLATION DIRECTORY: /var/lib/gems/1.8<br /> - RUBY EXECUTABLE: /usr/bin/ruby1.8<br /> - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin<br /> - RUBYGEMS PLATFORMS:<br /> - ruby<br /> - x86-linux<br /> - GEM PATHS:<br /> - /var/lib/gems/1.8<br /> - /home/sspp/.gem/ruby/1.8<br /> - GEM CONFIGURATION:<br /> - :update_sources => true<br /> - :verbose => true<br /> - :benchmark => false<br /> - :backtrace => false<br /> - :bulk_threshold => 1000<br /> - REMOTE SOURCES:<br /> - <a class="external" href="http://gems.rubyforge.org/">http://gems.rubyforge.org/</a></p>
<pre><code>gem list</code></pre>
<ul>
<li>LOCAL GEMS ***</li>
</ul>
<p>actionmailer (2.3.5)<br />actionpack (2.3.5)<br />activerecord (2.3.5)<br />activeresource (2.3.5)<br />activesupport (3.0.3, 2.3.5)<br />edavis10-object_daddy (0.4.3)<br />i18n (0.5.0)<br />mail (2.2.11)<br />mime-types (1.16)<br />mocha (0.9.10)<br />polyglot (0.3.1)<br />rack (1.0.1)<br />rails (2.3.5)<br />rake (0.8.7)<br />shoulda (2.11.3, 2.10.3)<br />treetop (1.4.9)</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228982010-12-01T20:16:59ZBruno Santos
<ul></ul><p>I've just made a fresh install and everything was ok.<br />After I install backlog plugin its when the problems start.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=228992010-12-01T20:26:46ZJames Byrne
<ul></ul><p>I have no additional plugins installed as far as I can recall. These are all that are present in the Redmin vendor/plugins directory"</p>
<pre>
# ll vendor/plugins
total 144
drwxr-xr-x 4 pas pas 4096 Feb 18 2009 acts_as_activity_provider
drwxr-xr-x 4 pas pas 4096 Feb 18 2009 acts_as_attachable
drwxr-xr-x 4 pas pas 4096 Feb 18 2009 acts_as_customizable
drwxr-xr-x 4 pas pas 4096 May 9 2008 acts_as_event
drwxr-xr-x 5 pas pas 4096 May 9 2008 acts_as_list
drwxr-xr-x 4 pas pas 4096 May 9 2008 acts_as_searchable
drwxr-xr-x 5 pas pas 4096 May 9 2008 acts_as_tree
drwxr-xr-x 5 pas pas 4096 May 9 2008 acts_as_versioned
drwxr-xr-x 4 pas pas 4096 May 9 2008 acts_as_watchable
drwxr-xr-x 6 pas pas 4096 Feb 18 2009 awesome_nested_set
drwxr-xr-x 5 pas pas 4096 May 9 2008 classic_pagination
drwxr-xr-x 4 pas pas 4096 May 5 2010 coderay-0.9.2
drwxr-xr-x 7 pas pas 4096 May 5 2010 engines
drwxr-xr-x 5 pas pas 4096 May 5 2010 gravatar
drwxr-xr-x 7 pas pas 4096 Feb 18 2009 open_id_authentication
drwxr-xr-x 3 pas pas 4096 May 5 2010 prepend_engine_views
drwxr-xr-x 5 pas pas 4096 May 9 2008 rfpdf
drwxr-xr-x 5 pas pas 4096 May 9 2008 ruby-net-ldap-0.0.4
</pre> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229012010-12-01T21:50:22ZBruno Santos
<ul></ul><p>Downgraded i18n gem to 0.4.2 and it solved the problem</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229022010-12-01T22:07:22ZEric Baker
<ul></ul><p>I downgraded i18n from 0.5.0 to 0.4.2, but the problem is still there.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229042010-12-01T23:29:23ZEric Baker
<ul></ul><p>UPDATE: Nevermind - I didn't actually downgrade the i18n gem... still at 0.5.0. My apologies.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229052010-12-02T01:00:52ZKennison Martin
<ul></ul><p>i18n downgrade to 0.4.2 worked for me as well.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229262010-12-02T17:41:41ZTeodor Engqvist
<ul></ul><p>I got the problem when i updated my gems. When i downgrade i18n to 0.4.2 it did solve the problem. <br />Have you tried to uninstall i18n it will tell if there are more versions install.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229272010-12-02T17:43:31ZTeodor Engqvist
<ul></ul><p>gem install i18n -v 0.4.2<br />check if you have another version install gem uninstall i18n</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229282010-12-02T17:59:47ZIvan Flores
<ul></ul><p>The problem is fixed !!!, the solution is :</p>
<p>#gem install i18n -v=0.4.2<br />#gem uninstall i18n -v=0.5.0</p>
<p>Thank !!</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229292010-12-02T18:00:19ZJames Byrne
<ul></ul><p>That will not work for me as I have another app on that server about to upgrade to Rails-3.0.0. And that requires I18n v 0.5.</p>
<p>If I unpack the i18n -v 0.4.2 gem into vendor in the Redmine project will that work?</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229332010-12-02T18:47:12ZJames Byrne
<ul></ul><p>Neither unpacking the i18n v-0.4.2 gem into vendor/gems nor configuring the gem with :version => '0.4.2' had any effect. Redmine insists on using the higher numbered system i18n gem.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229342010-12-02T19:17:55ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>James Byrne wrote:</p>
<blockquote>
<p>Neither unpacking the i18n v-0.4.2 gem into vendor/gems nor configuring the gem with :version => '0.4.2' had any effect. <br />Redmine insists on using the higher numbered system i18n gem.</p>
</blockquote>
<p>This is actually Rails that loads the gem and I didn't find a solution to change this behaviour.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229352010-12-02T19:20:38ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>The solution would be to change the locales so that they use the new i18n interpolation syntax (<a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Convert translations to the new format for i18n 4.x (Closed)" href="https://www.redmine.org/issues/6495">#6495</a>).</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229362010-12-02T19:50:26ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Category</strong> set to <i>I18n</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li></ul> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229382010-12-02T20:00:07ZJames Byrne
<ul></ul><p>If the old version of i18n is vendored with rails-2.3.5 per <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Convert translations to the new format for i18n 4.x (Closed)" href="https://www.redmine.org/issues/6495">#6495</a> then why is not Rails using it?</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229412010-12-02T22:16:35ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>In <code>activesupport-2.3.5/lib/active_support/vendor.rb</code>:</p>
<pre>
begin
gem 'i18n', '>= 0.1.3'
rescue Gem::LoadError
$:.unshift "#{File.dirname(__FILE__)}/vendor/i18n-0.1.3/lib"
end
</pre>
<p>will pick any gem instead of the vendored lib.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229572010-12-03T10:03:38ZAnonymous
<ul></ul><p>Easily fixed.</p>
<p>Just replace all {{foo}} strings in your config/locales/*.yml file of your currently used language and redmine is working with i18n 0.5.0 and above.</p>
<p>Maybe redmine should depend on i18n 0.5 and convert all translations.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229582010-12-03T10:04:15ZAnonymous
<ul></ul><p>Thomas von Deyen wrote:</p>
<blockquote>
<p>Easily fixed.</p>
<p>Just replace all {{foo}} strings in your config/locales/*.yml file of your currently used language and redmine is working with i18n 0.5.0 and above.</p>
<p>Maybe redmine should depend on i18n 0.5 and convert all translations.</p>
</blockquote>
<p>Sorry :)</p>
<p>Just replace all {{foo}} strings with %{foo}</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=229882010-12-04T10:18:19ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Of course it can be easily fixed. But adding a dependency in Redmine (eg. <code>config.gem 'i18', :version => '0.5.0'</code>) won't do anything because Rails 2.3.5 will have already loaded the vendored i18n 0.1.3 if no i18n gem is installed.</p>
<p>I think the cleanest solution is to upgrade to latest Rails 2.3.x that natively supports the new i18n interpolation format.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=230962010-12-09T23:23:12ZCsaba Molnár
<ul></ul><p>I also experience the problem in this Defect with 1.0.4. At first, I solved it by replacing all {{foo}} strings with %{foo} in my .yml file. I had i18n 0.5.0 installed. However, one problem still remained. In several places, dates were displayed in the format 2010.12.{{count}}.<br />Downgrading to i18n 0.4.2 helped to some extent. Dates are now displayed correctly on the Tasks tab and the detail view of Tasks. But the problem still occurs on the Activity tab.<br />I can provide a gem list, if needed.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=232772010-12-17T15:56:30ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>1.0.5</i></li></ul><p>Fix committed in trunk in <a class="changeset" title="Manually require i18n 0.4.2 before Rails tries to load the most recent gem (#7013). This workaro..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4516">r4516</a>. I18n 0.4.2 is now required and will be loaded before rails tries to load a more recent one. Fix will be backported to 1.0-stable.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=232792010-12-17T16:13:54Zmathew murphy
<ul></ul><p>Wouldn't it be better to fix the .yml files so that they work with current versions of i18n?</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=232802010-12-17T16:33:41ZJames Byrne
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>Fix committed in trunk in <a class="changeset" title="Manually require i18n 0.4.2 before Rails tries to load the most recent gem (#7013). This workaro..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4516">r4516</a>. I18n 0.4.2 is now required and will be loaded before rails tries to load a more recent one. Fix will be backported to 1.0-stable.</p>
</blockquote>
<p>Update to <a class="changeset" title="Fixed: r4492 breaks the ability to select issue custom fields available for projects issues (#7121)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4529">r4529</a> works for me with Passenger 3.0.2 and resolves issue</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=232812010-12-17T16:56:33ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>mathew murphy wrote:</p>
<blockquote>
<p>Wouldn't it be better to fix the .yml files so that they work with current versions of i18n?</p>
</blockquote>
<p>The locales are now using the new syntax (<a class="changeset" title="Converts translations to the new i18n interpolation format (#6495)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4518">r4518</a>). But Redmine 1.1 will use i18n 0.4.2 so that plugins don't have to migrate their locales now. I18n 0.5.0 is no longer compatible with the old syntax.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=232892010-12-18T13:45:54ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p><a class="changeset" title="Manually require i18n 0.4.2 before Rails tries to load the most recent gem (#7013). This workaro..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4516">r4516</a> merged into 1.0-stable in <a class="changeset" title="Merged r4516 from trunk (i18n 0.4.2 gem is now required: 'gem install -v=0.4.2 i18n', see #7013)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4532">r4532</a>. Locales will be left with the old syntax in 1.0-stable.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=234202010-12-23T10:06:47ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>v-1.0.4 trunk - see {{count}} in page display rather than value</i> to <i>See {{count}} in page display rather than value with i18n 0.5.0</i></li></ul> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=285102011-04-30T08:16:13ZDavid Muir
<ul></ul><p>I had this happen when I upgraded to 1.1.3 (from 1.0.3). I only have i18n 0.4.2 and 0.4.1 installed. I've tried the various fixes suggested, but none of them have helped.</p> Redmine - Defect #7013: See {{count}} in page display rather than value with i18n 0.5.0https://www.redmine.org/issues/7013?journal_id=294202011-05-31T21:16:09ZGabriela Mota
<ul></ul><p>David Muir wrote:</p>
<blockquote>
<p>I had this happen when I upgraded to 1.1.3 (from 1.0.3). I only have i18n 0.4.2 and 0.4.1 installed. I've tried the various fixes suggested, but none of them have helped.</p>
</blockquote>
<p>I got the same problem when migrating Redmine 1.1.3 from Webrick to Passenger + Apache2.<br />I have i18n version 0.4.2 installed, but still seeing tags like %{author} %{age} on my Issues pages.</p>
<p>My list of gems:</p>
<p>actionmailer (2.3.11)<br />actionpack (2.3.11)<br />activerecord (2.3.11)<br />activeresource (2.3.11)<br />activesupport (2.3.11)<br />i18n (0.4.2)<br />rack (1.1.1, 1.0.1)<br />rails (2.3.11)<br />rake (0.9.0)</p>
<p>Regards.</p>