Commit Graph

1304 Commits

Author SHA1 Message Date
Rewat S 82167915a8 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>
old-commit-hash: a34acc316e8c4fc6d4ea101ef58919686cd0807c
2022-08-23 16:29:47 -07:00
Shane Smiskol 803e81494d Update translations
old-commit-hash: 8b154fe27145f529d2459658e25cdd02f3fc9b5c
2022-08-23 11:18:23 -07:00
Cameron Clough 07084dcbaf 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>
old-commit-hash: b3cfe962cf346e70cce1389fe3c9bf23344a5512
2022-08-22 21:47:09 -07:00
Shane Smiskol 68eae853c2 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
old-commit-hash: ad8d3de0d9abedc7c9db177b6c4a6b1a0fb03020
2022-08-22 20:39:54 -07:00
Shane Smiskol 50fb17775d Multilang: add plural translation test (#25491)
Add test for correct format specifier for plural translations
old-commit-hash: 844d4d2eceee487aaaf27601522cb9b9bb351614
2022-08-18 23:32:11 -07:00
eFini 9ca692179f Fix is_rhd param name in map.cc (#25464)
old-commit-hash: 1de8ad891bcf8c0b73b24f7e3eab17f3448e7473
2022-08-17 20:21:38 -07:00
Shane Smiskol fc494c2a2d Multilang: language policy (#25414)
* add draft translation merging policy

* Update policy copy

* copy

* add link

* Update selfdrive/ui/translations/README.md
old-commit-hash: 721fae7e8e0fdf239c2ef5bf138c8e7ca7f16771
2022-08-16 00:37:11 -07:00
Shane Smiskol f0403f1468 Fix translations
old-commit-hash: e24da95120aad859e8946c46ace7ee2e09b856e7
2022-08-15 15:12:46 -07:00
Achilles308 940cf9a1b8 UI: fix inconsistent capitalization in toggle title (#25441)
old-commit-hash: 370f58b7d677ee85249122b60362f4c323a30e95
2022-08-15 13:49:43 -07:00
AlexandreSato 14a6aa77d6 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>
old-commit-hash: 42e4efe706ab41958dc1877701fc947149baf053
2022-08-15 12:14:29 -07:00
cydia2020 58f654e456 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>
old-commit-hash: f0214d5e83661cf6d7bada40a6ffef703609b4fe
2022-08-12 16:26:50 -07:00
Adeeb Shihadeh 62b8b25cdf nav: same icon size for active & inactive lanes (#25383)
* nav: same icon size for active & inactive lanes

* update translations
old-commit-hash: ac305dacef7b4267131543194e16c569488310fe
2022-08-08 15:07:44 -07:00
Adeeb Shihadeh 76a74b6830 UI: exit gracefully (#25388)
* UI: exit gracefully

* cleanup

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

* this isn't needed anymore

* comment

* remove more unnecessary code since the great pluralization
old-commit-hash: eaf21e53e2a3e3e988b661412c919a331b5cf2a9
2022-08-05 14:49:21 -07:00
Shane Smiskol 83ff495062 vEgoCluster: fix starting from stop (#25350)
* we can't switch back and forth

* update translations
old-commit-hash: b6910923d18af7332f781a7c83b2601fd7862e3f
2022-08-03 21:03:53 -07:00
Shane Smiskol 8c58f12e9e Multilang: add Japanese to UI (#25339)
* Add Japanese to UI

* Add Enlish and Japanese badges
old-commit-hash: 1cf2f9fc1316738f72e85052b0f9ffd74c369b1f
2022-08-02 19:29:33 -07:00
Shane Smiskol 76334fc278 Fix missing Korean translations (#25340)
Fix missing ko translations
old-commit-hash: abf9df336e6498b574e32083b214dbcc9458dac9
2022-08-02 13:49:03 -07:00
Shane Smiskol f1cb3ce929 Remove obsolete translations (#25338)
old-commit-hash: 51b1d99f0cd00327b9cfc3da02e859082cd9c0ea
2022-08-02 12:47:24 -07:00
Shane Smiskol 9e06421bfe Multilang: handle localized plurals (#25337)
* Add localized plural handling

* Do another location with plurals

* fix test
old-commit-hash: ecba8732088d27fac84c9d1c84c6082e0638009f
2022-08-02 12:44:21 -07:00
Adeeb Shihadeh 5933e51f8c internal installer: set param for disable radar toggle
old-commit-hash: 21719aa824f0b88ee2bc248347831cb21004a87f
2022-08-01 09:56:20 -07:00
ZwX1616 6e5393367d 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>
old-commit-hash: 22408781f7d7df5ff0395f80c1b15d6407acd0ff
2022-07-29 13:52:24 -07:00
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