PDA

View Full Version : Filters - Translation



HAMON Michel
22 Jul 2010, 6:08 AM
Hi, in GridFilters.java, "Filters" is not translated
checkFilterItem = new CheckMenuItem("Filters");
FYI: In french, the translation is "Filtres"

In StringFilter.java, "emptyText" is not translated (it can be set with setEmptyText but it can be a good enhancement to translate it by default).
private String emptyText = "Enter filter text...";
Perhaps XMessages.textField_emptyText has been created for this usage?

In BooleanFilter.java "Yes"/"No" can't be translated, i think that you can translate them.
Same problem in other filters.

Please take time for translate your api.
I think that it's stupid to force everybody who use your api to do translation.

Thanx

SopGreg
22 Oct 2010, 4:16 AM
I agree, the grid filters definitely need to be translated

sven
22 Oct 2010, 6:13 AM
They can be translated. If you could supply the translations for your locales, i will add them.


#GridFilters
gridFilters_filterText=Filters

#Filters
stringFilter_emptyText=Enter filter text...
numericFilter_emptyText=Enter filter text...
booleanFilter_noText=No
booleanFilter_yesText=Yes
dateFilter_afterText=After
dateFilter_beforeText=Before
dateFilter_onText=On

SopGreg
22 Oct 2010, 6:37 AM
XMessages_de, obviously ;-)

#GridFilters
gridFilters_filterText=Filter

#Filters
stringFilter_emptyText=Text eingeben...
numericFilter_emptyText=Text eingeben...
booleanFilter_noText=nein
booleanFilter_yesText=ja
dateFilter_afterText=vor
dateFilter_beforeText=nach
dateFilter_onText=am

There's also a typo, it should be:

timeField_invalidText={0} ist keine g├╝ltige Zeit

sven
22 Oct 2010, 6:39 AM
I already added the german one ;). Not yet in SVN