Localization strange issue in language virtual folder

2021-05-27 Thread Numa Schmeder
Hi, I am working on a localized app, and the setup is made according to the docs configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en,fr,de,it"); configuration.add(SymbolConstants.ENCODE_LOCALE_INTO_PATH, true); If I hit in the browser the index page of the app, https://myapp.test/ Then

Re: Localization & URLs for Default Language

2019-09-06 Thread Rafael Bugajewski
Hello, I was comparing a Locale with a String, so please forget my previous message ;) Everything works as expected now. Thanks for this great idea that is much more lightweight than writing a link transformer. Best, Rafael > On 2019-06-09, at 01:21 PM, Rafael Bugajewski > wrote: > > Hello

Re: Localization & URLs for Default Language

2019-09-06 Thread Rafael Bugajewski
Hello Cezary, that’s actually a great idea. I tried to add a service advisor, but it doesn’t seem to do what I want: @Match("PersistentLocale") public static void adviseNullForDefaultLanguage(MethodAdviceReceiver receiver) { MethodAdvice advice = new MethodAdvice() { public void advi

Re: Localization & URLs for Default Language

2019-09-06 Thread Cezary Biernacki
You can always decorate PersistentLocale and change behaviour of get() by returning null from it, when the original result is your default locale. Cezary On Fri, Sep 6, 2019 at 10:45 AM Rafael Bugajewski wrote: > Hello, > > Tapestry supports putting the current locale into the URL path. I’m >

Localization & URLs for Default Language

2019-09-06 Thread Rafael Bugajewski
Hello, Tapestry supports putting the current locale into the URL path. I’m injecting PersistentLocale and switching between languages as advised in the documentation: if (persistentLocale.get() == null) { persistentLocale.set(new Locale("de")); } else if ("en".equalsIgnoreCase(persistentLoc

Re: ajaxformloop and localization

2014-07-18 Thread Geoff Callender
I meant "in onValidateFromForm()", not "in onSubmit()". Alternatively, detect which submit was pressed like this: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/multiplesubmits1 On 18 Jul 2014, at 8:02 pm, Geoff Callender wrote: > IMHO, you should take a fresh look

Re: ajaxformloop and localization

2014-07-18 Thread Geoff Callender
IMHO, you should take a fresh look at the user experience. If you choose the more natural flow of asking the user to choose a language *before* presenting them with any forms, then the flow becomes natural and all the difficulties disappear. If, however, you proceed with the way you describe, t

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
The language switchers are in a component layout including the pages where there is the forms. And I don't want (and the client too :p) to change the presentation. 2014-07-17 17:34 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 17 Jul 2014 11:49:56 -0300, squallmat . > wrote: > > What is

Re: ajaxformloop and localization

2014-07-17 Thread Thiago H de Paula Figueiredo
On Thu, 17 Jul 2014 11:49:56 -0300, squallmat . wrote: What is still stucking me is that language switching, I can't do it with form because we can't nest them. Put the language switcher inside the form. No need to nest forms. Or add some JavaScript to disable the language switcher when y

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
Row", it's just text in this example... > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1 > > ...which you could replace with something like ${message:add-a-row-label} > and a corresponding entry in app.properties or your localisation solution..

Re: ajaxformloop and localization

2014-07-17 Thread Geoff Callender
oublenegative.com.au/jumpstart/examples/ajax/formloop1 ...which you could replace with something like ${message:add-a-row-label} and a corresponding entry in app.properties or your localisation solution... http://jumpstart.doublenegative.com.au/jumpstart7/examples/localization/

Re: ajaxformloop and localization

2014-07-17 Thread Thiago H de Paula Figueiredo
On Thu, 17 Jul 2014 10:32:32 -0300, squallmat . wrote: But that still continue to do the same thing. Is it necessary that my forms with submit switching language covers the field that we want persisted ? Yep. Otherwise, the field values you want persisted aren't submitted. That's basic

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
How can I get this persistency between locale > switching > > without having to "fail-submit" before ? > > > > > > 2014-07-17 10:23 GMT+02:00 squallmat . : > > > >> I added @Persist on both source and value, now fields persist between > >> la

Re: ajaxformloop and localization

2014-07-17 Thread Geoff Callender
7 10:23 GMT+02:00 squallmat . : > >> I added @Persist on both source and value, now fields persist between >> languages. >> But localization switching reload the page, so I assume if I want the >> field that were filled to stay filled at language switching I need

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
ocale switching without having to "fail-submit" before ? 2014-07-17 10:23 GMT+02:00 squallmat . : > I added @Persist on both source and value, now fields persist between > languages. > But localization switching reload the page, so I assume if I want the > field that we

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
I added @Persist on both source and value, now fields persist between languages. But localization switching reload the page, so I assume if I want the field that were filled to stay filled at language switching I need to put on all my Property with @Persist and refill each field in SetupRender

Re: ajaxformloop and localization

2014-07-16 Thread Thiago H de Paula Figueiredo
On Wed, 16 Jul 2014 12:55:24 -0300, squallmat . wrote: Still, in the Client entity that i will persist at the submit, I store my contacts in it : // when adding a contact row Object onAddRowFromContacts() { ContactDto contactDto = new ContactDto(); clientDto.getContactList().add(contactDto);

Re: ajaxformloop and localization

2014-07-16 Thread squallmat .
orks really well. >> >> But my webapp is developed in two languages : english and french, and when >> I tried to switch to another localization the added rows disappear, >> and if i switch back to the first langauge the rows are reappearing and >> are >> empty. &g

Re: ajaxformloop and localization

2014-07-16 Thread Thiago H de Paula Figueiredo
On Wed, 16 Jul 2014 11:05:30 -0300, squallmat . wrote: I'm using an ajaxformloop component, that works really well. But my webapp is developed in two languages : english and french, and when I tried to switch to another localization the added rows disappear, and if i switch back t

Re: ajaxformloop and localization

2014-07-16 Thread squallmat .
d when > I tried to switch to another localization the added rows disappear, > and if i switch back to the first langauge the rows are reappearing and > are empty. > > Is there methods to make ajaxformloop working in case of localization > switching ? >

ajaxformloop and localization

2014-07-16 Thread squallmat .
I'm using an ajaxformloop component, that works really well. But my webapp is developed in two languages : english and french, and when I tried to switch to another localization the added rows disappear, and if i switch back to the first langauge the rows are reappearing and are empty. Is

Re: T5.3 - Localization is only partially implemented?

2014-06-04 Thread Robert Hailey
On 2014/05/20 (May), at 4:54 PM, Kalle Korhonen wrote: > I don't know if there's an existing issue around this. > Take a look and open a new one if no existing issues are found. Should be > straightforward to get it fixed. > > Kalle Filed: https://issues.apache.org/jira/browse/TAP5-2346 -- Ro

Re: T5.3 - Localization is only partially implemented?

2014-05-20 Thread Kalle Korhonen
code, there is what seems to be a > pretty big hole in Tapestry's handling of localization. > > Suppose I have set these as my supported locales: "en,fr,de" > > ...and further suppose that a request comes in with this accept-language > header "klingon,de,fr"

T5.3 - Localization is only partially implemented?

2014-05-20 Thread Robert Hailey
As far as I can tell from reading the code, there is what seems to be a pretty big hole in Tapestry's handling of localization. Suppose I have set these as my supported locales: "en,fr,de" ...and further suppose that a request comes in with this accept-language header "

T5.3 - Per-page custom localization axis

2014-05-16 Thread Robert Hailey
Greetings, I've been looking deep into Tapestry's localization mechanisms, especially with regards to "skinning". What I'm looking for now, is an easier (automatic) way to set the selector per-request ahead of time via the passivate functions. Sorta like this: @Loca

Re: Changing to default localization without extension for the language

2013-12-17 Thread Magnus Kvalheim
Yes, decorating didn't seem possible - so have (for now) copied and overridden PersistentLocaleImpl to allow null. It is part of a requirement to always force locale through uri, except for english which is on unlocalized. So need to clear persistentlocale when switching to english. Locale switch

Re: Changing to default localization without extension for the language

2013-12-17 Thread Lance Java
I'm surprised that PersistentLocale does not have the ability to clear the value once it's set. Looking at PersistentLocaleImpl it doesn't allow setting to null. Perhaps you could override / decorate PersistentLocale to support clearing the value (by setting null). If decorating, you'll likely re

Re: Changing to default localization without extension for the language

2013-12-17 Thread Thiago H de Paula Figueiredo
Or file a JIRA. A beta has just came out, so a new release isn't far. :) On Tue, 17 Dec 2013 18:03:04 -0200, Lance Java wrote: I'm surprised that PersistentLocale does not have the ability to clear the value once it's set. Looking at PersistentLocaleImpl it doesn't allow setting to null.

Re: Changing to default localization without extension for the language

2013-12-17 Thread Magnus Kvalheim
rties > > for ro locale, _en.properties for en locale. > > If you want to change locale to default (not ro) use Locale.ROOT constant > > for java 6, and new Locale("") for older versions. > > > > On Mon, Nov 19, 2012 at 3:10 PM, o

RE: Excluding ROOT localization

2013-09-07 Thread Nomen Nominus
Yes, thank you Dimitros, this solved my issue! :) Strange, but when I was looking at Select documentation I couldn't find/see it. > From: dimitris.zen...@gmail.com > Date: Sat, 7 Sep 2013 18:29:47 +0300 > Subject: Re: Excluding ROOT localization > To: users@tapestry.apache.or

Re: Excluding ROOT localization

2013-09-07 Thread Dimitris Zenios
I have setup select localization component from Tapestry 5 Web > applications book, and everything works fine, but in the following scenario: > > > > > If I switch to English, works OK, if I switch to Deutsch works fine too, > however, if I somehow switch to blank field I ge

Excluding ROOT localization

2013-09-07 Thread Nomen Nominus
Hi. I have setup select localization component from Tapestry 5 Web applications book, and everything works fine, but in the following scenario: If I switch to English, works OK, if I switch to Deutsch works fine too, however, if I somehow switch to blank field I get following exception

Re: Tapestry grid with enum override localization

2013-07-02 Thread Miguel Figueiredo
Hi Chris, Your suggestion works perfectly. In the getColumnLabel() implementation, I also tried the following: public String getColumnLabel() { return TapestryInternalUtils.getLabelForEnum(messages, rowElement.getColumn()); } Like this I can use the standard properties for enums

Re: Tapestry grid with enum override localization

2013-07-02 Thread Christian Köberl
2013/7/1 Miguel Figueiredo : > Hi, Hi > I need to add a column override that contains an enum, but I am having > trouble localizing it. > > For example: > > > > ${rowElement.column} > > > > My rowElement.column corresponds to an enum like: > > enum Column { > A, B > } Just create a

Tapestry grid with enum override localization

2013-07-01 Thread Miguel Figueiredo
Hi, I need to add a column override that contains an enum, but I am having trouble localizing it. For example: ${rowElement.column} My rowElement.column corresponds to an enum like: enum Column { A, B } Tapestry will display A or B in the table. How can I render an localized str

Re: Localization issue

2013-06-12 Thread Lance Java
This is core java and not really tapestry related. It's driven by Locale.getDefault() http://stackoverflow.com/questions/8809098/how-do-i-set-the-default-locale-for-my-jvm

Localization issue

2013-06-11 Thread Nomen Nomanum
I have made localization for english, bulgarian, serbian and spanish language, and it all worked fine on my laptop which uses Spanish as default, however, once I have deployed my app to another PC, which has English as root language, I am encountiring following issue: -I have set my property

Re: Changing to default localization without extension for the language

2012-11-23 Thread Geoff Callender
> All message catalogs will be accessed by tapestry with right choose. Just > use .properties for default locale, _ro.properties to override properties > for ro locale, _en.properties for en locale. > If you want to change locale to default (not ro) use Locale.ROOT constant > for java

Re: Changing to default localization without extension for the language

2012-11-21 Thread o3005659
Thanks, Sody! :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Changing-to-default-localization-without-extension-for-the-language-tp5718092p5718175.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Changing to default localization without extension for the language

2012-11-19 Thread Ivan Khalopik
erties for default locale, _ro.properties to override properties for ro locale, _en.properties for en locale. If you want to change locale to default (not ro) use Locale.ROOT constant for java 6, and new Locale("") for older versions. On Mon, Nov 19, 2012 at 3:10 PM, o3005659 wrote: > I h

Changing to default localization without extension for the language

2012-11-19 Thread o3005659
I have made localization ro and en. Ro is by default, however I didn't extend my property files with_ro extension, but I simply put thisispropertyfile.properties. Now I have implemented for English public String onActionFromGoEnglish() { persistentLocale.set(new Local

Re: Tapestry & Spring localization

2012-09-27 Thread Lance Java
> why not decorate the org.apache.tapestry5.ioc.Messages interface and why decorate ComponentMessagesSource Only services defined in tapestry's IOC registry can be decorated. ComponentMessagesSource is a service, Messages is not (it's the result of calling a method on a service). > is there a good

Re: Tapestry & Spring localization

2012-09-26 Thread mandark
If we want to use decorators, why not decorate the org.apache.tapestry5.ioc.Messages interface and why decorate ComponentMessagesSource. Also, is there a good example for me to follow for decorating the interface. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Using-Pers

Re: Tapestry & Spring localization

2012-09-21 Thread Ivan Khalopik
You need to contribute ComponentMessagesSource service: @Contribute(ComponentMessagesSource.class) public static void contributeComponentMessagesSource( @Value("com/example/my-messages1") final Resource myMessage1, @Value("com/example/my-messages2") final Resource myMessage2, final OrderedConfig

Re: Tapestry & Spring localization

2012-09-21 Thread Lance Java
On second thought, MessagesSource is part of the private API so shouldn't be referenced by your code. Decorate ComponentMessagesSource [3] instead. [3] http://tapestry.apache.org/5.3.5/apidocs/org/apache/tapestry5/services/messages/ComponentMessagesSource.html -- View this message in context:

Re: Tapestry & Spring localization

2012-09-21 Thread Lance Java
Use a decorator [1] to decorate MessagesSource [2] and provide your own implementation for getMessages() [1] http://tapestry.apache.org/tapestry-ioc-decorators.html [2] http://tapestry.apache.org/5.3.5/apidocs/org/apache/tapestry5/internal/services/MessagesSource.html -- View this message in co

Re: Tapestry & Spring localization

2012-09-20 Thread Manish Shrestha
Hi, I am working on a Tapestry/Spring project and I am stuck at a problem related to localization. I am using the Spring implementation of internationalization and I would like the tapestry components to look for the messages in the spring message catalog and not in the tapestry message catalog

Re: messages.get always use default localization on "onValidate" and "onSuccess" ?

2012-09-06 Thread Yohan Yudanara
Hi.. Thank a lot for your reply. Tapestry is great and powerful framework.. I've resolved my problem. The weird behavior caused by my mistake to set ThreadLocale instead of PersistentLocale, when I set locale programatically. I also incorrectly override LocalizationSetter service, which cause wei

Re: messages.get always use default localization on "onValidate" and "onSuccess" ?

2012-09-06 Thread Howard Lewis Ship
I suspect your issue is not what you expect. The same Messages instance is used in all cases, regardless of what method it is invoked from. I'm sure it's an issue of what keys you are accessing, and what .properties file contains each key/value pair. People often seem to get confused, thinking th

messages.get always use default localization on "onValidate" and "onSuccess" ?

2012-09-06 Thread Yohan Yudanara
Hi.. I'm using T 5.3.4, @Inject private Messages messages; messages.get("key") return string from correct local properties file when called from "setupRender" and "afterRender". But, why messages.get("key") always return string from default local properties when called from "onValidate" and "onS

Re: Bean Validation Localization

2012-03-06 Thread derkoe
27;s the code and the link to the running version of a simple crud app with jsr303: https://github.com/derkoe/tapestry-javamagazin http://tapestry-javamagazin2.cloudfoundry.com/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/Bean-Va

Re: Bean Validation Localization

2012-03-06 Thread Igor Drobiazko
on, Mar 5, 2012 at 6:46 PM, Christian Köberl < tapestry.christian.koeb...@gmail.com> wrote: > There seems to be a bug in the localization of the bean validation error > messages. > > When I start my server locale is "de" and the client locale is "en" the &g

Bean Validation Localization

2012-03-05 Thread Christian Köberl
There seems to be a bug in the localization of the bean validation error messages. When I start my server locale is "de" and the client locale is "en" the message is displayed in German "First Name kann nicht null sein". I guess the bug is in BeanFieldValidator#i

Re: Localization question / problem ...

2012-02-22 Thread Gunnar Eketrapp
It just stroke me that it could have to with page abbreviations. I have problems with meeting/answers and meeting/list I.e. MeetingAnswers.java & MeetingList.java / MeetingAnswers_sv.properties & MeetingList_sv.properties which both are accessed with short hand format But it works if I skip the

Re: Localization question / problem ...

2012-02-22 Thread Gunnar Eketrapp
MeetingAnwsers_sv.properties i mean 2012/2/23 Gunnar Eketrapp > It does not have to do with the casing so it must be something else. > > E.g. page MeetingAnswers.java does not pick up texts > from MeetingAnwsers_sv.txt when running in Ubuntu > > The strange thing is that it only some of the page

Re: Localization question / problem ...

2012-02-22 Thread Gunnar Eketrapp
It does not have to do with the casing so it must be something else. E.g. page MeetingAnswers.java does not pick up texts from MeetingAnwsers_sv.txt when running in Ubuntu The strange thing is that it only some of the pages have this problem. I will add a MeetingAnwsers.txt now to se if that fix

Re: Localization question / problem ...

2012-02-22 Thread Howard Lewis Ship
There are some cases where you need to have the app.properties file for app_sv.properties to be picked up. However, when you hit a problem like this, it is most likely the case of the file name. Windows is case-insenstive, Ubunutu is case sensitive. Thus MyPage.java means MyPage.properties, and

Re: Datepicker localization issue

2011-10-24 Thread Lenny Primak
Yup, Datepicker is Euro-centric :) I did wind up patching the JS code so it's all good now. On Oct 24, 2011, at 2:07 PM, derkoe wrote: > > lprimak wrote: >> >> The dates show up fine for my US Locale, >> but that 6 month popup is "2011 Oct" as opposed to "Oct 2011" :) >> ---

Re: Datepicker localization issue

2011-10-24 Thread derkoe
nother JS date picker you can quite easily create your own Tapestry component (or copy the core one and path it). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Datepicker-localization-issue-tp4928694p4933554.html Sent from the Tapestry

Re: Datepicker localization issue

2011-10-24 Thread Lenny Primak
noticed that. > > Which Locale are you using? In German it works - the dates are shown > localized (Tapestry 5.2.6). > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Datepicker-localization-issue-tp4928694p4932601.html > Sent from the Tapestr

Re: Datepicker localization issue

2011-10-24 Thread derkoe
it, > as it wasn't localized at all. > Hey - cool! I haven't noticed that. Which Locale are you using? In German it works - the dates are shown localized (Tapestry 5.2.6). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Datepicker-localization-issue-tp492869

Re: Datepicker localization issue

2011-10-24 Thread Lenny Primak
There is a a label on top of the date picker that says "2011 October" When you click on that it turns into a popup where you can choose the last six months. I looked at it actually and its hardcoded in JavaScript, so I had to monkey patch it, as it wasn't localized at all. On Oct 24, 2011, at 7:

Re: Datepicker localization issue

2011-10-24 Thread derkoe
nth popup". Can you be more specific or provide an example? -- Chris -- View this message in context: http://tapestry.1045711.n5.nabble.com/Datepicker-localization-issue-tp4928694p4932284.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Datepicker localization issue

2011-10-22 Thread Lenny Primak
Right now the default EN locale for the 6 month popup is not localized properly. "2011Octpber" vs. "October 2011". Worthy of a JIRA issue? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands

Re: Localization Problems

2011-09-13 Thread Rendy Tapestry
; > } > > > > You have to return "false" in the Dispatcher - otherwise Tapestry will > think > the request has been handled and does not continue in the chain. > > -- > Chris > > -- > View this message in context: > http://tape

Re: Localization Problems

2011-09-12 Thread derkoe
} > > return true; > } > } > You have to return "false" in the Dispatcher - otherwise Tapestry will think the request has been handled and does not continue in the chain. -- Chris -- View this message in context: http://tapestry.1045711.n

