Re: Tool for finding missing translations in properties.xml

2016-07-08 Thread Per Newgro
I wrote my own tool as my search wasn't successful. But it is simply a 
main method loading the files and compares keys.

Cheers
Per

Am 07.07.2016 um 16:48 schrieb Thorsten Schöning:

Hi all,

in my Wicket app I'm using properties.xml files for my i18n texts,
like described in the wiki[1]. The problem I have is that the files
are differently up to date, depending on the language and how
important it was for somebody to translate one exact key for one
special language etc. the only thing I really know is that English is
up to date...

So, does anyone knows a tool which expects translation files in a dir
structure and compares all found to their English base file? In the
end it should simply print which file in which dir is missing which
key compared to the English base.

Such a problem sounds common to me, but I couldn't find any good
software dealing with it yet.

Thanks!

[1]: https://ci.apache.org/projects/wicket/guide/6.x/guide/i18n.html#i18n_2

Mit freundlichen Grüßen,

Thorsten Schöning




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket 6 IRequestMapper customization for mount path which is not the first url segment

2016-07-08 Thread fatfennec
Hi All,

I am new to wicket. I am migrating my wicket 1.4 project to >wicket 1.5
(wicket 6.23.0).

IRequestTargetUrlCodingStrategy interface and all its implementations are
replaced with the IRequestMapper and its respective implementations. ref :
https://cwiki.apache.org/confluence/display/WICKET/Request+mapping

In wicket, the mount path is assumed to be the first element after the
domain.
e.g. http://www.mydomain.com/mountpath.html/parameters
However, my site's URLs are not. They are something like
http://www.mydomain.com/keywordOne/keywordN/mountpath.html/parameters
In wicket 1.4, I am using the
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.matches(String,
boolean) to match the mount path by 'contains' instead of 'startWiths'.
Everything is working fine.

In wicket 6.23.0, I find that there is a suggested MountedMapper to replace
the old BookmarkablePageRequestTargetUrlCodingStrategy.
I am going to do some tricks in
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.parseRequest(Request)
and
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.getCompatibilityScore(Request)
After applying the tricks in AbstractBookmarkableMapper, it works fine now.
it is a right direction for me to customize the MountedMapper to suit my
needs?

I also find a similar case in
http://apache-wicket.1842946.n4.nabble.com/Mounting-pages-td4652091.html
I check the CryptoMapper and HttpsMapper. It seems that they are not what I
need.
By doing 
mount(new MountedMapper("/#{keyword}/#{keyword2}/#{keyword3}/" + mountPath,
mountPathPageClass));
I dont not need to do the tricks. It seems to be working fine as well. 
But when the count of {keyword}s in URL exceeds three, it cannot find the
page.


There is another question about the Mapper in wicket 6.23.0.
After the
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(Request),
my /keyword1/keywordN/ is removed because of the URL recreation by
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.UrlInfo.
The result URL becomes http://www.mydomain.com/mountpath.html/parameters
again.

But I would like to keep my URL as
http://www.mydomain.com/keywordOne/keywordN/mountpath.html/parameters after
matching. Is there any way for my to customize the mapper for this case?

Many thanks for reading and helping! 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-IRequestMapper-customization-for-mount-path-which-is-not-the-first-url-segment-tp4675063.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket 6 IRequestMapper customization for mount path which is not the first url segment

2016-07-08 Thread fatfennec
Hi All, 

I am new to wicket. I am migrating my wicket 1.4 project to >wicket 1.5
(wicket 6.23.0).

IRequestTargetUrlCodingStrategy interface and all its implementations are
replaced with the IRequestMapper and its respective implementations. ref : 
https://cwiki.apache.org/confluence/display/WICKET/Request+mapping

In wicket, the mount path is assumed to be the first element after the
domain.
e.g. http://www.mydomain.com/mountpath.html/parameters
However, my site's URLs are not. They are something like
http://www.mydomain.com/keywordOne/keywordN/mountpath.html/parameters
In wicket 1.4, I am using the
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.matches(String,
boolean) to match the mount path by 'contains' instead of 'startWiths'.
Everything is working fine.

In wicket 6.23.0, I find that there is a suggested MountedMapper to replace
the old BookmarkablePageRequestTargetUrlCodingStrategy.
I am going to do some tricks in
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.parseRequest(Request)
and
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.getCompatibilityScore(Request)
After applying the tricks in AbstractBookmarkableMapper, it works fine now.
it is a right direction for me to customize the MountedMapper to suit my
needs?

I also find a similar case in 
http://apache-wicket.1842946.n4.nabble.com/Mounting-pages-td4652091.html
I check the CryptoMapper and HttpsMapper. It seems that they are not what I
need.


There is another question about the Mapper in wicket 6.23.0.
After the
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(Request),
my /keyword1/keywordN/ is removed because of the URL recreation by
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.UrlInfo. 
The result URL becomes http://www.mydomain.com/mountpath.html/parameters
again.

But I would like to keep my URL as
http://www.mydomain.com/keywordOne/keywordN/mountpath.html/parameters after
matching. Is there any way for my to customize the mapper for this case?

Many thanks for reading and helping!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-IRequestMapper-customization-for-mount-path-which-is-not-the-first-url-segment-tp4675062.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org