mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-27 01:33:59 +08:00
* 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: 879a7c3201
19 lines
550 B
Bash
Executable File
19 lines
550 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
UI_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"/..
|
|
TEST_TEXT="(WRAPPED_SOURCE_TEXT)"
|
|
TEST_TS_FILE=$UI_DIR/translations/main_test_en.ts
|
|
TEST_QM_FILE=$UI_DIR/translations/main_test_en.qm
|
|
|
|
# translation strings
|
|
UNFINISHED="<translation type=\"unfinished\"><\/translation>"
|
|
TRANSLATED="<translation>$TEST_TEXT<\/translation>"
|
|
|
|
mkdir -p $UI_DIR/translations
|
|
rm -f $TEST_TS_FILE $TEST_QM_FILE
|
|
lupdate -recursive "$UI_DIR" -ts $TEST_TS_FILE
|
|
sed -i "s/$UNFINISHED/$TRANSLATED/" $TEST_TS_FILE
|
|
lrelease $TEST_TS_FILE
|