Re: Localization Problems

2011-09-09 Thread Rendy Tapestry
I am afraid that such solution won't work because I read this paragraph from documentation : You will see the new locale take effect on the next request. If it is changed in a component event request (which is typical), the new locale will be used in the subsequent page render request. Can anyone

Re: Localization Problems

2011-09-09 Thread Rendy Tapestry
Hi Thiago, Thanks for such fast response, after setting it to false, my page is showing up again but, the solution still not working. For example, if I have page named, test.tml and 2 component message catalog test.properties and test_in_ID.properties, after setting PersistentLocale to in_ID, tap

Re: Localization Problems

2011-09-09 Thread Rendy Tapestry
nfiguration configuration) { configuration.addInstance("Localization", LocalizationDispatcher.class, "before:PageRender"); } What seems to wrong here ? Thanks, Rendy. On Fri, Sep 9, 2011 at 12:26 AM, Christian Köberl < tapestry.christian.koeb...@gmail.com> wrote: > 2011-09

Re: Localization Problems

2011-09-08 Thread Christian Köberl
2011-09-08 13:22, Rendy Tapestry: Yes, I just set as you do, but it doesn't work. This is because what browser send through request header is US locale. Based on tapestry mechanism looking up for locale, it will search the nearest locale that is en. That why ordering like that doesn't work. Any

