mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-14 03:16:24 +00:00
6a1c8c32ef
Changed handcrafted.py to use a OrderedDict instead of a dict (guarantee the order independant of the python version) Moved the value of "../../src" to the variable "src_path" to improve readability, and reuse the value again later in code Changed the "Look for all matching i18n keys" part of code to order the dirs and file in a independant OS way - alphabetical order using the "sort" func of list object Changed the "Look for all matching i18n keys" part of code to collect all phrases in a OrderedDict (guarantee the order independant of the python version) Changed the list indexing in filepath var (filepath[10:]) to the use of os.path.relpath(filepath, src_path) func to improve readability Changed all_phrases to a OrderedDict (guarantee the order independant of the python version) and use update method of OrderedDict to add the files's phrases and handcrafted phrases to the OrderedDict in order Changed the loop of matches to inside the if statement (if len(matches) > 0) to improve readability - if the "if statement" is false, the loop was never executed Changed the "Load existing locale dics and replace keys" part of code to use OrderedDict in the new_phrases var to guarantee the order of the keys insert in json.dump in all OS Changed the "Load existing locale dics and replace keys" part of code to not substitute the keys "#{counter}" to guarantee the order independant of the json file of the translation. |
||
---|---|---|
.. | ||
src | ||
static | ||
templates/frontend | ||
__init__.py | ||
.eslintrc.json | ||
.prettierignore | ||
.prettierrc | ||
admin.py | ||
apps.py | ||
babel.config.json | ||
Dockerfile | ||
entrypoint.sh | ||
package-lock.json | ||
package.json | ||
tests.py | ||
tsconfig.json | ||
urls.py | ||
views.py | ||
webpack.config.ts |