2013-04-27, 00:56:20
I have adapted your plugin to accept translation, and created english and romanian translation files.
( I use your plugin as an more elegant alternative to components, and Slogans did not seem to be a suitable module "name" for my client. )
This is very easily done with a translation file. I named my translations "Elements" trying to be self-explanatory.
I would like to post the modified version, but I think that it would be best for you to integrate the changes in a new release.
There is allso a tiny modification in slogan.js, at line 4,
I did not knew how to integrate i18n translation for a text in the js file
$('.new-slogans-box').append('Name: <input name="new_slogans[]" type="text" placeholder="Enter name of a new element"><br>');
notice the 'element' instead of slogan.
... placeholder="Enter name of a new element"
Modify that as you think suitable.
Here it is the modified version
slogans v1.2.zip (Size: 5.55 KB / Downloads: 9)
or on speedyshare:
http://speedy.sh/P6Rcv/slogans-v1.2.zip
Excelent job, and keep on the good work.
( I use your plugin as an more elegant alternative to components, and Slogans did not seem to be a suitable module "name" for my client. )
This is very easily done with a translation file. I named my translations "Elements" trying to be self-explanatory.
I would like to post the modified version, but I think that it would be best for you to integrate the changes in a new release.
There is allso a tiny modification in slogan.js, at line 4,
I did not knew how to integrate i18n translation for a text in the js file
$('.new-slogans-box').append('Name: <input name="new_slogans[]" type="text" placeholder="Enter name of a new element"><br>');
notice the 'element' instead of slogan.
... placeholder="Enter name of a new element"
Modify that as you think suitable.
Here it is the modified version
slogans v1.2.zip (Size: 5.55 KB / Downloads: 9)
or on speedyshare:
http://speedy.sh/P6Rcv/slogans-v1.2.zip
Excelent job, and keep on the good work.