https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292014-10-16T19:26:13ZRedmineRedmine - Defect #18110: Extraction of list of available locales is probe to bad gemshttps://www.redmine.org/issues/18110?journal_id=591652014-10-16T19:26:13ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li></ul><p>Ebrahim Mohammadi wrote:</p>
<blockquote>
<p>Hence a second "English" named language with a key of <code>kaminari</code> is added to list of Redmine languages.</p>
</blockquote>
<p>Which list contains this second "English" language ? Can you provide a screenshot or something and a way to reproduce this problem, thanks.</p> Redmine - Defect #18110: Extraction of list of available locales is probe to bad gemshttps://www.redmine.org/issues/18110?journal_id=591682014-10-16T20:44:08ZEbrahim Mohammadi
<ul></ul><p>Dropdown list of Redmine languages is shown in these two locations both of which are affected:</p>
<ul>
<li>My Account -> Language</li>
<li>Administration -> Settings -> Display -> Default language</li>
</ul>
<p>Non-tested steps to reproduce:</p>
<ul>
<li>Add <code>kaminari</code> to Gemfile of Redmine as dependency</li>
<li><code>bundle update</code></li>
<li><code>rails server</code></li>
<li>See any of two affected lists of Redmine languages</li>
</ul> Redmine - Defect #18110: Extraction of list of available locales is probe to bad gemshttps://www.redmine.org/issues/18110?journal_id=591692014-10-16T21:32:11ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Resolution</strong> set to <i>Cant reproduce</i></li></ul><p>Ebrahim Mohammadi wrote:</p>
<blockquote>
<p>Non-tested steps to reproduce:</p>
<ul>
<li>Add <code>kaminari</code> to Gemfile of Redmine as dependency</li>
<li><code>bundle update</code></li>
<li><code>rails server</code></li>
<li>See any of two affected lists of Redmine languages</li>
</ul>
</blockquote>
<p>I tried this already but was not able to reproduce.</p> Redmine - Defect #18110: Extraction of list of available locales is probe to bad gemshttps://www.redmine.org/issues/18110?journal_id=591822014-10-17T07:35:46ZEbrahim Mohammadi
<ul></ul><p>I think <code>kaminari</code> has to be loaded in Redmine in order to add its locale path to <code>::I18n.load_path</code> which is used in <code>Redmine::I18n::Backend.available_locales</code> in <code>lib/redmine/i18n.rb</code>.</p> Redmine - Defect #18110: Extraction of list of available locales is probe to bad gemshttps://www.redmine.org/issues/18110?journal_id=591992014-10-18T09:08:41ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>2.6.0</i></li><li><strong>Resolution</strong> changed from <i>Cant reproduce</i> to <i>Fixed</i></li></ul><p>I was able to reproduce and it's fixed in <a class="changeset" title="Ignore locales without :general_lang_name key (#18110)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/13450">r13450</a> (make sure to clear your cache).<br />Locales without the :general_lang_name locale are now ignored.</p>