Re: Localization Problems

2011-09-08 Thread Rendy Tapestry
Yes, I just set as you do, but it doesn't work. This is because what browser send through request header is US locale. Based on tapestry mechanism looking up for locale, it will search the nearest locale that is en. That why ordering like that doesn't work. Any other idea ? Sorry forgot to menti

Re: Localization Problems

2011-09-08 Thread Taha Hafeez
I have not used it but I think the first locale in configuration parameter tapestry.supported-locales( SymbolConstants.SUPPORTED_LOCALES) is used as the default. So "in_ID,en" will make in_ID as default. Just a guess :) On Thu, Sep 8, 2011 at 4:13 PM, Rendy Tapestry wrote: > Hi all, > > I buil

Localization Problems

2011-09-08 Thread Rendy Tapestry
Hi all, I build an application that will support two locale, that is in_ID and en. I am using PersistentLocale to accomplish this and as consequences all my application url are encoded with selected locale (user set it manually through application menu). So if my application name is xyz and in_ID

Re: Database based localization

2011-06-30 Thread diogoeag
Hi, thanks, meanwhile I had also found that link. Thanks anyway. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Database-based-localization-tp4538988p4539938.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Database based localization

2011-06-30 Thread Christian Köberl
On 2011-06-30 16:13, diogoeag wrote: I'm using tapestry 5.2.5 and trying to override the a service to get database based localization. I've searched in the forum and the solutions present here don't work. Did you try "T5 : Expanding Messages Catalog for localization fr

