Help with text replacement plugin


#1

Hi guys,

I thought of having a plugin which replaces text with the tag of an
image (f.e. ‘read’ => ‘’) would be great.

I started with to create this plugin, but I didn’t get far. Is there
anyone who can help me with this? My idea is to have all ‘translations’
in a *.yml file. But I don’t know how to load this file from the plugin
and how to store the values in an array.

If someone would like to help with this small but handy plugin, please
let me know. I’ll put my stuff on github then.

Thanks a lot in advance.

-patrick


#2

solved.

http://github.com/pathe/replacr/tree/master


#3

If someone would like to help with this small but handy plugin, please
let me know. I’ll put my stuff on github then.

A well crafted gsub can do that easily.