mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
Add a link to the user guide in the help view
This commit is contained in:
parent
fd100e8378
commit
3aba3bc975
7 changed files with 67 additions and 0 deletions
21
Linphone/Assets.xcassets/book-open-text.imageset/Contents.json
vendored
Normal file
21
Linphone/Assets.xcassets/book-open-text.imageset/Contents.json
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "book-open-text.svg",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
1
Linphone/Assets.xcassets/book-open-text.imageset/book-open-text.svg
vendored
Normal file
1
Linphone/Assets.xcassets/book-open-text.imageset/book-open-text.svg
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64ZM160,88h40a8,8,0,0,1,0,16H160a8,8,0,0,1,0-16Zm48,40a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,128Zm0,32a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,160Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 586 B |
|
|
@ -186,6 +186,8 @@
|
|||
"help_about_advanced_title" = "Pokročilé";
|
||||
"help_about_check_for_update" = "Kontrola aktualizací";
|
||||
"help_about_privacy_policy_title" = "Zásady ochrany soukromí";
|
||||
"help_about_user_guide_title" = "Průvodce Linphone";
|
||||
"help_about_user_guide_subtitle" = "Naučte se krok za krokem ovládat všechny funkce aplikace.";
|
||||
"help_about_version_title" = "Verze";
|
||||
"help_dialog_update_available_title" = "Je dostupná nová aktualizace";
|
||||
"help_quit_title" = "Ukončit aplikaci";
|
||||
|
|
@ -500,6 +502,7 @@
|
|||
"ZRTP" = "ZRTP";
|
||||
"website_download_url" = "https://linphone.org/linphone-softphone";
|
||||
"website_open_source_licences_usage_url" = "https://wiki.linphone.org/xwiki/wiki/public/view/Linphone/Third%20party%20components%20/";
|
||||
"website_user_guide_url" = "https://linphone.org/en/docs/";
|
||||
"website_privacy_policy_url" = "https://linphone.org/en/privacy-policy";
|
||||
"website_terms_and_conditions_url" = "https://www.linphone.org/en/terms-of-use";
|
||||
"website_translate_weblate_url" = "https://weblate.linphone.org/";
|
||||
|
|
|
|||
|
|
@ -281,6 +281,8 @@
|
|||
"help_about_privacy_policy_subtitle" = "What information Linphone collects and uses";
|
||||
"help_about_privacy_policy_title" = "Privacy policy";
|
||||
"help_about_title" = "About Linphone";
|
||||
"help_about_user_guide_title" = "Linphone user guide";
|
||||
"help_about_user_guide_subtitle" = "Learn how to master all app features, step by step.";
|
||||
"help_about_version_title" = "Version";
|
||||
"help_dialog_update_available_message" = "A new version %@ is available. Do you want to update?";
|
||||
"help_dialog_update_available_title" = "Update available";
|
||||
|
|
@ -504,6 +506,7 @@
|
|||
"website_contact_url" = "https://linphone.org/contact";
|
||||
"website_download_url" = "https://linphone.org/linphone-softphone";
|
||||
"website_open_source_licences_usage_url" = "https://wiki.linphone.org/xwiki/wiki/public/view/Linphone/Third%20party%20components%20/";
|
||||
"website_user_guide_url" = "https://linphone.org/en/docs/";
|
||||
"website_privacy_policy_url" = "https://linphone.org/en/privacy-policy";
|
||||
"website_terms_and_conditions_url" = "https://www.linphone.org/en/terms-of-use";
|
||||
"website_translate_weblate_url" = "https://weblate.linphone.org/";
|
||||
|
|
|
|||
|
|
@ -281,6 +281,8 @@
|
|||
"help_about_privacy_policy_subtitle" = "Quelles informations Linphone collecte et utilise";
|
||||
"help_about_privacy_policy_title" = "Politique de confidentialité";
|
||||
"help_about_title" = "À propos de Linphone";
|
||||
"help_about_user_guide_title" = "Guide utilisateur Linphone";
|
||||
"help_about_user_guide_subtitle" = "Apprenez à maîtriser toutes les fonctionnalités de l'application, pas à pas.";
|
||||
"help_about_version_title" = "Version";
|
||||
"help_dialog_update_available_message" = "Une nouvelle version %@ est disponible. Voulez-vous mettre à jour ?";
|
||||
"help_dialog_update_available_title" = "Mise à jour disponible";
|
||||
|
|
@ -504,6 +506,7 @@
|
|||
"website_contact_url" = "https://linphone.org/contact";
|
||||
"website_download_url" = "https://linphone.org/linphone-softphone";
|
||||
"website_open_source_licences_usage_url" = "https://wiki.linphone.org/xwiki/wiki/public/view/Linphone/Third%20party%20components%20/";
|
||||
"website_user_guide_url" = "https://linphone.org/docs/";
|
||||
"website_privacy_policy_url" = "https://linphone.org/en/privacy-policy";
|
||||
"website_terms_and_conditions_url" = "https://www.linphone.org/en/terms-of-use";
|
||||
"website_translate_weblate_url" = "https://weblate.linphone.org/";
|
||||
|
|
|
|||
|
|
@ -100,6 +100,8 @@
|
|||
"generic_address_picker_suggestions_list_title" = "Пропозиції";
|
||||
"help_about_advanced_title" = "Розширений";
|
||||
"help_about_check_for_update" = "Перевірити оновлення";
|
||||
"help_about_user_guide_title" = "Linphone посібник користувача";
|
||||
"help_about_user_guide_subtitle" = "Дізнайтеся, як опанувати всі функції програми крок за кроком.";
|
||||
"help_about_version_title" = "Версія";
|
||||
"help_dialog_update_available_title" = "Доступне оновлення";
|
||||
"help_error_checking_version_toast_message" = "Під час перевірки оновлень сталася помилка";
|
||||
|
|
@ -403,6 +405,7 @@
|
|||
"settings_calls_calibrate_echo_canceller_done" = "%@ мс";
|
||||
"welcome_page_1_message" = "**Захищений**, **з відкритим вихідним кодом** та **французький** застосунок для спілкування.";
|
||||
"help_dialog_update_available_message" = "Доступна нова версія %@. Бажаєте оновити?";
|
||||
"website_user_guide_url" = "https://linphone.org/en/docs/";
|
||||
"website_privacy_policy_url" = "https://linphone.org/en/privacy-policy";
|
||||
"welcome_page_3_message" = "**Безкоштовний** застосунок з відкритим кодом з **2001 року**.";
|
||||
"welcome_page_subtitle" = "в %@";
|
||||
|
|
|
|||
|
|
@ -75,6 +75,39 @@ struct HelpFragment: View {
|
|||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding(.bottom, 5)
|
||||
|
||||
Button {
|
||||
if let url = URL(string: NSLocalizedString("website_user_guide_url", comment: "")) {
|
||||
UIApplication.shared.open(url)
|
||||
}
|
||||
} label: {
|
||||
HStack {
|
||||
Image("book-open-text")
|
||||
.renderingMode(.template)
|
||||
.resizable()
|
||||
.foregroundStyle(Color.orangeMain500)
|
||||
.frame(width: 30, height: 30)
|
||||
|
||||
VStack {
|
||||
Text("help_about_user_guide_title")
|
||||
.default_text_style_700(styleSize: 14)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.multilineTextAlignment(.leading)
|
||||
|
||||
Text("help_about_user_guide_subtitle")
|
||||
.default_text_style(styleSize: 14)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.multilineTextAlignment(.leading)
|
||||
}
|
||||
.padding(.horizontal, 5)
|
||||
|
||||
Image("arrow-square-out")
|
||||
.renderingMode(.template)
|
||||
.resizable()
|
||||
.foregroundStyle(Color.grayMain2c600)
|
||||
.frame(width: 25, height: 25)
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
if let url = URL(string: NSLocalizedString("website_privacy_policy_url", comment: "")) {
|
||||
UIApplication.shared.open(url)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue