mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-08 00:34:19 +01:00
Changed code to support basic i18n.
Added RubyMine configuration and rvm setup to .gitignore.
This commit is contained in:
parent
04faa5d408
commit
fd3f69d927
99 changed files with 1157 additions and 601 deletions
36
app/views/data/index.de.html.erb
Normal file
36
app/views/data/index.de.html.erb
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<div id="display_box">
|
||||
<div id="feeds">
|
||||
<div id="feedlegend">
|
||||
<h3>Daten exportieren</h3>
|
||||
<p>Sie können zwischen den folgenden Formaten wählen:</p>
|
||||
<ul>
|
||||
<li><strong>YAML: </strong>Für den Daten-Import bevorzugt.<br/><i>Bitte beachten Sie, dass der YAML-Import zur Zeit noch experimentelle Funktionalität darstellt. Nutzen Sie diese Option also nicht. um kritische Daten zu sichern.</i></li>
|
||||
<li><strong>CSV: </strong>Am besten für den Export in eine Tabellen-Kalkulation oder ähnliche Auswertungs-Software geeignet</li>
|
||||
<li><strong>XML: </strong>Am besten für den Daten-Import oder automatische Weiterverarbeitung</li>
|
||||
</ul>
|
||||
</div>
|
||||
<br/><br/>
|
||||
<table class="export_table">
|
||||
<tr>
|
||||
<th>Beschreibung</th>
|
||||
<th>Download link</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>YAML-Datei mit all Ihren Aktionen, Umgebungen, Projekten, Tags und Notizen</td>
|
||||
<td><%= link_to "YAML Datei", :controller => 'data', :action => 'yaml_export' %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CSV-Datei mit all Ihren Aktionen, benannten Umgebungen und Projekten</td>
|
||||
<td><%= link_to "CSV Dile (Aktionen, Umgebungen und Projekte)", :controller => 'data', :action => 'csv_actions' %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CSV-Datei mit all Ihren Notizen</td>
|
||||
<td><%= link_to "CSV Datei (nur Notizen)", :controller => 'data', :action => 'csv_notes' %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>XML-Datei mit all Ihren Aktionen, Umgebungen, Projekten, Tags und Notizen</td>
|
||||
<td><%= link_to "XML file (actions only)", :controller => 'data', :action => 'xml_export' %></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><!-- End of feeds -->
|
||||
</div>
|
||||
17
app/views/data/yaml_form.de.html.erb
Normal file
17
app/views/data/yaml_form.de.html.erb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<div id="display_box">
|
||||
<div id="feeds">
|
||||
<div id="feedlegend">
|
||||
<p><b>Vorsicht</b>: vor dem Import der YAML Datei werden alle Daten in Ihrer Datenbank gelöscht.
|
||||
Falls Sie entsprechenden Zugriff auf Ihre Datenbank haben, empfiehlt es sich, ein Backup anzulegen,
|
||||
bevor Sie fortfahren.
|
||||
</p>
|
||||
<p>Fügen Sie den Inhalt der kopierten YAML Datei in das untenstehende Formular ein:</p>
|
||||
</div>
|
||||
<p>
|
||||
<% form_for :import, @import, :url => {:controller => 'data', :action => 'yaml_import'} do |f| %>
|
||||
<%= f.text_area :yaml %><br />
|
||||
<input type="submit" value="Daten importieren">
|
||||
<% end %>
|
||||
</p>
|
||||
</div><!-- End of feeds -->
|
||||
</div><!-- End of display_box -->
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
<% if !(@errmessage == '') %>
|
||||
<p>There were these errors:
|
||||
<pre><%= @errmessage %></pre>
|
||||
</p>
|
||||
<p><%= t('data.import_errors') %>:<pre><%= @errmessage %></pre></p>
|
||||
<% else %>
|
||||
<p>Import was successful.</p>
|
||||
<p><%= t('data.import_successful') %></p>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue