finish shared i18n
This commit is contained in:
parent
e06524ca37
commit
28c66642f5
11 changed files with 120 additions and 54 deletions
|
@ -1,10 +1,10 @@
|
|||
%table.table.table-hover
|
||||
%thead
|
||||
%tr
|
||||
%th{:style => 'width:70%'} Bestellgruppe
|
||||
%th Bestellt (Menge + Toleranz)
|
||||
%th Bekommen
|
||||
%th Gesamtpreis
|
||||
%th{:style => 'width:70%'}= t '.ordergroup'
|
||||
%th= t '.ordered'
|
||||
%th= t '.received'
|
||||
%th= t '.price'
|
||||
|
||||
- for order_article in order.order_articles.ordered.all(:include => [:article, :article_price])
|
||||
%thead
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
%table.table.table-hover
|
||||
%thead
|
||||
%tr
|
||||
%th{:style => "width:40%"} Name
|
||||
%th{:style => "width:40%"}= t '.name'
|
||||
%th
|
||||
%acronym{:title => "zugeteilte Einheiten"} Menge
|
||||
%acronym{:title => t('.units_desc')}= t '.units'
|
||||
%th
|
||||
%acronym{:title => "Preis incl. MwSt, Pfand und Foodcoop-Aufschlag"} FC-Preis
|
||||
%acronym{:title => t('.fc_price_desc')}= t '.fc_price'
|
||||
%th
|
||||
%acronym{:title => "Gebindegröße"} GebGr
|
||||
%th Einheit
|
||||
%th Gesamtpreis
|
||||
%acronym{:title => t('.unit_quantity_desc')}= t '.unit_quantity'
|
||||
%th= t '.unit'
|
||||
%th= t '.price'
|
||||
|
||||
- for group_order in order.group_orders.all
|
||||
%thead
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
%dl
|
||||
%dt Beschreibung:
|
||||
%dt= t('.description') + ':'
|
||||
%dd=h group.description
|
||||
- if group.is_a?(Ordergroup) and (@current_user.role_admin? or @current_user.role_finance?)
|
||||
%dt Kontakt:
|
||||
%dt= t('.contact') + ':'
|
||||
%dd=h group.contact
|
||||
%dt Adresse:
|
||||
%dt= t('.address') + ':'
|
||||
%dd= link_to_gmaps group.contact_address
|
||||
%dt Zugriff auf:
|
||||
%dt= t('.access') + ':'
|
||||
%dd= format_roles(group)
|
||||
%dt Mitglieder:
|
||||
%dt= t('.members') + ':'
|
||||
%dd
|
||||
- members = group.users
|
||||
= "(#{members.size})"
|
||||
= members.collect(&:nick).join(", ")
|
||||
- if group.is_a?(Workgroup)
|
||||
%dt wöchentlicher Job:
|
||||
%dt= t('.weekly_job') + ':'
|
||||
%dd
|
||||
- if group.weekly_task
|
||||
=h "#{group.task_name} am #{weekday(group.weekday)}"
|
||||
- else
|
||||
kein wöchentlicher Job definiert
|
||||
= t '.no_weekly_job'
|
||||
- else
|
||||
%dt Äpfel-Bestellbeschränkung
|
||||
%dd= group.ignore_apple_restriction ? 'deaktiviert' : 'aktiviert'
|
||||
%dt= t '.apple_limit'
|
||||
%dd= group.ignore_apple_restriction ? t('.deactivated') : t('.activated')
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= yield
|
||||
|
||||
- if f.object.is_a?(Workgroup)
|
||||
%h3 Wöchentliche Jobs
|
||||
%h3= t '.title'
|
||||
= f.input :weekly_task
|
||||
#weekly_task_fields
|
||||
= f.input :weekday, as: :select, collection: Workgroup.weekdays
|
||||
|
@ -38,9 +38,9 @@
|
|||
$("##{f.object.class.to_s.underscore}_user_tokens").tokenInput("#{users_path(:format => :json)}", {
|
||||
crossDomain: false,
|
||||
prePopulate: $("##{f.object.class.to_s.underscore}_user_tokens").data("pre"),
|
||||
hintText: 'Nach Nutzerin suchen',
|
||||
noResultText: 'Keine Nutzerin gefunden',
|
||||
searchingText: 'Suche ...',
|
||||
hintText: #{t('.search_user')},
|
||||
noResultText: #{t('.user_not_found')}
|
||||
searchingText: #{t('.search')},
|
||||
theme: 'facebook'
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
%ul
|
||||
%li
|
||||
= image_tag 'b_user.png' , :size => '7x10', :border => 0, :alt => "Profil"
|
||||
= link_to h(@current_user.nick), my_profile_path, { :title => "Profil bearbeiten" }
|
||||
= image_tag 'b_user.png' , :size => '7x10', :border => 0, :alt => t('.profile')
|
||||
= link_to h(@current_user.nick), my_profile_path, { :title => t('.edit_profile') }
|
||||
- if FoodsoftConfig[:homepage]
|
||||
%li= link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage], { :title => "Go to your FoodCoop-Hompage" }
|
||||
%li= link_to "Hilfe", 'http://dev.foodcoops.net/wiki/FoodsoftDoku'
|
||||
%li= link_to "Feedback", new_feedback_path, :title => "Fehler gefunden? Vorschlag? Idee? Kritik?"
|
||||
%li= link_to "Abmelden", logout_path
|
||||
%li= link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage], { :title => t('.homepage_title') }
|
||||
%li= link_to t('.help'), FoodsoftConfig[:help_url]
|
||||
%li= link_to t('.feedback.title'), new_feedback_path, :title => t('.feedback.desc')
|
||||
%li= link_to t('.logout'), logout_path
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
%section
|
||||
%h2 Laufende Bestellungen
|
||||
%h2= t '.title'
|
||||
- if ordergroup.not_enough_apples?
|
||||
.alert Achtung, Deine Bestellgruppe hat zu wenig Äpfel um Bestellen zu können!
|
||||
.alert
|
||||
= t '.not_enough_apples'
|
||||
- unless Order.open.empty?
|
||||
%table.table.table-striped
|
||||
%thead
|
||||
%tr
|
||||
%th Lieferantin
|
||||
%th Ende
|
||||
%th Wer hat bestellt?
|
||||
%th Summe
|
||||
%th= t '.supplier'
|
||||
%th= t '.ending'
|
||||
%th= t '.who_ordered'
|
||||
%th= t '.total'
|
||||
%tbody
|
||||
- total = 0
|
||||
- Order.open.each do |order|
|
||||
|
@ -26,7 +27,7 @@
|
|||
%tfooter
|
||||
%tr
|
||||
%th(colspan="2")
|
||||
%th Gesamtsumme:
|
||||
%th= t('.total_sum') + ':'
|
||||
%th.numeric= number_to_currency(total)
|
||||
- else
|
||||
%i Derzeit gibt es keine laufenden Bestellungen
|
||||
%i= t '.no_open_orders'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.well.well-small
|
||||
%h4 Mitglieder der Gruppen
|
||||
%h4= t '.title'
|
||||
#groupMembers.accordion
|
||||
- Workgroup.all.each do |workgroup|
|
||||
.accordion-group
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<% for membership in memberships %>
|
||||
<li style="margin-left:-15px">
|
||||
<b><%= membership.user.nick %></b> (<%=h membership.user.first_name + ' ' + membership.user.last_name %>)
|
||||
| <%= link_to_remote 'entfernen',
|
||||
| <%= link_to_remote t('.drop'),
|
||||
:url => { :controller => '/memberships', :action => 'drop_member', :id => @group, :membership_id => membership },
|
||||
:before => "Element.show('loader')",
|
||||
:success => "Element.hide('loader')" %>
|
||||
|
@ -17,5 +17,5 @@
|
|||
<% end %>
|
||||
</ul>
|
||||
<% else %>
|
||||
<p><i><%= @group.name %> hat keine Mitglieder.</i></p>
|
||||
<p><i><%= t('.no_members', group: @group.name) %></i></p>
|
||||
<% end %>
|
|
@ -1,13 +1,10 @@
|
|||
<h1>Mitglieder von <%=h @group.name %></h1>
|
||||
<h1><%=h t('.title', group: @group.name) %></h1>
|
||||
<p>
|
||||
<i>
|
||||
Hier kannst Du die Mitglieder der Gruppe verwalten oder ein neues Foodcoop-Mitglied in die Gruppe
|
||||
<%= remote_link_to('einladen', :url => new_invite_path(:id => @group)) %>.
|
||||
</i>
|
||||
<i><%= t('.desc', link: remote_link_to(t('.invite'), :url => new_invite_path(:id => @group))).html_safe %></i>
|
||||
</p>
|
||||
<div class="left_column" style="width:48%">
|
||||
<div class="box_title">
|
||||
<h2>Sind schon Mitglieder</h2>
|
||||
<h2><%= t('.already_members') %></h2>
|
||||
</div>
|
||||
<div class="column_content" id="members">
|
||||
<%=render :partial => 'shared/memberships/current_members' %>
|
||||
|
@ -15,11 +12,11 @@
|
|||
</div>
|
||||
<div class="right_column" style="width:48%">
|
||||
<div class="box_title">
|
||||
<h2>Sind noch keine Mitglieder</h2>
|
||||
<h2><%= t('.no_members_yet') %></h2>
|
||||
</div>
|
||||
<div class="column_content" id="non_members">
|
||||
<%= render :partial => 'shared/memberships/non_members' %>
|
||||
<%= remote_link_to('Person einladen', :url => new_invite_path(:id => @group)) %>
|
||||
<%= remote_link_to(t('.invite_someone'), :url => new_invite_path(:id => @group)) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<% for user in @group.non_members %>
|
||||
<li>
|
||||
<b><%= user.nick %></b> (<%=h user.first_name + ' ' + user.last_name %>)
|
||||
| <%= link_to_remote 'hinzufügen',
|
||||
| <%= link_to_remote t('.add'),
|
||||
:url => { :controller => '/memberships', :action => 'add_member', :id => @group, :user_id => user },
|
||||
:before => "Element.show('loader')",
|
||||
:success => "Element.hide('loader')" %>
|
||||
|
|
68
config/locales/de/de.shared.yml
Normal file
68
config/locales/de/de.shared.yml
Normal file
|
@ -0,0 +1,68 @@
|
|||
de:
|
||||
shared:
|
||||
articles_by_articles:
|
||||
ordergroup: 'Bestellgruppe'
|
||||
ordered: 'Bestellt (Menge + Toleranz)'
|
||||
received: 'Bekommen'
|
||||
price: 'Gesamtpreis'
|
||||
articles_by_groups:
|
||||
name: 'Name'
|
||||
units: 'Menge'
|
||||
units_desc: 'Zugeteilte Einheiten'
|
||||
fc_price: 'FC-Preis'
|
||||
fc_price_desc: 'Preis incl. MwSt, Pfand und Foodcoop-Aufschlag'
|
||||
unit_quantity: 'GebGr'
|
||||
unit_quantity_desc: 'Gebindegröße'
|
||||
unit: 'Einheit'
|
||||
price: 'Gesamtpreis'
|
||||
group_form_fields:
|
||||
title: 'Wöchentliche Jobs'
|
||||
search_user: 'Nach Nutzerin suchen'
|
||||
user_not_found: 'Keine Nutzerin gefunden'
|
||||
search: 'Suche ...'
|
||||
group:
|
||||
description: 'Beschreibung'
|
||||
contact: 'Kontakt'
|
||||
address: 'Adresse'
|
||||
access: 'Zugriff auf'
|
||||
members: 'Mitglieder'
|
||||
weekly_job: 'wöchentlicher Job'
|
||||
no_weekly_job: 'kein wöchentlicher Job definiert'
|
||||
apple_limit: 'Äpfel-Bestellbeschränkung'
|
||||
deactivated: 'deaktiviert'
|
||||
activated: 'aktiviert'
|
||||
loginInfo:
|
||||
profile: 'Profil'
|
||||
edit_profile: 'Profil bearbeiten'
|
||||
homepage_title: 'Foodcoop Homepage besuchen'
|
||||
# duplicate from de.layouts.header
|
||||
logout: 'Abmelden'
|
||||
help: 'Hilfe'
|
||||
feedback:
|
||||
title: 'Feedback'
|
||||
desc: 'Fehler gefunden? Vorschlag? Idee? Kritik?'
|
||||
open_orders:
|
||||
title: 'Laufende Bestellungen'
|
||||
not_enough_apples: 'Achtung, Deine Bestellgruppe hat zu wenig Äpfel um Bestellen zu können!'
|
||||
supplier: 'Lieferantin'
|
||||
ending: 'Ende'
|
||||
who_ordered: 'Wer hat bestellt?'
|
||||
total: 'Summe'
|
||||
total_sum: 'Gesamtsumme'
|
||||
no_open_orders: 'Derzeit gibt es keine laufenden Bestellungen'
|
||||
workgroup_members:
|
||||
title: 'Mitglieder der Gruppen'
|
||||
|
||||
memberships:
|
||||
current_members:
|
||||
drop: 'entfernen'
|
||||
no_members: '%{group} hat keine Mitglieder.'
|
||||
members:
|
||||
title: 'Mitglieder von %{group}'
|
||||
desc: 'Hier kannst Du Mitglieder der Gruppe verwalten oder ein neues Foodcoop-Mitglied in die Gruppe %{link}.'
|
||||
invite: 'einladen'
|
||||
already_members: 'Sind schon Mitglieder'
|
||||
no_members_yet: 'Sind noch keine Mitglieder'
|
||||
invite_someone: 'Person einladen'
|
||||
non_members:
|
||||
add: 'hinzufügen'
|
Loading…
Reference in a new issue