Database based localization

2011-06-30 Thread diogoeag
Hi, I'm using tapestry 5.2.5 and trying to override the a service to get database based localization. I've searched in the forum and the solutions present here don't work. What service should I override? ComponentMessagesSource.class or Messages.class? I've tried to

Re: URL used for localization seems to have locale in path?

2011-06-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Jun 2011 10:12:45 -0300, dkeenan wrote: Hi there. Hi! When using localization to display different template files based on the locale, it seems to ad the locale to the URL. Is that normal behaviour? Yes. If I set the locale to French, and go to the homepage, if goes to

Re: URL used for localization seems to have locale in path?

2011-06-22 Thread Joost Schouten (ml)
using localization to display different template files based on the locale, it seems to ad the locale to the URL. Is that normal behaviour? Eg. I have 2 homepage files... Home_en.tml and Home_fr.tml. If I set the locale to French, and go to the homepage, if goes to URL /fr/Home rather than /Home

URL used for localization seems to have locale in path?

2011-06-22 Thread dkeenan
Hi there. When using localization to display different template files based on the locale, it seems to ad the locale to the URL. Is that normal behaviour? Eg. I have 2 homepage files... Home_en.tml and Home_fr.tml. If I set the locale to French, and go to the homepage, if goes to URL /fr/Home

