Skip to content

Commit

Permalink
🌐 Fix FR translation for PDF resolution
Browse files Browse the repository at this point in the history
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
  • Loading branch information
madmath03 committed Nov 29, 2019
1 parent f86b54a commit 8126150
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 17 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Removed

<a name="1.0.1"></a>

## 1.0.1 - 2019-11-29

Differences with previous release: [1.0.0...1.0.1](https://github.com/Monogramm/erpnext_ocr/compare/1.0.0...1.0.1)

### Fixed

- :globe_with_meridians: Fix FR translation for PDF resolution

<a name="1.0.0"></a>

## 1.0.0 - 2019-11-27
Expand Down
2 changes: 1 addition & 1 deletion erpnext_ocr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

__version__ = '1.0.0'
__version__ = '1.0.1'

Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"in_global_search": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"label": " Is supported",
"label": "Is supported",
"length": 0,
"no_copy": 0,
"permlevel": 0,
Expand Down Expand Up @@ -126,7 +126,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
"modified": "2019-11-27 00:49:39.776311",
"modified": "2019-11-29 19:26:17.752874",
"modified_by": "Administrator",
"module": "ERPNext OCR",
"name": "OCR Language",
Expand Down
24 changes: 12 additions & 12 deletions erpnext_ocr/erpnext_ocr/doctype/ocr_read/ocr_read.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,27 @@
"collapsible": 0,
"columns": 0,
"fetch_if_empty": 0,
"fieldname": "file_to_read",
"fieldtype": "Attach",
"fieldname": "language",
"fieldtype": "Link",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0,
"in_filter": 1,
"in_global_search": 0,
"in_list_view": 1,
"in_standard_filter": 0,
"label": "Image or PDF to Read",
"label": "Language",
"length": 0,
"no_copy": 0,
"options": "OCR Language",
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0,
"remember_last_selected_value": 0,
"report_hide": 0,
"reqd": 0,
"reqd": 1,
"search_index": 0,
"set_only_once": 0,
"translatable": 0,
Expand All @@ -55,27 +56,26 @@
"collapsible": 0,
"columns": 0,
"fetch_if_empty": 0,
"fieldname": "language",
"fieldtype": "Link",
"fieldname": "file_to_read",
"fieldtype": "Attach",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 1,
"in_filter": 0,
"in_global_search": 0,
"in_list_view": 1,
"in_standard_filter": 0,
"label": "Language",
"label": "Image or PDF to Read",
"length": 0,
"no_copy": 0,
"options": "OCR Language",
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0,
"remember_last_selected_value": 0,
"report_hide": 0,
"reqd": 1,
"reqd": 0,
"search_index": 0,
"set_only_once": 0,
"translatable": 0,
Expand Down Expand Up @@ -159,7 +159,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
"modified": "2019-11-27 22:02:24.138648",
"modified": "2019-11-29 19:24:48.789240",
"modified_by": "Administrator",
"module": "ERPNext OCR",
"name": "OCR Read",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class OCRSettings(Document):
def validate(self):
if not self.pdf_resolution > 0:
frappe.throw(
_("PDF Resolution must be a positive integer, eg 300 (high) or 200 (normal)."))
_("PDF Resolution must be a positive integer eg 300 (high) or 200 (normal)."))

return
3 changes: 2 additions & 1 deletion erpnext_ocr/translations/fr.csv
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ Doctype: OCR Read,Read file,Lire le fichier
Doctype: OCR Read,Read Result,Résultat de la lecture
apps/erpnext_ocr/erpnext_ocr/doctype/ocr_read/ocr_read.js,Reading the file,Lecture du fichier
apps/erpnext_ocr/erpnext_ocr/doctype/ocr_read/ocr_read.py,The selected language is not available. Please contact your administrator.,La langue sélectionnée n'est pas disponible. Veuillez contacter votre administrateur.
Doctype: OCR Settings,OCR Settings,Paramètres RCO
Doctype: OCR Settings,PDF Resolution,Résolution PDF
apps/erpnext_ocr/erpnext_ocr/doctype/ocr_settings/ocr_settings.py,PDF Resolution must be a positive integer, eg 300 (high) or 200 (normal).,La résolution PDF doit être un entier positif, comme 300 (haute) ou 200 (normale).
apps/erpnext_ocr/erpnext_ocr/doctype/ocr_settings/ocr_settings.py,PDF Resolution must be a positive integer eg 300 (high) or 200 (normal).,La résolution PDF doit être un entier positif comme 300 (haute) ou 200 (normale).

0 comments on commit 8126150

Please sign in to comment.