Convert BlackBerry permission tooltips to HTML.

The manual wrapping is hard to handle for translators.

Change-Id: Iec1247bcb54c4ceedc90c721e7c2fab5b96b1545
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Friedemann Kleint
2013-05-23 13:35:02 +02:00
parent 6a29734714
commit 98856feeea

View File

@@ -142,61 +142,60 @@ void BarDescriptorPermissionsModel::initModel()
{ {
beginResetModel(); beginResetModel();
m_permissions << BarDescriptorPermission(tr("BlackBerry Messenger"), QLatin1String("bbm_connect"), m_permissions << BarDescriptorPermission(tr("BlackBerry Messenger"), QLatin1String("bbm_connect"),
tr("Allows this app to connect to the BBM Social Platform to access BBM\n" tr("<html><head/><body><p>Allows this app to connect to the BBM Social Platform to access BBM "
"contact lists and user profiles, invite BBM contacts to download your\n" "contact lists and user profiles, invite BBM contacts to download your "
"app, initiate BBM chats and share content from within your app, or\n" "app, initiate BBM chats and share content from within your app, or "
"stream data between apps in real time.")); "stream data between apps in real time.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Calendar"), QLatin1String("access_pimdomain_calendars"), m_permissions << BarDescriptorPermission(tr("Calendar"), QLatin1String("access_pimdomain_calendars"),
tr("Allows this app to access the calendar on the device. This access\n" tr("<html><head/><body><p>Allows this app to access the calendar on the device. This access "
"includes viewing, adding, and deleting calendar appointments.")); "includes viewing, adding, and deleting calendar appointments.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Camera"), QLatin1String("use_camera"), m_permissions << BarDescriptorPermission(tr("Camera"), QLatin1String("use_camera"),
tr("Allows this app to take pictures, record video, and use the flash.")); tr("<html><head/><body><p>Allows this app to take pictures, record video, and use the flash.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Contacts"), QLatin1String("access_pimdomain_contacts"), m_permissions << BarDescriptorPermission(tr("Contacts"), QLatin1String("access_pimdomain_contacts"),
tr("Allows this app to access the contacts stored on the device. This\n" tr("<html><head/><body><p>Allows this app to access the contacts stored on the device. This "
"access includes viewing, creating, and deleting the contacts.")); "access includes viewing, creating, and deleting the contacts.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Device Identifying Information"), QLatin1String("read_device_identifying_information"), m_permissions << BarDescriptorPermission(tr("Device Identifying Information"), QLatin1String("read_device_identifying_information"),
tr("Allows this app to access device identifiers such as serial number and PIN.")); tr("<html><head/><body><p>Allows this app to access device identifiers such as serial number and PIN.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Email and PIN Messages"), QLatin1String("access_pimdomain_messages"), m_permissions << BarDescriptorPermission(tr("Email and PIN Messages"), QLatin1String("access_pimdomain_messages"),
tr("Allows this app to access the email and PIN messages stored on the\n" tr("<html><head/><body><p>Allows this app to access the email and PIN messages stored on the "
"device. This access includes viewing, creating, sending, and deleting\n" "device. This access includes viewing, creating, sending, and deleting the messages.</p></body></html>"));
"the messages."));
m_permissions << BarDescriptorPermission(tr("GPS Location"), QLatin1String("read_geolocation"), m_permissions << BarDescriptorPermission(tr("GPS Location"), QLatin1String("read_geolocation"),
tr("Allows this app to access the current GPS location of the device.")); tr("<html><head/><body><p>Allows this app to access the current GPS location of the device.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Internet"), QLatin1String("access_internet"), m_permissions << BarDescriptorPermission(tr("Internet"), QLatin1String("access_internet"),
tr("Allows this app to use Wi-fi, wired, or other connections to a\n" tr("<html><head/><body><p>Allows this app to use Wi-fi, wired, or other connections to a "
"destination that is not local on the user's device.")); "destination that is not local on the user's device.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Location"), QLatin1String("access_location_services"), m_permissions << BarDescriptorPermission(tr("Location"), QLatin1String("access_location_services"),
tr("Allows this app to access the device's current or saved locations.")); tr("<html><head/><body><p>Allows this app to access the device's current or saved locations.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Microphone"), QLatin1String("record_audio"), m_permissions << BarDescriptorPermission(tr("Microphone"), QLatin1String("record_audio"),
tr("Allows this app to record sound using the microphone.")); tr("<html><head/><body><p>Allows this app to record sound using the microphone.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Notebooks"), QLatin1String("access_pimdomain_notebooks"), m_permissions << BarDescriptorPermission(tr("Notebooks"), QLatin1String("access_pimdomain_notebooks"),
tr("Allows this app to access the content stored in the notebooks on the\n" tr("<html><head/><body><p>Allows this app to access the content stored in the notebooks on the "
"device. This access includes adding and deleting entries and content.")); "device. This access includes adding and deleting entries and content.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Post Notifications"), QLatin1String("post_notification"), m_permissions << BarDescriptorPermission(tr("Post Notifications"), QLatin1String("post_notification"),
tr("Post a notification to the notifications area of the screen.")); tr("<html><head/><body><p>Post a notification to the notifications area of the screen.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Push"), QLatin1String("_sys_use_consumer_push"), m_permissions << BarDescriptorPermission(tr("Push"), QLatin1String("_sys_use_consumer_push"),
tr("Allows this app to use the Push Service with the BlackBerry Internet\n" tr("<html><head/><body><p>Allows this app to use the Push Service with the BlackBerry Internet "
"Service. This access allows the app to receive and request push\n" "Service. This access allows the app to receive and request push "
"messages. To use the Push Service with the BlackBerry Internet Service,\n" "messages. To use the Push Service with the BlackBerry Internet Service, "
"you must register with BlackBerry. When you register, you\n" "you must register with BlackBerry. When you register, you "
"receive a confirmation email message that contains information that\n" "receive a confirmation email message that contains information that "
"your application needs to receive and request push messages. For more\n" "your application needs to receive and request push messages. For more "
"information about registering, visit\n" "information about registering, visit "
"https://developer.blackberry.com/services/push/. If you're using the\n" "https://developer.blackberry.com/services/push/. If you're using the "
"Push Service with the BlackBerry Enterprise Server or the BlackBerry\n" "Push Service with the BlackBerry Enterprise Server or the BlackBerry "
"Device Service, you don't need to register with BlackBerry.")); "Device Service, you don't need to register with BlackBerry.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Run When Backgrounded"), QLatin1String("run_when_backgrounded"), m_permissions << BarDescriptorPermission(tr("Run When Backgrounded"), QLatin1String("run_when_backgrounded"),
tr("Allows background processing. Without this permission, the app is\n" tr("<html><head/><body><p>Allows background processing. Without this permission, the app is "
"stopped when the user switches focus to another app. Apps that use this\n" "stopped when the user switches focus to another app. Apps that use this "
"permission are rigorously reviewed for acceptance to BlackBerry App\n" "permission are rigorously reviewed for acceptance to BlackBerry App "
"World storefront for their use of power.")); "World storefront for their use of power.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Shared Files"), QLatin1String("access_shared"), m_permissions << BarDescriptorPermission(tr("Shared Files"), QLatin1String("access_shared"),
tr("Allows this app to access pictures, music, documents, and other files\n" tr("<html><head/><body><p>Allows this app to access pictures, music, documents, and other files "
"stored on the user's device, at a remote storage provider, on a media\n" "stored on the user's device, at a remote storage provider, on a media "
"card, or in the cloud.")); "card, or in the cloud.</p></body></html>"));
m_permissions << BarDescriptorPermission(tr("Text Messages"), QLatin1String("access_sms_mms"), m_permissions << BarDescriptorPermission(tr("Text Messages"), QLatin1String("access_sms_mms"),
tr("Allows this app to access the text messages stored on the device. The\n" tr("<html><head/><body><p>Allows this app to access the text messages stored on the device. The "
"access includes viewing, creating, sending, and deleting text messages.")); "access includes viewing, creating, sending, and deleting text messages.</p></body></html>"));
endResetModel(); endResetModel();
} }