As of 7.x-2.4, localize.drupal.org identifies 3 potential problems with the source code.
My tuppence Initial assessment:

  1. watchdog('@font-your-face',$message,$arguments,WATCHDOG_INFO) in fontyourface/fontyourface.module on line 674: this is a false positive and doesn't need fixing. All existing calls to fontyourface_log() take the limitations into account;
  2. t($data->error) in fontyourface/modules/fontdeck/fontdeck.module on line 40: this is somewhat moot, but probably should be fixed; while there is a finite set of possible error strings and it might make sense to translate them, the problem is you don't get to translate the string before you get the error itself;
  3. t($font->name) in fontyourface/modules/fontyourface_ui/fontyourface_ui.module on line 738: this should be fixed. There's no point in translating font names.

Comments

Drave Robber’s picture

On a second thought, there's something to 1., too: the way it's done now, strings are picked up for translation when they're first used, not when the code is enabled. This is probably too minor a problem to change the whole setup; however, some documentation for fontyourface_log() could be useful - just in case some third-party module wants to use the function.

Drave Robber’s picture

Title: Source code warnings from localization system » Fix source code warnings from localization system
Status: Active » Needs review
StatusFileSize
new2.35 KB

Patch attached. (adds some documentation to fontyourface_log() and fixes 2. and 3.)

sreynen’s picture

Status: Needs review » Fixed

Looks good, committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

ol instead of ul, for easier reference.