pre-commit用スクリプトでweblateの未マージがあるか調べる

This commit is contained in:
tateisu 2018-08-31 23:18:25 +09:00
parent d1c37e1560
commit 4be9fa2ceb
3 changed files with 29 additions and 1 deletions

View File

@ -24,8 +24,14 @@ class ActAbout : AppCompatActivity() {
const val developer_acct = "tateisu@mastodon.juggler.jp"
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?) {
@ -63,6 +69,10 @@ class ActAbout : AppCompatActivity() {
b.text = 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 density = resources.displayMetrics.density
val margin_top = (0.5f + density * 8).toInt()

View File

@ -153,5 +153,14 @@
android:layout_height="0dp"
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>
</ScrollView>

View File

@ -67,4 +67,13 @@ my @missing = sort keys %missing;
my $nameCount = 0+ keys %allNames;
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;