Commit Graph

1253 Commits

Author SHA1 Message Date
Jeroen c62447c784 Fix broken url in translations README (#25546)
Fix url in README.md
2022-08-24 11:16:17 -07:00
Rewat S a34acc316e Add Thai translations (#25189)
* Add Thai translations

* update to add plurals

remove

* Update translations

* Update Thai translation to match English source.

* Add to badges

* use shorter km/h

* Add test for correct format specifier for plural translations

* pass new test

* Update some sentences to make it clear.
Change short form of some words.

* Hide from the UI

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-23 16:29:47 -07:00
Shane Smiskol 8b154fe271 Update translations 2022-08-23 11:18:23 -07:00
Cameron Clough b3cfe962cf user event flagging (#25517)
* setup home_btn in sidebar

* create UserFlag msg

* replay: show and skip to user flags

* update translations

* bump to cereal master

* remove comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-22 21:47:09 -07:00
Shane Smiskol ad8d3de0d9 Translations badges: concatenate into one badge (#25522)
* add badge

done correctly

works

Update translation_badge.svg
Update translation_badge.svg
Update translation_badge.svg
Update README.md
Update translation_badge.svg
Update translation_badge.svg
Update translation_badge.svg
Update badge

Update README.md
test this

try this

finalize

remove badges

fixup readme

add to test

fix

fix

rm

* clean up

* no formats
2022-08-22 20:39:54 -07:00
Shane Smiskol 844d4d2ece Multilang: add plural translation test (#25491)
Add test for correct format specifier for plural translations
2022-08-18 23:32:11 -07:00
eFini 1de8ad891b Fix is_rhd param name in map.cc (#25464) 2022-08-17 20:21:38 -07:00
Shane Smiskol 721fae7e8e Multilang: language policy (#25414)
* add draft translation merging policy

* Update policy copy

* copy

* add link

* Update selfdrive/ui/translations/README.md
2022-08-16 00:37:11 -07:00
Shane Smiskol e24da95120 Fix translations 2022-08-15 15:12:46 -07:00
Achilles308 370f58b7d6 UI: fix inconsistent capitalization in toggle title (#25441) 2022-08-15 13:49:43 -07:00
AlexandreSato 42e4efe706 Multilang: add Portuguese (Brazil) translation (#25287)
* Add Portuguese-Brazil translations

* Fixing some Japanese I used as a base.

* Add pt_BR translation

* Add QM file

* multilang: Fix typo and missing pt_BR translation

* fix typos in calibration translation

* pt_BR new translations

* fix translations

* update qm

* add Thai translation tkx tape#7233

* fix pt_BR translation

* improve pt_BR translation

* connect means connection not connected

* update

* plurals and typo

* fix unitTest error

* Add pt badge

* Add test for missing plural translations

* Make sure this doesn't test for translation completeness, we skip that test

* fix missing plurals

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-15 12:14:29 -07:00
cydia2020 f0214d5e83 Multilang: fill missing Japanese translations (#25418)
* japanese translations

* ENTER literally means enter

* This makes more sense

* finished

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-08-12 16:26:50 -07:00
Adeeb Shihadeh ac305dacef nav: same icon size for active & inactive lanes (#25383)
* nav: same icon size for active & inactive lanes

* update translations
2022-08-08 15:07:44 -07:00
Adeeb Shihadeh 2cff05be43 UI: exit gracefully (#25388)
* UI: exit gracefully

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2022-08-07 18:41:54 -07:00
Shane Smiskol 088719c86c Fix static analysis 2022-08-05 15:23:22 -07:00
Shane Smiskol eaf21e53e2 Multilang: test for vanished translations (#25342)
* Test for vanished translations

* this isn't needed anymore

* comment

* remove more unnecessary code since the great pluralization
2022-08-05 14:49:21 -07:00
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