Node/Way/Relation in /browse/relation/:id. And used the bad practice
of concating things together to translate them.
Fixed it to use translation variables.
21 files changed:
- <td>
- <%= t 'activerecord.models.'+relation_member.member_type.downcase %>
- <%= link_to h(printable_name(relation_member.member)), :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s %>
- <% unless relation_member.member_role.blank? %>
- <%= t'browse.relation_member.as' %>
- <%= h(relation_member.member_role) %>
- <% end %>
- </td>
+ <td><%=
+ linked_name = link_to h(printable_name(relation_member.member)), :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s
+ type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase
+
+ if relation_member.member_role.blank?
+ t'browse.relation_member.entry', :type => type_str, :name => linked_name
+ else
+ t'browse.relation_member.entry_role', :type => type_str, :name => linked_name, :role => h(relation_member.member_role)
+ end
+ %></td>
relation_history:
relation_history: "Гісторыя сувязі"
relation_history_title: "Гісторыя сувязі: {{relation_name}}"
relation_history:
relation_history: "Гісторыя сувязі"
relation_history_title: "Гісторыя сувязі: {{relation_name}}"
- relation_member:
- as: "як"
relation:
relation: "Сувязь"
relation_title: "Сувязь: {{relation_name}}"
relation:
relation: "Сувязь"
relation_title: "Сувязь: {{relation_name}}"
relation_history:
relation_history: "Historial de la relació"
relation_history_title: "Historial de la relació: {{relation_name}}"
relation_history:
relation_history: "Historial de la relació"
relation_history_title: "Historial de la relació: {{relation_name}}"
- relation_member:
- as: "com a"
relation:
relation: "Relació"
relation_title: "Relació: {{relation_name}}"
relation:
relation: "Relació"
relation_title: "Relació: {{relation_name}}"
relation_history:
relation_history: "Relations-Chronik"
relation_history_title: "Relations-Chronik: {{relation_name}}"
relation_history:
relation_history: "Relations-Chronik"
relation_history_title: "Relations-Chronik: {{relation_name}}"
- relation_member:
- as: "des Typs"
relation:
relation: "Relation"
relation_title: "Relation: {{relation_name}}"
relation:
relation: "Relation"
relation_title: "Relation: {{relation_name}}"
relation_history:
relation_history: "Ιστορια σχέσης"
relation_history_title: "Ιστορια σχέσης: {{relation_name}}"
relation_history:
relation_history: "Ιστορια σχέσης"
relation_history_title: "Ιστορια σχέσης: {{relation_name}}"
- relation_member:
- as: "as"
relation:
relation: "Σχέση"
relation_title: "Σχέση: {{relation_name}}"
relation:
relation: "Σχέση"
relation_title: "Σχέση: {{relation_name}}"
relation_history: "Relation History"
relation_history_title: "Relation History: {{relation_name}}"
relation_member:
relation_history: "Relation History"
relation_history_title: "Relation History: {{relation_name}}"
relation_member:
+ entry: "{{type}} {{name}}"
+ entry_role: "{{type}} {{name}} as {{role}}"
+ type:
+ node: "Node"
+ way: "Way"
+ relation: "Relation"
relation:
relation: "Relation"
relation_title: "Relation: {{relation_name}}"
relation:
relation: "Relation"
relation_title: "Relation: {{relation_name}}"
relation_history:
relation_history: "Historial de la relación"
relation_history_title: "Historial de la relación {{relation_name}}:"
relation_history:
relation_history: "Historial de la relación"
relation_history_title: "Historial de la relación {{relation_name}}:"
- relation_member:
- as: "como"
relation:
relation: "Relación"
relation_title: "Relación {{relation_name}}:"
relation:
relation: "Relación"
relation_title: "Relación {{relation_name}}:"
relation_history:
relation_history: "Relation History"
relation_history_title: "Relation History: {{relation_name}}"
relation_history:
relation_history: "Relation History"
relation_history_title: "Relation History: {{relation_name}}"
- relation_member:
- as: "as"
relation:
relation: "Relation"
relation_title: "Relation: {{relation_name}}"
relation:
relation: "Relation"
relation_title: "Relation: {{relation_name}}"
relation_history:
relation_history: "संबंध का इतिहास"
relation_history_title: "इस संबंध का इतिहास: {{relation_name}}"
relation_history:
relation_history: "संबंध का इतिहास"
relation_history_title: "इस संबंध का इतिहास: {{relation_name}}"
- relation_member:
- as: "जैसे"
relation:
relation: "संबंध"
relation_title: "संबंध: {{relation_name}}"
relation:
relation: "संबंध"
relation_title: "संबंध: {{relation_name}}"
relation_history: "Breytingarskrá vensla "
relation_history_title: "Breytingarskrá vensla: {{relation_name}}"
relation_member:
relation_history: "Breytingarskrá vensla "
relation_history_title: "Breytingarskrá vensla: {{relation_name}}"
relation_member:
+ entry: "{{type}} {{name}}"
+ entry_role: "{{type}} {{name}} sem „{{role}}“"
+ type:
+ node: "Hnúturinn"
+ way: "Vegurinn"
+ relation: "Venslin"
relation:
relation: "Vensl"
relation_title: "Vensl: {{relation_name}}"
relation:
relation: "Vensl"
relation_title: "Vensl: {{relation_name}}"
relation_history:
relation_history: "Storico della relazione"
relation_history_title: "Storico della relazione: {{relation_name}}"
relation_history:
relation_history: "Storico della relazione"
relation_history_title: "Storico della relazione: {{relation_name}}"
- relation_member:
- as: "come"
relation:
relation: "Relazione"
relation_title: "Relazione: {{relation_name}}"
relation:
relation: "Relazione"
relation_title: "Relazione: {{relation_name}}"
relation_history:
relation_history: "関連の履歴"
relation_history_title: "関連の履歴: {{relation_name}}"
relation_history:
relation_history: "関連の履歴"
relation_history_title: "関連の履歴: {{relation_name}}"
- relation_member:
- as: "as"
relation:
relation: "関連"
relation_title: "関連: {{relation_name}}"
relation:
relation: "関連"
relation_title: "関連: {{relation_name}}"
relation_history:
relation_history: "관계 이력"
relation_history_title: "관계 이력: {{relation_name}}"
relation_history:
relation_history: "관계 이력"
relation_history_title: "관계 이력: {{relation_name}}"
- relation_member:
- as: "as"
relation:
relation: "관계"
relation_title: "관계: {{relation_name}}"
relation:
relation: "관계"
relation_title: "관계: {{relation_name}}"
relation_history:
relation_history: "Relatie-geschiedenis"
relation_history_title: "Relatie-geschiedenis: {{relation_name}}"
relation_history:
relation_history: "Relatie-geschiedenis"
relation_history_title: "Relatie-geschiedenis: {{relation_name}}"
- relation_member:
- as: "als"
relation:
relation: "Relatie"
relation_title: "Relatie: {{relation_name}}"
relation:
relation: "Relatie"
relation_title: "Relatie: {{relation_name}}"
relation_history:
relation_history: "Historia zmian relacji"
relation_history_title: "Historia relacji: {{relation_name}}"
relation_history:
relation_history: "Historia zmian relacji"
relation_history_title: "Historia relacji: {{relation_name}}"
- relation_member:
- as: "jako"
relation:
relation: "Relacja"
relation_title: "Relacja: {{relation_name}}"
relation:
relation: "Relacja"
relation_title: "Relacja: {{relation_name}}"
relation_history:
relation_history: "Histórico de Relação"
relation_history_title: "Histórico da Relação: {{relation_name}}"
relation_history:
relation_history: "Histórico de Relação"
relation_history_title: "Histórico da Relação: {{relation_name}}"
- relation_member:
- as: "como"
relation:
relation: "Relação"
relation_title: "Relação: {{relation_name}}"
relation:
relation: "Relação"
relation_title: "Relação: {{relation_name}}"
relation_history:
relation_history: "История отношения"
relation_history_title: "История отношения {{relation_name}}"
relation_history:
relation_history: "История отношения"
relation_history_title: "История отношения {{relation_name}}"
- relation_member:
- as: "в роли"
relation:
relation: "Отношение"
relation_title: "Отношение: {{relation_name}}"
relation:
relation: "Отношение"
relation_title: "Отношение: {{relation_name}}"
relation_history:
relation_history: "Zgodovina relacije"
relation_history_title: "Zgodovina relacije: {{relation_name}}"
relation_history:
relation_history: "Zgodovina relacije"
relation_history_title: "Zgodovina relacije: {{relation_name}}"
- relation_member:
- as: "kot"
relation:
relation: "Relacija"
relation_title: "Relacija: {{relation_name}}"
relation:
relation: "Relacija"
relation_title: "Relacija: {{relation_name}}"
relation_history:
relation_history: "Relation History"
relation_history_title: "Relation History: {{relation_name}}"
relation_history:
relation_history: "Relation History"
relation_history_title: "Relation History: {{relation_name}}"
- relation_member:
- as: "as"
relation:
relation: "Relation"
relation_title: "Relation: {{relation_name}}"
relation:
relation: "Relation"
relation_title: "Relation: {{relation_name}}"
relation_history:
relation_history: "关系历史"
relation_history_title: "关系历史: {{relation_name}}"
relation_history:
relation_history: "关系历史"
relation_history_title: "关系历史: {{relation_name}}"
- relation_member:
- as: "as"
relation:
relation: "关系"
relation_title: "关系: {{relation_name}}"
relation:
relation: "关系"
relation_title: "关系: {{relation_name}}"
relation_history:
relation_history: "關係歷史紀錄"
relation_history_title: "關係歷史紀錄: {{relation_name}}"
relation_history:
relation_history: "關係歷史紀錄"
relation_history_title: "關係歷史紀錄: {{relation_name}}"
- relation_member:
- as: "為"
relation:
relation: "關係"
relation_title: "關係: {{relation_name}}"
relation:
relation: "關係"
relation_title: "關係: {{relation_name}}"