OLD | NEW |
1 #!/bin/bash -eu | 1 #!/bin/bash -eu |
2 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 # Generate a new yaml file for each specified hwid_*.bmp file. | 6 # Generate a new yaml file for each specified hwid_*.bmp file. |
7 # | 7 # |
8 | 8 |
9 # Do initial release locales only, 'cause I'm in a hurry. GB == US. | 9 # I'm sorting the locales in more-or-less geographical order. Right should move |
10 locales="en es fr it nl de" | 10 # east, left should move west. Of course we'll start in the US. :-) |
| 11 locales="en es_419 pt_BR en_GB fr es pt_PT ca it de el nl da no sv fi et lv lt r
u pl cs sk hu sl sr hr bg ro uk tr iw ar fa hi th vi id fil zh_CN zh_TW ko ja" |
11 localedir="./localized_bitmaps" | 12 localedir="./localized_bitmaps" |
12 | 13 |
13 # Arbitrary padding | 14 # Arbitrary padding |
14 ypad=5 | 15 ypad=5 |
15 xpad=10 | 16 xpad=10 |
16 yborder=40 | 17 yborder=40 |
17 | 18 |
18 | 19 |
19 # Stuff to center and position bitmaps from the bottom of the screen upwards. | 20 # Stuff to center and position bitmaps from the bottom of the screen upwards. |
20 | 21 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 211 |
211 # Let's try to use the native one first, if we can. | 212 # Let's try to use the native one first, if we can. |
212 guess_locale "$yaml_file" | 213 guess_locale "$yaml_file" |
213 | 214 |
214 for lc in $newlocales; do | 215 for lc in $newlocales; do |
215 echo " - [ ${lc}_devel, ${lc}_remove, ${lc}_yuck, ${lc}_insert ]" >> \ | 216 echo " - [ ${lc}_devel, ${lc}_remove, ${lc}_yuck, ${lc}_insert ]" >> \ |
216 "$yaml_file" | 217 "$yaml_file" |
217 done | 218 done |
218 | 219 |
219 done | 220 done |
OLD | NEW |