Commit graph

112 commits

Author SHA1 Message Date
Zarrar
1f1cd101cc remove print statements (#4650) 2017-12-18 17:44:10 +05:30
Manas Solanki
520bfc2ae4 New data import (#4601)
* created/moved the files

* added the model for the downloading the data

* add the file with the error data

* changes added other changes and fix codacy

* changes in the config and utils files

* fixed the test cases

* minor changes in the data keys dict

* changed the test file location

* fixed the tests

* set the route in the list view and show only erors

* minor fixes in the childtable import and log tables rendering

* Refactor Download dialog to use MultiCheck
2017-12-15 12:17:24 +05:30
Aditya Hase
943f548c1e Use 'key' keyword argument with list.sort 2017-09-27 01:08:07 +05:30
Aditya Hase
52c7b04932 Use next(iter) instead of iter.next() 2017-09-27 01:08:07 +05:30
mbauskar
8eaf1c3e15 [hotfix] fixes for UnicodeDecodeError while import translation 2017-08-31 13:21:00 +05:30
Aditya Hase
769338f136 Replaced all instances of basestring with six.string_types 2017-08-11 00:10:11 +05:30
Aditya Hase
e6bd1e4995 Replaced all instances of 'unicode' with 'six.text_type' (#3825) 2017-08-02 16:57:39 +05:30
tundebabzy
bbde2ec4cf rewrite use of dict.iteritems (#3498)
* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility
2017-06-19 09:10:21 +05:30
tundebabzy
7b41d7e5eb Python 3 compatible print statements (#3199)
* changes print statements in file to python 3 compatible style using `__future__`

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* changes deprecated md5 module to hashlib

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements
2017-05-01 12:34:29 +05:30
Rushabh Mehta
a7f63eb381 [minor] fixes for frappe/erpnext#8347 2017-04-14 16:10:53 +05:30
Nabin Hait
46423117b8 Fixed merge conflict 2017-03-08 11:15:10 +05:30
Yaqin Shurrab
0239b24ca0 making code simpler as @mmoksh suggessted 2017-03-06 10:03:28 +02:00
Yaqin Shurrab
81f11d12a2 resolve conflict 2017-03-05 13:59:57 +02:00
Yaqin Shurrab
ff85aa9319 Fix error in applied changes causes The Travis CI build fail 2017-03-05 13:37:28 +02:00
Yaqin Shurrab
6c40d4313b Fix error in applied changes causes The Travis CI build fail 2017-03-05 13:29:23 +02:00
Yaqin Shurrab
c6f3350bae resolve conflict, apply reviewer changes 2017-03-05 12:54:39 +02:00
Yaqin Shurrab
8d06587d49 Update as the reviewer asked for changes 2017-03-05 12:52:38 +02:00
Rushabh Mehta
5001e92ff9 Update translate.py 2017-03-05 11:19:49 +05:30
Yaqin Shurrab
c28880eb27 Translate the msg in _ function according to the passed lang, support multiple language in frappe.cash() 2017-02-27 23:22:34 +02:00
khatrijitendra
114c18c581 [Fix] Add Print Format Name Translation (#2742) 2017-02-22 14:55:00 +05:30
Rushabh Mehta
3c4ffb2e19 [minor] lanugage code is redundant (#2479) 2016-12-22 11:29:09 +05:30
Rushabh Mehta
7bc7e3bc63 Upgrade Font Awesome (#2410)
* Font-Awesome V3.x to V4.x

Font-Awesome V3.x to V4.x

* Font Tidy

Font Tidy

* FA4 Upgrade - Html Js & Json

FA4 Upgrade - Html Js & Json

* Minor

Minor
2016-12-05 13:07:03 +05:30
paurosello
fe5a516673 Fix error missing fields on fixtures (#2378)
Only name is currently taken from DB, other fields are mandatory to generate translations:

      File "/Users/pau/frappe-bench/env/lib/python2.7/site-packages/frappe/translate.py", line 407, in get_messages_from_custom_fields
        if cf['fieldtype'] == 'Selection' and cf.get('options'):
    KeyError: u'fieldtype'
2016-11-28 12:35:47 +05:30
Rushabh Mehta
612d612b7e [hot] fix bug that caused session crashing when cache was full 2016-11-14 17:22:08 +05:30
Rushabh Mehta
e585e9c38b [minor] 2016-10-09 15:18:17 +05:30
Rushabh Mehta
ef3412b9cb [enhance] set doctype label via Customize Form frappe/frappe#2019 (#2061)
* [enhance] set doctype label via Customize Form frappe/erpnext#2019

* Update customize_form.py
2016-09-20 11:20:46 +05:30
akshay83
14b8e5cee4 [fix] workflow message (#2056) 2016-09-19 13:08:36 +05:30
Rushabh Mehta
ed63eb9719 [fix] language test for derivative languages 2016-08-31 21:51:56 +05:30
Rushabh Mehta
5073369344 [languages] fix code for zh, zh-TW 2016-08-25 15:01:01 +05:30
Rushabh Mehta
cdac8794b9 [fix] [test] [translation] 2016-08-24 14:39:57 +05:30
Rushabh Mehta
8a32adcaf8 [command] bench setup-help will make the help db 2016-08-23 17:53:38 +05:30
Rushabh Mehta
f30a6b8360 [refactor] Language is now a doctype (#2003) 2016-08-23 16:38:03 +05:30
Rushabh Mehta
863aebcc78 [fixes] for translation and save full url for 404 2016-07-25 11:01:28 +05:30
Maxwell Morais
68fa6cd9d0 Enable translation of Capitalized Keywords
The regex checkin only lower letters, dont allow the translation of things like

- VAT
- NPV
- IRR
- PV
- PMT
2016-04-26 14:27:36 -03:00
Rushabh Mehta
b902d1e8cc [enhancements] now can {% include %} in page js files and also write jinja like tags in js templates 2016-04-21 19:00:07 +05:30
Maxwell Morais
2d02d3e91b Small improvement in translations
Move the method to `get_messages_from_workflow` from `get_messages_for_app` to inside `get_messages_from_doctype` to get workflow translations reflected in Js
2016-04-12 21:23:29 -03:00
Nabin Hait
1de94a22ef Merge pull request #1686 from anandpdoshi/fix/get-lang-code
[fix] use get_lang_code in auth.py to evaluate _lang
2016-04-11 17:08:44 +05:30
Anand Doshi
89589bf552 [fix] use get_lang_code in auth.py to evaluate _lang 2016-04-08 18:39:56 +05:30
Maxwell Morais
24031410cb Translations for Workflows and Custom Fields
I added in the translations the behavior of collect translations for;

 - Workflow Actions
 - Workflow States
 - Custom Fields

This patch make sense when I'm translating a single app without revisions in ERPNext or Frappe translations.

Using a patched version of the translation portal I'm being able of translate a single app, and I found that in these cases workflows actions/states are missed, and Custom Fields too, the actual behavior ensure that :

 - Workflow based messages will be exported first based on the doctype
 - Workflow based messages will be exported based on app only if the workflow is a fixture
 - Custom Fields messages will be exported based on app only if the custom field is a fixture.

Note: Messages based on fixtures, will check a presence of a filter, if nothing is return this patch will understand that everything will be exported.
2016-03-31 18:39:27 -03:00
Rushabh Mehta
b9f1d6cee1 [fix] module translation should also load icon labels, fixes #1640 2016-03-22 12:34:51 +05:30
Anand Doshi
bb827d799f [fix] [hot] UnboundLocalError 2016-03-07 23:21:47 +05:30
Anand Doshi
92c3f242e3 [fix] some fixes after merge of translation for 'en' 2016-03-07 20:27:39 +05:30
rohitwaghchaure
f9b8d3eb1e [Fixes] Transaltion not working for english lang, title of transaltion set to language_code 2016-03-04 19:26:46 +05:30
Rushabh Mehta
b698124ae8 [fix] multi-lingual print formats 2016-03-02 15:44:36 +05:30
rohitwaghchaure
9adaabbf38 [enhancement] multi-lingual print formats 2016-03-01 15:19:22 +05:30
Rushabh Mehta
6ba4bb06ff [fix] NotFound if site is not found, remove Async Task, cleanup in translate 2016-02-10 12:17:17 +05:30
Rushabh Mehta
6ca99e96eb [fix] minor, don't print messages for missing files 2015-12-11 10:52:47 +05:30
Anand Doshi
d56767acff [fix] strip whitespace while loading translations 2015-12-01 23:58:04 +05:30
Rushabh Mehta
f9e343ea3e [fix] sort translations while writing so that we get a decent git diff 2015-12-01 16:09:11 +05:30
Rushabh Mehta
9e5750f6d8 [re-org] setup wizard now in frappe 2015-11-12 11:42:30 +05:30