Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sequoyah-dev] Fix for LFE - blank spaces in keys

Hi Guys, 

I opened a bug for the LFE (#327924) and submitted a patch to fix it.

The problem:
The LFE allow users to add keys with blank spaces on it. However, in most cases this might not be allowed. The reference implementation itself is an example: you will broke your Android project if you add a key with blank spaces on it, .

The solution:
A new abstract method was added to ILocalizationSchema  [boolean keyAcceptsBlankSpaces()]. All localization schemas must implement this method, returning true if keys with blank spaces are permitted in that schema or false otherwise. The "New key" dialog was also modified to validate that accordingly, displaying a message to the user in case the key has blank spaces but it's not permitted.

Am I correct? Please advise.

Regards, 
Vinicius

Back to the top