pre-commit用スクリプトでweblateの未マージがあるか調べる
This commit is contained in:
parent
d1c37e1560
commit
4be9fa2ceb
|
@ -24,8 +24,14 @@ class ActAbout : AppCompatActivity() {
|
||||||
const val developer_acct = "tateisu@mastodon.juggler.jp"
|
const val developer_acct = "tateisu@mastodon.juggler.jp"
|
||||||
|
|
||||||
const val url_futaba = "https://www.instagram.com/hinomoto_hutaba/"
|
const val url_futaba = "https://www.instagram.com/hinomoto_hutaba/"
|
||||||
|
|
||||||
|
const val url_weblate = "https://hosted.weblate.org/projects/subway-tooter/"
|
||||||
|
|
||||||
val contributors = arrayOf("@Balor@freeradical.zone", "update english language", "@Luattic@oc.todon.fr", "update french language")
|
val contributors = arrayOf(
|
||||||
|
"@Balor@freeradical.zone", "update english language",
|
||||||
|
"@Luattic@oc.todon.fr", "update french language",
|
||||||
|
"@BoF@mstdn.fr", "update arabic language"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState : Bundle?) {
|
override fun onCreate(savedInstanceState : Bundle?) {
|
||||||
|
@ -63,6 +69,10 @@ class ActAbout : AppCompatActivity() {
|
||||||
b.text = url_futaba
|
b.text = url_futaba
|
||||||
b.setOnClickListener { open_browser(url_futaba) }
|
b.setOnClickListener { open_browser(url_futaba) }
|
||||||
|
|
||||||
|
b = findViewById(R.id.btnWeblate)
|
||||||
|
b.text = "Please help translation!"
|
||||||
|
b.setOnClickListener { open_browser(url_weblate) }
|
||||||
|
|
||||||
val ll = findViewById<LinearLayout>(R.id.llContributors)
|
val ll = findViewById<LinearLayout>(R.id.llContributors)
|
||||||
val density = resources.displayMetrics.density
|
val density = resources.displayMetrics.density
|
||||||
val margin_top = (0.5f + density * 8).toInt()
|
val margin_top = (0.5f + density * 8).toInt()
|
||||||
|
|
|
@ -153,5 +153,14 @@
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/btnWeblate"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/btn_bg_transparent"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:textAllCaps="false"
|
||||||
|
/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
|
@ -67,4 +67,13 @@ my @missing = sort keys %missing;
|
||||||
|
|
||||||
my $nameCount = 0+ keys %allNames;
|
my $nameCount = 0+ keys %allNames;
|
||||||
print "(total)string resource count=$nameCount\n";
|
print "(total)string resource count=$nameCount\n";
|
||||||
|
|
||||||
|
print "# Fetching all remotes..\n";
|
||||||
|
system qq(git fetch --all -q);
|
||||||
|
|
||||||
|
my @list = `git branch -a --no-merged`;
|
||||||
|
for(@list){
|
||||||
|
print "# Unmerged branch: $_\n";
|
||||||
|
}
|
||||||
|
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
Loading…
Reference in New Issue