Skip to content

Commit

Permalink
feat(lang): Finnish Added
Browse files Browse the repository at this point in the history
  • Loading branch information
sschueller committed Jan 31, 2021
1 parent 7348763 commit 02bcd74
Show file tree
Hide file tree
Showing 21 changed files with 212 additions and 34 deletions.
116 changes: 89 additions & 27 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
stages:
- environment
- fetch-version
- build
- test
- release
- internal
- alpha
- beta
- production
- stop

.updateContainerJob:
image: docker:stable
Expand Down Expand Up @@ -46,17 +47,59 @@ ensureContainer:
- pwd
- echo "$signing_jks_file_hex" | xxd -r -p - > android-signing-keystore.jks
- md5sum android-signing-keystore.jks
# get next version from latest changelog
- "export VERSION_CODE=`ls -f ./fastlane/metadata/android/en-US/changelogs | cut -d_ -f3 | sort -n | tail -1 | rev | cut -c5- | rev` && echo $VERSION_CODE"
# We add 200 to get this high enough above current versionCodes that are published
# - "export VERSION_CODE=$((200 + $CI_PIPELINE_IID)) && echo $VERSION_CODE"
- "export VERSION_SHA=`echo ${CI_COMMIT_SHA:0:8}` && echo $VERSION_SHA"
- "export VERSION_NAME=${VERSION_CODE:0:1}.${VERSION_CODE:1:1}.${VERSION_CODE:2} && echo $VERSION_NAME"
after_script:
- rm -f android-signing-keystore.jks || true
artifacts:
paths:
- app/build/outputs
- app/build.gradle
tags:
- docker

# https://levelup.gitconnected.com/semantic-versioning-and-release-automation-on-gitlab-9ba16af0c21
fetch-semantic-version:
image: node:13
stage: fetch-version
only:
refs:
- master
- alpha
- /^(([0-9]+)\.)?([0-9]+)\.x/ # This matches maintenance branches
- /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ # This matches pre-releases
script:
- npm install @semantic-release/gitlab @semantic-release/exec @semantic-release/changelog @semantic-release/git -D
- npx semantic-release --generate-notes false --dry-run
- export VERSION_CODE=`grep -oP "versionCode[\s]*(\d)+" app/build.gradle | awk '{ print $2 }'`
- export VERSION_CODE=$((${VERSION_CODE}+1)) && echo ${VERSION_CODE}
- export VERSION_SHA=`echo ${CI_COMMIT_SHA:0:8}` && echo ${VERSION_SHA}
- export VERSION=`cat VERSION.txt` && echo ${VERSION}
- export VERSION_NAME=${VERSION}-${VERSION_SHA} && echo ${VERSION_NAME}
- sed -i -e "s/versionCode .*/versionCode ${VERSION_CODE}/g" app/build.gradle
- sed -i -e "s/versionName .*/versionName \"${VERSION_NAME}\"/g" app/build.gradle
- echo ${VERSION_CODE} > VERSION_CODE.txt
- echo ${VERSION_NAME} > VERSION_NAME.txt
artifacts:
paths:
- VERSION.txt
- VERSION_CODE.txt
- VERSION_NAME.txt
- app/build.gradle
tags:
- docker

generate-non-semantic-version:
stage: fetch-version
except:
refs:
- master
- alpha
- /^(([0-9]+)\.)?([0-9]+)\.x/ # This matches maintenance branches
- /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ # This matches pre-releases
script:
- echo build-$CI_PIPELINE_ID > VERSION.txt
artifacts:
paths:
- VERSION.txt
tags:
- docker

Expand All @@ -65,6 +108,16 @@ buildDebug:
script:
- bundle exec fastlane buildDebug

testDebug:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
stage: test
dependencies:
- buildDebug
script:
- bundle exec fastlane test
tags:
- docker

buildRelease:
extends: .build_job
script:
Expand All @@ -76,45 +129,54 @@ buildRelease:
except:
- branches

