You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/12/27 23:39:57 UTC

[jira] Resolved: (SHALE-372) messages_nl.properties

     [ http://issues.apache.org/struts/browse/SHALE-372?page=all ]

Craig McClanahan resolved SHALE-372.
------------------------------------

    Fix Version/s: 1.0.4-SNAPSHOT
       Resolution: Fixed

I've added your translations to the trunk, and they will be present in the 20061228 nightly build, as well as the 1.0.4 release when it's done.  Thanks for the patch!

Regarding quotes, I think they do indeed need to be escaped ... the default processing seems to remove them, and other translations for these messages do not seem to use them.  Regarding preprocessing, that would be an interesting idea.  But, if I type "abc" into a field that expects an integer, and get back "{0} is not a number", that does not give me enough information, right?  I can type "123.456" and get yet another error ("{0} is not an integer"), and I'll start grumbling "why didn't you tell me that in the first place?"


> messages_nl.properties
> ----------------------
>
>                 Key: SHALE-372
>                 URL: http://issues.apache.org/struts/browse/SHALE-372
>             Project: Shale
>          Issue Type: Improvement
>            Reporter: Joost Schouten
>             Fix For: 1.0.4-SNAPSHOT
>
>         Attachments: messages_nl.properties
>
>
> Hi,
> Here is the nl translation for the /shale/framework/trunk/shale-validator/src/main/resources/org/apache/shale/validator/messages.properties
> I'm not quite sure if the " should be escaped or not. Also, there is no propper translation for float, integer etc. So I refered to them in their english name. However, I think it would make sence to add some sort of pre-validator checking if the the parameter is a number or not. If not, return a message like "{0} is not a number". This message is understood by the endusers better than should be a float, integer etc. Once the validator detected a number of the wrong kind display the error message indicating it is not the right type of number.
> I hope this all makes sence, and please correct me if I made a mistake in how I am contributing.
> Regards,
> Joost
> --------------------------------------------
> # Licensed to the Apache Software Foundation (ASF) under one or more
> # contributor license agreements.  See the NOTICE file distributed with
> # this work for additional information regarding copyright ownership.
> # The ASF licenses this file to you under the Apache License, Version 2.0
> # (the "License"); you may not use this file except in compliance with
> # the License.  You may obtain a copy of the License at
> #
> #     http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing, software
> # distributed under the License is distributed on an "AS IS" BASIS,
> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> # See the License for the specific language governing permissions and
> # limitations under the License.
> errors.required={0} is vereist. 
> errors.minlength={0} mag niet minder dan {1} karakter(s) hebben.
> errors.maxlength={0} mag niet meer dan {1} karakter(s) hebben.
> errors.invalid={0} is ongeldig.
> errors.byte={0} moet een "byte" zijn.
> errors.short={0} moet een "short" zijn. 
> errors.integer={0} moet een "integer" zijn.
> errors.long={0} moet een "long" zijn.
> errors.float={0} moet een "float" zijn.
> errors.double={0} moet een "double" zijn.
> errors.date={0} is geen datum.
> errors.range={0} valt buiten het bereik van {1} tot en met {2}.
> errors.creditcard={0} is een onjuist creditcardnummer.
> errors.email={0} is een onjuist e-mailadres.
> errors.url={0} is een onjuist url-adres.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira