Commit graph

151 commits

Author SHA1 Message Date
Suraj Shetty
dcf83b8645 fix: Update translation_map with user translation
- Even while returning from cache
2020-05-26 23:03:59 +05:30
Suraj Shetty
55bdc08ddb fix(translation): Do not share user translations 2020-05-26 19:23:03 +05:30
Suraj Shetty
981da526f9 fix: Contextual translation key generation 2020-05-04 22:27:06 +05:30
Suraj Shetty
afe31ac7c0 style: Fix few deepsource issues 2020-05-03 19:31:20 +05:30
Faris Ansari
406ed10349 fix: Show status for contributed translations 2020-04-27 23:50:19 +05:30
Suraj Shetty
3ce08b3e72 fix: Duplicate file scan 2020-04-07 15:33:02 +05:30
Suraj Shetty
db41acf496 refactor: Get translator_url for hooks 2020-04-07 12:45:07 +05:30
Suraj Shetty
7b4e2ce728 fix: KeyError while session start 2020-04-07 12:34:23 +05:30
Suraj Shetty
313e198923 fix: Translation tool UI
- Show local translation
- Remove add contribution button (instead stage on change)
2020-03-12 16:50:59 +05:30
Suraj Shetty
c6789019ea refactor: Update Translation table
- Rename target_name -> translated_text
- Rename source_name -> source_text
- Rename contributed_translation_doctype_name -> contribution_docname
- Add contribute field
- Add patch to move data to new columns
2020-03-12 15:45:38 +05:30
Suraj Shetty
a1364df339 refactor: Translation tool UI 2020-03-11 14:53:16 +05:30
Suraj Shetty
b41e46c791 fix: Update translation tool UI
- Remove path from source string list
- Get contribution list separately
- Request changes with source message ID
2020-03-10 20:55:14 +05:30
Suraj Shetty
31e50f1186 fix: Make translation expecting no path in CSV file 2020-03-07 22:50:38 +05:30
Suraj Shetty
61527df241 fix: Translation creation API
- Remove unwanted code
2020-03-07 22:43:39 +05:30
Suraj Shetty
364f7e4337 fix(translation): Change api 2020-03-04 12:37:30 +05:30
Suraj Shetty
46e23d5846 fix: Consider context while getting translation_map 2020-03-03 01:49:13 +05:30
Suraj Shetty
09f728b25c fix: Do not concat context while returning message
That can be done while creating translated message dict
2020-02-27 10:46:50 +05:30
Suraj Shetty
ab88fd6493 refactor: Code cleanup 2020-02-25 23:55:57 +05:30
Suraj Shetty
d704fd6117 feat: Add context to translation doctype 2020-02-21 11:42:44 +05:30
Suraj Shetty
66b4be47c8 feat: Implement source text search feature 2020-01-31 08:33:58 +05:30
Suraj Shetty
47329ccf53 feat: Translation tool [wip]
- Remove translation portal page

Co-authored-by: Faris Ansari <netchamp.faris@gmail.com>
2020-01-31 08:24:46 +05:30
Suraj Shetty
7b9e7f97aa feat: Init translator portal page 2020-01-29 17:29:44 +05:30
Suraj Shetty
fb5aaa3d2d fix(translation): Extract messages from JS and PY using same regex 2020-01-28 12:10:56 +05:30
Suraj Shetty
de6760b275 fix(translation): Update regex to extract context 2020-01-28 10:28:47 +05:30
Faris Ansari
e2bc9c479f
fix(translations): Extract messages from .vue files (#8403) 2019-09-13 12:42:04 +05:30
marination
3323b10f7e fix: Update user translations on booting 2019-08-29 16:14:19 +05:30
Saurabh
3fde67d308 fix: remove line numbers from source messages 2019-05-30 12:26:48 +05:30
Saurabh
f3471fe5f9 fix: Handle file not found exception while extracting messages (#7574) 2019-05-29 10:12:39 +05:30
Prateeksha Singh
c19893e5bc feat(module_links): add dummy indicators 2019-02-06 17:07:13 +05:30
Prateeksha Singh
34fd318c25 refactor(desk_icon): remove patches and references to desk icons 2019-02-06 17:07:13 +05:30
rohitwaghchaure
22fe10148a [Fix] Translation not working for the html data (#6647)
* [Fix] Translation not working for the html data

* Test cases

* Fixed codacy

* Fixed is html method

* Fixed test cases
2018-12-24 15:17:38 +05:30
Ameya Shenoy
b42a87746a
Merge branch 'master' into staging-fixes 2018-10-19 12:42:37 +00:00
rohitwaghchaure
97ec70b83e [Fix] Setup wizard timeout error (#6270) 2018-10-18 12:29:46 +05:30
Rushabh Mehta
22934b4e8c fix(translate): #5906 via CodeTriage 2018-08-30 10:27:52 +05:30
Prateeksha Singh
2b672d2ee7 Add Vue Support (#6025)
* [frappe][build] Add Vue

* chore(rollup): add node_modules path for all apps

- also remove rollup-plugin-alias

* feat: Add EventEmitter

Usage:

```
frappe.utils.make_event_emitter(obj);

obj.trigger('event');
obj.on('event', fn);
```

* chore: Update rollup

* fix: add comment_when to frappe.datetime

* feat: Add img-loading class

* feat: Add .vue files for translation extraction

* [frappe][build] Add Vue

* chore(rollup): add node_modules path for all apps

- also remove rollup-plugin-alias

* feat: Add EventEmitter

Usage:

```
frappe.utils.make_event_emitter(obj);

obj.trigger('event');
obj.on('event', fn);
```

* chore: Update rollup

* fix: add comment_when to frappe.datetime

* feat: Add img-loading class
2018-08-29 12:03:27 +05:30
Fisher Yu
e7ddbb7c5e [bug fix] Label in dashboard.html not translated (#5859)
* Update translate.py

New label introduced via dashboard html template file can not be translated, because the logic to fetch to be translated label for the doctype does not include dashboard.html

* Update translate.py
2018-07-24 17:00:05 +05:30
Nabin Hait
8d0b3e1828
multiple minor fixes (#5756) 2018-07-01 16:40:18 +05:30
Faris Ansari
22875422dc read_csv both 2 and 3 compatible 2018-03-08 17:25:56 +05:30
Faris Ansari
e581be9fa8 Add translation support for DocFields (#5002)
* Initial changes for Translation

* Merged translate app into frappe core

* Minor typo fix

* Fixes while syncing translations

* Set defaults

* Fixes on setup

* Improve Code Quality

* Could Code Quality be Improved?

* Small code tweaks

* Minor typo fix

* Addition of Translatable Property

* Small fixes for Codacy Comments

* Simplify code

* Show translations in grid

* Remove enabled from Language

* Revert render_template logic

* typo

* Cleanup unused methods

* move patch to erpnext

* fix codacy

* Update patches.txt

* Update patches.txt
2018-02-16 15:12:12 +05:30
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