testDebug:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
stage: test
dependencies:
- buildDebug
release:
image: node:13
stage: release
only:
refs:
- master
- alpha
# This matches maintenance branches
- /^(([0-9]+)\.)?([0-9]+)\.x/
# This matches pre-releases
- /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/
script:
- bundle exec fastlane test
- npm install @semantic-release/gitlab @semantic-release/exec @semantic-release/changelog @semantic-release/git -D
- npx semantic-release
artifacts:
paths:
- CHANGELOG.md
tags:
- docker

publishGithub:
publishInternal:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
stage: internal
dependencies:
- buildRelease
when: manual
before_script:
- echo $google_play_service_account_api_key_json > ../google_play_api_key.json
- md5sum /builds/sschueller/google_play_api_key.json
after_script:
- rm -f ../google_play_api_key.json
script:
- "export VERSION_CODE=`ls -f ./fastlane/metadata/android/en-US/changelogs | cut -d_ -f3 | sort -n | tail -1 | rev | cut -c5- | rev` && echo $VERSION_CODE"
- "export VERSION_SHA=`echo ${CI_COMMIT_SHA:0:8}` && echo $VERSION_SHA"
- "export VERSION_NAME=${VERSION_CODE:0:1}.${VERSION_CODE:1:1}.${VERSION_CODE:2} && echo $VERSION_NAME"
- ci-scripts/make-github-release.sh
- bundle exec fastlane internal
tags:
- docker
only:
- /^v[0-9]*\.[0-9]*\.[0-9]*$/i

publishInternal:
publishGithub:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
stage: internal
dependencies:
- buildRelease
when: manual
before_script:
- echo $google_play_service_account_api_key_json > ../google_play_api_key.json
- md5sum /builds/sschueller/google_play_api_key.json
after_script:
- rm -f ../google_play_api_key.json
script:
- bundle exec fastlane internal
- export VERSION_CODE=`cat VERSION_CODE.txt`
- export VERSION_NAME=`cat VERSION_NAME.txt`
- ci-scripts/make-github-release.sh
tags:
- docker
only:
Expand Down Expand Up @@ -160,4 +222,4 @@ promoteProduction:
script:
- bundle exec fastlane promote_beta_to_production
tags:
- docker
- docker
25 changes: 25 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
plugins:
- "@semantic-release/commit-analyzer"
- - "@semantic-release/release-notes-generator"
- linkReferences: false
linkCompare: false
- - "@semantic-release/exec"
- verifyReleaseCmd: "echo ${nextRelease.version} > VERSION.txt"
generateNotesCmd: "if [[ ! -f RELEASE_NOTES.txt ]]; then echo '${nextRelease.notes.trim()}' > RELEASE_NOTES.txt; fi && echo '${nextRelease.notes.trim()}' > fastlane/metadata/android/en-US/changelogs/$(cat VERSION_CODE.txt).txt"
- - "@semantic-release/changelog"
- changelogFile: CHANGELOG.md
- - "@semantic-release/git"
- assets:
- 'app/build.gradle'
- 'CHANGELOG.md'
- 'VERSION.txt'
- "fastlane/metadata/android/en-US/changelogs/*.txt"
message: "chore(release): ${nextRelease.version} [only cd]\n\n${nextRelease.notes}"
- "@semantic-release/gitlab"

branches:
- "master"
- "+([0-9])?(.{+([0-9]),x}).x"
- name: "alpha"
prerelease: "alpha"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Reproducible builds currently does not work.
## Contribution
Whether you have ideas, translations, design changes, code cleaning, or real heavy code changes, help is always welcome.

For your commits please follow: https://www.conventionalcommits.org

## Donate

