Fix missing translations (#8871)
* Fix missing translations
* Fix
diff --git a/erpnext/templates/generators/item_group.html b/erpnext/templates/generators/item_group.html
index f027644..d710cb0 100644
--- a/erpnext/templates/generators/item_group.html
+++ b/erpnext/templates/generators/item_group.html
@@ -33,14 +33,14 @@
</div>
<div class="text-center item-group-nav-buttons">
{% if frappe.form_dict.start|int > 0 %}
- <a class="btn btn-default" href="/{{ pathname }}?start={{ frappe.form_dict.start|int - page_length }}">Prev</a>
+ <a class="btn btn-default" href="/{{ pathname }}?start={{ frappe.form_dict.start|int - page_length }}">{{ __("Prev") }}</a>
{% endif %}
{% if items|length > page_length %}
- <a class="btn btn-default" href="/{{ pathname }}?start={{ frappe.form_dict.start|int + page_length }}">Next</a>
+ <a class="btn btn-default" href="/{{ pathname }}?start={{ frappe.form_dict.start|int + page_length }}">{{ __("Next") }}</a>
{% endif %}
</div>
{% else %}
- <div class="text-muted">No items listed.</div>
+ <div class="text-muted">{{ __("No items listed") }}.</div>
{% endif %}
</div>
</div>
diff --git a/erpnext/templates/includes/navbar/navbar_items.html b/erpnext/templates/includes/navbar/navbar_items.html
index 87dea8f..faf8adf 100644
--- a/erpnext/templates/includes/navbar/navbar_items.html
+++ b/erpnext/templates/includes/navbar/navbar_items.html
@@ -4,7 +4,7 @@
<li class="shopping-cart hidden">
<div class="cart-icon">
<a class="dropdown-toggle" href="#" data-toggle="dropdown" id="navLogin">
- Cart <span class="badge-wrapper" id="cart-count"></span>
+ {{ _("Cart") }} <span class="badge-wrapper" id="cart-count"></span>
</a>
<div id="cart-overlay" class="dropdown-menu shopping-cart-menu"></div>
</div>
diff --git a/erpnext/templates/includes/projects/project_tasks.html b/erpnext/templates/includes/projects/project_tasks.html
index e978a7d..c978576 100644
--- a/erpnext/templates/includes/projects/project_tasks.html
+++ b/erpnext/templates/includes/projects/project_tasks.html
@@ -6,7 +6,7 @@
<span class="indicator {{ "red" if task.status=="Open" else "green" if task.status=="Closed" else "darkgrey" }}" title="{{ task.status }}" > {{ task.subject }}</span>
<div class="small text-muted item-timestamp"
title="{{ frappe.utils.pretty_date(task.modified) }}">
- modified {{ frappe.utils.pretty_date(task.modified) }}
+ {{ __("modified") }} {{ frappe.utils.pretty_date(task.modified) }}
</div>
</div>
<div class='col-xs-1'>{% if task.todo %}
diff --git a/erpnext/templates/includes/projects/project_timesheets.html b/erpnext/templates/includes/projects/project_timesheets.html
index fb44017..3a9aecd 100644
--- a/erpnext/templates/includes/projects/project_timesheets.html
+++ b/erpnext/templates/includes/projects/project_timesheets.html
@@ -5,7 +5,7 @@
<div class='col-xs-9'>
<span class="indicator {{ "blue" if timesheet.info.status=="Submitted" else "red" if timesheet.info.status=="Draft" else "darkgrey" }}" title="{{ timesheet.info.status }}" > {{ timesheet.info.name }} </span>
<div class="small text-muted item-timestamp">
- From {{ frappe.format_date(timesheet.from_time) }} to {{ frappe.format_date(timesheet.to_time) }}
+ {{ __("From") }} {{ frappe.format_date(timesheet.from_time) }} {{ __("to") }} {{ frappe.format_date(timesheet.to_time) }}
</div>
</div>
<div class='col-xs-1 gravatar-top'>
diff --git a/erpnext/templates/pages/cart.html b/erpnext/templates/pages/cart.html
index 6cff5b1..fb0c05f 100644
--- a/erpnext/templates/pages/cart.html
+++ b/erpnext/templates/pages/cart.html
@@ -60,7 +60,7 @@
{{doc.terms}}
</div>
<div class="cart-link">
- <a href="#" onclick="show_terms();return false;">*Terms and Conditions</a>
+ <a href="#" onclick="show_terms();return false;">*{{ __("Terms and Conditions") }}</a>
</div>
{% endif %}
diff --git a/erpnext/templates/pages/task_info.html b/erpnext/templates/pages/task_info.html
index f386ce8..6cfac28 100644
--- a/erpnext/templates/pages/task_info.html
+++ b/erpnext/templates/pages/task_info.html
@@ -19,9 +19,9 @@
<div class="col-sm-4">
<div class="page-header-actions-block" data-html-block="header-actions">
<button type="submit" class="btn btn-primary btn-sm btn-form-submit">
- Update</button>
+ {{ __("Update") }}</button>
<a href="tasks" class="btn btn-default btn-sm">
- Cancel</a>
+ {{ __("Cancel") }}</a>
</div>
</div>
</div>
@@ -36,45 +36,45 @@
<div class="row">
<div class="col-sm-12" style="max-width: 500px;">
<div class="form-group">
- <label for="project" class="control-label text-muted small">Project</label>
+ <label for="project" class="control-label text-muted small">{{ __("Project") }}</label>
<input type="text" class="form-control" name="project" readonly value= "{{ doc.project }}">
</div>
<div class="form-group">
- <label for="subject" class="control-label text-muted small">Subject</label>
+ <label for="subject" class="control-label text-muted small">{{ __("Subject") }}</label>
<input type="text" class="form-control" name="subject" readonly value="{{ doc.subject }}">
</div>
<div class="form-group">
- <label for="description" class="control-label text-muted small">Details</label>
+ <label for="description" class="control-label text-muted small">{{ __("Details") }}</label>
<textarea class="form-control" style="height: 200px;" name="description">{{ doc.description }}</textarea>
</div>
<div class="form-group">
- <label for="priority" class="control-label text-muted small">Priority</label>
+ <label for="priority" class="control-label text-muted small">{{ __("Priority") }}</label>
<input type="text" class="form-control" name="priority" readonly value="{{ doc.priority }}">
</div>
<div class="form-group">
- <label for="exp_start_date" class="control-label text-muted small">Expected Start Date</label>
+ <label for="exp_start_date" class="control-label text-muted small">{{ __("Expected Start Date") }}</label>
<input type="text" class="form-control hasDatepicker" name="exp_start_date" readonly value="{{ doc.exp_start_date }}">
</div>
<div class="form-group">
- <label for="exp_end_date" class="control-label text-muted small">Expected End Date</label>
+ <label for="exp_end_date" class="control-label text-muted small">{{ __("Expected End Date") }}</label>
<input type="text" class="form-control hasDatepicker" name="exp_end_date" readonly value="{{ doc.exp_end_date }}">
</div>
<div class="form-group">
- <label for="status" class="control-label text-muted small">Status</label>
+ <label for="status" class="control-label text-muted small">{{ __("Status") }}</label>
<select class="form-control" name="status" id="status" data-label="Status" data-fieldtype="Select">
<option value="Open" selected="selected">
- Open</option><option value="Working">
- Working</option><option value="Pending Review">
- Pending Review</option><option value="Overdue">
- Overdue</option><option value="Closed">
- Closed</option><option value="Cancelled">
- Cancelled</option>
+ {{ __("Open") }}</option><option value="Working">
+ {{ __("Working") }}</option><option value="Pending Review">
+ {{ __("Pending Review") }}</option><option value="Overdue">
+ {{ __("Overdue") }}</option><option value="Closed">
+ {{ __("Closed") }}</option><option value="Cancelled">
+ {{ __("Cancelled") }}</option>
</select>
</div>
</div>
@@ -83,22 +83,22 @@
</div>
<div class="comments">
- <h3>Comments</h3>
+ <h3>{{ __("Comments") }}</h3>
<div class="no-comment">
{% for comment in comments %}
<p class="text-muted">{{comment.sender_full_name}}:
- {{comment.subject}} on {{comment.creation.strftime('%Y-%m-%d')}}</p>
+ {{comment.subject}} {{ __("on") }} {{comment.creation.strftime('%Y-%m-%d')}}</p>
{% endfor %}
</div>
<div class="comment-form-wrapper">
- <a class="add-comment btn btn-default btn-sm">Add Comment</a>
+ <a class="add-comment btn btn-default btn-sm">{{ __("Add Comment") }}</a>
<div style="display: none;" id="comment-form">
- <p>Add Comment</p>
+ <p>{{ __("Add Comment") }}</p>
<form>
<fieldset>
<textarea class="form-control" name="comment" rows="5" placeholder="Comment"></textarea>
<p>
- <button class="btn btn-primary btn-sm" id="submit-comment">Submit</button>
+ <button class="btn btn-primary btn-sm" id="submit-comment">{{ __("Submit") }}</button>
</p>
</fieldset>
</form>
diff --git a/erpnext/templates/pages/timelog_info.html b/erpnext/templates/pages/timelog_info.html
index 8b2fa6a..22ea3e4 100644
--- a/erpnext/templates/pages/timelog_info.html
+++ b/erpnext/templates/pages/timelog_info.html
@@ -19,28 +19,28 @@
<div class="page-content-block">
<div class="row">
<div class="col-sm-12" style="max-width: 500px;">
- <label for="project" class="control-label text-muted small">Project</label>
+ <label for="project" class="control-label text-muted small">{{ __("Project") }}</label>
<input type="text" class="form-control" name="project" readonly value= "{{ doc.project }}">
- <label for="activity_type" class="control-label text-muted small">Activity Type</label>
+ <label for="activity_type" class="control-label text-muted small">{{ __("Activity Type") }}</label>
<input type="text" class="form-control" name="activity_type" readonly value= "{{ doc.activity_type }}">
- <label for="task" class="control-label text-muted small">Task</label>
+ <label for="task" class="control-label text-muted small">{{ __("Task") }}</label>
<input type="text" class="form-control" name="task" readonly value= "{{ doc.task }}">
- <label for="from_time" class="control-label text-muted small">From Time</label>
+ <label for="from_time" class="control-label text-muted small">{{ __("From Time") }}</label>
<input type="text" class="form-control" name="from_time" readonly value= "{{ doc.from_time }}">
- <label for="to_time" class="control-label text-muted small">To Time</label>
+ <label for="to_time" class="control-label text-muted small">{{ __("To Time") }}</label>
<input type="text" class="form-control" name="to_time" readonly value= "{{ doc.to_time }}">
- <label for="to_time" class="control-label text-muted small">Hours</label>
+ <label for="to_time" class="control-label text-muted small">{{ __("Hours") }}</label>
<input type="text" class="form-control" name="Hours" readonly value= "{{ doc.hours }}">
- <label for="status" class="control-label text-muted small">Status</label>
+ <label for="status" class="control-label text-muted small">{{ __("Status") }}</label>
<input type="text" class="form-control" name="status" readonly value= "{{ doc.status }}">
- <label for="Note" class="control-label text-muted small">Note</label>
+ <label for="Note" class="control-label text-muted small">{{ __("Note") }}</label>
<textarea class="form-control" name="Hours" readonly> {{ doc.note }} </textarea>
</div>
</div>