Hello,

To have a French wordlist put in the wordlists folder to be used by the module, I only found altering the diceware_block_configure() function as this:

  $form['diceware_wordfile'] = array(
    '#type' => 'select',
    '#title' => t('Language:'),
    '#default_value' => variable_get('diceware_wordfile', 'en'),
    '#options' => array(
      'de' => t('German'),
      'en' => t('English'),
      'fr' => t('French'),
    ),

Is there a cleaner way to do so?

Comments

PhilY created an issue. See original summary.

migmedia’s picture

Issue tags: +localization l10n

No this is the intended way to localize the wordlists.

Please provide a patch and/or the link to the best french wordlist. Then I can release it as an update.

Migmedia

phily’s picture

StatusFileSize
new90.48 KB
new326 bytes

here is the patch and a French wordlist

phily’s picture

StatusFileSize
new318 bytes

Sorry, typo is patch header...

  • migmedia committed 8b84510 on 7.x-1.x authored by PhilY
    Issue #2604210 by PhilY: Localized french wordlist.
    

  • migmedia committed a25dcfa on 7.x-1.x authored by PhilY
    Issue #2604210 by PhilY: Localized french wordlist.
    
migmedia’s picture

Status: Active » Closed (fixed)