Compare commits

..

17 Commits

Author SHA1 Message Date
50d8b024b6 Add helper scripts 2021-10-08 17:03:28 +02:00
bfb1270131 New release v1.9.0-sc.1 2021-10-07 23:07:18 +02:00
5dcd48b4d5 Translated using Weblate (German)
Currently translated at 100.0% (38 of 38 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/de/
2021-10-07 23:00:31 +02:00
bd2d3d27a3 Add some sc specific strings 2021-10-07 22:50:36 +02:00
a1dcd4c7a3 Merge remote-tracking branch 'weblate/sc' into sc 2021-09-28 17:27:07 +02:00
32a1898fc0 Use new helpers in merge script 2021-09-28 17:26:53 +02:00
d674744588 Add version helpers
Close #97
Co-authored-by: Finn Behrens <me@kloenk.dev>
2021-09-28 17:23:48 +02:00
8ecdbb82b0 Add helpers for overlaying package.json 2021-09-28 12:46:07 +02:00
a2d5ca9656 Added translation using Weblate (Vietnamese) 2021-09-27 11:05:12 +02:00
307541ac00 Added translation using Weblate (Vietnamese) 2021-09-27 11:05:10 +02:00
11cef45048 Added translation using Weblate (Vietnamese) 2021-09-27 11:05:09 +02:00
312b0ef380 Translated using Weblate (German)
Currently translated at 100.0% (33 of 33 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/de/
2021-09-23 17:54:15 +02:00
9ca2ebb64f Translated using Weblate (Czech)
Currently translated at 100.0% (33 of 33 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/cs/
2021-09-23 17:54:15 +02:00
a88415936c Translated using Weblate (Czech)
Currently translated at 100.0% (29 of 29 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/cs/
2021-09-23 17:22:27 +02:00
b3b5688a42 Translated using Weblate (Swedish)
Currently translated at 93.1% (27 of 29 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/sv/
2021-09-23 17:22:27 +02:00
Vib
48fca325c9 Translated using Weblate (Romanian)
Currently translated at 89.6% (26 of 29 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/ro/
2021-09-23 17:22:27 +02:00
e79c17cb87 Add sc specific strings 2021-09-23 17:21:51 +02:00
17 changed files with 278 additions and 27 deletions

20
bump_release_version.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
pushd "$mydir" > /dev/null
source ./merge_helpers.sh
# Check branch
check_branch $branch
forall_repos check_branch $branch
# Ensure clean git state
forall_repos check_clean_git
bump_release_version
popd > /dev/null

20
bump_test_version.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
pushd "$mydir" > /dev/null
source ./merge_helpers.sh
# Check branch
check_branch $branch
forall_repos check_branch $branch
# Ensure clean git state
forall_repos check_clean_git
bump_test_version
popd > /dev/null

View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1 @@
{}

View File

@ -14,5 +14,23 @@
"Light theme": "Světlý motiv",
"Dark theme": "Tmavý motiv",
"Add custom theme": "Přidat vlastní motiv",
"Theme in use": "Používaný motiv"
"Theme in use": "Používaný motiv",
"User name color mode": "Barevný režim uživatelského jména",
"Uniform": "Jednotný",
"PowerLevel": "Úroveň oprávnění",
"MXID": "MXID",
"In group chats": "Ve skupinových chatech",
"In public rooms": "Ve veřejných místnostech",
"All rooms you're in will appear in Home.": "Všechny místnosti, ve kterých se nacházíte, se zobrazí v domovském zobrazení.",
"Show all rooms in Home": "Ukázat všechny místnosti v domovském zobrazení",
"Show people in spaces": "Ukázat lidi v prostorech",
"Show notification badges for People in Spaces": "Zobrazit odznaky oznámení pro Lidé v prostorech",
"Return to the room previously opened in a space": "Návrat do dříve otevřené místnosti v prostoru",
"If disabled, the space overview will be shown when switching to another space.": "Pokud je vypnuto, zobrazí se při přepnutí do jiného prostoru přehled prostorů.",
"For people": "Pro osoby",
"If disabled, you can still add Direct Messages to Personal Spaces. If enabled, you'll automatically see everyone who is a member of the Space.": "Pokud je zakázáno, můžete stále přidávat přímé zprávy do osobních prostorů. Pokud je povoleno, automaticky se zobrazí všichni, kteří jsou členy daného prostoru.",
"Intermediate: medium sized avatar with single-line preview": "Střední: středně velký avatar s jednořádkovým náhledem",
"Roomy: big avatar with two-line preview": "Prostorný: velký avatar s dvouřádkovým náhledem",
"Room list style": "Styl seznamu místností",
"Compact: tiny avatar together with name and preview in one line": "Kompaktní: malý avatar spolu se jménem a náhledem v jednom řádku"
}

View File

@ -86,7 +86,7 @@
"Enable experimental, compact IRC style layout": "Kompaktes, experimentelles Layout im IRC-Stil aktivieren",
"Enable layout with message bubbles": "Layout mit Sprechblasen aktivieren",
"Show message bubbles on one side only": "Sprechblasen nur auf einer Seite anzeigen",
"Show message bubbles depending on the width either on both sides or only on one side": "Sprechblasen abhänging von der Breite auf beiden Seiten oder nur einer Seite anzeigen",
"Show message bubbles depending on the width either on both sides or only on one side": "Sprechblasen abhängig von der Breite auf beiden Seiten oder nur einer Seite anzeigen",
"%(brand)s can't securely cache encrypted messages locally while running in a web browser. Use <desktopLink>%(brand)s Desktop</desktopLink> for encrypted messages to appear in search results.": "%(brand)s kann verschlüsselte Nachrichten nicht sicher während der Ausführung im Browser durchsuchen. Benutze <desktopLink>%(brand)s Desktop</desktopLink>, um verschlüsselte Nachrichten in den Suchergebnissen angezeigt zu bekommen.",
"Use default": "Standardeinstellungen benutzen",
"Your firewall or anti-virus is blocking the request.": "Deine Firewall oder dein Antivirenprogramm blockiert die Anfrage.",
@ -129,5 +129,14 @@
"All rooms you're in will appear in Home.": "Alle Räume, in denen du dich befindest, werden auf der Startseite angezeigt.",
"Show people in spaces": "Personen in Spaces anzeigen",
"If disabled, you can still add Direct Messages to Personal Spaces. If enabled, you'll automatically see everyone who is a member of the Space.": "Falls deaktiviert, kannst du trotzdem Direktnachrichten in privaten Spaces hinzufügen. Falls aktiviert, wirst du alle Mitglieder des Spaces sehen.",
"For people": "Für Personen"
"For people": "Für Personen",
"Intermediate: medium sized avatar with single-line preview": "Zwischending: mittelgroßer Avatar mit einer einzeiligen Vorschau",
"Roomy: big avatar with two-line preview": "Geräumig: großer Avatar mit einer zweizeiligen Vorschau",
"Room list style": "Stil der Raumliste",
"Compact: tiny avatar together with name and preview in one line": "Kompakt: winziger Avatar zusammen mit dem Namen und der Vorschau in einer Zeile",
"Hide advanced theme settings": "Erweiterte Designeinstellungen ausblenden",
"Theme": "Design",
"Room list": "Raumliste",
"Font size and typeface": "Schriftgröße und Schriftart",
"Show advanced theme settings": "Erweiterte Designeinstellungen anzeigen"
}

View File

@ -27,5 +27,14 @@
"If disabled, you can still add Direct Messages to Personal Spaces. If enabled, you'll automatically see everyone who is a member of the Space.": "If disabled, you can still add Direct Messages to Personal Spaces. If enabled, you'll automatically see everyone who is a member of the Space.",
"Show notification badges for People in Spaces": "Show notification badges for People in Spaces",
"Return to the room previously opened in a space": "Return to the room previously opened in a space",
"If disabled, the space overview will be shown when switching to another space.": "If disabled, the space overview will be shown when switching to another space."
"If disabled, the space overview will be shown when switching to another space.": "If disabled, the space overview will be shown when switching to another space.",
"Compact: tiny avatar together with name and preview in one line": "Compact: tiny avatar together with name and preview in one line",
"Intermediate: medium sized avatar with single-line preview": "Intermediate: medium sized avatar with single-line preview",
"Roomy: big avatar with two-line preview": "Roomy: big avatar with two-line preview",
"Room list style": "Room list style",
"Hide advanced theme settings": "Hide advanced theme settings",
"Show advanced theme settings": "Show advanced theme settings",
"Theme": "Theme",
"Room list": "Room list",
"Font size and typeface": "Font size and typeface"
}

View File

@ -6,5 +6,23 @@
"Message layout": "Așezarea mesajului",
"Modern": "Modern",
"Show people and rooms in a combined list": "Arată persoanele și camerele într-o listă combinată",
"Update notifications": "Actualizează notificările"
"Update notifications": "Actualizează notificările",
"Don't ask again": "Nu întreba din nou",
"System": "Sistem",
"Add custom theme": "Adaugă o temă proprie",
"Theme in use": "Temă în folosință",
"Light theme": "Temă luminoasă",
"Dark theme": "Temă întunecată",
"Uniform": "Uniform",
"In group chats": "În chaturile de grup",
"In public rooms": "În camerele publice",
"All rooms you're in will appear in Home.": "Toate camerele în care te afli vor apărea în Pagina principala",
"Show people in spaces": "Arată persoanele în spații",
"Show notification badges for People in Spaces": "Arată simboluri de notificare pentru Persoanele din Spații",
"Return to the room previously opened in a space": "Întoarce-te spre camera deschisă ultima oară într-un spațiu",
"If disabled, the space overview will be shown when switching to another space.": "Dacă e dezactivat, se va arăta vederea de ansamblu a spațiului când schimbi pe alt spațiu.",
"For people": "Pentru persoane",
"User name color mode": "Modul culorilor utilizatorilor",
"Show all rooms in Home": "Arată toate camerele în Pagina principală",
"If disabled, you can still add Direct Messages to Personal Spaces. If enabled, you'll automatically see everyone who is a member of the Space.": "Dacă e dezactivat, încă poți adăuga Mesaje Directe în Spații Personale. Dacă e activat, vei vedea toți membrii Spațiului automat."
}

View File

@ -13,5 +13,19 @@
"Dark theme": "Mörkt tema",
"Show message bubbles on one side only": "Visa meddelandebubblor bara på ena sidan",
"Show message bubbles depending on the width either on both sides or only on one side": "Visa meddelandebubblor beroende på bredden antingen på båda sidor eller bara på ena sidan",
"Do you want to join a room notifying you about new releases? This is especially useful if your platform doesn't support automatic updates for SchildiChat (e.g. Windows and macOS).": "Vill du gå med i ett rum som informerar dig om nya utgåvor? Detta är särskilt användbart om din plattform inte stöder automatiska uppdateringar för SchildiChat (t.ex.Windows och macOS)."
"Do you want to join a room notifying you about new releases? This is especially useful if your platform doesn't support automatic updates for SchildiChat (e.g. Windows and macOS).": "Vill du gå med i ett rum som informerar dig om nya utgåvor? Detta är särskilt användbart om din plattform inte stöder automatiska uppdateringar för SchildiChat (t.ex.Windows och macOS).",
"Uniform": "Enhetlig",
"PowerLevel": "PowerLevel",
"MXID": "MXID",
"In group chats": "I gruppchattar",
"In public rooms": "I offentliga rum",
"Show all rooms in Home": "Visa alla rum i Home",
"Show people in spaces": "Visa människor i Spaces",
"If disabled, you can still add Direct Messages to Personal Spaces. If enabled, you'll automatically see everyone who is a member of the Space.": "Om den är inaktiverad kan du fortfarande lägga till direktmeddelanden till personliga utrymmen. Om den är aktiverad ser du automatiskt alla som är medlem i Space.",
"Show notification badges for People in Spaces": "Visa meddelandemärken för personer in Spaces",
"Return to the room previously opened in a space": "Återgå till rummet som tidigare öppnats i ett Space",
"If disabled, the space overview will be shown when switching to another space.": "Om den är inaktiverad visas utrymmeöversikten när du byter till ett annat utrymme.",
"For people": "För folk",
"User name color mode": "Användarnamns färgläge",
"All rooms you're in will appear in Home.": "Alla rum du befinner dig i visas i Home."
}

View File

@ -0,0 +1 @@
{}

View File

@ -2,6 +2,8 @@
SCHILDI_ROOT="$(dirname "$(realpath "$0")")"
branch=${BRANCH:-"sc"}
i18n_helper_path="$SCHILDI_ROOT/i18n-helper/index.js"
i18n_path="src/i18n/strings"
i18n_overlay_path="$SCHILDI_ROOT/i18n-overlays"
@ -30,18 +32,31 @@ add_upstream() {
}
forall_repos() {
pushd "$SCHILDI_ROOT/matrix-js-sdk"
pushd "$SCHILDI_ROOT/matrix-js-sdk" > /dev/null
"$@"
popd
pushd "$SCHILDI_ROOT/matrix-react-sdk"
popd > /dev/null
pushd "$SCHILDI_ROOT/matrix-react-sdk" > /dev/null
"$@"
popd
pushd "$SCHILDI_ROOT/element-web"
popd > /dev/null
pushd "$SCHILDI_ROOT/element-web" > /dev/null
"$@"
popd
pushd "$SCHILDI_ROOT/element-desktop"
popd > /dev/null
pushd "$SCHILDI_ROOT/element-desktop" > /dev/null
"$@"
popd
popd > /dev/null
}
forelement_repos() {
pushd "$SCHILDI_ROOT/element-web" > /dev/null
"$@"
popd > /dev/null
pushd "$SCHILDI_ROOT/element-desktop" > /dev/null
"$@"
popd > /dev/null
}
ensure_yes() {
@ -90,15 +105,15 @@ automatic_i18n_reversion() {
local skip_commit="$1"
pushd "$SCHILDI_ROOT/matrix-react-sdk" > /dev/null
revert_i18n_changes "$i18n_path" $skip_commit
revert_i18n_changes "$i18n_path" "$skip_commit"
popd > /dev/null
pushd "$SCHILDI_ROOT/element-web" > /dev/null
revert_i18n_changes "$i18n_path" $skip_commit
revert_i18n_changes "$i18n_path" "$skip_commit"
popd > /dev/null
pushd "$SCHILDI_ROOT/element-desktop" > /dev/null
revert_i18n_changes "$i18n_path" $skip_commit
revert_i18n_changes "$i18n_path" "$skip_commit"
popd > /dev/null
}
@ -124,3 +139,94 @@ automatic_i18n_adjustment() {
apply_i18n_changes "$i18n_path"
popd > /dev/null
}
get_current_versions() {
local version=`cat "$SCHILDI_ROOT/element-web/package.json" | jq .version -r`
if [[ "$version" =~ ([0-9\.]*)(-sc\.([0-9]+)(\.test.([0-9]+))?)? ]]; then
upstream="${BASH_REMATCH[1]}"
release="${BASH_REMATCH[3]}"
test="${BASH_REMATCH[5]}"
fi
versions=("${upstream:-"0.0.1"}" "${release:-"0"}" "${test:-"0"}")
}
get_versions_string() {
versions_string="${versions[0]}-sc.${versions[1]}"
if [[ ${versions[2]} -gt 0 ]]; then
versions_string+=".test.${versions[2]}"
fi
}
write_version() {
local file="$1"
local versions_string
get_versions_string
new_content=`jq --arg version "$versions_string" '.version = $version' "$file"`
echo "$new_content" > "$file"
git add "$file"
git commit -m "Update version to $versions_string" || true
}
bump_test_version() {
local versions
get_current_versions
# increment test version
(( versions[2]++ ))
forelement_repos write_version "package.json"
}
bump_release_version() {
local versions
get_current_versions
# increment release version
(( versions[1]++ ))
# set test version to 0
versions[2]=0
forelement_repos write_version "package.json"
}
revert_packagejson_changes() {
local path="$1"
local skip_commit="$2"
git checkout upstream/master -- "$path"
if [[ "$skip_commit" != [Yy]* ]]; then
git commit -m "Automatic package.json reversion" || true
fi
}
apply_packagejson_overlay() {
local orig_path="$1"
local overlay_path="$2"
# see: https://stackoverflow.com/a/24904276
new_content=`jq -s '.[0] * .[1]' "$orig_path" "$overlay_path"`
echo "$new_content" > "$orig_path"
git add "$orig_path"
git commit -m "Automatic package.json adjustment" || true
}
automatic_packagejson_reversion() {
local skip_commit="$1"
forelement_repos revert_packagejson_changes "package.json" "$skip_commit"
}
automatic_packagejson_adjustment() {
local versions
get_current_versions
forelement_repos apply_packagejson_overlay "package.json" "overlay-package.json"
forelement_repos write_version "package.json"
}

View File

@ -3,7 +3,6 @@
set -e
mydir="$(dirname "$(realpath "$0")")"
branch=${BRANCH:-"sc"}
pushd "$mydir" > /dev/null
@ -16,19 +15,23 @@ forall_repos check_branch $branch
# Ensure clean git state
forall_repos check_clean_git
# Automatic i18n reversion
automatic_i18n_reversion
# Merge
# Fetch upstream
forall_repos git fetch upstream
# Automatic reversions
automatic_i18n_reversion
automatic_packagejson_reversion
# Merge upstream
forall_repos git merge upstream/master
# Refresh environment
make clean
make setup
# Automatic i18n adjustment
# Automatic adjustments
automatic_i18n_adjustment
automatic_packagejson_adjustment
# Automatic theme update
pushd "matrix-react-sdk" > /dev/null

31
publish_release.sh Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
pushd "$mydir" > /dev/null
source ./merge_helpers.sh
# Check branch
check_branch $branch
forall_repos check_branch $branch
# Ensure clean git state
forall_repos check_clean_git
git fetch origin
git branch -D master || true
git checkout -b master --track origin/master
git merge --ff-only sc
git push
git checkout sc
forall_repos git fetch origin
forall_repos git branch -D master || true
forall_repos git checkout -b master --track origin/master
forall_repos git merge --ff-only sc
forall_repos git push
forall_repos git checkout sc
popd > /dev/null