Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mklanguages: Manage language lists in donottranslate.xml #3621

Closed
wants to merge 86 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
5749f2f
mklanguages: Manage language lists in donottranslate.xml
nikclayton May 4, 2023
3ae9262
Lint
nikclayton May 4, 2023
0b461b0
Log messages instead of printing
nikclayton May 10, 2023
ba970d1
Use system-independent path separator
nikclayton May 10, 2023
e171c01
Clean ups
nikclayton May 11, 2023
06a2527
Merge branch 'develop' into mklanguages
nikclayton May 11, 2023
343a463
Merge remote-tracking branch 'origin/develop' into mklanguages
nikclayton May 19, 2023
2294c26
Merge branch 'tuskyapp:develop' into mklanguages
nikclayton Jul 26, 2023
1639af8
Enable gradle build cache for Bitrise builds (#3840)
nikclayton Jul 26, 2023
45cc22a
Update dependency androidx.fragment:fragment-ktx to v1.6.1 (#3884)
renovate[bot] Jul 26, 2023
1847057
Update dependency androidx.paging:paging-runtime-ktx to v3.2.0 (#3887)
renovate[bot] Jul 26, 2023
be3bf51
Show the throwable error message when an upload fails (#3838)
nikclayton Jul 26, 2023
61e620e
Use org.gradle.configuration-cache flag (#3792)
Goooler Jul 26, 2023
15ee160
Cache locked state of connected accounts (#3790)
connyduck Jul 26, 2023
ec8a424
Translated using Weblate (Ukrainian)
IhorHordiichuk Jul 26, 2023
bbfb2d2
Always update the filter display, even when the list is empty (#3880)
connyduck Jul 27, 2023
d0c1fef
Translated using Weblate (Ukrainian)
IhorHordiichuk Jul 28, 2023
7b728d1
Translated using Weblate (Greek)
Ioannis-D Jul 28, 2023
97ce89a
Translated using Weblate (Persian)
danialbehzadi Jul 28, 2023
3e6d153
Translated using Weblate (Chinese (Simplified))
Jul 28, 2023
9e660ed
Translated using Weblate (Ukrainian)
IhorHordiichuk Jul 28, 2023
5ac11a4
Translated using Weblate (Vietnamese)
mastoduy Jul 28, 2023
1d3716d
Translated using Weblate (Galician)
xmgz Jul 28, 2023
ed0c510
Translated using Weblate (Greek)
Ioannis-D Jul 28, 2023
cea8280
Update androidx.room to v2.5.2 (#3768)
renovate[bot] Jul 29, 2023
f9b6e4e
Added translation using Weblate (Hebrew)
connyduck Jul 29, 2023
2d4e5cb
Migrate to AGP 8.0.2 / Android Studio Flamingo / Java 17 (#3541)
nikclayton Jul 30, 2023
7cfc259
Use lint version 8.1.0 to fix erroneous warning about forEach (#3903)
nikclayton Jul 30, 2023
7bc0d22
Fix image zoom / pan / scroll / swipe (#3894)
nikclayton Jul 31, 2023
88dbb29
Translated using Weblate (Japanese)
Jul 31, 2023
9a965ad
Kotlin 1.9.0 (#3835)
Goooler Aug 2, 2023
b22545c
Update dependency com.github.MikeOrtiz:TouchImageView to v3.5 (#3914)
renovate[bot] Aug 3, 2023
e93674e
Show additional bug report info in AboutActivity (#3802)
nikclayton Aug 3, 2023
e8a9846
Translated using Weblate (Welsh)
Aug 2, 2023
c77b8c5
Translated using Weblate (Turkish)
hdigo Aug 2, 2023
60ecebd
Show the correct tab title when opening the activity (#3915)
nikclayton Aug 3, 2023
1c7f1e9
Update plugin google-ksp to v1.9.0-1.0.13 (#3913)
renovate[bot] Aug 4, 2023
982649f
Use colorPrimary for the "edit" schedule icon (#3917)
nikclayton Aug 4, 2023
4d58866
Populate gradle build cache on each push to develop (#3904)
nikclayton Aug 4, 2023
86c7163
Officially rename error elephant to errorphant (#3922)
Lakoja Aug 5, 2023
c0a1adf
Translated using Weblate (Welsh)
Aug 5, 2023
e7c03f7
Translated using Weblate (Persian)
danialbehzadi Aug 5, 2023
b8cb966
Translated using Weblate (Occitan)
Aug 5, 2023
bd757a1
Translated using Weblate (Chinese (Simplified))
Aug 5, 2023
9346100
Translated using Weblate (Vietnamese)
mastoduy Aug 5, 2023
d281659
Filters> Tabs: use checkbox instead of switch (#3927)
tinsukE Aug 6, 2023
a009eee
Use case-insensitive checks when comparing account URLs in search (#3…
bremensaki Aug 6, 2023
54d661f
Add support for setting a list's "exclusivity" option (#3932)
nikclayton Aug 6, 2023
2f97d11
Correct the calculations for choosing the earliest day to show in the…
nikclayton Aug 7, 2023
2dfd07a
Add `newLintBaseline` task (#3925)
nikclayton Aug 7, 2023
35c2e86
Fix extra clicks on media tab (#3930)
nikclayton Aug 7, 2023
992020c
Make CW description selectable (#3926)
tinsukE Aug 7, 2023
4f00cad
Update plugin ktlint to v11.5.1 (#3941)
renovate[bot] Aug 7, 2023
98fead8
Translated using Weblate (Welsh)
Aug 8, 2023
1f853b3
Translated using Weblate (German)
Aug 8, 2023
2c74447
Translated using Weblate (Persian)
danialbehzadi Aug 8, 2023
2391b9a
Translated using Weblate (Turkish)
hdigo Aug 8, 2023
29835aa
Translated using Weblate (Vietnamese)
mastoduy Aug 8, 2023
6e5952c
Provide specific gradle properties for builds on CI (#3924)
nikclayton Aug 8, 2023
99643b2
Add background to sensitive media button (#3939)
tinsukE Aug 8, 2023
3959c0c
Composite semi-transparent avatars over a solid background (#3874)
nikclayton Aug 8, 2023
bf81287
Translated using Weblate (Welsh)
Aug 9, 2023
911e97d
Translated using Weblate (Ukrainian)
IhorHordiichuk Aug 9, 2023
4d25924
Translated using Weblate (Gaelic)
gunchleoc Aug 9, 2023
b4ca8a3
Translated using Weblate (Welsh)
Aug 10, 2023
a18849c
Start/end the thread divider in the middle of the avatar (#3892)
nikclayton Aug 10, 2023
fd204c8
Migrate to androidx-media3 video player (#3857)
nikclayton Aug 10, 2023
8dc94ac
Update dependency org.mockito.kotlin:mockito-kotlin to v5.1.0 (#3947)
renovate[bot] Aug 13, 2023
47088f7
Translated using Weblate (Welsh)
Aug 12, 2023
1b87927
Translated using Weblate (Persian)
danialbehzadi Aug 12, 2023
6f257e4
Translated using Weblate (Dutch)
Janewey Aug 12, 2023
180bb66
Translated using Weblate (Chinese (Simplified))
Aug 12, 2023
6e72172
Translated using Weblate (Korean)
liberaldev Aug 12, 2023
7483423
Translated using Weblate (Vietnamese)
mastoduy Aug 12, 2023
4b8b71a
Remove unnecessary log message in CompositeWithOpaqueBackground (#3955)
nikclayton Aug 14, 2023
f5970d7
Translated using Weblate (Vietnamese)
mastoduy Aug 13, 2023
43a133c
Translated using Weblate (Turkish)
hdigo Aug 13, 2023
871b957
Translated using Weblate (Welsh)
Aug 16, 2023
e0d13f8
Prompt the user before deleting a filter
Aug 17, 2023
ebf5a62
Improve account switching intents (#3732)
connyduck Aug 19, 2023
dc100c4
Rename "Trending" to "TrendingTags" or similar where necessary (#3906)
nikclayton Aug 19, 2023
5a6372b
Hide option to mute own domain from account profile page (it is a no-…
tinsukE Aug 19, 2023
0b0b706
Display notification filter/clear actions as menu items (#3877)
nikclayton Aug 19, 2023
b17ff4b
Fix exception when updating summary notifications (#3976)
nikclayton Aug 22, 2023
b51a29d
Translations update from Weblate (#3971)
nailyk-weblate Aug 22, 2023
d6b285a
Merge branch 'develop' into mklanguages
nikclayton Aug 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 76 additions & 56 deletions app/src/main/res/values/donottranslate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,107 +37,127 @@
<item>auto_system</item>
</string-array>

<!-- Do not edit this list, create it with "runtools mklanguages" -->
<string-array name="language_entries">
<item>@string/system_default</item>
<item>Català</item>
<item>Čeština</item>
<item>Cymraeg</item>
<item>Deutsch</item>
<item>English (UK)</item>
<item>English (US)</item>
<item>Esperanto</item>
<item>Español</item>
<item>Euskara</item>
<item>Français</item>
<item>Gaeilge</item>
<item>Gàidhlig</item>
<item>Galego</item>
<item>íslenska</item>
<item>Italiano</item>
<item>Magyar</item>
<item>Nederlands</item>
<item>Norsk</item>
<item>Occitan</item>
<item>Polski</item>
<item>Português (Brasil)</item>
<item>Português (Portugal)</item>
<item>Slovenščina</item>
<item>Svenska</item>
<item>Taqbaylit</item>
<item>Tiếng Việt</item>
<item>Türkçe</item>
<item>Беларуская</item>
<item>български</item>
<item>Русский</item>
<item>Українська</item>
<item>العربية</item>
<item>کوردیی ناوەندی</item>
<item>বাংলা (বাংলাদেশ)</item>
<item>বাংলা (ভারত)</item>
<item>فارسی</item>
<item>हिंदी</item>
<item>संस्कृतम्</item>
<item>@string/system_default</item> <!-- default: System default -->
<item>Català</item> <!-- ca: Catalan -->
<item>Central Atlas Tamazight (Tifinagh)</item> <!-- tzm-Tfng: Central Atlas Tamazight (Tifinagh) -->
<item>Čeština</item> <!-- cs: Czech -->
<item>Cymraeg</item> <!-- cy: Welsh -->
<item>Deutsch</item> <!-- de: German -->
<item>English</item> <!-- en: English -->
<item>English (United Kingdom)</item> <!-- en-GB: English (United Kingdom) -->
<item>Español</item> <!-- es: Spanish -->
<item>Esperanto</item> <!-- eo: Esperanto -->
<item>Euskara</item> <!-- eu: Basque -->
<item>Français</item> <!-- fr: French -->
<item>Frysk</item> <!-- fy: Western Frisian -->
<item>Gaeilge</item> <!-- ga: Irish -->
<item>Gàidhlig</item> <!-- gd: Scottish Gaelic -->
<item>Galego</item> <!-- gl: Galician -->
<item>Indonesia</item> <!-- in: Indonesian -->
<item>Íslenska</item> <!-- is: Icelandic -->
<item>Italiano</item> <!-- it: Italian -->
<item>Latviešu</item> <!-- lv: Latvian -->
<item>Magyar</item> <!-- hu: Hungarian -->
<item>Nederlands</item> <!-- nl: Dutch -->
<item>Norsk Bokmål (Norge)</item> <!-- nb-NO: Norwegian Bokmål (Norway) -->
<item>Occitan</item> <!-- oc: Occitan -->
<item>Polski</item> <!-- pl: Polish -->
<item>Português (Brasil)</item> <!-- pt-BR: Portuguese (Brazil) -->
<item>Português (Portugal)</item> <!-- pt-PT: Portuguese (Portugal) -->
<item>Slovenčina</item> <!-- sk: Slovak -->
<item>Slovenščina</item> <!-- sl: Slovenian -->
<item>Suomi</item> <!-- fi: Finnish -->
<item>Svenska</item> <!-- sv: Swedish -->
<item>Taqbaylit</item> <!-- kab: Kabyle -->
<item>Tiếng Việt</item> <!-- vi: Vietnamese -->
<item>Türkçe</item> <!-- tr: Turkish -->
<item>Ελληνικά</item> <!-- el: Greek -->
<item>Беларуская</item> <!-- be: Belarusian -->
<item>Български</item> <!-- bg: Bulgarian -->
<item>Русский</item> <!-- ru: Russian -->
<item>Українська</item> <!-- uk: Ukrainian -->
<item>العربية</item> <!-- ar: Arabic -->
<item>فارسی</item> <!-- fa: Persian -->
<item>کوردیی ناوەندی</item> <!-- ckb: Central Kurdish -->
<item>संस्कृत भाषा</item> <!-- sa: Sanskrit -->
<item>हिन्दी</item> <!-- hi: Hindi -->
<item>বাংলা (বাংলাদেশ)</item> <!-- bn-BD: Bangla (Bangladesh) -->
<item>বাংলা (ভারত)</item> <!-- bn-IN: Bangla (India) -->
<item>ଓଡ଼ିଆ</item> <!-- or: Odia -->
<item>தமிழ்</item>
<item>ภาษาไทย</item>
<item>한국어</item>
<item>中文(台灣)</item>
<item>中文(新加坡)</item>
<item>中文(澳門)</item>
<item>中文(简体)</item>
<item>中文(香港)</item>
<item>日本語</item>
<item>தமிழ்</item> <!-- ta: Tamil -->
<item>മലയാളം</item> <!-- ml: Malayalam -->
<item>සිංහල</item> <!-- si: Sinhala -->
<item>ไทย</item> <!-- th: Thai -->
<item>한국어</item> <!-- ko: Korean -->
<item>中文(中国)</item> <!-- zh-CN: Chinese (China) -->
<item>中文(中國澳門特別行政區)</item> <!-- zh-MO: Chinese (Macao SAR China) -->
<item>中文(中國香港特別行政區)</item> <!-- zh-HK: Chinese (Hong Kong SAR China) -->
<item>中文(台灣)</item> <!-- zh-TW: Chinese (Taiwan) -->
<item>中文(新加坡)</item> <!-- zh-SG: Chinese (Singapore) -->
<item>日本語</item> <!-- ja: Japanese -->
</string-array>

<!-- Do not edit this list, create it with "runtools mklanguages" -->
<string-array name="language_values">
<item>default</item>
<item>ca</item>
<item>tzm-Tfng</item>
<item>cs</item>
<item>cy</item>
<item>de</item>
<item>en-GB</item>
<item>en</item>
<item>eo</item>
<item>en-GB</item>
<item>es</item>
<item>eo</item>
<item>eu</item>
<item>fr</item>
<item>fy</item>
<item>ga</item>
<item>gd</item>
<item>gl</item>
<item>in</item>
<item>is</item>
<item>it</item>
<item>lv</item>
<item>hu</item>
<item>nl</item>
<item>nb-NO</item>
<item>oc</item>
<item>pl</item>
<item>pt-BR</item>
<item>pt-PT</item>
<item>sk</item>
<item>sl</item>
<item>fi</item>
<item>sv</item>
<item>kab</item>
<item>vi</item>
<item>tr</item>
<item>el</item>
<item>be</item>
<item>bg</item>
<item>ru</item>
<item>uk</item>
<item>ar</item>
<item>fa</item>
<item>ckb</item>
<item>sa</item>
<item>hi</item>
<item>bn-BD</item>
<item>bn-IN</item>
<item>fa</item>
<item>hi</item>
<item>sa</item>
<item>or</item>
<item>ta</item>
<item>ml</item>
<item>si</item>
<item>th</item>
<item>ko</item>
<item>zh-TW</item>
<item>zh-SG</item>
<item>zh-MO</item>
<item>zh-CN</item>
<item>zh-MO</item>
<item>zh-HK</item>
<item>zh-TW</item>
<item>zh-SG</item>
<item>ja</item>
</string-array>

Expand Down
15 changes: 15 additions & 0 deletions runtools
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Run one of the tools.
# The first argument must be the name of the tool task (e.g. mklanguages).
# Any remaining arguments are forwarded to the tool's argv.

task=$1
shift 1

if [ -z "${task}" ] || [ ! -d "tools/${task}" ]
then
echo "Unknown tool: '${task}'"
exit 1
fi

./gradlew --quiet ":tools:${task}:installDist" && "./tools/${task}/build/install/${task}/bin/${task}" "$@"
24 changes: 24 additions & 0 deletions runtools.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@if "%DEBUG%"=="" @echo off
:: Run one of the tools.
:: The first argument must be the name of the tools (e.g. mklanguages).
:: Any remaining arguments are forwarded to the tool's argv.

if "%OS%"=="Windows_NT" setlocal EnableDelayedExpansion

set TASK=%~1

set TOOL=false
if defined TASK if not "!TASK: =!"=="" if exist "tools\%TASK%\*" set TOOL=true

if "%TOOL%"=="false" (
echo Unknown tool: '%TASK%'
exit /b 1
)

set ARGS=%*
set ARGS=!ARGS:*%1=!
if "!ARGS:~0,1!"==" " set ARGS=!ARGS:~1!

call gradlew --quiet ":tools:%TASK%:installDist" && call "tools\%TASK%\build\install\%TASK%\bin\%TASK%" %ARGS%

if "%OS%"=="Windows_NT" endlocal
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ dependencyResolutionManagement {
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")

include ':app'
include ':tools:mklanguages'
33 changes: 33 additions & 0 deletions tools/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright 2023 Tusky Contributors
*
* This file is a part of Tusky.
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
* License, or (at your option) any later version.
*
* Tusky is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with Tusky; if not,
* see <http://www.gnu.org/licenses>.
*/

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

subprojects {
apply(plugin = "kotlin")
apply(plugin = "application")

dependencies {
"implementation"("com.github.ajalt.clikt:clikt:3.5.2")
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}
}
}
40 changes: 40 additions & 0 deletions tools/mklanguages/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright 2023 Tusky Contributors
*
* This file is a part of Tusky.
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
* License, or (at your option) any later version.
*
* Tusky is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with Tusky; if not,
* see <http://www.gnu.org/licenses>.
*/

application {
mainClass.set("app.tusky.mklanguages.MainKt")
}

dependencies {
// ICU
implementation("com.ibm.icu:icu4j:73.1")

// Parsing
implementation("com.github.h0tk3y.betterParse:better-parse:0.4.4")

// Logging
implementation("io.github.oshai:kotlin-logging-jvm:4.0.0-beta-28")
implementation("ch.qos.logback:logback-classic:1.3.0")

// Testing
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.2") // for parameterized tests
}

tasks.test {
useJUnitPlatform()
}
Loading