Update bmpblock with new-style minimalist screens.
NOTE: Only the "launch countries" have a full set of updated text strings...and those strings were translated via translate.google.com and need fixing-up prior to use in a real product. BUG=chrome-os-partner:11078 TEST=install bmpblock_x86.bin into a firmware image with gbb_utility -s -b bmpblock_x86.bin image.bin Verify the four firmware screens are displayed correctly. Original-Change-Id: Ib8ff142e9a938a6a3bf949153594cc013c8bb311 Reviewed-on: https://gerrit.chromium.org/gerrit/28574 Reviewed-by: Dave Parker <dparker@chromium.org> Tested-by: Dave Parker <dparker@chromium.org> (cherry picked from commit 7c41920b754cb0d18da9a125f76d3f1ef90e04f4) Change-Id: I534beaea5be95b549a6305d4b2911abeb983e034 Reviewed-on: https://gerrit.chromium.org/gerrit/29603 Reviewed-by: Dave Parker <dparker@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Commit-Ready: Hung-Te Lin <hungte@chromium.org> Tested-by: Hung-Te Lin <hungte@chromium.org>
@@ -20,16 +20,16 @@ def main():
|
||||
|
||||
parser = optparse.OptionParser()
|
||||
parser.description = ' '.join(main.__doc__.split())
|
||||
parser.add_option("--foreground", default='#9ccaec',
|
||||
parser.add_option("--foreground", default='#000000',
|
||||
dest="fg", action="store", metavar="COLOR",
|
||||
help="foreground color (%default)")
|
||||
parser.add_option("--background", default='#607c91',
|
||||
parser.add_option("--background", default='#ffffff',
|
||||
dest="bg", action="store", metavar="COLOR",
|
||||
help="background color (%default)")
|
||||
parser.add_option("--font", default='Helvetica',
|
||||
dest="font", action="store",
|
||||
help="font to use (%default)")
|
||||
parser.add_option("--size", default='22', metavar="POINTSIZE",
|
||||
parser.add_option("--size", default='15', metavar="POINTSIZE",
|
||||
dest="size", action="store",
|
||||
help="font size (%default)")
|
||||
parser.add_option('--dir', default='./outdir',
|
||||
|
||||
BIN
scripts/newbitmaps/images/Background_white.bmp
Normal file
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 38 KiB |
BIN
scripts/newbitmaps/images/Devmode_graphic.bmp
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 33 KiB |
BIN
scripts/newbitmaps/images/Insert_graphic.bmp
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
@@ -18,9 +18,11 @@ DEFAULT_LOCALES=en es_419 pt_BR en_GB fr es pt_PT ca it de \
|
||||
el nl da no sv fi et lv lt ru 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
|
||||
|
||||
BACKGROUND_IMAGE=Background_white.bmp
|
||||
GRAYSCALE_IMAGES=arrow_left.bmp arrow_right.bmp divider_top.bmp divider_btm.bmp
|
||||
OTHER_IMAGES=Devmode_graphic.bmp Insert_graphic.bmp Remove_graphic.bmp \
|
||||
Yuck_graphic.bmp Url.bmp hwid_unknown.bmp chrome_logo.bmp
|
||||
|
||||
BASE_IMAGES=Devmode.bmp Insert.bmp Remove.bmp Yuck.bmp
|
||||
OTHER_IMAGES=Url.bmp hwid_unknown.bmp
|
||||
FONTS=hwid_fonts.bin
|
||||
|
||||
default: outside_chroot
|
||||
@@ -48,17 +50,21 @@ _x86_opts=-colors 256 -compress none -alpha off
|
||||
_arm_max=800x600!
|
||||
_arm_scale=59%x78%
|
||||
|
||||
|
||||
x86::
|
||||
# create output directories
|
||||
mkdir -p "out_$@"
|
||||
# copy stuff we need
|
||||
cp "${FONTS}" "out_$@"
|
||||
# scale the background pictures exactly...
|
||||
@for i in ${BASE_IMAGES}; do \
|
||||
# Scale and preserve the 256 color index of background image
|
||||
echo " out_$@/${BACKGROUND_IMAGE}" && \
|
||||
convert ${BACKGROUND_IMAGE} -scale '${_x86_max}' ${_x86_opts} \
|
||||
-remap gradient.png "BMP3:out_$@/${BACKGROUND_IMAGE}" || \
|
||||
exit 1;
|
||||
# Preserve the 256 color index of grayscale images
|
||||
@for i in ${GRAYSCALE_IMAGES}; do \
|
||||
echo " out_$@/$$i" && \
|
||||
convert $$i -scale '${_x86_max}' ${_x86_opts} \
|
||||
"BMP3:out_$@/$$i" || \
|
||||
convert $$i -scale '${_x86_scale}' ${_x86_opts} \
|
||||
-remap gradient.png "BMP3:out_$@/$$i" || \
|
||||
exit 1; \
|
||||
done
|
||||
@for i in ${OTHER_IMAGES}; do \
|
||||
@@ -81,18 +87,17 @@ arm::
|
||||
done
|
||||
# copy stuff we need
|
||||
cp "${FONTS}" "out_$@"
|
||||
convert ${BASE_IMAGES} -append \
|
||||
convert ${BACKGROUND_IMAGE} -append \
|
||||
-colors 256 -unique-colors "out_$@/base_cmap.png"
|
||||
convert localized_images/*/*.bmp -append \
|
||||
-colors 256 -unique-colors "out_$@/loc_cmap.png"
|
||||
# scale the background pictures exactly...
|
||||
@for i in ${BASE_IMAGES}; do \
|
||||
echo " out_$@/$$i"; \
|
||||
convert $$i -scale "${_arm_max}" \
|
||||
-remap "out_$@/base_cmap.png" "out_$@/$$i"; \
|
||||
# scale the background exactly...
|
||||
echo " out_$@/${BACKGROUND_IMAGE}"; \
|
||||
convert ${BACKGROUND_IMAGE} -scale "${_arm_max}" \
|
||||
-remap "out_$@/base_cmap.png" "out_$@/${BACKGROUND_IMAGE}"; \
|
||||
done
|
||||
# scale the localized string images using percentages...
|
||||
@for i in ${OTHER_IMAGES} localized_images/*/*.bmp; do \
|
||||
@for i in ${GRAYSCALE_IMAGES} ${OTHER_IMAGES} localized_images/*/*.bmp; do \
|
||||
echo " out_$@/$$i"; \
|
||||
convert $$i -scale "${_arm_scale}" \
|
||||
-remap "out_$@/loc_cmap.png" "out_$@/$$i"; \
|
||||
|
||||
|
Before Width: | Height: | Size: 35 KiB |
BIN
scripts/newbitmaps/images/Remove_graphic.bmp
Normal file
|
After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 32 KiB |
BIN
scripts/newbitmaps/images/Yuck_graphic.bmp
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
scripts/newbitmaps/images/arrow_left.bmp
Normal file
|
After Width: | Height: | Size: 252 B |
BIN
scripts/newbitmaps/images/arrow_right.bmp
Normal file
|
After Width: | Height: | Size: 252 B |
BIN
scripts/newbitmaps/images/chrome_logo.bmp
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
scripts/newbitmaps/images/divider_btm.bmp
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
scripts/newbitmaps/images/divider_top.bmp
Normal file
|
After Width: | Height: | Size: 266 B |
BIN
scripts/newbitmaps/images/gradient.png
Normal file
|
After Width: | Height: | Size: 721 B |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 3.6 KiB |
@@ -27,41 +27,76 @@ if [ -n "$*" ]; then
|
||||
locales="$*"
|
||||
fi
|
||||
|
||||
|
||||
# Arbitrary padding
|
||||
ypad=5
|
||||
xpad=10
|
||||
yborder=40
|
||||
xpad=5
|
||||
|
||||
|
||||
# Stuff to center and position bitmaps from the bottom of the screen upwards.
|
||||
|
||||
# Globals
|
||||
# Globals used to specify location images are inserted.
|
||||
cur_x=0
|
||||
cur_y=0
|
||||
|
||||
|
||||
# Return width of the specified .bmp file
|
||||
get_x() {
|
||||
file $1 | awk '{print $7}' | sed -e 's/[^0-9]//g'
|
||||
reset_pos() {
|
||||
cur_x=0
|
||||
cur_y=0
|
||||
}
|
||||
|
||||
get_xx() {
|
||||
local ffile=$(eval "echo \$$1")
|
||||
get_x $ffile
|
||||
move_pos_up() {
|
||||
cur_y=$(expr $cur_y - $1 )
|
||||
}
|
||||
|
||||
# Return height of the specified .bmp file
|
||||
get_y() {
|
||||
file $1 | awk '{print $9}' | sed -e 's/[^0-9]//g'
|
||||
move_pos_down() {
|
||||
cur_y=$(expr $cur_y + $1 )
|
||||
}
|
||||
|
||||
# Return height of the specified .bmp file
|
||||
get_yy() {
|
||||
local ffile=$(eval "echo \$$1")
|
||||
get_y $ffile
|
||||
move_pos_left() {
|
||||
cur_x=$(expr $cur_x - $1 )
|
||||
}
|
||||
|
||||
move_pos_right() {
|
||||
cur_x=$(expr $cur_x + $1 )
|
||||
}
|
||||
|
||||
# Move insert location to the vertical midline of a specified image.
|
||||
# Example: set_centered_y_percent 'some_image' 80
|
||||
# Sets insert point to the center of an image specified by a variable name,
|
||||
# 80% towards the bottom. Assumes image was inserted at 0,0 so only good
|
||||
# for the background image.
|
||||
set_centered_y_percent() {
|
||||
cur_x=$(expr $(get_width $1) / 2 )
|
||||
cur_y=$(expr $(get_height $1) \* $2 / 100 )
|
||||
}
|
||||
|
||||
# Return width of a .bmp file specified by a variable.
|
||||
get_width() {
|
||||
local filename="$(eval "echo \$$1")"
|
||||
file ${filename} | awk '{print $7}' | sed -e 's/[^0-9]//g'
|
||||
}
|
||||
|
||||
# Return the width of a list of images.
|
||||
total_width() {
|
||||
local width=$(expr 0 - $xpad)
|
||||
for filename in "$@"; do
|
||||
width=$(expr $width + $(get_width ${filename}) + $xpad)
|
||||
done
|
||||
echo $width
|
||||
}
|
||||
|
||||
# Return height of a .bmp file specified by a variable.
|
||||
get_height() {
|
||||
local filename="$(eval "echo \$${1}")"
|
||||
file ${filename} | awk '{print $9}' | sed -e 's/[^0-9]//g'
|
||||
}
|
||||
|
||||
# Returns the max height of a list of images.
|
||||
get_max_height() {
|
||||
local max_height=0
|
||||
local height
|
||||
for filename in $@; do
|
||||
height=$(get_height ${filename})
|
||||
[ $max_height -gt $height ] || max_height=$height
|
||||
done
|
||||
echo $max_height
|
||||
}
|
||||
|
||||
# Guess the locale based on the filename, set a global "newlocales" list
|
||||
# accordingly.
|
||||
@@ -95,43 +130,142 @@ guess_locale() {
|
||||
newlocales=$newlist
|
||||
}
|
||||
|
||||
# Add a list of images at provided location.
|
||||
# Images of different heights are added centered on the tallest image.
|
||||
add_images() {
|
||||
local x=$1
|
||||
local y=$2
|
||||
local files=${@:3}
|
||||
local max_height=$(get_max_height $files)
|
||||
|
||||
# Reset the current baseline and width to the size of the specified .bmp file
|
||||
reset_base() {
|
||||
cur_x=$(get_x "$1")
|
||||
cur_y=$(expr $(get_y $1) - $yborder)
|
||||
}
|
||||
|
||||
# Emit a screen line entry centering the given .bmp files at the current
|
||||
# baseline. We assume that all args are the same height.
|
||||
center_up() {
|
||||
local totalx
|
||||
local totaly
|
||||
local x
|
||||
local ffile
|
||||
|
||||
totaly=$(get_yy "$1")
|
||||
cur_y=$(expr $cur_y - $totaly - $ypad)
|
||||
|
||||
totalx=$(expr 0 - $xpad / 2)
|
||||
for fname in "$@"; do
|
||||
totalx=$(expr $totalx + $(get_xx $fname) + $xpad)
|
||||
done
|
||||
|
||||
x=$(expr "(" $cur_x - $totalx ")" / 2)
|
||||
|
||||
for fname in $*; do
|
||||
for fname in $files; do
|
||||
tmp_y=$(echo $( expr $y + "(" $max_height - $(get_height $fname) ")" / 2 ) )
|
||||
if [ "$fname" = "th_model_text" ]; then
|
||||
tmp_y=$(expr $cur_y - 9)
|
||||
echo " - [$x, $tmp_y, $fname]" >> "$yaml_file"
|
||||
else
|
||||
echo " - [$x, $cur_y, $fname]" >> "$yaml_file"
|
||||
tmp_y=$(expr $y - 9)
|
||||
fi
|
||||
x=$(expr $x + $(get_xx $fname) + $xpad)
|
||||
echo " - [$x, $tmp_y, $fname]" >> "$yaml_file"
|
||||
x=$(expr $x + $(get_width $fname) + $xpad)
|
||||
done
|
||||
}
|
||||
|
||||
add_centered_below() {
|
||||
local images=$@
|
||||
local width
|
||||
local height
|
||||
local x
|
||||
local y
|
||||
|
||||
height=$(get_max_height $images)
|
||||
y=$(expr $cur_y + $height)
|
||||
|
||||
width=$(total_width $images)
|
||||
x=$(expr $cur_x - $width / 2)
|
||||
|
||||
add_images $x $y $images
|
||||
}
|
||||
|
||||
# This adds a list of images and updates the insert location
|
||||
# below the new images with a padding of $xpad.
|
||||
insert_centered_below() {
|
||||
local images=$@
|
||||
local width
|
||||
local height
|
||||
local x
|
||||
local y
|
||||
|
||||
height=$(get_max_height $images)
|
||||
y=$(expr $cur_y + $height)
|
||||
|
||||
width=$(total_width $images)
|
||||
x=$(expr $cur_x - $width / 2)
|
||||
|
||||
add_images $x $y $images
|
||||
move_pos_down $(expr $height + $ypad)
|
||||
}
|
||||
|
||||
add_right_above() {
|
||||
local images=$@
|
||||
local height
|
||||
local x
|
||||
local y
|
||||
|
||||
height=$(get_max_height $images)
|
||||
y=$(expr $cur_y - $height)
|
||||
|
||||
add_images $cur_x $y $images
|
||||
}
|
||||
|
||||
add_right_below() {
|
||||
add_images $cur_x $cur_y $@
|
||||
}
|
||||
|
||||
add_left_above() {
|
||||
local images=$@
|
||||
local width
|
||||
local height
|
||||
local x
|
||||
local y
|
||||
|
||||
height=$(get_max_height $images)
|
||||
y=$(expr $cur_y - $height)
|
||||
|
||||
width=$(total_width $images)
|
||||
x=$(expr $cur_x - $width)
|
||||
|
||||
add_images $x $y $images
|
||||
}
|
||||
|
||||
add_centered() {
|
||||
local images=$@
|
||||
local width
|
||||
local height
|
||||
local x
|
||||
local y
|
||||
|
||||
height=$(get_max_height $images)
|
||||
y=$(expr $cur_y - $height / 2)
|
||||
|
||||
width=$(total_width $images)
|
||||
x=$(expr $cur_x - $width / 2)
|
||||
|
||||
add_images $x $y $images
|
||||
}
|
||||
|
||||
add_header() {
|
||||
local lc=$1
|
||||
set_centered_y_percent "white_bg" 17
|
||||
add_centered_below "divider_top"
|
||||
move_pos_left $(expr $(get_width "divider_top") / 2 )
|
||||
move_pos_up $ypad
|
||||
add_right_above "chrome_logo"
|
||||
move_pos_right $(get_width "divider_top")
|
||||
add_left_above "arrow_left" "${lc}_language_text" "arrow_right"
|
||||
}
|
||||
|
||||
add_footer_with_url() {
|
||||
local lc=$1
|
||||
set_centered_y_percent "white_bg" 80
|
||||
insert_centered_below "divider_btm"
|
||||
insert_centered_below "${lc}_for_help_text" "url"
|
||||
if echo "$rtol" | grep -q -w "$lc" ; then
|
||||
insert_centered_below 'hwid' "${lc}_model_text"
|
||||
else
|
||||
insert_centered_below "${lc}_model_text" 'hwid'
|
||||
fi
|
||||
echo "" >> "$yaml_file"
|
||||
}
|
||||
|
||||
add_footer_without_url() {
|
||||
local lc=$1
|
||||
set_centered_y_percent "white_bg" 80
|
||||
insert_centered_below "divider_btm"
|
||||
if echo "$rtol" | grep -q -w "$lc" ; then
|
||||
insert_centered_below 'hwid' "${lc}_model_text"
|
||||
else
|
||||
insert_centered_below "${lc}_model_text" 'hwid'
|
||||
fi
|
||||
echo "" >> "$yaml_file"
|
||||
}
|
||||
|
||||
# Generate a new yaml file for each specified hwid_*.bmp file.
|
||||
for hwid_bmp in hwid_unknown.bmp; do
|
||||
@@ -141,7 +275,7 @@ for hwid_bmp in hwid_unknown.bmp; do
|
||||
cat >"$yaml_file" <<'EOF1'
|
||||
bmpblock: 2.0
|
||||
|
||||
compression: 1
|
||||
compression: 2
|
||||
|
||||
images:
|
||||
|
||||
@@ -151,18 +285,34 @@ images:
|
||||
# This URL never changes
|
||||
url: Url.bmp
|
||||
|
||||
# The background images are from the UI people
|
||||
devmode_bg: Devmode.bmp
|
||||
remove_bg: Remove.bmp
|
||||
yuck_bg: Yuck.bmp
|
||||
insert_bg: Insert.bmp
|
||||
# Various UI elements
|
||||
arrow_left: arrow_left.bmp
|
||||
arrow_right: arrow_right.bmp
|
||||
chrome_logo: chrome_logo.bmp
|
||||
devmode_graphic: Devmode_graphic.bmp
|
||||
divider_btm: divider_btm.bmp
|
||||
divider_top: divider_top.bmp
|
||||
remove_graphic: Remove_graphic.bmp
|
||||
insert_graphic: Insert_graphic.bmp
|
||||
white_bg: Background_white.bmp
|
||||
yuck_graphic: Yuck_graphic.bmp
|
||||
|
||||
# The following strings must be approved by the localization people
|
||||
EOF1
|
||||
|
||||
# some global variables matching the yaml definitions
|
||||
arrow_left='arrow_left.bmp'
|
||||
arrow_right='arrow_right.bmp'
|
||||
chrome_logo='chrome_logo.bmp'
|
||||
devmode_graphic='Devmode_graphic.bmp'
|
||||
divider_btm='divider_btm.bmp'
|
||||
divider_top='divider_top.bmp'
|
||||
hwid=$hwid_bmp
|
||||
url="Url.bmp"
|
||||
insert_graphic='Insert_graphic.bmp'
|
||||
remove_graphic='Remove_graphic.bmp'
|
||||
url='Url.bmp'
|
||||
white_bg='Background_white.bmp'
|
||||
yuck_graphic='Yuck_graphic.bmp'
|
||||
|
||||
# Enumerate the bitmaps for each locale-specific string.
|
||||
for lc in $locales; do
|
||||
@@ -172,6 +322,9 @@ EOF1
|
||||
${lc}_remove_text: ${localedir}/$lc/remove.bmp
|
||||
${lc}_yuck_text: ${localedir}/$lc/yuck.bmp
|
||||
${lc}_insert_text: ${localedir}/$lc/insert.bmp
|
||||
${lc}_insert_usb_text: ${localedir}/$lc/insert_usb.bmp
|
||||
${lc}_language_text: ${localedir}/$lc/language.bmp
|
||||
${lc}_for_help_text: ${localedir}/$lc/for_help.bmp
|
||||
|
||||
EOF2
|
||||
|
||||
@@ -181,6 +334,9 @@ EOF2
|
||||
eval "${lc}_remove_text=${localedir}/$lc/remove.bmp"
|
||||
eval "${lc}_yuck_text=${localedir}/$lc/yuck.bmp"
|
||||
eval "${lc}_insert_text=${localedir}/$lc/insert.bmp"
|
||||
eval "${lc}_insert_usb_text=${localedir}/$lc/insert_usb.bmp"
|
||||
eval "${lc}_language_text=${localedir}/$lc/language.bmp"
|
||||
eval "${lc}_for_help_text=${localedir}/$lc/for_help.bmp"
|
||||
done
|
||||
|
||||
# List the screens. We need to composite four screens for each locale.
|
||||
@@ -188,51 +344,53 @@ EOF2
|
||||
|
||||
for lc in $locales; do
|
||||
echo -n " $lc"
|
||||
|
||||
# Dev Screen
|
||||
echo " ${lc}_devel:" >> "$yaml_file"
|
||||
echo " - [ 0, 0, devmode_bg]" >> "$yaml_file"
|
||||
reset_base Devmode.bmp
|
||||
center_up "${lc}_devmode_text"
|
||||
echo "" >> "$yaml_file"
|
||||
reset_pos
|
||||
add_right_below "white_bg"
|
||||
add_header ${lc}
|
||||
set_centered_y_percent "white_bg" 40
|
||||
add_centered "devmode_graphic"
|
||||
set_centered_y_percent "white_bg" 50
|
||||
add_centered_below "${lc}_devmode_text"
|
||||
add_footer_without_url ${lc}
|
||||
|
||||
# Remove Screen
|
||||
echo " ${lc}_remove:" >> "$yaml_file"
|
||||
echo " - [ 0, 0, remove_bg]" >> "$yaml_file"
|
||||
reset_base Remove.bmp
|
||||
if echo "$rtol" | grep -q -w "$lc" ; then
|
||||
center_up 'hwid' "${lc}_model_text"
|
||||
else
|
||||
center_up "${lc}_model_text" 'hwid'
|
||||
fi
|
||||
center_up "url"
|
||||
center_up "${lc}_remove_text"
|
||||
echo "" >> "$yaml_file"
|
||||
reset_pos
|
||||
add_right_below "white_bg"
|
||||
add_header ${lc}
|
||||
set_centered_y_percent "white_bg" 25
|
||||
add_centered_below "${lc}_remove_text"
|
||||
set_centered_y_percent "white_bg" 50
|
||||
add_centered "remove_graphic"
|
||||
add_footer_with_url ${lc}
|
||||
|
||||
# Yuck Screen
|
||||
echo " ${lc}_yuck:" >> "$yaml_file"
|
||||
echo " - [ 0, 0, yuck_bg]" >> "$yaml_file"
|
||||
reset_base Yuck.bmp
|
||||
if echo "$rtol" | grep -q -w "$lc" ; then
|
||||
center_up 'hwid' "${lc}_model_text"
|
||||
else
|
||||
center_up "${lc}_model_text" 'hwid'
|
||||
fi
|
||||
center_up "url"
|
||||
center_up "${lc}_yuck_text"
|
||||
echo "" >> "$yaml_file"
|
||||
reset_pos
|
||||
add_right_below "white_bg"
|
||||
add_header ${lc}
|
||||
set_centered_y_percent "white_bg" 25
|
||||
add_centered_below "${lc}_yuck_text"
|
||||
set_centered_y_percent "white_bg" 50
|
||||
add_centered "yuck_graphic"
|
||||
add_footer_with_url ${lc}
|
||||
|
||||
# Insert Screen
|
||||
echo " ${lc}_insert:" >> "$yaml_file"
|
||||
echo " - [ 0, 0, insert_bg]" >> "$yaml_file"
|
||||
reset_base Insert.bmp
|
||||
if echo "$rtol" | grep -q -w "$lc" ; then
|
||||
center_up 'hwid' "${lc}_model_text"
|
||||
else
|
||||
center_up "${lc}_model_text" 'hwid'
|
||||
fi
|
||||
center_up "url"
|
||||
center_up "${lc}_insert_text"
|
||||
echo "" >> "$yaml_file"
|
||||
reset_pos
|
||||
add_right_below "white_bg"
|
||||
add_header ${lc}
|
||||
set_centered_y_percent "white_bg" 40
|
||||
add_centered "insert_graphic"
|
||||
set_centered_y_percent "white_bg" 50
|
||||
add_centered_below "${lc}_insert_usb_text"
|
||||
add_footer_with_url ${lc}
|
||||
|
||||
done
|
||||
|
||||
|
||||
# Finally list the localizations.
|
||||
|
||||
cat >>"$yaml_file" <<EOF2
|
||||
|
||||
@@ -69,7 +69,7 @@ class BmpBlock(object):
|
||||
assert screens
|
||||
# screen values should all be lists of 3-tuples
|
||||
for scrname, imglist in screens.items():
|
||||
assert len(imglist) <= 8
|
||||
assert len(imglist) <= 16
|
||||
for img in imglist:
|
||||
assert 3 == len(img)
|
||||
# must have defined all referenced bitmaps
|
||||
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 3.6 KiB |
1
scripts/newbitmaps/strings/Url.txt
Normal file
@@ -0,0 +1 @@
|
||||
http://google.com/chromeos/recovery
|
||||
1
scripts/newbitmaps/strings/current_hwid.txt
Normal file
@@ -0,0 +1 @@
|
||||
<<< model name goes here >>>
|
||||
@@ -7,7 +7,7 @@ LOCALES=ar bg ca cs da de el en en_GB es es_419 et fa fi fil fr hi hr hu \
|
||||
uk vi zh_CN zh_TW
|
||||
|
||||
# Use "make PT=15" for 800x600 (x86)
|
||||
PT=22
|
||||
PT=15
|
||||
|
||||
|
||||
DIR_TARGETS=$(foreach DIR,$(LOCALES),$(DIR)-dir)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
العربية
|
||||
@@ -0,0 +1 @@
|
||||
български
|
||||
@@ -0,0 +1 @@
|
||||
català
|
||||
@@ -0,0 +1 @@
|
||||
čeština
|
||||
@@ -1,2 +1,2 @@
|
||||
Chrome OS-bekræftelse er deaktiveret.
|
||||
Tryk på mellemrumstasten for at starte gendannelsen.
|
||||
OS verifikation er OFF
|
||||
Tryk Space for at genaktivere.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
For hjælp besøg
|
||||
@@ -0,0 +1,3 @@
|
||||
Chrome OS mangler eller er beskadiget.
|
||||
Indsæt et opsving USB-stick i en af de fire havne i
|
||||
bagsiden af enheden (side havne vil ikke arbejde til nyttiggørelse).
|
||||
@@ -0,0 +1 @@
|
||||
dansk
|
||||
@@ -1 +1 @@
|
||||
Fjern alle eksterne medier for at starte genoprettelse.
|
||||
Fjern alle eksterne lagringsenheder til at begynde opsving.
|
||||
|
||||
@@ -1 +1 @@
|
||||
Den indsatte enhed indeholder ikke Chrome OS. Vil du prøve en anden?
|
||||
Den enhed, du indsatte ikke indeholder Chrome OS.
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Die Chrome OS-Verifikation ist deaktiviert.
|
||||
Drücken Sie zum Starten der Wiederherstellung die Leertaste.
|
||||
OS-Prüfung ist AUS
|
||||
Drücken Sie SPACE wieder zu aktivieren.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Für Hilfe Besuch
|
||||
@@ -0,0 +1,3 @@
|
||||
Chrome OS fehlt oder beschädigt ist.
|
||||
Bitte geben Sie eine Erholung USB-Stick in einen der vier Ports in
|
||||
der Rückseite des Gerätes (die seitlichen Ports werden nicht für die Wiederherstellung zu arbeiten).
|
||||
@@ -0,0 +1 @@
|
||||
Deutsch
|
||||
@@ -1 +1 @@
|
||||
Bitte entfernen Sie alle externen Medien, um die Wiederherstellung zu starten.
|
||||
Bitte entfernen Sie alle externen Speichergeräte, um Wiederherstellung zu beginnen.
|
||||
|
||||
@@ -1 +1 @@
|
||||
Das eingesteckte Gerät enthält kein Chrome OS. Anderes Gerät probieren?
|
||||
Das Gerät, das Sie eingefügt enthält keine Chrome OS.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Ελληνικά
|
||||
@@ -1,2 +1,2 @@
|
||||
Chrome OS verification is turned off.
|
||||
Press space to begin recovery.
|
||||
OS verification is OFF
|
||||
Press SPACE to re-enable.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
For help visit
|
||||
@@ -0,0 +1,3 @@
|
||||
Chrome OS is missing or damaged.
|
||||
Please insert a recovery USB stick into one of the four ports in
|
||||
the BACK of the device (the side ports will not work for recovery).
|
||||
@@ -0,0 +1 @@
|
||||
English
|
||||
@@ -1 +1 @@
|
||||
Please remove all external media to begin recovery.
|
||||
Please remove all external storage devices to begin recovery.
|
||||
@@ -1 +1 @@
|
||||
The device you inserted does not contain Chrome OS. Try another?
|
||||
The device you inserted does not contain Chrome OS.
|
||||
@@ -1,2 +1,2 @@
|
||||
Chrome OS verification is turned off.
|
||||
Press space to begin recovery.
|
||||
OS verification is OFF
|
||||
Press SPACE to re-enable.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
For help visit
|
||||
@@ -0,0 +1,3 @@
|
||||
Chrome OS is missing or damaged.
|
||||
Please insert a recovery USB stick into one of the four ports in
|
||||
the BACK of the device (the side ports will not work for recovery).
|
||||
@@ -0,0 +1 @@
|
||||
English
|
||||
@@ -1 +1 @@
|
||||
Please remove all external media to begin recovery.
|
||||
Please remove all external storage devices to begin recovery.
|
||||
@@ -1 +1 @@
|
||||
The device that you've inserted does not contain Chrome OS. Try another?
|
||||
The device you inserted does not contain Chrome OS.
|
||||
@@ -1,2 +1,2 @@
|
||||
La verificación de Chrome OS está desactivada.
|
||||
Pulsa la tecla de espacio para iniciar la recuperación.
|
||||
Verificación de sistema operativo está en OFF
|
||||
Oprima SPACE para volver a habilitar.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Para más visita de la ayuda
|
||||
@@ -0,0 +1,3 @@
|
||||
Chrome OS falta o está dañado.
|
||||
Por favor, inserte un palillo USB de recuperación en uno de los cuatro puertos
|
||||
la parte posterior del dispositivo (los puertos secundarios no va a funcionar para la recuperación).
|
||||
@@ -0,0 +1 @@
|
||||
español
|
||||
@@ -1 +1 @@
|
||||
Desconecta todos los dispositivos de almacenamiento externos para comenzar la recuperación.
|
||||
Por favor, retire todos los dispositivos de almacenamiento externo para iniciar la recuperación.
|
||||
|
||||
@@ -1 +1 @@
|
||||
El dispositivo insertado no tiene Chrome OS. ¿Quieres probar con otro?
|
||||
El dispositivo que ha colocado no contiene Chrome OS.
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
La verificación de Chrome OS está desactivada.
|
||||
Presiona espacio para iniciar la recuperación.
|
||||
Verificación de sistema operativo está en OFF
|
||||
Oprima SPACE para volver a habilitar.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Para más visita de la ayuda
|
||||
@@ -0,0 +1,3 @@
|
||||
Chrome OS falta o está dañado.
|
||||
Por favor, inserte un palillo USB de recuperación en uno de los cuatro puertos
|
||||
la parte posterior del dispositivo (los puertos secundarios no va a funcionar para la recuperación).
|
||||
@@ -0,0 +1 @@
|
||||
español
|
||||
@@ -1 +1 @@
|
||||
Elimina todos los medios externos para comenzar con la recuperación.
|
||||
Por favor, retire todos los dispositivos de almacenamiento externo para iniciar la recuperación.
|
||||
|
||||
@@ -1 +1 @@
|
||||
El dispositivo que insertaste no contiene Chrome OS. ¿Deseas intentar con otro?
|
||||
El dispositivo que ha colocado no contiene Chrome OS.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
eesti
|
||||
@@ -0,0 +1 @@
|
||||
فارسی
|
||||
@@ -0,0 +1 @@
|
||||
suomi
|
||||
@@ -0,0 +1 @@
|
||||
Filipino
|
||||
@@ -1,2 +1,2 @@
|
||||
La vérification de Google Chrome OS est désactivée.
|
||||
Pour lancer le processus de récupération, appuyez sur la touche "Espace".
|
||||
Vérification OS est sur OFF
|
||||
Appuyez sur SPACE pour réactiver.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Pour obtenir une aide
|
||||
@@ -0,0 +1,3 @@
|
||||
Chrome OS est manquant ou endommagé.
|
||||
S'il vous plaît insérer un bâton de récupération USB dans un des quatre ports de
|
||||
l'arrière de l'appareil (les ports secondaires ne fonctionnera pas pour la récupération).
|
||||
@@ -0,0 +1 @@
|
||||
français
|
||||
@@ -1 +1 @@
|
||||
Veuillez retirer tous les supports externes pour lancer le processus de récupération.
|
||||
S'il vous plaît supprimer tous les périphériques de stockage externes pour commencer la récupération.
|
||||
|
||||
@@ -1 +1 @@
|
||||
Le périphérique inséré ne contient pas Google Chrome OS. Voulez-vous en utiliser un autre ?
|
||||
Le dispositif que vous avez inséré ne contient pas de Chrome OS.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
हिन्दी
|
||||
@@ -0,0 +1 @@
|
||||
hrvatski
|
||||
@@ -0,0 +1 @@
|
||||
magyar
|
||||
@@ -0,0 +1 @@
|
||||
Bahasa
|
||||
@@ -1,2 +1,2 @@
|
||||
La verifica di Chrome OS è disattivata.
|
||||
Premi la barra spaziatrice per avviare il ripristino.
|
||||
Verifica OS è OFF
|
||||
Premere SPACE per riattivare.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Per la visita di aiuto
|
||||
@@ -0,0 +1,3 @@
|
||||
Chrome OS è mancante o danneggiato.
|
||||
Si prega di inserire una chiavetta USB di ripristino in una delle quattro porte in
|
||||
il retro del dispositivo (le porte laterali non funzionano per il recupero).
|
||||
@@ -0,0 +1 @@
|
||||
italiano
|
||||
@@ -1 +1 @@
|
||||
Per avviare il ripristino, rimuovi tutti i supporti esterni.
|
||||
Si prega di rimuovere tutti i dispositivi di memorizzazione esterni per iniziare il recupero.
|
||||
|
||||
@@ -1 +1 @@
|
||||
Il dispositivo inserito non contiene Chrome OS. Provarne un altro?
|
||||
Il dispositivo inserito non contiene Chrome OS.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
עברית
|
||||
@@ -1,2 +1,2 @@
|
||||
Chrome OS の確認機能がオフになっています。
|
||||
復旧処理を開始するには Space キーを押してください。
|
||||
OSの検証がOFFになって
|
||||
再度有効にするにはSPACEキーを押します。
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
ヘルプ訪問のため
|
||||
@@ -0,0 +1,3 @@
|
||||
ChromeのOSは存在しないか破損している。
|
||||
の4つのポートのいずれかに回復のUSBスティックを挿入してください
|
||||
デバイスの背面(サイドポートは回復のために動作しません)。
|
||||
@@ -0,0 +1 @@
|
||||
日本語
|
||||
@@ -1 +1 @@
|
||||
復旧処理を開始するには、外部メディアをすべて取り外してください。
|
||||
リカバリを開始するすべての外付けストレージデバイスを削除してください。
|
||||
|
||||
@@ -1 +1 @@
|
||||
挿入されたデバイスには Chrome OS が含まれていません。別のデバイスを試しますか?
|
||||
あなたが挿入されたデバイスは、Chrome OSが含まれていません。
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
크롬 OS 확인이 사용 중지되어 있습니다.
|
||||
복구를 시작하려면 스페이스를 누르세요.
|
||||
운영 체제 확인은 OFF입니다
|
||||
다시 활성화하기 위해 공간을 누르십시오.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
도움말 방문
|
||||
@@ -0,0 +1,3 @@
|
||||
크롬 OS는 없거나 손상되었습니다.
|
||||
의 네 개의 포트 중 하나에 복구 USB 스틱을 삽입하십시오
|
||||
장치의 뒷면 (사이드 포트 복구를 위해 작동하지 않습니다.)
|
||||
@@ -0,0 +1 @@
|
||||
한국어
|
||||