Skip to content
This repository
Newer
Older
100644 496 lines (398 sloc) 9.2 kb
c64bd151 » darkdonno
2007-01-07 changed: file cosmetics removed: trailing whitespace fixed: some TAB …
1 /*
947b75e7 » vulkanr
2008-05-17 merge with trunk. revision 13100.
2 * Copyright (C) 2005-2008 Team XBMC
3 * http://www.xbmc.org
c64bd151 » darkdonno
2007-01-07 changed: file cosmetics removed: trailing whitespace fixed: some TAB …
4 *
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
947b75e7 » vulkanr
2008-05-17 merge with trunk. revision 13100.
16 * along with XBMC; see the file COPYING. If not, write to
c64bd151 » darkdonno
2007-01-07 changed: file cosmetics removed: trailing whitespace fixed: some TAB …
17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 * http://www.gnu.org/copyleft/gpl.html
19 *
20 */
21
9c20a166 » spiff_
2009-09-03 changed: don't include event.h in stdafx.h
22 #include "LangInfo.h"
c51b1189 » theuni
2011-01-24 Merged cptspiff's code-reshuffle branch.
23 #include "guilib/LocalizeStrings.h"
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
24 #include "Temperature.h"
25
26
27 CTemperature::CTemperature()
28 {
29 m_value=0.0f;
30 m_state=invalid;
31 }
32
33 CTemperature::CTemperature(const CTemperature& temperature)
34 {
35 m_value=temperature.m_value;
36 m_state=temperature.m_state;
37 }
38
39 CTemperature::CTemperature(double value)
40 {
41 m_value=value;
42 m_state=valid;
43 }
44
45 bool CTemperature::operator >(const CTemperature& right) const
46 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
47 ASSERT(IsValid());
48 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
49
50 if (!IsValid() || !right.IsValid())
51 return false;
52
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
53 if (this==&right)
54 return false;
55
56 return (m_value>right.m_value);
57 }
58
59 bool CTemperature::operator >=(const CTemperature& right) const
60 {
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
61 return operator >(right) || operator ==(right);
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
62 }
63
64 bool CTemperature::operator <(const CTemperature& right) const
65 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
66 ASSERT(IsValid());
67 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
68
69 if (!IsValid() || !right.IsValid())
70 return false;
71
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
72 if (this==&right)
73 return false;
74
75 return (m_value<right.m_value);
76 }
77
78 bool CTemperature::operator <=(const CTemperature& right) const
79 {
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
80 return operator <(right) || operator ==(right);
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
81 }
82
83 bool CTemperature::operator ==(const CTemperature& right) const
84 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
85 ASSERT(IsValid());
86 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
87
88 if (!IsValid() || !right.IsValid())
89 return false;
90
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
91 if (this==&right)
92 return true;
93
94 return (m_value==right.m_value);
95 }
96
97 bool CTemperature::operator !=(const CTemperature& right) const
98 {
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
99 return !operator ==(right.m_value);
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
100 }
101
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
102 const CTemperature& CTemperature::operator =(const CTemperature& right)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
103 {
104 m_state=right.m_state;
105 m_value=right.m_value;
106 return *this;
107 }
108
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
109 const CTemperature& CTemperature::operator +=(const CTemperature& right)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
110 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
111 ASSERT(IsValid());
112 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
113
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
114 m_value+=right.m_value;
115 return *this;
116 }
117
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
118 const CTemperature& CTemperature::operator -=(const CTemperature& right)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
119 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
120 ASSERT(IsValid());
121 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
122
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
123 m_value-=right.m_value;
124 return *this;
125 }
126
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
127 const CTemperature& CTemperature::operator *=(const CTemperature& right)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
128 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
129 ASSERT(IsValid());
130 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
131
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
132 m_value*=right.m_value;
133 return *this;
134 }
135
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
136 const CTemperature& CTemperature::operator /=(const CTemperature& right)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
137 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
138 ASSERT(IsValid());
139 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
140
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
141 m_value/=right.m_value;
142 return *this;
143 }
144
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
145 CTemperature CTemperature::operator +(const CTemperature& right) const
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
146 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
147 ASSERT(IsValid());
148 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
149
150 CTemperature temp(*this);
151
152 if (!IsValid() || !right.IsValid())
153 temp.SetState(invalid);
154 else
155 temp.m_value+=right.m_value;
156
157 return temp;
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
158 }
159
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
160 CTemperature CTemperature::operator -(const CTemperature& right) const
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
161 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
162 ASSERT(IsValid());
163 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
164
165 CTemperature temp(*this);
166 if (!IsValid() || !right.IsValid())
167 temp.SetState(invalid);
168 else
169 temp.m_value-=right.m_value;
170
171 return temp;
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
172 }
173
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
174 CTemperature CTemperature::operator *(const CTemperature& right) const
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
175 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
176 ASSERT(IsValid());
177 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
178
179 CTemperature temp(*this);
180 if (!IsValid() || !right.IsValid())
181 temp.SetState(invalid);
182 else
183 temp.m_value*=right.m_value;
184 return temp;
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
185 }
186
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
187 CTemperature CTemperature::operator /(const CTemperature& right) const
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
188 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
189 ASSERT(IsValid());
190 ASSERT(right.IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
191
192 CTemperature temp(*this);
193 if (!IsValid() || !right.IsValid())
194 temp.SetState(invalid);
195 else
196 temp.m_value/=right.m_value;
197 return temp;
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
198 }
199
200 CTemperature& CTemperature::operator ++()
201 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
202 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
203
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
204 m_value++;
205 return *this;
206 }
207
208 CTemperature& CTemperature::operator --()
209 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
210 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
211
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
212 m_value--;
213 return *this;
214 }
215
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
216 CTemperature CTemperature::operator ++(int)
217 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
218 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
219
220 CTemperature temp(*this);
221 m_value++;
222 return temp;
223 }
224
225 CTemperature CTemperature::operator --(int)
226 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
227 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
228
229 CTemperature temp(*this);
230 m_value--;
231 return temp;
232 }
233
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
234 bool CTemperature::operator >(double right) const
235 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
236 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
237
238 if (!IsValid())
239 return false;
240
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
241 return (m_value>right);
242 }
243
244 bool CTemperature::operator >=(double right) const
245 {
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
246 return operator >(right) || operator ==(right);
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
247 }
248
249 bool CTemperature::operator <(double right) const
250 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
251 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
252
253 if (!IsValid())
254 return false;
255
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
256 return (m_value<right);
257 }
258
259 bool CTemperature::operator <=(double right) const
260 {
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
261 return operator <(right) || operator ==(right);
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
262 }
263
264 bool CTemperature::operator ==(double right) const
265 {
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
266 if (!IsValid())
267 return false;
268
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
269 return (m_value==right);
270 }
271
272 bool CTemperature::operator !=(double right) const
273 {
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
274 return !operator ==(right);
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
275 }
276
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
277 const CTemperature& CTemperature::operator +=(double right)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
278 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
279 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
280
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
281 m_value+=right;
282 return *this;
283 }
284
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
285 const CTemperature& CTemperature::operator -=(double right)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
286 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
287 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
288
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
289 m_value-=right;
290 return *this;
291 }
292
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
293 const CTemperature& CTemperature::operator *=(double right)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
294 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
295 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
296
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
297 m_value*=right;
298 return *this;
299 }
300
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
301 const CTemperature& CTemperature::operator /=(double right)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
302 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
303 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
304
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
305 m_value/=right;
306 return *this;
307 }
308
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
309 CTemperature CTemperature::operator +(double right) const
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
310 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
311 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
312
313 CTemperature temp(*this);
314 temp.m_value+=right;
315 return temp;
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
316 }
317
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
318 CTemperature CTemperature::operator -(double right) const
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
319 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
320 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
321
322 CTemperature temp(*this);
323 temp.m_value-=right;
324 return temp;
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
325 }
326
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
327 CTemperature CTemperature::operator *(double right) const
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
328 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
329 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
330
331 CTemperature temp(*this);
332 temp.m_value*=right;
333 return temp;
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
334 }
335
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
336 CTemperature CTemperature::operator /(double right) const
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
337 {
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
338 ASSERT(IsValid());
45d380fb » bobbin007
2006-05-25 fixed: operators where a mess
339
340 CTemperature temp(*this);
341 temp.m_value/=right;
342 return temp;
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
343 }
344
345 CTemperature CTemperature::CreateFromFahrenheit(double value)
346 {
347 return CTemperature(value);
348 }
349
350 CTemperature CTemperature::CreateFromReaumur(double value)
351 {
352 return CTemperature(value*2.25f+32.0f);
353 }
354
355 CTemperature CTemperature::CreateFromRankine(double value)
356 {
357 return CTemperature(value-459.67f);
358 }
359
360 CTemperature CTemperature::CreateFromRomer(double value)
361 {
362 return CTemperature((value-7.5f)*24.0f/7.0f+32.0f);
363 }
364
365 CTemperature CTemperature::CreateFromDelisle(double value)
366 {
367 CTemperature temp(212.0f - value * 1.2f);
368 return temp;
369 }
370
371 CTemperature CTemperature::CreateFromNewton(double value)
372 {
373 return CTemperature(value*60.0f/11.0f+32.0f);
374 }
375
376 CTemperature CTemperature::CreateFromCelsius(double value)
377 {
378 return CTemperature(value*1.8f+32.0f);
379 }
380
5d0f6cf2 » blinkseb
2010-11-02 added: ISerializable interface, in order to serialize object into a C…
381 void CTemperature::Archive(CArchive& ar)
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
382 {
383 if (ar.IsStoring())
384 {
385 ar<<m_value;
386 ar<<(int)m_state;
387 }
388 else
389 {
390 ar>>m_value;
45df0f86 » AlTheKiller
2009-06-29 fixed: Quelled a noisy davilla (and some compiler warnings).
391 int state;
392 ar>>(int&)state;
393 m_state = CTemperature::STATE(state);
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
394 }
395 }
396
397 void CTemperature::SetState(CTemperature::STATE state)
398 {
399 m_state=state;
400 }
401
402 bool CTemperature::IsValid() const
403 {
404 return (m_state==valid);
405 }
406
407 double CTemperature::ToFahrenheit() const
408 {
409 return m_value;
410 }
411
412 double CTemperature::ToKelvin() const
413 {
414 return (m_value+459.67F)/1.8f;
415 }
416
417 double CTemperature::ToCelsius() const
418 {
419 return (m_value-32.0f)/1.8f;
420 }
421
422 double CTemperature::ToReaumur() const
423 {
424 return (m_value-32.0f)/2.25f;
425 }
426
427 double CTemperature::ToRankine() const
428 {
429 return m_value+459.67f;
430 }
431
432 double CTemperature::ToRomer() const
433 {
434 return (m_value-32.0f)*7.0f/24.0f+7.5f;
435 }
436
437 double CTemperature::ToDelisle() const
438 {
439 return (212.f-m_value)*5.0f/6.0f;
440 }
441
442 double CTemperature::ToNewton() const
443 {
444 return (m_value-32.0f)*11.0f/60.0f;
445 }
446
2148b3b2 » jmarshallnz
2009-02-24 changed: Weather properties for temperature now don't include the units.
447 double CTemperature::ToLocale() const
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
448 {
449 if (!IsValid())
2148b3b2 » jmarshallnz
2009-02-24 changed: Weather properties for temperature now don't include the units.
450 return 0;
451 double value = 0.0;
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
452
453 switch(g_langInfo.GetTempUnit())
454 {
455 case CLangInfo::TEMP_UNIT_FAHRENHEIT:
456 value=ToFahrenheit();
457 break;
458 case CLangInfo::TEMP_UNIT_KELVIN:
459 value=ToKelvin();
460 break;
461 case CLangInfo::TEMP_UNIT_CELSIUS:
462 value=ToCelsius();
463 break;
464 case CLangInfo::TEMP_UNIT_REAUMUR:
465 value=ToReaumur();
466 break;
467 case CLangInfo::TEMP_UNIT_RANKINE:
468 value=ToRankine();
469 break;
470 case CLangInfo::TEMP_UNIT_ROMER:
471 value=ToRomer();
472 break;
473 case CLangInfo::TEMP_UNIT_DELISLE:
474 value=ToDelisle();
475 break;
476 case CLangInfo::TEMP_UNIT_NEWTON:
477 value=ToNewton();
478 break;
479 default:
85a9ebb1 » bobbin007
2006-05-27 added: localized date/time in directory listings
480 ASSERT(false);
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
481 break;
482 }
2148b3b2 » jmarshallnz
2009-02-24 changed: Weather properties for temperature now don't include the units.
483 return value;
484 }
485
486 // Returns temperature as localized string
487 CStdString CTemperature::ToString() const
488 {
489 if (!IsValid())
490 return g_localizeStrings.Get(13205); // "Unknown"
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
491
492 CStdString str;
2148b3b2 » jmarshallnz
2009-02-24 changed: Weather properties for temperature now don't include the units.
493 str.Format("%2.0f%s", ToLocale(), g_langInfo.GetTempUnitString().c_str());
303ddf9e » bobbin007
2006-05-23 added: localization of temperature and speed unit via langinfo.xml
494
495 return str;
496 }
Something went wrong with that request. Please try again.