Re: Localization resources precedence

2011-04-05 Thread Hugo Palma
was hoping to localize "someProperty" by including it in my > > app_pt_PT.properties but it seems that the on defined > > in SomeComponent.properties takes precedence even though it's less > specific > > localization wise. > > > > So, any idea if thi

Re: Localization resources precedence

2011-02-25 Thread Everton Agner
operty "someProperty" set. > I was hoping to localize "someProperty" by including it in my > app_pt_PT.properties but it seems that the on defined > in SomeComponent.properties takes precedence even though it's less specific > localization wise. >

Localization resources precedence

2011-02-23 Thread Hugo Palma
quot;someProperty" set. I was hoping to localize "someProperty" by including it in my app_pt_PT.properties but it seems that the on defined in SomeComponent.properties takes precedence even though it's less specific localization wise. So, any idea if this is by desig

Re: Localization changes in t5.2.2

2010-11-11 Thread Igor Drobiazko
nly language paths (context/de/startpage) URLs are accepted. > Everything else gets redirected to the default start page. > Why is that? How can I now differentiate country specifics for > localization? > > Regards > > Moritz > ---

Re: Localization changes in t5.2.2

2010-11-10 Thread Christophe Cordenier
>> country. So a german user was re-directed to context/de_DE/startpage. > A > >>>> swiss user could get redirected to de_CH or fr_CH (or it_CH). > >>>> Since 5.2.2, T5.2.2 does not accept those paths containing the country > >>>> anymore. Only l

Re: Localization changes in t5.2.2

2010-11-10 Thread Moritz Gmelin
tings could contain language and >>>> country. So a german user was re-directed to context/de_DE/startpage. A >>>> swiss user could get redirected to de_CH or fr_CH (or it_CH). >>>> Since 5.2.2, T5.2.2 does not accept those paths containing the country >

Re: Localization changes in t5.2.2

2010-11-10 Thread Christophe Cordenier
aining the country > >> anymore. Only language paths (context/de/startpage) URLs are accepted. > >> Everything else gets redirected to the default start page. > >> Why is that? How can I now differentiate country specifics for > >> localization? > >> > >

Re: Localization changes in t5.2.2

2010-11-10 Thread Moritz Gmelin
swiss user could get redirected to de_CH or fr_CH (or it_CH). >> Since 5.2.2, T5.2.2 does not accept those paths containing the country >> anymore. Only language paths (context/de/startpage) URLs are accepted. >> Everything else gets redirected to the default start page. >

Re: Localization changes in t5.2.2

2010-11-10 Thread Christophe Cordenier
tartpage) URLs are accepted. > Everything else gets redirected to the default start page. > Why is that? How can I now differentiate country specifics for > localization? > > Regards > > Moritz > - > To unsu

Localization changes in t5.2.2

