Skip to content

full rewrite for internationalization and email analysys clarification

Compare
Choose a tag to compare
@alexandrecuer alexandrecuer released this 20 Aug 07:43
· 191 commits to master since this release
052aa02
  • /config/config.yml now contains only config vars
    to access them, use Rails.configuration.sharebox["xxxx"]
    config vars actually used : version, company, admin_mel, downcase_email_search_autocomplete

  • I18n : implementation of 2 languages french (fr) and english (en).
    User can shoose the app locale via a minimal user dashboard.
    locale files are in /config/locales (if yy is the locale, files are sb.yy.yml and mel.yy.yml)
    usage in the app should be done as follow:
    -- in controllers and classic views -> t('sb.xxxx')
    -- in models -> I18n.t('sb.xxxx')
    -- in javascript/ajax views -> sb["xxxx"]

  • fix for the getpolls route

  • corrected bug in email verification (surveys>_new.js & poll model - csv method) for emails like [email protected]

  • in order to correct a bug when local-part of a new user email address contains capitals, the "email policy" has been clarified
    introducing in /config/config.yml a new var :

downcase_email_search_autocomplete: true

when set to true, email verification and storage in colibri follows the below rules :
-- devise stores emails in the users table without case sensitivity
-- colibri stores them with case sensitivity in the shared_folders and clients tables
-- all research and autocompletion tasks are done without case sensitivity

cf RFC5322 and RFC 6530