Needs work
Project:
Google Buzz
Version:
6.x-1.4-beta1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2010 at 13:41 UTC
Updated:
14 Apr 2010 at 13:38 UTC
Jump to comment: Most recent file
Drupal 6 provides Drupal.behaviors to attach handlers to DOM.
It's not good idea to attach js at hook_init() suppose it's better to put this into hook_nodeapi where it's really should happen now
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 715842-translatable-d6.patch | 597 bytes | andypost |
| #2 | buzzthis_js_standardize_to_d6_document_behavior.patch | 1.32 KB | zyxware |
Comments
Comment #1
chia commentedhi,
thanks, i will edit it next update.
Comment #2
zyxware commentedHere is a patch that changes the way buzzthis hooks into the document.load using Drupal.behaviors
Comment #3
andypostYes, it works
Comment #4
chia commentedComment #5
andypostjs strings should be translatable. So "Google Buzz" should be Drupal.t("Google Buzz")
Comment #6
chia commentedI am marking this as fixed.
Language can be selected from 'admin/settings/buzzthis'.
Comment #7
andypostOh I see, but for list of languages better use http://api.drupal.org/api/function/_locale_get_predefined_list/6
Comment #8
chia commentedYes, I used this as a reference
http://www.google.com/buzz/api/admin/configPostWidget
New Buzz script has a default input as a language now.
Comment #9
andypostI know but language names also should be translated
Comment #10
chia commentedOk right :)