2010-11-09 Thread Moritz Gmelin
differentiate country specifics for localization? Regards Moritz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Contribute custom Messages for localization

2010-08-11 Thread Christophe Cordenier
Hi ! Tapestry 5 has a built-in mechanism to decorate/override services http://tapestry.apache.org/tapestry5/guide/alias.html As far a i remember, the service in charge of getting messages in page is ComponentMessagesSource http://github.com/apache/tapestry5/blob/trunk/tapestry-core/src/main/jav

Contribute custom Messages for localization

2010-08-11 Thread Henrik Schlanbusch
Hi all We have a Message service that we used when our system was implemented in T4. The messages will request localized strings from file and override the string with values from the database if they have been overridden there. I cannot find anything in the T5 literature on how to provide custo

Re: [T5] How to "skin" .properties files? Localization almost good...

2010-07-07 Thread Juan E. Maya
eName(className); >> >               int slashx = logicalName.lastIndexOf('/'); >> >               if(slashx > 0) >> >               { >> >                       String simpleClassName = >> InternalUtils.lastTerm(className

Re: [T5] How to "skin" .properties files? Localization almost good...

2010-07-07 Thread Christophe Cordenier
ame); > > logicalName = logicalName.substring(0, slashx + 1) > + simpleClassName; > > } > > > > String path = format("%s_%s.html", logicalName, > > _customerMode.getCu

Re: [T5] How to "skin" .properties files? Localization almost good...

2010-07-07 Thread t5_lothar
String path = format("%s_%s.html", logicalName, > _customerMode.getCurrentCustomerName()); > return _contextRoot.forFile(path).forLocale(locale); > } > } > > // Andreas Pardeike > > -

