PKP Bugzilla – Bug 5957
addThis code contains hard coded strings (not translated) and element styles.
Last modified: 2012-09-21 13:13:21 PDT
We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.
alt="Bookmark and Share"
title="Bookmark using any bookmark manager!"
strings should be translated and styles should be managed via CSS only
Some other less than optimal implementation issues IMO:
- SharingRT::getLanguages() contains a hard coded language list. This should probably go to Locale or some other library class unless this list is somehow restricted by "share-this".
- SharingRT::getBtnStyles() contains information that belongs into the view and should be held somewhere there (image names, image pixel width and height).
- both methods are not properly documented.
- If we had a CSS-styled button with a background image then we probably wouldn't need translated images at all which would make maintenance of this RT much easier.
border, height and width should also be set via CSS and not via html
(In reply to comment #1)
> - SharingRT::getLanguages() contains a hard coded language list. This should
> probably go to Locale or some other library class unless this list is somehow
> restricted by "share-this".
PKPLocale now contains conversion methods (see #5983) that take a locale to an iso 3-letter code (and vice-versa) and that convert between iso 2- and 3-letter codes for languages. Use these methods rather than SharingRT::getLanguages().