Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-opw-581762-port-mma into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-581762-port-mma/+merge/135068

Hello,

       I have Fixed the issue of translation of share link of share.
       Steps :- 
           Install share module and see the share link in sidebar in other 
language is not translatable.
           code is forward port from 6.1

Thanks.
Mayur
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-581762-port-mma/+merge/135068
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-opw-581762-port-mma.
=== modified file 'share/static/src/js/share.js'
--- share/static/src/js/share.js	2012-11-15 12:38:51 +0000
+++ share/static/src/js/share.js	2012-11-20 07:01:25 +0000
@@ -1,6 +1,7 @@
 
 openerp.share = function(session) {
-
+    
+    var _t = session.web._t;
     var has_action_id = false;
 
     function launch_wizard(self, view, user_type, invite) {
@@ -57,10 +58,10 @@
             this._super(this);
             has_share(function() {
                 self.add_items('other', [
-                    {   label: 'Share',
+                    {   label: _t('Share'),
                         callback: self.on_click_share,
                         classname: 'oe_share' },
-                    {   label: 'Embed',
+                    {   label: _t('Embed'),
                         callback: self.on_click_share_link,
                         classname: 'oe_share' },
                 ]);

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to