aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-05-19 16:54:18 +0200
committerJochen Topf <jochen@topf.org>2014-05-19 16:54:18 +0200
commit8a5eeda24ef1cf91314d6ecbf58790443cebea1f (patch)
tree158bd80942913566464a2019d98ac4fefb665567 /web
parentdf3b988616b9def06c70d5aaac53445071433702 (diff)
downloadtaginfo-8a5eeda24ef1cf91314d6ecbf58790443cebea1f.tar
taginfo-8a5eeda24ef1cf91314d6ecbf58790443cebea1f.tar.gz
Use language names from own list instead of from R18N library.
Diffstat (limited to 'web')
-rw-r--r--web/views/layout.erb2
-rw-r--r--web/views/taginfo/translations.erb3
2 files changed, 3 insertions, 2 deletions
diff --git a/web/views/layout.erb b/web/views/layout.erb
index 1596ffa..7803fdc 100644
--- a/web/views/layout.erb
+++ b/web/views/layout.erb
@@ -18,7 +18,7 @@
<input type="hidden" id="url" name="url" value="<%= TaginfoConfig.get('instance.url') + request.path %>"/>
<select id="locale" name="locale">
<% r18n.available_locales.sort{ |a,b| a.title <=> b.title }.each do |locale| %>
- <option value="<%= locale.code %>"<%= locale.code == r18n.locale.code ? ' selected="selected"' : ''%>><%= h(locale.title) %></option>
+ <option value="<%= locale.code %>"<%= locale.code == r18n.locale.code ? ' selected="selected"' : ''%>><%= h(::Language[locale.code].native_name) %></option>
<% end %>
</select>
</form>
diff --git a/web/views/taginfo/translations.erb b/web/views/taginfo/translations.erb
index ce84bc9..32eca4d 100644
--- a/web/views/taginfo/translations.erb
+++ b/web/views/taginfo/translations.erb
@@ -7,7 +7,8 @@
<% percent = (@num_texts[locale.code].to_f / @num_texts['en'].to_f * 100).to_i %>
<tr>
<td><span class="lang"><%= locale.code %></span></td>
- <td><%= locale.title %></td>
+ <td><%= h(::Language[locale.code].english_name) %></td>
+ <td><%= h(::Language[locale.code].native_name) %></td>
<td class="tr"><%= @num_texts[locale.code] %>/<%= @num_texts['en'] %></td>
<td class="tr <%= percent > 90 ? 'good' : ( percent <= 80 ? 'bad' : 'okay' ) %>"><%= percent %>%</td>
<td><a href="/taginfo/i18n?lang=<%= locale.code %>">see texts</a></td>