add more translations for he locale. Contributed by Darian Shalev

This commit is contained in:
Reinier Balt 2012-04-11 20:21:28 +02:00
parent b18d846d92
commit ac270884ed
14 changed files with 3025 additions and 356 deletions

View file

@ -249,6 +249,7 @@ module ApplicationHelper
contexts.show_form contexts.show_form_title contexts.show_form contexts.show_form_title
contexts.new_context_pre contexts.new_context_post contexts.new_context_pre contexts.new_context_post
common.cancel common.ok common.cancel common.ok
common.update common.create
common.ajaxError todos.unresolved_dependency common.ajaxError todos.unresolved_dependency
}.each do |s| }.each do |s|
js << "i18n['#{s}'] = '#{ t(s).gsub(/'/, "\\\\'") }';\n" js << "i18n['#{s}'] = '#{ t(s).gsub(/'/, "\\\\'") }';\n"

View file

@ -10,7 +10,7 @@ suppress_delete_button ||= false
<%= suppress_edit_button ? "" : link_to_edit_context(context, image_tag( "blank.png", :title => t('contexts.edit_context'), :class=>"edit_item")) -%> <%= suppress_edit_button ? "" : link_to_edit_context(context, image_tag( "blank.png", :title => t('contexts.edit_context'), :class=>"edit_item")) -%>
<%= suppress_drag_handle ? "" : image_tag('grip.png', :width => '7', :height => '16', :border => '0', :title => t('common.drag_handle'), :class => 'grip')-%> <%= suppress_drag_handle ? "" : image_tag('grip.png', :width => '7', :height => '16', :border => '0', :title => t('common.drag_handle'), :class => 'grip')-%>
<div class="context_description"> <div class="context_description">
<%= link_to_context( context ) %> <%= " (" + count_undone_todos_phrase(context,"actions") + ")" %> <%= link_to_context( context ) %> <%= " (" + count_undone_todos_phrase(context,t('common.actions_midsentence')) + ")" %>
</div> </div>
</div> </div>
<div id="<%= dom_id(context, 'edit') %>" class="edit-form" style="display:none;"> <div id="<%= dom_id(context, 'edit') %>" class="edit-form" style="display:none;">

View file

@ -19,7 +19,7 @@
<div class="submit_box"> <div class="submit_box">
<div class="widgets"> <div class="widgets">
<button type="submit" class="positive" id="context_new_submit"> <button type="submit" class="positive" id="context_new_submit">
<%= image_tag("accept.png", :alt => "") + 'Add Context' %> <%= image_tag("accept.png", :alt => "") + t('shared.add_context') %>
</button> </button>
</div> </div>
</div> </div>

View file

@ -80,7 +80,7 @@
<li><%= navigation_link( t('layouts.navigation.stats'), {:controller => "stats", :action => "index"}, :title => t('layouts.navigation.stats_title')) %></li> <li><%= navigation_link( t('layouts.navigation.stats'), {:controller => "stats", :action => "index"}, :title => t('layouts.navigation.stats_title')) %></li>
</ul> </ul>
</li> </li>
<li><a href="#">Admin</a> <li><a href="#"><%= t('layouts.navigation.admin') %></a>
<ul> <ul>
<li><%= navigation_link( t('layouts.navigation.preferences'), preferences_path, {:accesskey => "u", :title => t('layouts.navigation.preferences_title')} ) %></li> <li><%= navigation_link( t('layouts.navigation.preferences'), preferences_path, {:accesskey => "u", :title => t('layouts.navigation.preferences_title')} ) %></li>
<li><%= navigation_link( t('layouts.navigation.export'), {:controller => "data", :action => "index"}, {:accesskey => "i", :title => t('layouts.navigation.export_title')} ) %></li> <li><%= navigation_link( t('layouts.navigation.export'), {:controller => "data", :action => "index"}, {:accesskey => "i", :title => t('layouts.navigation.export_title')} ) %></li>
@ -89,7 +89,7 @@
<% end -%> <% end -%>
</ul> </ul>
</li> </li>
<li><a href="#">?</a> <li><a href="#"><%= t('layouts.navigation.help') %></a>
<ul> <ul>
<li><%= link_to t('layouts.navigation.integrations_'), integrations_path %></li> <li><%= link_to t('layouts.navigation.integrations_'), integrations_path %></li>
<li><%= link_to t('layouts.navigation.api_docs'), rest_api_docs_path %></li> <li><%= link_to t('layouts.navigation.api_docs'), rest_api_docs_path %></li>

