Skip to content

Commit 83d66bc

Browse files
criticalAYlukstbit
authored andcommitted
feat: add licenses wiki page link
1 parent aac07de commit 83d66bc

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/preferences/AboutFragment.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@ class AboutFragment :
9191
val gplLicenseLink = getString(R.string.licence_wiki)
9292
val agplLicenseLink = getString(R.string.link_agpl_wiki)
9393
val sourceCodeLink = getString(R.string.link_source)
94+
val dependencyLicenseLink = getString(R.string.dependency_license_wiki)
9495
view.findViewById<TextView>(R.id.about_license_description).apply {
95-
text = getString(R.string.license_description, gplLicenseLink, agplLicenseLink, sourceCodeLink).parseAsHtml()
96+
text =
97+
(
98+
getString(R.string.license_description, gplLicenseLink, agplLicenseLink, sourceCodeLink) + "<br>" +
99+
getString(R.string.other_licenses, dependencyLicenseLink)
100+
).parseAsHtml()
96101
movementMethod = LinkMovementMethod.getInstance()
97102
}
98103

AnkiDroid/src/main/res/values/10-preferences.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@
253253
<string name="about_contributors_description"><![CDATA[These are our awesome <a href=\"%1$s\">contributors</a>. You can help AnkiDroid too by programming, translating, donating and <a href=\"%2$s\">more</a>!]]></string>
254254
<string name="license">License</string>
255255
<string name="license_description"><![CDATA[AnkiDroid is released under the <a href=\"%1$s\">GPL-3.0</a> and <a href=\"%2$s\">AGPL-3.0</a> licenses, with the source code available <a href=\"%3$s\">on GitHub</a>]]></string>
256+
<string name="other_licenses"><![CDATA[AnkiDroid also uses third-party libraries and icons, which are licensed under various open source <a href=\"%1$s\">licenses</a>]]></string>
256257
<string name="donate_description"><![CDATA[You can support AnkiDroid\'s development by <a href=\"%1$s\">donating</a>. Any amount is deeply appreciated.]]></string>
257258

258259
<!-- Controls -->

AnkiDroid/src/main/res/values/constants.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
<string name="link_anki_forum">https://forums.ankiweb.net/</string>
108108
<string name="link_forum">http://groups.google.com/group/anki-android</string>
109109
<string name="licence_wiki">http://www.gnu.org/licenses/gpl.html</string>
110+
<string name="dependency_license_wiki">https://github.com/ankidroid/Anki-Android/wiki/Licences</string>
110111
<string name="link_agpl_wiki">https://www.gnu.org/licenses/agpl-3.0.html</string>
111112
<string name="link_source">https://github.com/ankidroid/Anki-Android</string>
112113
<string name="link_market">market://details?id=com.ichi2.anki</string>

0 commit comments

Comments
 (0)