Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
install system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2010 at 08:31 UTC
Updated:
7 Feb 2011 at 03:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bojanz commentedComment #2
batigolixDONT USE PATCH BELOW
Comment #3
batigolixComment #4
batigolixnew patch for dashboard module
Comment #5
batigolixanother patch for missing t in install script
Comment #7
David_Rothstein commentedThanks! It looks like we do indeed need to clean up the way this part of the code uses translations. However, most of the strings in this patch are already translated elsewhere, via the calling code:
Notice how it already translates them and does proper substitution of %query, %error, etc. We don't want to translate them twice; however, the question is, with the current method, will the string extractor ever be able to pick up these strings and know they are translatable (or do we need to file another issue for that somewhere, and if so, where)?
This part (the last hunk of the patch) does look to me like it needs to be translated inline. However, since this is in the installer, we need to use st(), not t(). Also, HTML such as <p> should not be in the translatable string unless it is part of the sentence. In other words, it should actually look like this:
Comment #8
SebCorbin commentedWhy not use this patch ? These strings are still untranslated for now...
Comment #9
David_Rothstein commented@SebCorbin, the patch you posted is for the dashboard module and isn't related to this issue.
Could you post it as a separate issue under the "dashboard.module" component instead? (I think it makes sense, but translation of region names is actually tricky.) When you create the new issue, you can feel free to link to it here so interested people can follow up on it. Thanks!
Comment #10
David_Rothstein commented@SebCorbin posted that patch at #1049658: Dashboard region strings are untranslated where it is now being discussed. (Thanks!)
To clarify, it seems there have been several patches posted in this issue for the dashboard module (I didn't realize that wasn't the first one), for reasons I don't really understand :) This issue started out being about translations in the database installation code, and that's what the previous most recent patch in #5 was about, so let's continue reviewing and working on that one.