Skip to content

Commit

Permalink
Add 'Help with translation' Button in About Section
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-128 committed Nov 25, 2024
1 parent e38dddf commit 456ce9c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 15 deletions.
46 changes: 34 additions & 12 deletions Localization/Localizations/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"sourceLanguage" : "en",
"strings" : {
"%@" : {
"shouldTranslate" : false,
"localizations" : {
"ja" : {
"stringUnit" : {
Expand Down Expand Up @@ -40,10 +39,10 @@
"value" : "%@"
}
}
}
},
"shouldTranslate" : false
},
"%@/s" : {
"shouldTranslate" : false,
"localizations" : {
"ja" : {
"stringUnit" : {
Expand Down Expand Up @@ -81,10 +80,10 @@
"value" : "%@/s"
}
}
}
},
"shouldTranslate" : false
},
"%@%%" : {
"shouldTranslate" : false,
"localizations" : {
"ja" : {
"stringUnit" : {
Expand Down Expand Up @@ -122,10 +121,10 @@
"value" : "%@%%"
}
}
}
},
"shouldTranslate" : false
},
"%@s" : {
"shouldTranslate" : false,
"localizations" : {
"ja" : {
"stringUnit" : {
Expand Down Expand Up @@ -163,10 +162,10 @@
"value" : "%@s"
}
}
}
},
"shouldTranslate" : false
},
"%lld" : {
"shouldTranslate" : false,
"localizations" : {
"ja" : {
"stringUnit" : {
Expand Down Expand Up @@ -204,7 +203,8 @@
"value" : "%lld"
}
}
}
},
"shouldTranslate" : false
},
"%lld Articles" : {
"localizations" : {
Expand Down Expand Up @@ -247,7 +247,6 @@
}
},
"•" : {
"shouldTranslate" : false,
"localizations" : {
"ja" : {
"stringUnit" : {
Expand Down Expand Up @@ -285,7 +284,8 @@
"value" : "•"
}
}
}
},
"shouldTranslate" : false
},
"About" : {
"localizations" : {
Expand Down Expand Up @@ -3247,6 +3247,28 @@
}
}
},
"Help with translation" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "翻訳に参加"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
"value" : "Pomóż z tłumaczeniem"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "帮助翻译"
}
}
}
},
"http(s)://IP:PORT" : {
"localizations" : {
"ja" : {
Expand Down
9 changes: 6 additions & 3 deletions qBitControl/Views/TorrentViews/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ struct AboutView: View {
Text("qBitControl is the definitive remote client for managing your qBittorrent downloads on iOS devices.")
.multilineTextAlignment(.center)
List {
Link("GitHub", destination: URL(string: "https://github.com/Michael-128/qBitControl")!)
Link("Patreon", destination: URL(string: "https://patreon.com/michael128")!)
Link("Report a bug", destination: URL(string: "https://github.com/Michael-128/qBitControl/issues")!)
Section(header: Text("Information")) {
Link("GitHub", destination: URL(string: "https://github.com/Michael-128/qBitControl")!)
Link("Patreon", destination: URL(string: "https://patreon.com/michael128")!)
Link("Report a bug", destination: URL(string: "https://github.com/Michael-128/qBitControl/issues")!)
Link("Help with translation", destination: URL(string: "https://crowdin.com/project/qbitcontrol/invite?h=3bc475d8145450c4770cae83a742583c2277091")!)
}
}
}
.background(Color(.systemGroupedBackground))
Expand Down

0 comments on commit 456ce9c

Please sign in to comment.