Adding the ability to set and get locale

This pull will add the ability to set and get locale to system settings.  
value is used in the other cases as well, it has to be declared before the switch statement.

if (type != LOCALE)
    ret = system_settings_get_value_string(key, &value);