Closed Bug 1095065 Opened 11 years ago Closed 8 years ago

Remove en-US strings from HTML files

Categories

(Firefox OS Graveyard :: Gaia, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: zbraniecki, Unassigned)

Details

Attachments

(1 file)

In an effort to make it easier to work with Gaia we want to remove en-US strings from HTML files. Currently, we store some version of en-US strings in HTML files that are later overwritten by strings from l10n resources. This creates unnecessary confusion and makes it easy to make a mistake for developers and not notice it (because screen appears to have the strings). It also requires to keep updating the strings in two places which never happens and leaves us with two version of the same string which makes learning, grepping and localizing our code harder. We may try to automatically clean the files, or let developers clean their files as they go if the automated script causes too much diff noise on parsing/serializing.
First attempt to write a script to clean HTML files: https://github.com/zbraniecki/l10n-domwalker/tree/cleanhtml
Attached file pull request
Here's an experimental pull request after using the domwalker script.
Thanks for filing this, and experimenting with the script. I'm not sure if the script is a good option at this point because it breaks some of our style guidelines. E.g, adding empty attribute strings (disabled=""), and doing weird things with some tags (<!DOCTYPE html><html><head>). I think perhaps setting this as a standard, informing reviewers, and educating people might be the best way forward here.
I totally agree that this patch is not reviewable. I may experiment more to try to reduce the noise. If I get anywhere with it, then I'll ask you to look again at this :)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: