tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Borut Bolcina (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TAP5-409) First entry in properties file for localization is never used.
Date Wed, 10 Dec 2008 20:02:44 GMT

    [ https://issues.apache.org/jira/browse/TAP5-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655338#action_12655338
] 

Borut Bolcina commented on TAP5-409:
------------------------------------

I played a little more with Notepad++ Format/Convert commands. There is an option Convert
to "UTF-8 without BOM". If file is encoded with this option then the translation works. So
it has to do something with Byte Order Mark.

> First entry in properties file for localization is never used.
> --------------------------------------------------------------
>
>                 Key: TAP5-409
>                 URL: https://issues.apache.org/jira/browse/TAP5-409
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.0.15, 5.0.16, 5.0.17
>            Reporter: Borut Bolcina
>         Attachments: locale-not-working.zip
>
>
> app.properties has 3 entries:
> openid-provider-title=OpenID provider
> my-account-link=My account
> login-link=Login
> index.tml
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> 	<head>
> 		<title>${message:openid-provider-title}</title>
> 		<link rel="stylesheet" type="text/css" href="${asset:context:css/iopenid.css}" />
> 	</head>
> 	<body>
> 		<t:security.ifloggedin>
> 			<p><t:userdetails /> <a t:type="pagelink" t:page="AccountEdit" href="#">${message:my-account-link}</a>
<a t:type="actionlink" t:id="logout">odjava</a></p>
> 			<t:parameter name="else">
> 				<a t:type="pagelink" t:page="Login" href="#">${message:login-link}</a>
> 			</t:parameter>
> 		</t:security.ifloggedin>
> 	</body>
> </html>
> I also have two other lozalized properties files. Depending on the browser preffered
language selection the correct translatinos are displayed - EXCEPT the first entry, which
always falls back to english.
> I first noticed this behaviour when playing arounf with EditBean - the translated labels
all worked, well, except the first one. Whichever entry was the first in the file, that label
was not translated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message