[T5] Iterate Through Page Messages (Localization File)

2010-01-01 Thread Marcel Sammut
Greetings, Is it possible to iterate through the collection of keys in a pages property file? For example: import tapestryMessages; public class MyPage {   @Inject   private Messages pageMessages   private void onActivate() { for (int i=0;i

Localization

2009-11-17 Thread Everton Agner
There is any way to call a i18n page without using a localized url? Sample: 1. User selected some language and that was stored in his session. 2. When he calls a new url, without the language prefix, the result page will use the selected language (stored in session), instead of the defau

Re: t5 localization

2009-10-03 Thread jimmyblue
>>> configured, and add "de" to the list. >>> >>> On Sat, Oct 3, 2009 at 7:41 AM, jimmyblue wrote: >>>> >>>> hi, >>>> >>>> i'm quite new to tapestry. until now, everything just worke

Re: t5 localization

2009-10-03 Thread Howard Lewis Ship
here that's >> configured, and add "de" to the list. >> >> On Sat, Oct 3, 2009 at 7:41 AM, jimmyblue wrote: >>> >>> hi, >>> >>> i'm quite new to tapestry. until now, everything just worked fine, but >>>

Re: t5 localization

2009-10-03 Thread jimmyblue
m the Quickstart Archetype, it limits you to > english only. Update TapestryModule, you'll see where that's > configured, and add "de" to the list. > > On Sat, Oct 3, 2009 at 7:41 AM, jimmyblue wrote: >> >> hi, >> >> i'm quite new to t

Re: t5 localization

2009-10-03 Thread Howard Lewis Ship
ntil now, everything just worked fine, but > localization does not. following code does not work for me > > public class ChooseLanguage { >       �...@inject >        private PersistentLocale persistentLocale; > >        void onActionFromDe() { >                persistentLocale.

  1   2   3   >