View file

@ -6,7 +6,7 @@
<%= link_to_delete_note(note, image_tag( "blank.png",:title => t('notes.delete_item_title'), :class=>"delete_item")) %> &nbsp; <%= link_to_delete_note(note, image_tag( "blank.png",:title => t('notes.delete_item_title'), :class=>"delete_item")) %> &nbsp;
<%= link_to_edit_note(note, image_tag( "blank.png", :title => t('notes.edit_item_title'), :class=>"edit_item") ) %> <%= link_to_edit_note(note, image_tag( "blank.png", :title => t('notes.edit_item_title'), :class=>"edit_item") ) %>
| <%= link_to("In: " + note.project.name, note.project, :class=>"footer_link" ) %>&nbsp;|&nbsp; | <%= link_to(t('notes.in_project') + note.project.name, note.project, :class=>"footer_link" ) %>&nbsp;|&nbsp;
<%= Note.human_attribute_name('created_at') %>: <%= format_date(note.created_at) %> <%= Note.human_attribute_name('created_at') %>: <%= format_date(note.created_at) %>

View file

@ -12,7 +12,7 @@ suppress_delete_button ||= false
<div class="project_description"> <div class="project_description">
<span class="<%= needsreview_class( project ) %>"> <span class="<%= needsreview_class( project ) %>">
<%= link_to_project( project ) %> <%= link_to_project( project ) %>
<%= " (" + count_undone_todos_and_notes_phrase(project,"actions") + ")" %> <%= " (" + count_undone_todos_and_notes_phrase(project,t('common.actions_midsentence')) + ")" %>
</span> </span>
</div> </div>
</div> </div>

View file

@ -1,11 +1,5 @@
<div class="recurring_container"> <div class="recurring_container">
<% #form_remote_tag( <% form_for(@recurring_todo, :html=> { :id=>'recurring-todo-form-edit-action', :name=>'recurring_todo', :class => 'inline-form' }) do |f| -%>
#url => recurring_todo_path(@recurring_todo), :method => :put,
#:html=> { :id=>'recurring-todo-form-edit-action', :name=>'recurring_todo', :class => 'inline-form' },
#:before => "$('#recurring_todo_edit_action_submit').block({message: null})",
#:complete => "$('#recurring_todo_edit_action_submit').unblock();$('#recurring-todo-form-edit-action').clearForm();") do
form_for(@recurring_todo, :html=> { :id=>'recurring-todo-form-edit-action', :name=>'recurring_todo', :class => 'inline-form' }) do |f|
-%>
<div id="edit_error_status"><%= error_messages_for("item", :object_name => 'action') %></div> <div id="edit_error_status"><%= error_messages_for("item", :object_name => 'action') %></div>
<div id="recurring_todo_form_container"> <div id="recurring_todo_form_container">

View file

@ -1,8 +1,6 @@
<%- reset_tab_index %> <%- reset_tab_index %>
<div class="recurring_container"> <div class="recurring_container">
<% <% form_for(@new_recurring_todo, :html=> { :id=>'recurring-todo-form-new-action', :name=>'recurring_todo', :class => 'inline-form' }) do -%>
form_for(@new_recurring_todo, :html=> { :id=>'recurring-todo-form-new-action', :name=>'recurring_todo', :class => 'inline-form' }) do
-%>
<div id="error_status"><%= error_messages_for("item", :object_name => 'action') %></div> <div id="error_status"><%= error_messages_for("item", :object_name => 'action') %></div>
<div id="recurring_todo_form_container"> <div id="recurring_todo_form_container">

