Improve SyncLang.py#3184
Conversation
|
Additional task: in a new column of the tables, flag files with anomalies (such as space characters found in localized strings). Is there any other special characters for localized strings? |
|
@mlep, I think we should rather write a test case for that in Java, so that it is not possible to commit such malformed strings |
|
Fine. Great! |
|
I have refactored that script, however I have not yet tried to incorporate it in the build pipeline. I would merge this for now and think about the build automation in another PR. |
|
Can you check the case if the syncing does correctly add/remove keys when I do a rename of a key? |
| """ | ||
| if line.find("#") != 0 or line.find("!") != 0: | ||
| index_key_end = line.find("=") | ||
| while (index_key_end > 0) and (line[index_key_end - 1] == "\\"): |
There was a problem hiding this comment.
Just curious: Is this platform independent line endings?
There was a problem hiding this comment.
Yep, I have enforced the line ending handling.
|
Bump. Can we get this PR ready to merge? |
|
@Siedlerchr Yep, updating and deleting entries works for me. @lenhard I think we can merge. |
* upstream/master: (22 commits) Improve SyncLang.py (#3184) Config intellj code style to adhere to empty lines checkstyle rule (#3365) Don't list same look and feels more than once (#3393) progessdialog and result table are now shown correclty on copy files Export pdf/linked files (#3147) Added checking integrity dialog (#3388) Update richtext and flowless (#3386) Source tab: hide notification pane when code is correct again (#3387) Titles are optional at crossref (#3378) Update entry for every change in the source panel (#3366) Rework AutoSetFileLinks (#3368) revert wrongly commited changes Refactorings (#3370) Fix freezing when running cleanup file operations like rename (#3315) This additional style setting for IDEA (#3355) Fix checkstyle Add proper equals to content selector Delete unused code Extract difference finder from gui to logic Remove unnecessary EntrySorter ... # Conflicts: # src/main/java/org/jabref/gui/entryeditor/SourceTab.java
* upstream/master: (26 commits) Fix static localized text (#3400) Fix problems in source editor (#3398) Fix MathSciNet fetcher (#3402) Fix NPE when saving new file Improve SyncLang.py (#3184) Config intellj code style to adhere to empty lines checkstyle rule (#3365) Don't list same look and feels more than once (#3393) progessdialog and result table are now shown correclty on copy files Export pdf/linked files (#3147) Added checking integrity dialog (#3388) Update richtext and flowless (#3386) Source tab: hide notification pane when code is correct again (#3387) Titles are optional at crossref (#3378) Update entry for every change in the source panel (#3366) Rework AutoSetFileLinks (#3368) revert wrongly commited changes Refactorings (#3370) Fix freezing when running cleanup file operations like rename (#3315) This additional style setting for IDEA (#3355) Fix checkstyle ... # Conflicts: # CHANGELOG.md
* upstream/master: Improve SyncLang.py (#3184) Config intellj code style to adhere to empty lines checkstyle rule (#3365) Don't list same look and feels more than once (#3393) progessdialog and result table are now shown correclty on copy files Export pdf/linked files (#3147) Added checking integrity dialog (#3388)
See Issue #3181.