Re: howto track translations
It seems very helpful, however i believe this can be used in other places (not only to wicket projects), since it may mislead users to think is wicket specific. However thanks for sharing it. On Thu, Dec 9, 2010 at 4:38 AM, Vijay Kiran-3 [via Apache Wicket] ml-node+3079700-1936498219-65...@n4.nabble.comml-node%2b3079700-1936498219-65...@n4.nabble.com wrote: I created a simple maven plugin to check the localizations in the properties files in a project. The plugin scans the folders for .properties file and verifies if there are corresponding files for the specified locales. Also, it checks for the missing labels in other languages. The results can be saved to a simple HTML file which lists the missing file and missing labels in other locales. You can also configure the plugin to cause the build to fail when these checks are failed. https://github.com/vijaykiran/wicket-l10n-checker https://github.com/vijaykiran/wicket-l10n-checkerI plan to add the support for XML localization checking as soon as I find some more time. HTH, Vijay Kiran. On Fri, Dec 3, 2010 at 10:40 AM, Frank van Lankvelt [hidden email] http://user/SendEmail.jtp?type=nodenode=3079700i=0 wrote: in the process of expanding the number of languages my wicket application is available in, I'm running into the question of tracking properties files. In particular, I want to be able to get some kind of feedback about missing translations; mismatches between property files would be sufficient. How do you do this? Is there a maven plugin that I've missed, or perhaps a standalone tool? cheers, Frank -- Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 755 Baywood Drive, Second Floor • Petaluma, CA. 94954 • +1 877 414 4776 (toll free) Canada• Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com • www.onehippo.org • [hidden email]http://user/SendEmail.jtp?type=nodenode=3079700i=1 This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3079700i=2 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3079700i=3 -- View message @ http://apache-wicket.1842946.n4.nabble.com/howto-track-translations-tp3070837p3079700.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.comml-node%2b1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/howto-track-translations-tp3070837p3080297.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
Re: howto track translations
I created a simple maven plugin to check the localizations in the properties files in a project. The plugin scans the folders for .properties file and verifies if there are corresponding files for the specified locales. Also, it checks for the missing labels in other languages. The results can be saved to a simple HTML file which lists the missing file and missing labels in other locales. You can also configure the plugin to cause the build to fail when these checks are failed. https://github.com/vijaykiran/wicket-l10n-checker https://github.com/vijaykiran/wicket-l10n-checkerI plan to add the support for XML localization checking as soon as I find some more time. HTH, Vijay Kiran. On Fri, Dec 3, 2010 at 10:40 AM, Frank van Lankvelt f.vanlankv...@onehippo.com wrote: in the process of expanding the number of languages my wicket application is available in, I'm running into the question of tracking properties files. In particular, I want to be able to get some kind of feedback about missing translations; mismatches between property files would be sufficient. How do you do this? Is there a maven plugin that I've missed, or perhaps a standalone tool? cheers, Frank -- Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 755 Baywood Drive, Second Floor • Petaluma, CA. 94954 • +1 877 414 4776 (toll free) Canada• Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com • www.onehippo.org • i...@onehippo.com This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
howto track translations
in the process of expanding the number of languages my wicket application is available in, I'm running into the question of tracking properties files. In particular, I want to be able to get some kind of feedback about missing translations; mismatches between property files would be sufficient. How do you do this? Is there a maven plugin that I've missed, or perhaps a standalone tool? cheers, Frank -- Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 755 Baywood Drive, Second Floor • Petaluma, CA. 94954 • +1 877 414 4776 (toll free) Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com • www.onehippo.org • i...@onehippo.com This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: howto track translations
Not sure how other IDEs but in IntelliJ once you have at least one translation beside default and you open any of them there at the bottom of the freame are two tabs to switch between Text and Resource bundle. In Resource bundle view it will highlight in red any property that is not available in some translations. This is default functionality of IDE. Peter On 3 December 2010 09:40, Frank van Lankvelt f.vanlankv...@onehippo.comwrote: in the process of expanding the number of languages my wicket application is available in, I'm running into the question of tracking properties files. In particular, I want to be able to get some kind of feedback about missing translations; mismatches between property files would be sufficient. How do you do this? Is there a maven plugin that I've missed, or perhaps a standalone tool? cheers, Frank -- Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 755 Baywood Drive, Second Floor • Petaluma, CA. 94954 • +1 877 414 4776 (toll free) Canada• Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com • www.onehippo.org • i...@onehippo.com This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: howto track translations
See differences (only) with the following snippet which assumes the correct/original properties in messages.properties ('englisch'). It will create a property file for the missing keys for 'de' (german) and shows which original keys are unused public static void main(String[] args) throws IOException { new CheckI18N().start(); } public void start() throws IOException { Properties english = new Properties(); english.load(getClass().getResourceAsStream(messages.properties)); Properties de = new Properties(); de.load(getClass().getResourceAsStream(messages_de.properties)); // replace FastMap with LinkedHashMap SetString deKeys = FastSet.newInstance(); MapString, String missingInDE = new TreeMap(); SetString unusedInDE = FastSet.newInstance(); for (EntryObject, Object entry : de.entrySet()) { deKeys.add(entry.getKey().toString()); } for (EntryObject, Object entry : english.entrySet()) { if (!deKeys.contains(entry.getKey().toString())) missingInDE.put(entry.getKey().toString(), entry.getValue().toString()); } for (String deKey : deKeys) { if (english.get(deKey) == null) unusedInDE.add(deKey); } System.out.println(en: + english.size()); System.out.println(de: + deKeys.size()); System.out.println(missing in de: + missingInDE.size()); System.out.println(unused in de: + unusedInDE.size()); System.out.println(\n\n==\nmissing in de:\n); outAsProperties(missingInDE); System.out.println(\n\n==\nunused in de:\n); for (String str : unusedInDE) { System.out.println(str); } } public void outAsProperties(MapString, String map) { for (EntryString, String entry : map.entrySet()) { System.out.println(entry.getKey() + = + entry.getValue()); } } in the process of expanding the number of languages my wicket application is available in, I'm running into the question of tracking properties files. In particular, I want to be able to get some kind of feedback about missing translations; mismatches between property files would be sufficient. How do you do this? Is there a maven plugin that I've missed, or perhaps a standalone tool? cheers, Frank - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: howto track translations
thanks; I seem to be getting this hint more and more often. It's not built into my IDE, eclipse, hopefully there is a plugin with similar functionality. cheers, Frnak On Fri, Dec 3, 2010 at 11:43 AM, Peter Miklosko peter.b...@gmail.com wrote: Not sure how other IDEs but in IntelliJ once you have at least one translation beside default and you open any of them there at the bottom of the freame are two tabs to switch between Text and Resource bundle. In Resource bundle view it will highlight in red any property that is not available in some translations. This is default functionality of IDE. Peter On 3 December 2010 09:40, Frank van Lankvelt f.vanlankv...@onehippo.comwrote: in the process of expanding the number of languages my wicket application is available in, I'm running into the question of tracking properties files. In particular, I want to be able to get some kind of feedback about missing translations; mismatches between property files would be sufficient. How do you do this? Is there a maven plugin that I've missed, or perhaps a standalone tool? cheers, Frank -- Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 755 Baywood Drive, Second Floor • Petaluma, CA. 94954 • +1 877 414 4776 (toll free) Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com • www.onehippo.org • i...@onehippo.com This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Hippo Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 4466 USA • San Francisco 755 Baywood Drive, Second Floor • Petaluma, CA. 94954 • +1 877 414 4776 (toll free) Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T 1S5 • +1 (514) 316 8966 www.onehippo.com • www.onehippo.org • i...@onehippo.com This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
re: howto track translations
maybe this can help you: http://cal10n.qos.ch/index.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org