https://github.com/zbraniecki/convert_xul_to_fluent
Convert XUL+DTD to Fluent
https://github.com/zbraniecki/convert_xul_to_fluent
Last synced: 3 months ago
JSON representation
Convert XUL+DTD to Fluent
- Host: GitHub
- URL: https://github.com/zbraniecki/convert_xul_to_fluent
- Owner: zbraniecki
- Created: 2017-11-10T02:01:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-06T22:03:16.000Z (over 6 years ago)
- Last Synced: 2025-04-11T22:12:28.818Z (about 1 year ago)
- Language: Python
- Size: 33.2 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an attempt to develop a script that aids Firefox migration to Fluent.
Installing:
```
pip3 install -r requirements.txt
```
Example usage (taken from https://bugzilla.mozilla.org/show_bug.cgi?id=1592043):
```
# If the FTL file doesn't exist yet:
touch ~/Code/mozilla-central/devtools/client/locales/en-US/toolbox.ftl
python3 convert.py --bug_id 1592043 --description "Migrate toolbox options strings from DTD to FTL" --mc ~/Code/mozilla-central --dom devtools/client/framework/toolbox-options.xhtml --dtd devtools/client/locales/en-US/toolbox.dtd --ftl devtools/client/locales/en-US/toolbox.ftl
```