View file

@ -1,10 +1,10 @@
<div class="stats_module"> <div class="stats_module">
<h3><%= t('stats.top10_projects') %></h3> <h3><%= t('stats.top10_projects') %></h3>
<% i=0 <% i=0
@projects_and_actions.each do |p| @projects_and_actions.each do |p|
i+=1 -%> i+=1 -%>
<%= i -%> - <%= link_to p.name, {:controller => "projects", :action => "show", :id => p.id}%> (<%=p.count %> actions) <br/> <%= i -%> - <%= link_to p.name, {:controller => "projects", :action => "show", :id => p.id}%> (<%=p.count %> <%= t('common.actions_midsentence') %>) <br/>
<% end <% end
if i < 10 if i < 10
i.upto 10 do |j| -%> i.upto 10 do |j| -%>
<%= i -%> - n/a (n/a) <br/> <%= i -%> - n/a (n/a) <br/>
@ -16,10 +16,10 @@
<div class="stats_module"> <div class="stats_module">
<h3><%= t('stats.top10_projects_30days') %></h3> <h3><%= t('stats.top10_projects_30days') %></h3>
<% i=0 <% i=0
@projects_and_actions_last30days.each do |p| @projects_and_actions_last30days.each do |p|
i+=1 -%> i+=1 -%>
<%= i -%> - <%= link_to p.name, {:controller => "projects", :action => "show", :id => p.id} %> (<%=p.count %> actions) <br/> <%= i -%> - <%= link_to p.name, {:controller => "projects", :action => "show", :id => p.id} %> (<%=p.count %> <%= t('common.actions_midsentence') %>) <br/>
<% end <% end
if i < 10 if i < 10
i.upto 10 do |j| -%> i.upto 10 do |j| -%>
<%= i -%> - n/a (n/a) <br/> <%= i -%> - n/a (n/a) <br/>
@ -31,8 +31,8 @@
<div class="stats_module"> <div class="stats_module">
<h3><%= t('stats.top10_longrunning') %></h3> <h3><%= t('stats.top10_longrunning') %></h3>
<% i=0 <% i=0
@projects_and_runtime.each do |id, name, days| @projects_and_runtime.each do |id, name, days|
i+=1 -%> i+=1 -%>
<%= i -%> - <%= link_to name, {:controller => "projects", :action => "show", :id => id} %> (<%=days %> days) <br/> <%= i -%> - <%= link_to name, {:controller => "projects", :action => "show", :id => id} %> (<%=days %> <%= t('common.days_midsentence') %>) <br/>
<% end -%> <% end -%>
</div> </div>

View file

