trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2014

Re: [trinity-devel] Final inspection for KDE-TDE/kde/tde rebranding issues

From: "Darrell Anderson" <darrella@...>
Date: Thu, 16 Jan 2014 15:30:36 -0600
>I'm not really clear on what it is you want to search for.

Here is a sample of the type of multiple line strings I want to 
search:

TQWhatsThis::add( clickRaiseOn, i18n("When this option is enabled, 
the active window will be brought to the"
                                    " front when you click 
somewhere into the window contents. To change"
                                    " it for inactive windows, you 
need to change the settings"
                                    " in the Actions tab.") );

The important point is the string is multiple lines. The only known 
constants are the first line contains a call to TQWhatsThis and the 
end of the string is a semi-colon.

More than likely, the last two characters are known: a closing 
parentheses and a semi-colon.

I want to run a comprehensive check against the entire source tree 
looking inside these types of strings for references to "KDE" or 
"kde." For branding purposes we want to update most of those 
references to "TDE" and "tde" respectively.

This example string does not contain a KDE/kde reference. I would 
not want this particular string to bubble up in my search. Only 
those multiple line strings that contain "KDE or "kde."

There are legitimate strings where KDE/kde should be left as is, 
such as accreditations to past developers.

I don't want to perform a search-and-replace. I only want to 
perform a search. I want to manually read any remaining KDE/kde 
remnants in context to decide whether to update to TDE/tde.

grep won't do the job. Something likely could be wrangled out of 
the -A option. but I suspect that kind of script would be slow, 
needing to continually test whether the last line contains a 
closing parentheses and a semi-colon.

I presumed somebody skilled in perl would be able to see the light 
but I am not a perl user.

I also want to perform the same type of search against TQTooTip 
multiple line strings.

There are also multiple line strings in *.ui files containing 
What's This and Tooltip strings. There the usage is different:

<property name="whatsThis" stdset="0">
  <string>Enter the command you wish to execute or the address of 
the resource you want to open. This can be a remote URL like 
"www.kde.org" or a local one like "~/.tderc".</string>
</property>

<property name="toolTip" stdset="0">
  <string>Slow processors perform poorly with effects</string>
</property>

In the *.ui files the known constants are <property name=xxx > and 
</property>.

Darrell