- The function returns one of three values:
1 - The user's preference (user.settings.preferences.<preference>)
2 - The default system setting value (Default_User_Preferences_<preference>)
3 - A default value passed as argument to the function
- Besides the introduction of the helper function:
- Removes unused preferences (user.settings.preferences.unreadRoomsMode, user.settings.preferences.audioNotificationValue) and creates migration script (v105)
- Implements some simple tests
pull/7285/head
Bruno Godoy M Correa9 years agocommitted byBruno G M Correa
"Accounts_CustomFields_Description":"Ha de ser un objecte JSON vàlid on les claus són els noms dels camps i contenen un diccionari amb les opcions del camp. Exemple:<br/><code>{\n\"role\": {\n\"type\": \"select\",\n\"defaultValue\": \"student\",\n\"options\": [\"teacher\", \"student\"],\n\"required\": true,\n\"modifyRecordField\": {\n\"array\": true,\n\"field\": \"roles\"\n}\n},\n\"twitter\": {\n\"type\": \"text\",\n\"required\": true,\n\"minLength\": 2,\n\"maxLength\": 10\n}\n}</code> ",
"Accounts_CustomFieldsToShowInUserInfo":"Camps personalitzats a mostrar a l'informació d'usuari",
"Accounts_DefaultUsernamePrefixSuggestion":"Prefix suggerit per al nom d'usuari per defecte",
"Accounts_Default_User_Preferences_desktopNotifications":"Alerta per defecte per a les notificacions d'escriptori",
"Accounts_Default_User_Preferences_mobileNotifications":"Alerta per defecte notificacions mòbil",
"Accounts_denyUnverifiedEmail":"Denegar correu electrònic sense verificar",
"Accounts_EmailVerification":"Verificació de correu electrònic",
"Accounts_EmailVerification_Description":"Assegura't que la configuració SMTP és correcta per fer servir aquesta funcionalitat",
@ -478,7 +480,6 @@
"Desktop":"Escriptori",
"Desktop_Notification_Test":"Prova de notificació d'escriptori",
"Desktop_Notifications_Default_Alert":"Alerta per defecte per a les notificacions d'escriptori",
"Desktop_Notifications_Disabled":"Les notificacions d'escriptori han estat desactivades. Canvia les preferències del navegador si vols tornar a activar-les.",
"Desktop_Notifications_Duration":"Durada de les notificacions d'escriptori",
"Desktop_Notifications_Duration_Description":"Segons de mostra de les notificacions d'escriptori. Això pot afectar al centre de notificacions del macOS. Introduïu 0 per utilitzar la configuració del navegador per defecte i no afectar al centre de notificacions.",
@ -1183,7 +1184,6 @@
"Min_length_is":"La llargada mínima és %s",
"minutes":"minuts",
"Mobile":"Mòbil",
"Mobile_Notifications_Default_Alert":"Alerta per defecte notificacions mòbil",
"Monday":"dilluns",
"Monitor_history_for_changes_on":"Monitoritza l'historial per canvis a ",
"More_channels":"Més canals",
@ -2006,4 +2006,4 @@
"your_message_optional":"el teu missatge (opcional)",
"Your_password_is_wrong":"La contrasenya és incorrecta!",
"Your_push_was_sent_to_s_devices":"La notificació push s'ha enviat a %s dispositius"
"Desktop_Notifications_Duration_Description":"Délka zobrazení oznámení (v sekundách). Toto může ovlivnit nastevení OS X Oznamovacího centra. Zadejte 0 pro použítí výchozí nastavení prohlížeče/notifikačního centra OS X",
"Accounts_CustomFields_Description":"Ein gültiges JSON, in dem die Schlüssel Sprachkürzel sind, die wiederum Tupel von Schlüssel und Übersetzungen enthalten. Beispiel: <br/>\n<code>{\n\"role\": {\n\"type\": \"select\",\n\"defaultValue\": \"student\",\n\"options\": [\"teacher\", \"student\"],\n\"required\": true,\n\"modifyRecordField\": {\n\"array\": true,\n\"field\": \"roles\"\n}\n},\n\"twitter\": {\n\"type\": \"text\",\n\"required\": true,\n\"minLength\": 2,\n\"maxLength\": 10\n}\n}</code>",
"Accounts_CustomFieldsToShowInUserInfo":"Eigene Felder, die in der Benutzer-Information angezeigt werden sollen",
"Accounts_DefaultUsernamePrefixSuggestion":"Vorschlag für Präfix des Standard-Benutzernamens ",
"Accounts_EmailVerification_Description":"Um diese Funktion nutzen zu können, stellen Sie bitte sicher, dass ihre SMTP-Einstellungen korrekt sind.",
@ -246,8 +249,6 @@
"Attribute_handling":"Behandlung von Eigenschaften",
"Audio_message":"Audio-Nachricht",
"Audio_Notification_Value_Description":"Dies kann einer der Standard-Töne (beep, chelle, ding, droplet, highbell, seasons) oder jeder eigene Ton sein",
"Desktop_Notifications_Disabled":"Desktop-Benachrichtigungen sind deaktiviert. Ändern Sie Ihre Browsereinstellungen, wenn Sie Benachrichtigungen erhalten wollen.",
"Desktop_Notifications_Duration_Description":"Zeit in Sekunden für die Desktop-Benachrichtigungen angezeigt werden sollen. Dies kann OS X Notification Center beeinflussen. Geben Sie 0 ein, um die Standard-Browser-Einstellungen zu verwenden und OS X Notification Center nicht zu beeinflussen.",
"Accounts_CustomFields_Description":"Should be a valid JSON where keys are the field names containing a dictionary of field settings. Example:<br/><code>{\n\"role\": {\n\"type\": \"select\",\n\"defaultValue\": \"student\",\n\"options\": [\"teacher\", \"student\"],\n\"required\": true,\n\"modifyRecordField\": {\n\"array\": true,\n\"field\": \"roles\"\n}\n},\n\"twitter\": {\n\"type\": \"text\",\n\"required\": true,\n\"minLength\": 2,\n\"maxLength\": 10\n}\n}</code> ",
"Accounts_CustomFieldsToShowInUserInfo":"Custom Fields to Show in User Info",
"Desktop_Notifications_Duration_Description":"Seconds to display desktop notification. This may affect OS X Notification Center. Enter 0 to use default browser settings and not affect OS X Notification Center.",
"Accounts_BlockedUsernameList_Description":"Liste de noms d'utilisateurs bloqués (insensible à la casse), séparés par des virgules",
"Accounts_CustomFields_Description":"Devrait être un JSON valide où les clés sont les noms des champs contenant un dictionnaire de champs de paramétrage. Exemple :<br/>\n<code>{\n\"role\": {\n\"type\": \"select\",\n\"defaultValue\": \"eleve\",\n\"options\": [\"enseignant\", \"eleve\"],\n\"required\": true,\n\"modifyRecordField\": {\n\"array\": true,\n\"field\": \"roles\"\n}\n},\n\"twitter\": {\n\"type\": \"text\",\n\"required\": true,\n\"minLength\": 2,\n\"maxLength\": 10\n}\n}</code> ",
"Accounts_DefaultUsernamePrefixSuggestion":"Suggestion par défaut du préfixe du nom d'utilisateur",
"Accounts_Default_User_Preferences_desktopNotifications":"Alterte notification de bureau par défaut",
"Accounts_denyUnverifiedEmail":"Refuser les e-mails non vérifiés",
"Accounts_EmailVerification":"Vérification de l'adresse e-mail",
"Accounts_EmailVerification_Description":"Vous devez avoir des paramètres SMTP corrects pour utiliser cette fonctionnalité",
@ -415,7 +416,6 @@
"Desktop":"Bureau",
"Desktop_Notification_Test":"Test des notifications sur le bureau",
"Desktop_Notifications":"Notifications sur le bureau",
"Desktop_Notifications_Default_Alert":"Alterte notification de bureau par défaut",
"Desktop_Notifications_Disabled":"Les notifications du bureau sont désactivées, Modifiez les préférences de votre navigateur si vous avez besoin de les activer.",
"Desktop_Notifications_Duration":"Durée des notifications",
"Desktop_Notifications_Duration_Description":"Secondes pour afficher une notification de bureau. Cela peut affecter le Centre de Notification de OS X. Entrez 0 pour utiliser les paramètres du navigateur par défaut et ne pas affecter le Centre de Notification de OS X.",
"Accounts_BlockedUsernameList_Description":"Lista de nomes de usuários bloqueados, separada por vírgulas (não diferencia maiúsculas)",
"Accounts_CustomFields_Description":"Deve ser um JSON válido onde as chaves são os nomes de campos contendo um dicionário de configuração de campos. Exemplo:<br/><code>{\n\"role\": {\n\"type\": \"select\",\n\"defaultValue\": \"estudante\",\n\"options\": [\"professor\", \"estudante\"],\n\"required\": true,\n\"modifyRecordField\": {\n\"array\": true,\n\"field\": \"roles\"\n}\n},\n\"twitter\": {\n\"type\": \"text\",\n\"required\": true,\n\"minLength\": 2,\n\"maxLength\": 10\n}\n}</code> ",
"Accounts_CustomFieldsToShowInUserInfo":"Campos personalizados a exibir",
"Accounts_Default_User_Preferences":"Preferências Padrões do Usuário",
"Accounts_Default_User_Preferences_audioNotifications":"Áudio padrão para alerta de notificação",
"Accounts_Default_User_Preferences_desktopNotifications":"Alerta padrão para notificações Desktop",
"Accounts_Default_User_Preferences_mobileNotifications":"Alerta padrão para notificações Mobile",
"Accounts_denyUnverifiedEmail":"Proibir e-mail não verificado",
"Accounts_EmailVerification":"Verificação de E-mail",
"Accounts_EmailVerification_Description":"Certifique-se de que as configurações de SMTP estão corretas para usar este recurso",
"Accounts_Default_User_Preferences_desktopNotifications":"Стандартные оповещения на рабочем столе",
"Accounts_denyUnverifiedEmail":"Запретить неподтверждённые адреса электронной почты",
"Accounts_EmailVerification":"Подтверждение адреса электронной почты",
"Accounts_EmailVerification_Description":"Убедитесь, что у вас верные настройки SMTP для использования этой функции",
@ -442,7 +443,6 @@
"Desktop":"Рабочий стол",
"Desktop_Notification_Test":"Проверка уведомлений рабочего стола",
"Desktop_Notifications":"Оповещения на рабочем столе",
"Desktop_Notifications_Default_Alert":"Стандартные оповещения на рабочем столе",
"Desktop_Notifications_Disabled":"Оповещения отключены. Измените настройки браузера, чтобы включить уведомления.",
"Desktop_Notifications_Duration":"Длительность",
"Desktop_Notifications_Duration_Description":"Секунды для отображения уведомлений на рабочем столе. Это может повлиять на OS X Центр уведомлений. Введите 0, чтобы использовать настройки браузера по умолчанию и не влиять на OS X Центр уведомлений.",
"Accounts_CustomFields_Description":"Anahtarların, alan ayarları sözlüğü bulunduran alan isimleri olduğu geçerli bir JSON olmalı. Örnek:<br/><code>{\n\n\"role\": {\n\n\"type\": \"select\",\n\n\"defaultValue\": \"student\",\n\n\"options\": [\"teacher\", \"student\"],\n\n\"required\": true,\n\n\"modifyRecordField\": {\n\n\"array\": true,\n\n\"field\": \"roles\"\n\n}\n\n},\n\n\"twitter\": {\n\n\"type\": \"text\",\n\n\"required\": true,\n\n\"minLength\": 2,\n\n\"maxLength\": 10\n\n}\n\n}</code> ",
"Accounts_CustomFieldsToShowInUserInfo":"Kullanıcı Bilgilerini Göstermek için Özel alanlar",
"Accounts_DefaultUsernamePrefixSuggestion":"Varsayılan kullanıcı adı ön eki tavsiyesi",
"Accounts_Default_User_Preferences_audioNotifications":"Sesli Mesaj için Varsayılan Uyarı",