labels for presets

igorik - July 4, 2009 - 14:11
Project:ImageCache
Version:6.x-2.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi

there couldn't be localized characters in presets namespaces and spaces.
But there are lot of modules (fielfield insert,l image browser, imce...)
where you can choose imagecache preset for inserted image right in UI, by preset name.

But, it is really hard, if you are using some language with spatial characters and you want to have imagecache name at least a bit understand and nice too.

The solution could be to add labels for presets. So the preset namespace would be as it is now, only use alphanumeric characters, underscores (_), and hyphens (-) for internal use, but the label could be have text with spaces and localized characters for visible UI in other modules.
While adding/editing preset you could write
1.) preset namespace name(for internal use),
2.) preset name-label (for public)

So in the future it could be look e.g. in Slovak language like this:
preset namespace: Velky_obrazok_do_clanku
preset name-label: Veľký obrázok do článku

Probably best solution would be if preset namespace for internal use could be done automaticly from label (once, for the first time). After then label could be changed many times, but reference to internal namespace name stay untouched. Then user will be see only input for label of preset name.

thanks
Igor
http://www.somvprahe.sk

 
 

Drupal is a registered trademark of Dries Buytaert.