@ -47,6 +47,8 @@ en:
projects_title: Projects projects_title: Projects
search: Search All Items search: Search All Items
preferences_title: Show my preferences preferences_title: Show my preferences
admin: Admin
help: "?"
integrations: integrations:
opensearch_description: Search in Tracks opensearch_description: Search in Tracks
applescript_next_action_prompt: "Description of next action:" applescript_next_action_prompt: "Description of next action:"
@ -141,6 +143,7 @@ en:
email: Email email: Email
search: Search search: Search
ajaxError: There was an error retrieving from server ajaxError: There was an error retrieving from server
days_midsentence: days
data: data:
import_successful: Import was successful. import_successful: Import was successful.
import_errors: Some errors occurred during import import_errors: Some errors occurred during import
@ -174,6 +177,7 @@ en:
context: Context context: Context
description: Description description: Description
due: Due due: Due
tags: Tags
user: user:
last_name: Last name last_name: Last name
first_name: First name first_name: First name
@ -198,6 +202,9 @@ en:
sms_email: From email sms_email: From email
first_name: First name first_name: First name
show_completed_projects_in_sidebar: Show completed projects in sidebar show_completed_projects_in_sidebar: Show completed projects in sidebar
note:
created_at: Created at
updated_at: Updated at
errors: errors:
messages: messages:
greater_than_or_equal_to: must be greater than or equal to %{count} greater_than_or_equal_to: must be greater than or equal to %{count}
@ -205,7 +212,7 @@ en:
confirmation: doesn't match confirmation confirmation: doesn't match confirmation
less_than_or_equal_to: must be less than or equal to %{count} less_than_or_equal_to: must be less than or equal to %{count}
blank: can't be blank blank: can't be blank
invalid: cannot contain the comma (',') character invalid: "cannot contain the comma (',') character"
exclusion: is reserved exclusion: is reserved
odd: must be odd odd: must be odd
even: must be even even: must be even
@ -587,6 +594,7 @@ en:
no_notes_available: "Currently there are no notes: add notes to projects from individual project pages." no_notes_available: "Currently there are no notes: add notes to projects from individual project pages."
note_header: Note %{id} note_header: Note %{id}
delete_note_confirm: Are you sure that you want to delete the note '%{id}'? delete_note_confirm: Are you sure that you want to delete the note '%{id}'?
in_project: "In: "
states: states:
hidden_plural: Hidden hidden_plural: Hidden
completed: Completed completed: Completed
@ -768,6 +776,7 @@ en:
toggle_single: Add a next action toggle_single: Add a next action
add_action: Add action add_action: Add action
add_actions: Add actions add_actions: Add actions
add_context: Add Context
tags_for_all_actions: Tags for all actions (sep. with commas) tags_for_all_actions: Tags for all actions (sep. with commas)
toggle_single_title: Add a new next action toggle_single_title: Add a new next action
project_for_all_actions: Project for all actions project_for_all_actions: Project for all actions

2626
config/locales/he.yml Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1016,8 +1016,14 @@ var RecurringTodosPage = {
width: 750, width: 750,
modal: true, modal: true,
buttons: { buttons: {
"Create": function() { submit_with_ajax_and_block_element('form.#recurring-todo-form-new-action', $(this).parents(".ui-dialog")); }, create: {
Cancel: function() { $( this ).dialog( "close" ); } text: i18n['common.create'],
click: function() { submit_with_ajax_and_block_element('form.#recurring-todo-form-new-action', $(this).parents(".ui-dialog")); },
},
cancel: {
text: i18n['common.cancel'],
click: function() { $( this ).dialog( "close" ); }
}
}, },
show: "fade", show: "fade",
hide: "fade", hide: "fade",
@ -1043,11 +1049,14 @@ var RecurringTodosPage = {
modal: true, modal: true,
buttons: { buttons: {
"Update": { "Update": {
text: "Update", text: i18n['common.update'],
id: 'recurring_todo_edit_update_button', id: 'recurring_todo_edit_update_button',
click: function() { submit_with_ajax_and_block_element('form#recurring-todo-form-edit-action', $(this).parents(".ui-dialog")); } click: function() { submit_with_ajax_and_block_element('form#recurring-todo-form-edit-action', $(this).parents(".ui-dialog")); }
}, },
Cancel: function() { $( this ).dialog( "close" ); } cancel: {
text: i18n['common.cancel'],
click: function() { $( this ).dialog( "close" ); }
}
}, },
show: "fade", show: "fade",
hide: "fade", hide: "fade",

View file

@ -0,0 +1,23 @@
/* Hebrew initialisation for the UI Datepicker extension. */
/* Written by Amir Hardon (ahardon at gmail dot com). */
jQuery(function($){
$.datepicker.regional['he'] = {
closeText: 'סגור',
prevText: '&#x3c;הקודם',
nextText: 'הבא&#x3e;',
currentText: 'היום',
monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני',
'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'],
monthNamesShort: ['1','2','3','4','5','6',
'7','8','9','10','11','12'],
dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],
dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 0,
isRTL: true,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['he']);
});