Added weblate link in about page + fixed copyright year & french translation

This commit is contained in:
Sylvain Berfini 2022-02-01 10:42:09 +01:00
parent a0ebeb1fea
commit cf52d5ab3d
5 changed files with 45 additions and 4 deletions

View file

@ -58,5 +58,13 @@ class AboutFragment : SecureFragment<AboutFragmentBinding>() {
)
startActivity(browserIntent)
}
binding.setWeblateClickListener {
val browserIntent = Intent(
Intent.ACTION_VIEW,
Uri.parse(getString(R.string.about_weblate_link))
)
startActivity(browserIntent)
}
}
}

View file

@ -12,6 +12,9 @@
<variable
name="licenseClickListener"
type="android.view.View.OnClickListener"/>
<variable
name="weblateClickListener"
type="android.view.View.OnClickListener"/>
<variable
name="viewModel"
type="org.linphone.activities.main.about.AboutViewModel" />
@ -163,9 +166,21 @@
android:layout_gravity="center"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="20dp"
android:paddingBottom="10dp"
android:text="@string/about_text" />
<TextView
android:onClick="@{weblateClickListener}"
android:textColor="?attr/accentColor"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="20dp"
android:text="@string/about_weblate_translation" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"

View file

@ -12,6 +12,9 @@
<variable
name="licenseClickListener"
type="android.view.View.OnClickListener"/>
<variable
name="weblateClickListener"
type="android.view.View.OnClickListener"/>
<variable
name="viewModel"
type="org.linphone.activities.main.about.AboutViewModel" />
@ -167,9 +170,21 @@
android:layout_gravity="center"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="20dp"
android:paddingBottom="10dp"
android:text="@string/about_text" />
<TextView
android:onClick="@{weblateClickListener}"
android:textColor="?attr/accentColor"
android:textSize="16sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="20dp"
android:text="@string/about_weblate_translation" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"

View file

@ -41,7 +41,7 @@
<string name="content_description_remove_contact_from_selection">Retirer le contact</string>
<string name="service_auto_start_description">&appName; a démarré automatiquement</string>
<string name="sync_account_name">Contacts &appName;</string>
<string name="about_privacy_policy">Consultez notre politique de confidentialité</string>
<string name="about_privacy_policy">Consulter notre politique de confidentialité</string>
<string name="logs_url_copied_to_clipboard">URL des traces copiée dans le presse-papier</string>
<string name="error">Erreur</string>
<string name="phone_number">Numéro de téléphone</string>
@ -632,4 +632,5 @@
<string name="call_settings_ringtones_title">Sonnerie</string>
<string name="chat_message_removal_info">Le message va être supprimé</string>
<string name="chat_message_abort_removal">Annuler</string>
<string name="about_weblate_translation">Contribuer aux traductions</string>
</resources>

View file

@ -20,7 +20,9 @@
<string name="about_version" translatable="false">&appName; Android %s</string>
<string name="about_liblinphone_sdk_version" translatable="false">&appName; SDK %s</string>
<string name="about_privacy_policy">Visit our privacy policy</string>
<string name="about_text" translatable="false">GNU General Public License v3.0\n © 20102021 Belledonne Communications</string>
<string name="about_text" translatable="false">GNU General Public License v3.0\n © 20102022 Belledonne Communications</string>
<string name="about_weblate_link" translatable="false">https://weblate.linphone.org/projects/linphone/</string>
<string name="about_weblate_translation">Help us translate Linphone</string>
<!-- Logs -->
<string name="logs_upload_failure">Failed to upload logs!</string>