Commit Graph

1282 Commits

Author SHA1 Message Date
Willem Melching 5e893f8a58 fix finding the lte connection (#25286)
old-commit-hash: ab236e5ae0330edd984c8f19e694ab50090e9183
2022-07-26 17:47:40 +02:00
Shane Smiskol bcbf8463e6 Multilanguage badges (#25244)
* Test badge

* fix?

* Test

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* try this

* need to build

* a minute for what

* download and commit test badge

* get dynamically

* fix

* Add to readme

* force push

* should work

* one step

* Update badge

* draft

* clean up

* remove these

* one line is fine

* Adding badges will have to be manual, but that should be fine

* cause error

* continue on error

* hope this doesn't delete the badges

* ugh, allow-failures would be so nice

* whoops

* yep need this

* do this

* now try a push

* clean up

* rm line

* need this

* see if this works

* orange

* does this work?

* ?

* do dis

* needs to be global?

* cool, this works

cool, this works

* run only on master

* add back workflows

* remove that

* sorting

* sorting

* print badge markdown

* it is bytes though?

* run once more

* revert

* looks nicer

* strange

* no decimals

* run again

run once more

* nice workflow_dispatch

* only run on a schedule and remove error handling

* make links absolute

* adjust badge text
old-commit-hash: 9ab1c492dd051276a422fbac38f754c4e6633f32
2022-07-22 14:07:54 -07:00
cydia2020 d9f897ce31 Multilang: finish unfinished Simplified Chinese translations (#25247)
* Finish unfinished translation

* Update main_zh-CHS.ts
old-commit-hash: daded8ebebb47d79fd0847b9a802d255df4eb02c
2022-07-22 10:18:45 -07:00
eFini cecd535c6f Chinese (Traditional): Add/improve translations (#25228)
fixed readme

shortened ETA & revert unit
old-commit-hash: cb73f9dbc38fff4ab249d8379a788a6b6d7770e3
2022-07-21 13:50:04 -07:00
Lee Jong Mun cbd1b9bc30 Multilanguage: Korean improvements/translations (#25231)
* Update util.cc

* Revert "Update util.cc"

This reverts commit d7d2f4f6c16785084375b8b8e3ae63dda414c872.

* Multilanguage: kor translations update
old-commit-hash: e66145f9e0ec561a2e630e03e2c94d760874fc48
2022-07-21 10:24:40 -07:00
Willem Melching 95fb15aa5f prereq for matching speeds shown on cars dash (#25222)
* prereq for matching speeds shown on cars dash

* also handle fallback in the ui for replay

* update translations

* update ref
old-commit-hash: c3e95d5e194be9d445f54661d0ae0f0612db6a62
2022-07-21 14:48:08 +02:00
Shane Smiskol 13a1c77051 multilanguage: compile QM in scons (#25217)
* All in scons

* delete all this

* delete the qm files

* No need to check QM files in test_translations.py anymore

* readme

* add lupdate to third party

* fix

* one line

* update files_common

* readme imp

* add j flag

* add to path

* duplicate scons!

* update readme

* fix path

fix path

fix path

* no path
old-commit-hash: c528decd17a71bb8f9eb0be2f0d78ccc2e74f70a
2022-07-20 18:44:47 -07:00
Shane Smiskol 8dca2bb404 Improve Japanese translations (#25226)
* Minor Japanese improvements

* fix

rm

Co-authored-by: PONPC <fuzitanirenti@yahoo.co.jp>
old-commit-hash: 180c2abdd9a99f0851a1bc0b3dc2a4f3ab55ddf8
2022-07-20 14:11:59 -07:00
cydia2020 6ca9144357 Multilang: Improve Japanese translations (#25108)
* improve japanese translation

* characteristics is probably the better word to use

* more explicit

* misc fix

* space

* translate Dongle ID

* drive -> driving history

* more appropriate translation for minimum character requirement

This is hacky and should be fixed

* copy the home work of the chinese translators

* full width -> half width

* better speed translations

* device pairing procedures

* main features -> perks

* subscribed -> joined (as member)

* stop update -> pause update

* add japanese to language.json

* qm

* honorific

* shorter texts for buttons

* close -> recent

* maximising driver monitoring performance -> improving driver monitoring performance

* developer perks -> developer facing perks

* expressions

* expressions

* full width exclamation mark

* accel pedal to cancel -> tap accel to cancel openpilot

* qm

* deal with unfinished translations

* qm

* change all mentions of driver camera to interior camera

* failed to obtain update -> error while downloading update

* update translation file

* update qm

* remove google translate

* this device is facing %2's %1 deg, %4's %3 deg

* ja qm

* reword this

* ensure -> confirm

* better wording for device reset page

* more consistent

* wording

* qm

* mark as finished

* update after translation refactor

* bump translation

* update translation to reflect new changes

* Japanese qm

* update translations

* remove from selector

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 26dad2423bd4078aab249ea9db3301a2a8a6c73e
2022-07-19 15:56:06 -07:00
Shane Smiskol 4a3dd13898 Multilanguage: readme improvements (#25214)
* catch2 needs to iterate through the whole function each time to test this (spams warnings)

* Update readme

* Add update the ui header

* build in scons

* release by default

* scons in another pr

Co-authored-by: Vincent Wright <vincentw@kmwperformance.com>
old-commit-hash: 464db126a551639b036c4a5e4e494684c68f56f2
2022-07-19 12:38:58 -07:00
Shane Smiskol 01ec6c16c1 Update translations
old-commit-hash: 30f21cb8fd2cae562fa7f2f5486d360366b6e938
2022-07-19 12:34:06 -07:00
Adeeb Shihadeh d2d4ad7ad5 UI: add description for branch switcher
old-commit-hash: 50f7545ed7ef008526b6b081bbc2f96e05fc54e1
2022-07-19 10:46:03 -07:00
Willem Melching 2f4d4cd8c5 navd: add back VisionIPC map renderer (#25212)
* builds standalone

* process live msg

* render into nv12a

* VISION_STREAM_RGB_MAP -> VISION_STREAM_MAP

* cleanup sconscript

* main include cleanup
old-commit-hash: 86c1e8164ab6b1c3363f7833b7dc0ea735dd26db
2022-07-19 16:57:13 +02:00
Shane Smiskol 58c7b65b78 Fix release tests
old-commit-hash: 758069464cfcc2d0c3c991533aa800707aa823c1
2022-07-18 22:05:11 -07:00
Adeeb Shihadeh 95df2c9b48 updated: add branch switching (#25200)
* switch param

* add to ui

* fix that

* fetch for new branch

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cc3857eb62cd169be05a4cb22c844a8b2ec94139
2022-07-18 21:18:10 -07:00
Greg Hogan 5dd12e194b nav: toggle to show on left side of onroad ui (#25169)
* nav: show on left side of onroad ui

* add toggle

* capitalization

* update translations

* single params object

* skip unfinished translations test

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 93cd0285ac014427cdd137fa2c8852c58bdef4db
2022-07-18 13:57:21 +02:00
Shane Smiskol 7407b4683d Multilanguage Contributing README (#25170)
* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* typo
old-commit-hash: 93a1ca8351d93adfc18d5a9c99ce2bb908cb43b6
2022-07-13 23:51:32 -07:00
Willem Melching ce7948464f nav: draw inactive lanes with 50% opacity (#25157)
* nav: draw inactive lanes with 50% opacity

* update ts
old-commit-hash: 49dd56fc241d5ea3e0ab37e10175ad545ef4d528
2022-07-13 17:58:45 +02:00
Shane Smiskol d3c4739ce1 UI: translations cleanup (#25120)
* Make this one translation

* Remote html from translations

* getBrand as argument

* some stuff

* Forget Wi-Fi network

* Update translations

* Remove obsolete

* compilation fixes

* remove

* Fix missing translation
old-commit-hash: 3b4e939b9f88b70727e687613a912aef36178755
2022-07-12 19:58:39 -07:00
ZwX1616 987c975e02 UI: change wording for dcam preview description (#25142)
old-commit-hash: b632d56244c5fd6821477a642d6f151ea4b13b20
2022-07-12 16:39:13 -07:00
Lee Jong Mun 77a6b2d0cd Improve Korean translations (#25105)
* kor translations fix

update_translations --release

qm

* space

* qm

* map setting tr space remove

* ts update

fix

ko_update

ch_update

* qm release

* Update QM

* Fix this translation

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 903bb405286295b48d5192cb2a7b2c01029193e3
2022-07-11 16:51:03 -07:00
ZwX1616 b8ba8d90b1 update main_zh-CHS.qm
old-commit-hash: 30d88d6892f11bf2472d97d79e9f68bef9e01b3c
2022-07-11 13:45:45 -07:00
ZwX1616 79e2fa98e7 fix a translation line break
old-commit-hash: c181d475c52798462c5b2a2cf2237eebde0fa26d
2022-07-11 13:41:55 -07:00
ZwX1616 373198bd2f Improve Simplified Chinese translations (#25091)
* 1

* shane told me to do this

* 1.5

* 2

* 3

* 4

* Update main_zh-CHS.ts

* release

* some minor improvements

* build

* remove state

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5e896ce2f134b9f17d466bf1aec694142bcb5ed3
2022-07-11 13:22:13 -07:00
Dean Lee 8ca0e9b941 Display the current language in MultiOptionDialog (#25098)
* check the selected language in lange select dialog

* disable if user selects current option

* update line numbers

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: eb17291ca13035b40d653da107653d4420517aaa
2022-07-09 01:47:10 -07:00
Shane Smiskol 314166f5fd Nav: wrap strings (#25089)
* Wrap nav strings and translate

* Update QM

* Update QM
old-commit-hash: cbff8fcbd02b262860b3540a3dba7108237d2b46
2022-07-08 21:17:00 -07:00
Shane Smiskol 23de7b166e UI: Internationalization support (#21212)
* rough multiple language demo

* more wrappings

* stash

* add some bad translations

* updates

* map from french to spanish still has same problem of needing to call setText on everything

* add files

* restart UI

* use return code

* relative path

* more translations

* don't loop restart

* Toggle and prime translations

* try on device

* try QComboBox with readable style

* stash

* not yet scrollable

* stash

* dynamic translations (doesn't work for dynamic widget strings yet)

* clean up multiple option selector

* store languages in json

* try transparent

* Try transparent popup

* see how this looks

* tweaks

* clean up

* update names

* Add Chinese (Simplified) translations

* Do missing French translations

* unit tests caught that :)

* fix test

* fix other test (on PC)

* add entries to dialog to test

* add cancel button, clean up a bit

* just chinese

* some clean up

* use quotes

* clean up

* Just quit, set timeout to 0

* half a second

* use exitcode

* don't print if it's expected

* this comment is outdated

* update translations

* Update translations

* re-order input classes

* Update line numbers

* use enabled property for button style

* Get rid of ListWidget

* Update line numbers

* Log failed to load language

* Log failed to load language

* Move to utils and fix english logging

extra line

* Update translations

* spacing

* looks a bit better

* try this instead of exitcode

fixes

fix

* only one function

* comment

* Update line numbers

* fixup some japanese translations

* clean up multi option dialog

* Update line numbers
old-commit-hash: 949de4d2b6b293d9f77d83c58212f5dee176cbf1
2022-07-08 20:25:54 -07:00
Mr.one b8a8440611 Improve Chinese (Simplified) translations (#25075)
* Optimize Chinese local translation

* update QM

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: e0f8f50baa209f0f5fc713100bcec16411cd5925
2022-07-08 12:49:04 -07:00
eFini 68885c6b99 Add Traditional Chinese translations (#25077)
* Create main_zh-CHT

* Update

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 0b6cf0481c07323ee427655a5849c90d9c623e64
2022-07-08 12:12:14 -07:00
Willem Melching c20b96764c nav: use laikad position if locationd is not yet available (#25033)
* ui: use laikad position when locationd is not ready

* cleanup

* same threshold as locationd

* use first bearing directly

* use in navd too
old-commit-hash: a9401319dfa89fea2d2699aaddc758cbc47b6396
2022-07-08 09:20:36 -07:00
Shane Smiskol 1137b56f4b Add Japanese translations (#25078)
* Add Japanese translations

* test japanese

* update tr file

* test for unfinished translation tags

* add compiled QM

add compiled QM

* mark as finished

* remove from tests, needs some design decisions

Co-authored-by: PONPC <fuzitanirenti@yahoo.co.jp>
old-commit-hash: 5b4e39990ac4d098f874c8f1e378e2ab855c0036
2022-07-08 00:41:17 -07:00
Lee Jong Mun 23f01bff6a Add Korean translations (#25073)
* Add Korean translations

Signed-off-by: crwusiz <crwusiz@gmail.com>

* line error fix

Signed-off-by: crwusiz <crwusiz@gmail.com>

* space error retry

Signed-off-by: crwusiz <crwusiz@gmail.com>

* &quot fix

Signed-off-by: crwusiz <crwusiz@gmail.com>

* translation --release

* main_ko.qm remove

* main_ko.qm remake

* Update ko and fix zh

* fix Linguist warnings

* commit noun

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: ed47032a6d51d1aeaf4cd553ae9b350e04672558
2022-07-08 00:03:57 -07:00
Adeeb Shihadeh 7e10f872cf UI: fix reset calibration description
old-commit-hash: ff3f6de149475ce995c21f8308da0bbc08922c54
2022-07-07 16:53:34 -07:00
Dean Lee 92da40952f UI: fix unable to scroll on 'Regulatory' page (#25014)
* fix unable to scroll on 'Regulatory' page

deleteLater after hide

* remove alert

* override exec

* set MousePressEventDelay to 0

* set to 0.01

* cleanup

* check event->pos()
old-commit-hash: dc3d94d662654a6bb2bf40560c2a17ed2303fa80
2022-07-07 15:01:02 -07:00
Shane Smiskol 79c27c0ec2 Add Chinese (traditional) translations (#25064)
* Add Chinese translations

* wrap these

* add to languages.json

* fix tests

* use tmp dir for tests (doesn't change translation files in git repo)

* defaultdict not used

* update main_zh.ts (test outdated QM file)

* test outdated QM file (prev commit tests missing)

* update qm file

* add sidebar translations

* no need for function
old-commit-hash: bd2ea158977f5c26658bed8ac683b72c2c592d06
2022-07-07 14:19:30 -07:00
Willem Melching 5751d166bb onroad.cc: fix mutcd sign width for metric speed limit
old-commit-hash: a3a9a0685c63ea57dc936e496cd5e6be5a71512e
2022-07-07 12:02:31 +02:00
Dean Lee da42de3d6a settings.cc: remove function network_panel (#25030)
remove function network_panel
old-commit-hash: 5f794fe49a1e0f2849e6a979c7bd12ca5ddb060a
2022-07-04 13:55:00 +02:00
Willem Melching 917ea653e9 cameraview.cc: qInfo -> qDebug
old-commit-hash: ca800da8951f83892a3593b2203e74be6af53844
2022-06-30 14:25:32 +02:00
Willem Melching bfcd08324c cameraview.cc: prev_frame_id static -> class member
old-commit-hash: af7d3c115a4780ad734c3f3a8d0084dd506aefec
2022-06-30 14:22:55 +02:00
Shane Smiskol cb82e76c75 Multilang prerequisites (#24999)
* some supporting code for multilang

* for now just english

* test for missing language files

* test for checking if ts file is up to date

* Skip test if causes exception, other test catches this

Test test

Should also work

should now fail

revert

rmn

* add to files_common

* fix files_common

* newlines

* no need to not update

* comment

* only english

* double quotes

* switch around
old-commit-hash: 7178800d844469601cb779d8f76b568ff82ac766
2022-06-30 11:02:53 +02:00
Dean Lee 98046a880e ui: replace line_vertices_data with QPolygonF (#25001)
use QPolygonF

use push_front
old-commit-hash: 867a1cf35a200c10c9ea513140b74be04ce4bb83
2022-06-30 10:57:47 +02:00
Dean Lee 65e6ba763e Multilang: remove redundant QString() around tr() (#25003)
remove qstring
old-commit-hash: 8d53e2c2b4e549119538d1baf36d202dbe33d012
2022-06-30 10:55:49 +02:00
Shane Smiskol 2c5e890a23 UI: wrap all text for translation (#24961)
* rough multiple language demo

* more wrappings

* stash

* add some bad translations

* updates

* map from french to spanish still has same problem of needing to call setText on everything

* add files

* restart UI

* use return code

* relative path

* more translations

* don't loop restart

* Toggle and prime translations

* try on device

* try QComboBox with readable style

* stash

* not yet scrollable

* stash

* dynamic translations (doesn't work for dynamic widget strings yet)

* clean up multiple option selector

* store languages in json

* try transparent

* Try transparent popup

* see how this looks

* tweaks

* clean up

* clean up

* clean up 2 and missing tr

* wrap more strings

* missing updater

* fixes

* add basic test to ensure all strings wrapped

* try in CI

* clean up

* test name

* fix test

* always install qt dev tools

* fix deps

* fast test

* add section so it prints multiple errors

* debug

* debug

get rid of those

* make any difference?

* comment

* oh...

* run with offscreen platform

* try out section

* clean up

* fix missing wrappings (it works!)

* move down

* space

* clear relevant params, set TICI=1
old-commit-hash: 879a7c3201a037c27c92ad6b92143114f52f29d3
2022-06-29 14:47:46 -07:00
Dean Lee 2156e71e7a move replay from selfdrive/ui/replay to tools/replay (#24971)
* mv to tools/replay

* change folder

* add .gitignore

* fix build doc

* disable warning

* enable warning after build

* build qt/util.cc qt/api.cc to library

* cleanup
old-commit-hash: fd5b3d76036b78864111790931a3abcb1d11ee0f
2022-06-28 16:12:42 +02:00
Willem Melching 403266fdb1 ui: disable sync with model until more stable (#24984)
old-commit-hash: 338df150d5112d4c6772edb797cb45370fdc3599
2022-06-28 15:48:57 +02:00
Shane Smiskol 0c32c661eb onroad UI: fix onroad double tap (#24982)
* The default implementation calls mousePressEvent().

* no sidebar when entering body

* wrong one

* you can't double tap with body anyway (fixes inconsistencies with prime vs not prime)

* hide sidebar
old-commit-hash: 3a2bcc092c74925edb161959cdcc66073a9cd8f3
2022-06-28 01:08:11 -07:00
Willem Melching c88c78a13b ui: use current calibration to center vanishing point (#24955)
* compute x and y offsets using calibration

* fix default calibration

* clamp to max values

* only use when valid

* not while calibrating

* less diff

* cleanup zoom
old-commit-hash: 915b4928ff044302bba0e8bdf15f154646f528e6
2022-06-27 16:03:26 +02:00
Willem Melching d3d90ef5d2 remove Open Sans fonts from assets (#24946)
old-commit-hash: 1908b89e29a968a3f1b8dd8cdd8213570e02c186
2022-06-22 20:41:24 +02:00
Willem Melching 53c8d96240 ui: change set speed, speed limit and current speed to Inter (#24932)
* ui: change set speed/speed limit to Inter

* switch current speed to Inter
old-commit-hash: 05e7ce731f4259a569f5d28392a0d576e90dec1b
2022-06-22 11:46:16 +02:00
Willem Melching e9677da2d4 ui: change sidebar font to Inter (#24931)
* change sidebar to inter

* clean up metric color rect radius

* fix text placement

* simplify rect placement
old-commit-hash: 963de402115a4eb8eb7944c5f5233e47dea31543
2022-06-22 11:46:00 +02:00