-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into coverity_scan
- Loading branch information
Showing
26 changed files
with
552 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
# | ||
# Script to remove top and bottom bar from an Android screenshot. | ||
# | ||
# usage : ./crop_scale_screenshot.sh image.png | ||
# | ||
# Dependency : ImageMagick | ||
# | ||
# Copyright (C) 2014 Dieter Adriaenssens | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
imageFile=$1 | ||
|
||
# get image properties and save as array (identify returns spaces seperated result) | ||
imageProperties=(`identify $imageFile`) | ||
|
||
# image size is 3rd element of the array | ||
imageSize=${imageProperties[2]} | ||
|
||
case "$imageSize" in | ||
# xhdpi with onscreen button bar, portrait | ||
"1080x1920") extract="1080x1700+0+75" | ||
resize="400x631" | ||
;; | ||
# xhdpi with onscreen button bar, landscape | ||
"1920x1080") extract="1792x1005+0+75" | ||
resize="713x400" | ||
;; | ||
# hdpi without onscreen button bar, portrait | ||
"480x800") extract="480x762+0+38" | ||
resize="480x762" | ||
;; | ||
# hdpi without onscreen button bar, landscape | ||
"800x480") extract="800x442+0+38" | ||
resize="800x442" | ||
;; | ||
# default, unknown format : don't crop/resize image | ||
*) echo $imageSize | ||
echo "Unknown format, image was not changed." | ||
exit 0 | ||
;; | ||
esac | ||
|
||
echo "original size : $imageSize" | ||
echo "extraction parameters : $extract" | ||
echo "resize parameters : $resize" | ||
|
||
# remove bars and resize image | ||
convert -size $imageSize -extract $extract $imageFile -resize $resize $imageFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<resources><string name="current_speed">Хуткасьць цяпер</string> | ||
<string name="speed_kph">км/г</string> | ||
<string name="current_bearing">Азимут</string> | ||
<string name="distance">Адлегласьць</string> | ||
<string name="direction">Напрамак</string> | ||
<string name="northeast_unit">Пн-Усх</string> | ||
<string name="southeast_unit">Пд-Усх</string> | ||
<string name="southwest_unit">Пд-Зх</string> | ||
<string name="northwest_unit">Пн-Зх</string> | ||
<string name="location_updated">Месца абноўлена</string> | ||
<string name="unknown">Невядомы</string> | ||
<string name="refresh">Абнавіць</string> | ||
<string name="dialog_store_location">Ці хочаш захаваць сваё месцазнахаджаньне?</string> | ||
<string name="no">Не</string> | ||
<string name="store_location">Захаваць месца</string> | ||
<string name="store_location_disabled">Немагчыма захаваць месца, бо невызначана</string> | ||
<string name="location_stored">Месца захавана</string> | ||
<string name="menu_details">Падрабязнасьці месца</string> | ||
<string name="activity_details">Падрабязнасьці</string> | ||
<string name="location_provider">Правайдар месцазнаходжаньня</string> | ||
<string name="provider">Правайдар</string> | ||
<string name="loc_provider_network">Сетка (сотавая або WiFi)</string> | ||
<string name="loc_provider_gps">GPS</string> | ||
<string name="provider_no_support">Правайдар не падтрымліваецца.</string> | ||
<string name="copyright">Права капіяваць</string> | ||
<string name="location">Месца</string> | ||
<string name="stored_location">Захаванае месца</string> | ||
<string name="curr_location">Апошняе месца</string> | ||
<string name="latitude">Шырата</string> | ||
<string name="latitude_north_unit">Пн</string> | ||
<string name="latitude_south_unit">Пд</string> | ||
<string name="longitude">Даўгата</string> | ||
<string name="longitude_east_unit">Усх</string> | ||
<string name="longitude_west_unit">Зх</string> | ||
<string name="altitude">Высата</string> | ||
<string name="speed">Хуткасьць</string> | ||
<string name="bearing">Азімут</string> | ||
<string name="sensor_bearing_offset">Зрух азімута паводле сэнсара</string> | ||
<string name="travel_direction">Напрамак руху</string> | ||
<string name="travel_direction_forward">Проста</string> | ||
<string name="travel_direction_backwards">Назад</string> | ||
<string name="accuracy">Дакладнасьць</string> | ||
<string name="timestamp">Час</string> | ||
<string name="destination">Мэта</string> | ||
<string name="to_dest">Да мэты</string> | ||
<string name="raw">Нефарматавана</string> | ||
<string name="none">Ніякі</string> | ||
<string name="notset">Неўстаноўлены</string> | ||
<string name="loc_updated_recent">Месца нядаўна абноўлена.</string> | ||
<string name="loc_updated_not_recent">Месца даўно не абнаўлялась.</string> | ||
<string name="settings">Налады</string> | ||
<string name="pref_header_general">Агульныя</string> | ||
<string name="pref_header_loc_update">Абнаўленьні месца</string> | ||
<string name="pref_loc_update_dist">Абнаўленьні паводле адлегласьці</string> | ||
<string name="pref_loc_update_time">Абнаўленьні паводле часу</string> | ||
<string name="pref_enable_sensors">Ужыць даступныя сэнсары</string> | ||
<string name="pref_geo_orientation_sensor">Сэнсар арыянтацыї па змоўчаньні</string> | ||
<string name="sensors_enabled">Увамкнёна: хутчэйшае абнаўленьне й дакладнейшы азімут</string> | ||
<string name="sensors_disabled">Вымкнена: ашчаджвае энергію</string> | ||
<string name="disabled">Вымкнена</string> | ||
<string name="about">Пра праґраму</string> | ||
<string name="version">Вэрсыя</string> | ||
<string name="build_time">Скампілявана %s.</string> | ||
<string name="app_website">Наведацца на <a href=%1$s>вэбсайт</a> па інфармацыю.</string> | ||
<string name="app_desc">Знайдзіце па каардынатах шлях туды, дзе ўжо пабывалі.</string> | ||
<string name="inaccurate_location">Тваё месцазнаходжаньне недакладнае</string> | ||
<string name="notice_no_dest">Захавай месцазнаходжаньне, каб накіравацца</string> | ||
<string name="inaccurate_direction">Прайдзі прама, ў патрэбным кірунку</string> | ||
<string name="notice_destination_reached">Ты на слушным кірунку</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<resources><string name="app_desc">Trobeu el camí de tornada a un lloc ja visitat utilitzant coordenades GPS.</string> | ||
<string name="inaccurate_location">La vostra posició actual és aproximada</string> | ||
<string name="notice_no_dest">Deseu la vostra posició per fixar un destí</string> | ||
<string name="inaccurate_direction">Comenceu-vos a moure per obtenir la direcció ajustada del vostre destí</string> | ||
<string name="notice_destination_reached">Heu arribat al vostre destí</string> | ||
<string name="current_speed">Velocitat actual</string> | ||
<string name="speed_kph">km/h</string> | ||
<string name="current_bearing">Rumb actual</string> | ||
<string name="distance">Distància</string> | ||
<string name="direction">Direcció</string> | ||
<string name="northeast_unit">NE</string> | ||
<string name="southeast_unit">SE</string> | ||
<string name="southwest_unit">SO</string> | ||
<string name="northwest_unit">NO</string> | ||
<string name="location_updated">Posició actualitzada</string> | ||
<string name="inaccurate">Aproximat</string> | ||
<string name="destination_reached">En destí</string> | ||
<string name="no_destination">Cap destí fixat</string> | ||
<string name="unknown">Desconegut</string> | ||
<string name="refresh">Actualitzar</string> | ||
<string name="dialog_store_location">Voleu desar la vostra posició actual?</string> | ||
<string name="no">No</string> | ||
<string name="store_location">Desa posició</string> | ||
<string name="store_location_disabled">No es pot desar una posició si aquesta no és la actual</string> | ||
<string name="location_stored">Posició desada</string> | ||
<string name="menu_details">Detalls de la posició</string> | ||
<string name="activity_details">Detalls</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.