Import of an override with blank msgstr fails

Mark Theunissen - March 4, 2009 - 17:52
Project:String Overrides
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Rob Loach
Status:closed
Description

I use string overrides to remove some strings completely. The problem is that when I import a .po file with an empty msgstr, it gets discarded. The patch just removes the check ...

if (!empty($currentstring) && !empty($currentoverride)) {

becomes:

if (!empty($currentoverride)) {

Thanks!

#1

Mark Theunissen - March 4, 2009 - 17:53

#2

Rob Loach - March 5, 2009 - 20:27
Assigned to:Mark Theunissen» Rob Loach
Status:needs review» reviewed & tested by the community

#3

Rob Loach - March 8, 2009 - 10:38
Status:reviewed & tested by the community» fixed

Committed! Thanks!

#4

System Message - March 22, 2009 - 10:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.