Commit Graph

1237 Commits

Author SHA1 Message Date
Shane Smiskol b6910923d1 vEgoCluster: fix starting from stop (#25350)
* we can't switch back and forth

* update translations
2022-08-03 21:03:53 -07:00
Shane Smiskol 1cf2f9fc13 Multilang: add Japanese to UI (#25339)
* Add Japanese to UI

* Add Enlish and Japanese badges
2022-08-02 19:29:33 -07:00
Shane Smiskol abf9df336e Fix missing Korean translations (#25340)
Fix missing ko translations
2022-08-02 13:49:03 -07:00
Shane Smiskol 51b1d99f0c Remove obsolete translations (#25338) 2022-08-02 12:47:24 -07:00
Shane Smiskol ecba873208 Multilang: handle localized plurals (#25337)
* Add localized plural handling

* Do another location with plurals

* fix test
2022-08-02 12:44:21 -07:00
Adeeb Shihadeh 21719aa824 internal installer: set param for disable radar toggle 2022-08-01 09:56:20 -07:00
ZwX1616 22408781f7 Remove RHD toggle: determine by driver side instead (#24802)
* driverview

* auto choose

* useless

* remove

* modeld not use toggle

* remove from params

* should have commissue anyway

* delete icon file

* deal with init more elegantly and prohibit switching when engaged

* nonblock save when not unstable

* filter very low speeds

* a few more secs dont harm

* draw icon

* match

* radius

* use const

* ref commit

* new transs

* put_bool_nonblocking

* 5k route tune

* ref comm

Co-authored-by: Comma Device <device@comma.ai>
2022-07-29 13:52:24 -07:00
Willem Melching ab236e5ae0 fix finding the lte connection (#25286) 2022-07-26 17:47:40 +02:00
Shane Smiskol 9ab1c492dd 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
2022-07-22 14:07:54 -07:00
cydia2020 daded8ebeb Multilang: finish unfinished Simplified Chinese translations (#25247)
* Finish unfinished translation

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

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

* Revert "Update util.cc"

This reverts commit d7d2f4f6c16785084375b8b8e3ae63dda414c872.

* Multilanguage: kor translations update
2022-07-21 10:24:40 -07:00
Willem Melching c3e95d5e19 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
2022-07-21 14:48:08 +02:00
Shane Smiskol c528decd17 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
2022-07-20 18:44:47 -07:00
Shane Smiskol 180c2abdd9 Improve Japanese translations (#25226)
* Minor Japanese improvements

* fix

rm

Co-authored-by: PONPC <fuzitanirenti@yahoo.co.jp>
2022-07-20 14:11:59 -07:00
cydia2020 26dad2423b 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>
2022-07-19 15:56:06 -07:00
Shane Smiskol 464db126a5 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>
2022-07-19 12:38:58 -07:00
Shane Smiskol 30f21cb8fd Update translations 2022-07-19 12:34:06 -07:00
Adeeb Shihadeh 50f7545ed7 UI: add description for branch switcher 2022-07-19 10:46:03 -07:00
Willem Melching 86c1e8164a 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
2022-07-19 16:57:13 +02:00
Shane Smiskol 758069464c Fix release tests 2022-07-18 22:05:11 -07:00
Adeeb Shihadeh cc3857eb62 updated: add branch switching (#25200)
* switch param

* add to ui

* fix that

* fetch for new branch

Co-authored-by: Comma Device <device@comma.ai>
2022-07-18 21:18:10 -07:00
Greg Hogan 93cd0285ac 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>
2022-07-18 13:57:21 +02:00
Shane Smiskol 93a1ca8351 Multilanguage Contributing README (#25170)
* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* typo
2022-07-13 23:51:32 -07:00
Willem Melching 49dd56fc24 nav: draw inactive lanes with 50% opacity (#25157)
* nav: draw inactive lanes with 50% opacity

* update ts
2022-07-13 17:58:45 +02:00
Shane Smiskol 3b4e939b9f 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
2022-07-12 19:58:39 -07:00
ZwX1616 b632d56244 UI: change wording for dcam preview description (#25142) 2022-07-12 16:39:13 -07:00
Lee Jong Mun 903bb40528 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>
2022-07-11 16:51:03 -07:00
ZwX1616 30d88d6892 update main_zh-CHS.qm 2022-07-11 13:45:45 -07:00
ZwX1616 c181d475c5 fix a translation line break 2022-07-11 13:41:55 -07:00
ZwX1616 5e896ce2f1 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>
2022-07-11 13:22:13 -07:00
Dean Lee eb17291ca1 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>
2022-07-09 01:47:10 -07:00
Shane Smiskol cbff8fcbd0 Nav: wrap strings (#25089)
* Wrap nav strings and translate

* Update QM

* Update QM
2022-07-08 21:17:00 -07:00
Shane Smiskol 949de4d2b6 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
2022-07-08 20:25:54 -07:00
Mr.one e0f8f50baa Improve Chinese (Simplified) translations (#25075)
* Optimize Chinese local translation

* update QM

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

* Update

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-07-08 12:12:14 -07:00
Willem Melching a9401319df 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
2022-07-08 09:20:36 -07:00
Shane Smiskol 5b4e39990a 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>
2022-07-08 00:41:17 -07:00
Lee Jong Mun ed47032a6d 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>
2022-07-08 00:03:57 -07:00
Adeeb Shihadeh ff3f6de149 UI: fix reset calibration description 2022-07-07 16:53:34 -07:00
Dean Lee dc3d94d662 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()
2022-07-07 15:01:02 -07:00
Shane Smiskol bd2ea15897 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
2022-07-07 14:19:30 -07:00
Willem Melching a3a9a0685c onroad.cc: fix mutcd sign width for metric speed limit 2022-07-07 12:02:31 +02:00
Dean Lee 5f794fe49a settings.cc: remove function network_panel (#25030)
remove function network_panel
2022-07-04 13:55:00 +02:00
Willem Melching ca800da895 cameraview.cc: qInfo -> qDebug 2022-06-30 14:25:32 +02:00
Willem Melching af7d3c115a cameraview.cc: prev_frame_id static -> class member 2022-06-30 14:22:55 +02:00
Shane Smiskol 7178800d84 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
2022-06-30 11:02:53 +02:00
Dean Lee 867a1cf35a ui: replace line_vertices_data with QPolygonF (#25001)
use QPolygonF

use push_front
2022-06-30 10:57:47 +02:00
Dean Lee 8d53e2c2b4 Multilang: remove redundant QString() around tr() (#25003)
remove qstring
2022-06-30 10:55:49 +02:00
Shane Smiskol 879a7c3201 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
2022-06-29 14:47:46 -07:00