[tuxdroid-svn] r5718 - software_suite_v3/software/plugin/plugin-clock/branches/random_sentences/sou
Status: Beta
Brought to you by:
ks156
|
From: ks156 <c2m...@c2...> - 2009-10-16 13:14:17
|
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) {
|