0

Add readme for Translation Screenshots

Bug: 814897
Change-Id: Ibed0c4e7708cfa1b7ba1756e3cfca78c9501a22b
Reviewed-on: https://chromium-review.googlesource.com/1008875
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Reviewed-by: Carlos IL <carlosil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551196}
This commit is contained in:
Mustafa Emre Acer
2018-04-17 00:55:09 +00:00
committed by Commit Bot
parent 21f70497bf
commit 8b415839e8

@ -0,0 +1,15 @@
# Translation Screenshots
Wed all like to ensure that the user experience in Chrome is optimal, no matter the locale. Translation Screenshots strives to achieve this. The goal is to improve translations of Chromes UI strings by providing more and clearer context for our translators. Bad localizations cause us to lose user trust and are expensive to fix, in both time and resources.
## How to add a translation screenshot
1. Take a screenshot of the UI that displays the modified string (e.g. `IDS_NEW_STRING` in `path/to/file.grd`)
2. Save it under the screenshot directory for the file you are editing: `path/to/file_grd/IDS_NEW_STRING.png`. If `path/to/file_grd` doesnt exist, create it. Only .png files are supported.
3. Run `python tools/translation/upload_screenshots.py` (without flags) to upload the screenshot to Google Cloud Storage.
4. This will generate `path/to/file_grd/IDS_NEW_STRING.png.sha1`. Add this file to your CL and you are done. Dont add the actual image to your CL.
Unfortunately, only contributors with @google.com accounts can upload images to the Cloud Storage bucket (Step 3). If you cant upload images, please ask a Googler for help, then continue with Step 4.
See [Instructions & FAQ](https://docs.google.com/document/d/1nwYWDny20icMSpLUuV_LgrlbWKrYpbXOERUIZNH636o/) for details. And here is the [original announcement](https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/6kcVb-eFUg8/qHuUnbJ7BgAJ) of this feature.