Author: ks156
Date: 2009-10-16 15:14:06 +0200 (Fri, 16 Oct 2009)
New Revision: 5718

Modified:
   
software_suite_v3/software/plugin/plugin-clock/branches/random_sentences/sources/net/karmaLab/tuxDroid/plugins/ClockPlugin.java
Log:
* Detect the language before throwing the half hour message :
  In dutch and german, the it's 'half TO ...' and not 'half PAST ...'


Modified: 
software_suite_v3/software/plugin/plugin-clock/branches/random_sentences/sources/net/karmaLab/tuxDroid/plugins/ClockPlugin.java
===================================================================
--- 
software_suite_v3/software/plugin/plugin-clock/branches/random_sentences/sources/net/karmaLab/tuxDroid/plugins/ClockPlugin.java
     2009-10-16 11:56:27 UTC (rev 5717)
+++ 
software_suite_v3/software/plugin/plugin-clock/branches/random_sentences/sources/net/karmaLab/tuxDroid/plugins/ClockPlugin.java
     2009-10-16 13:14:06 UTC (rev 5718)
@@ -100,7 +100,13 @@
             }
         }
         else if (m == 30) {
-            throwMessage("It's half past {0}", h);
+            String language = configuration().getLanguage();
+            if (language.equals("nl") || language.equals("de")) {
+                throwMessage("It's half past {0}", h+1);
+            }
+            else {
+                throwMessage("It's half past {0}", h);
+            }
         }
         else if (m == 45) {
             if (random) {


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to