<noscript><a href="https://liberapay.com/sschueller/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></noscript>
Expand Down
1 change: 1 addition & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.55
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ android {
applicationId "net.schueller.peertube"
minSdkVersion 21
targetSdkVersion 29
versionCode Integer.valueOf(System.getenv("VERSION_CODE") ?: 1)
versionName System.getenv("VERSION_NAME") + "-" + System.getenv("VERSION_SHA")
versionCode 1055
versionName "1.0.55-73487634"
buildConfigField "long", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down Expand Up @@ -172,4 +172,4 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
8 changes: 8 additions & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,12 @@
<string name="server_book_no_servers_found">Das Serververzeichnis ist leer</string>
<string name="hello_blank_fragment">Hallo leeres Fragment</string>
<string name="server_selection_filter_hint">Liste filtern</string>
<string name="pref_insecure_confirm_message">Sie sind dabei, die gesamte SSL-Zertifizierungsprüfung in Thorium zu deaktivieren. Die Deaktivierung kann sehr gefährlich sein, wenn der Peertube-Server nicht unter Ihrer Kontrolle steht, da ein Man-in-the-Middle-Angriff den Datenverkehr ohne Ihr Wissen auf einen anderen Server leiten könnte. Ein Angreifer könnte Passwörter und andere persönliche Daten aufzeichnen.</string>
<string name="pref_insecure_confirm_yes">Ja</string>
<string name="pref_insecure_confirm_no">Nein</string>
<string name="pref_insecure_confirm_title">Warnung!</string>
<string name="settings_activity_advanced_category_title">Erweitert</string>
<string name="server_book_add_save_button">Speichern</string>
<string name="pref_title_accept_insecure">SSL-Zertifikatsprüfung deaktivieren</string>
<string name="pref_description_accept_insecure">Unsichere Verbindungen ignorieren. Verwenden Sie dies nur, wenn Sie den Server kennen, mit dem Sie sich verbinden. Erfordert einen Neustart der App.</string>
</resources>
57 changes: 55 additions & 2 deletions app/src/main/res/values-fi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<string name="lightgreen">Vaaleanvihreä</string>
<string name="lu">luba (Katanga)</string>
<string name="error_invalid_password">Tämä salasana on liian lyhyt</string>
<string name="bottom_nav_title_discover">Yleiskatsaus</string>
<string name="bottom_nav_title_discover">Etusivu</string>
<string name="id">indonesia</string>
<string name="ga">iiri</string>
<string name="bottom_nav_title_subscriptions">Tilaukset</string>
Expand All @@ -57,7 +57,7 @@
<string name="am">amhara</string>
<string name="pa">pandžabi</string>
<string name="server_selection_set_server">Palvelin asetettu: %s</string>
<string name="pref_title_dark_mode">Pimeä tila</string>
<string name="pref_title_dark_mode">Tumma tila</string>
<string name="av">avaari</string>
<string name="te">telugu</string>
<string name="video_meta_button_share">Jaa</string>
Expand Down Expand Up @@ -302,4 +302,57 @@
<string name="video_speed_075">0,75×</string>
<string name="pref_description_language_app">Valitse kieli sovelluksen käyttöliittymälle. Käynnistä sovellus uudelleen, jotta muutos tulee voimaan.</string>
<string name="pref_language_app">Sovelluksen kieli</string>
<string name="pref_title_buildtime">Kokoamisnumero</string>
<string name="title_activity_settings2">AsetuksetToiminta2(SettingsActivity2)</string>
<string name="pref_description_accept_insecure">Ohita epävarmat yhteydet. Käytä tätä, jos tiedät palvelimen, johon olet yhdistämässä. Vaatii sovelluksen uudelleen käynnistämisen.</string>
<string name="pref_insecure_confirm_message">Olet poistamassa käytöstä SSL-varmenteiden tarkituksen Thromiumissa. Tämän poistaminen käytöstä voi olla erittäin vaarallista, jos peertube-palvelin ei ole sinun hallinassasi, koska välistävetohyökkäys voi ohjata liikenteen toiseen palvelimeen tietämättäsi. Hyökkääjä voi tallentaa salasanojasi ja muita henkilötietojasi.</string>
<string name="authentication_token_refresh_success">Tunnus päivitetty</string>
<string name="authentication_token_refresh_failed">Tunnuksen päivittäminen epäonnistui</string>
<string name="server_book_valid_url_is_required">Kelvollinen URL-osoite vaaditaan</string>
<string name="server_book_label_is_required">Palvelimen tunniste vaaditaan</string>
<string name="server_book_no_servers_found">Palvelinkirja on tyhjä</string>
<string name="hello_blank_fragment">Hei tyhjä osa</string>
<string name="server_selection_filter_hint">Suodatetut</string>
<string name="pref_title_accept_insecure">Poista SSL-varmenteen tarkistus käytöstä</string>
<string name="pref_background_behavior">Taustatoisto</string>
<string name="pref_background_audio">Jatka äänen taustatoistolla</string>
<string name="pref_background_float">Jatka kuva-kuvassa -tilassa</string>
<string name="server_book_del_alert_msg">Haluatko varmasti poistaa tämän palvelimen osoitekirjasta\?</string>
<string name="settings_permissions_error_float">Kuva kuvassa -tilan lupa poistettu käytöstä Android-asetuksissa</string>
<string name="pref_background_behavior_summary">Kuinka toistettava video regoi, kun se menee taustalle</string>
<string name="clear_search_history_prompt">Haluatko poistaa hakuhistorian pysyvästi\?</string>
<string name="network_error">Verkkoyhteysvirhe, tarkista verkkoyhteys</string>
<string name="settings_api_error_float">Android-versio ei tue kuva-kuvassa -tilaa</string>
<string name="server_selection_video_totals">Videoita: %s, Paikallisia videoita: %s</string>
<string name="settings_activity_look_and_feel_category_title">Ulkoasu</string>
<string name="pref_background_stop">Pysäytä kaikki toistot</string>
<string name="me_help_and_feedback_button">Ohje ja palaute</string>
<string name="settings_activity_video_list_category_title">Videoluettelo</string>
<string name="settings_activity_about_category_title">Tietoa</string>
<string name="pref_title_back_pause">Keskeytä takaisin-napilla</string>
<string name="pref_description_back_pause">Keskeytä toisto, kun painat takaisin-nappia videotoiston aikana.</string>
<string name="server_selection_nsfw_instance">Sopimaton sisältö</string>
<string name="clear_search_history">Tyhjennä hakuhistoria</string>
<string name="settings_activity_video_playback_category_title">Videotoisto</string>
<string name="title_activity_select_server">Etsi palvelin</string>
<string name="server_book_del_alert_title">Poista palvelin</string>
<string name="bn_rBD">Bengali (Bangladesh)</string>
<string name="title_activity_server_address_book">Osoitekirja</string>
<string name="server_book_list_has_login">On kirjautunut</string>
<string name="server_book_add_server_url">Palvelimen URL</string>
<string name="me_logout_button">Kirjaudu ulos</string>
<string name="authentication_login_failed">Kirjautuminen epäonnistui!</string>
<string name="authentication_login_success">Kirjauduttu sisään</string>
<string name="server_book_add_save_button">Tallenna</string>
<string name="pref_insecure_confirm_yes">Kyllä</string>
<string name="pref_insecure_confirm_no">Ei</string>
<string name="pref_insecure_confirm_title">Varoitus!</string>
<string name="settings_activity_advanced_category_title">Kehittyneet</string>
<string name="menu_video_options_quality_automated">Automaattinen</string>
<string name="title_activity_me">Tili</string>
<string name="server_book_add_add_button">Lisää</string>
<string name="server_book_add_password">Salasana</string>
<string name="server_book_add_username">Käyttäjänimi</string>
<string name="server_book_add_pick_server_button">Hae</string>
<string name="server_book_add_label">Leima</string>
</resources>
4 changes: 2 additions & 2 deletions app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@
<string name="network_error">Erro de acesso à rede, verifique sua conectividade</string>
<string name="server_selection_filter_hint">Filtrar a lista</string>
<string name="settings_activity_advanced_category_title">Avançado</string>
<string name="pref_insecure_confirm_message">Você está prestes a desativar toda a validação de certificação SSL no Thorium. Desativar isso pode ser muito perigoso se o servidor peertube não estiver sob seu controle, pois um ataque man-in-the-middle pode direcionar tráfego para outro servidor sem seu conhecimento. Um atacador pode gravar senhas e outros dados pessoais.</string>
<string name="pref_insecure_confirm_message">Você está prestes a desativar toda a validação de certificação SSL no Thorium. Desativar isso pode ser muito perigoso se o servidor peertube não estiver sob seu controle, pois um ataque man-in-the-middle pode direcionar tráfego para outro servidor sem seu conhecimento. Um invasor pode gravar senhas e outros dados pessoais.</string>
<string name="pref_insecure_confirm_yes">Sim</string>
<string name="pref_insecure_confirm_no">Não</string>
<string name="pref_insecure_confirm_title">Aviso!</string>
<string name="server_book_add_save_button">Salvar</string>
<string name="pref_title_accept_insecure">Desativar check do certificado SSL</string>
<string name="pref_description_accept_insecure">Ignorar conexões não seguras. Use isto apenas se você conhece o servidor ao qual está se conectando. Requer o reinício do app.</string>
<string name="pref_description_accept_insecure">Ignorar conexões não seguras. Use isto apenas se você conhece o servidor ao qual está se conectando. Requer o reinício do aplicativo.</string>
</resources>
2 changes: 2 additions & 0 deletions fastlane/metadata/android/de-DE/changelogs/1050.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Unterstützung für die Deaktivierung von SSL hinzufügt
- Übersetzungen
5 changes: 5 additions & 0 deletions fastlane/metadata/android/de-DE/changelogs/1051.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Standardsprache der App beim ersten Start festgelegt (@kosharskiy)
- Bildschirmeinstellungen Übersetzungen uk und ru Sprache (@kosharskiy)
- app/build.gradle-Datei aufgeräumt (@kosharskiy)
- Problem mit der Anzeige von Video-Metadaten behoben (@kosharskiy)
- Übersetzungen aktualisiert
2 changes: 2 additions & 0 deletions fastlane/metadata/android/de-DE/changelogs/1052.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Server bearbeiten im Serverbuch implementiert (@kosharskiy)
- Übersetzungen aktualisiert
1 change: 1 addition & 0 deletions fastlane/metadata/android/fi-FI/changelogs/1047.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Todennuspäivitys
2 changes: 2 additions & 0 deletions fastlane/metadata/android/fi-FI/changelogs/1050.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- lisää tuen poistaa käytöstä SSL
- käännökset
2 changes: 2 additions & 0 deletions fastlane/metadata/android/fi-FI/changelogs/1052.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Implemented edit server in server book (@kosharskiy)
- Päivitetyt käännökset
1 change: 1 addition & 0 deletions fastlane/metadata/android/fi-FI/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Throium on epävirallinen PeerTube -videosoitin
1 change: 1 addition & 0 deletions fastlane/metadata/android/fi-FI/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Throium on epävirallinen PeerTube -videosoitin
1 change: 1 addition & 0 deletions fastlane/metadata/android/fi-FI/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Thorium epävirallinen PeerTube -asiakasohjelma
1 change: 1 addition & 0 deletions fastlane/metadata/android/fi-FI/video.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://www.youtube.com/watch?v=PJIsiuSdpq8
2 changes: 2 additions & 0 deletions fastlane/metadata/android/ru-RU/changelogs/1050.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Добавлена поддержка отключения SSL
- Переводы
5 changes: 5 additions & 0 deletions fastlane/metadata/android/ru-RU/changelogs/1051.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Исправлен язык приложения по умолчанию при первом запуске (@kosharskiy)
- Перевод настроек экрана на uk и ru языки (@kosharskiy)
- Файл очистки app/build.gradle (@kosharskiy)
- Исправлена проблема с отображением метаданных видео (@kosharskiy)
- Обновленные переводы
2 changes: 2 additions & 0 deletions fastlane/metadata/android/ru-RU/changelogs/1052.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Реализовано редактирование сервера в серверной книге (@kosharskiy)
- Обновлены переводы

0 comments on commit 02bcd74

Please sign in to comment.