Commit 8dbce4ab authored by Xavier de Blas's avatar Xavier de Blas

Finished localization of classes with ChangeDecimalSeparator

All weights in treeviews, stats, graphs and reports are in % (no selectable option in preferences)
New class Constants in new file constants.cs for formulas and other strings

web: created FAQ in spanish

Fixed bug in stats gui when change type from "simple" to "with TC" and "All jumps" is not selected

updated pot file and spanish translation

Changed sample database version to 0.41
Enunciate in stats person should write person name
parent 9c7d91c0
......@@ -24,7 +24,7 @@ CHRONOJUMP_DEP_GRAPHS = src/stats/graphs/graphData.cs src/stats/graphs/graphSeri
CHRONOJUMP_DEP_SQLITE = src/sqlite/main.cs src/sqlite/preferences.cs src/sqlite/person.cs src/sqlite/session.cs src/sqlite/jump.cs src/sqlite/jumpType.cs src/sqlite/run.cs src/sqlite/runType.cs src/sqlite/personSession.cs src/sqlite/stat.cs
CHRONOJUMP_DEP = src/chronojump.cs src/person.cs src/jump.cs src/jumpType.cs src/run.cs src/runType.cs src/session.cs src/catalog.cs src/exportSession.cs src/treeViewJump.cs src/treeViewRun.cs src/util.cs src/report.cs $(CHRONOJUMP_DEP_GUI) $(CHRONOJUMP_DEP_STATS) $(CHRONOJUMP_DEP_GRAPHS) $(CHRONOJUMP_DEP_SQLITE) $(CHRONOJUMP_DEP_REPORT)
CHRONOJUMP_DEP = src/chronojump.cs src/person.cs src/jump.cs src/jumpType.cs src/run.cs src/runType.cs src/session.cs src/catalog.cs src/exportSession.cs src/treeViewJump.cs src/treeViewRun.cs src/util.cs src/constants.cs src/report.cs $(CHRONOJUMP_DEP_GUI) $(CHRONOJUMP_DEP_STATS) $(CHRONOJUMP_DEP_GRAPHS) $(CHRONOJUMP_DEP_SQLITE) $(CHRONOJUMP_DEP_REPORT)
RESOURCES = -resource:glade/chronojump.glade,chronojump.glade
CHRONOJUMP_LIB = -pkg:gtk-sharp -pkg:gnome-sharp -pkg:glade-sharp -r:System.Data -r:Mono.Data.SqliteClient
......
CHANGELOG:
21 oct 2005
Finished localization of classes with ChangeDecimalSeparator
All weights in treeviews, stats, graphs and reports are in % (no selectable option in preferences)
New class Constants in new file constants.cs for formulas and other strings
web: created FAQ in spanish
Fixed bug in stats gui when change type from "simple" to "with TC" and "All jumps" is not selected
updated pot file and spanish translation
Changed sample database version to 0.41
Enunciate in stats person should write person name
17 oct 2005
localizating chronojump (all database decimal characters are '.' and in application depends in the locale. Done by two new methods in Util class:
string ChangeDecimalSeparator(string myString)
......
No preview for this file type
This diff is collapsed.
No preview for this file type
......@@ -4961,25 +4961,6 @@ DD/MM/YYYY</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton_percent_kg_preferred">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Prefer weight in % over Kg</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkHSeparator" id="hseparator1">
<property name="visible">True</property>
......
......@@ -149,8 +149,10 @@ cp es.po locale/es/LC_MESSAGES/.
8.- execute
(change the $LANG acording if needed, if doesn't work, probably you don't have that locale instaled)
If they are installed, the best is to change in gdm (in ubuntu only use the UTF-8 locales)
(change the $LANG or $LANGUAGE according if needed, if doesn't work, probably you don't have that locale instaled)
If they are installed, the best is to change in gdm (in ubuntu only use the UTF-8 locales) for example:
export LANGUAGE="es_ES.UTF-8"
if not: sudo dpkg-reconfigure locales
if the code or the glade has changed, remember do 'make'
......
This diff is collapsed.
CHRONOJUMP ROADMAP
chronojump 0.4
* put all formulas in a constants class like:
class Constants {
public const string IeFormula = "(cmj-sj)/sj * 100"
}
* solve installation of chronojump_logo.png and the css
* update pot & es.po, about
* integrate help (starting manual)
* html site and lists on gnome
--------------
remaining:
- solve nplot with new mono/ubuntu
- solve installation of chronojump_logo.png and the css
- update pot & es.po, about
- integrate help (finishing manual)
- html site and lists on gnome
chronojump 0.5
* stats checkboxes selectable by an outside combo with (all, none, invert, man, woman, ...)
* edit reactive jump and intervalic run
* add realtime info of every jump
* Chronojump will be a tool for training, not only for showing the results of train:
* show realtime graph of some different color lights depending on the value respect previous jumps
* add conditions for finishing a jump or run ("when Q index is under x three times" ...)
--------------
- plot rjevolution consecutives in colors
- Chronojump will be a tool for training, not only for showing the results of train:
- add realtime info of every jump
- show realtime graph of some different color lights depending on the value respect previous jumps
- add conditions for finishing a jump or run ("when Q index is under x three times" ...)
- edit reactive jump and intervalic run
- stats checkboxes selectable by an outside combo with (all, none, invert, man, woman, ...)
chronojump 0.6
* user defined numeric variables (ask for including in stats, graphs) (height, weight, sex are some of them)
* XY graphs between any two variables
* allow height and weight change for a different person in time and use it in intersession stats
--------------
- user defined numeric variables (ask for including in stats, graphs) (height, weight, sex are some of them)
- XY graphs between any two variables
- allow height and weight change for a different person in time and use it in intersession stats
chronojump 0.7
* add runs stats and graphs (with last numeric values and height, weight, ... evolution)
--------------
- add runs stats and graphs (with last numeric values and height, weight, ... evolution)
This diff is collapsed.
/*
* This file is part of ChronoJump
*
* ChronoJump is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* ChronoJump is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Xavier de Blas:
* http://www.xdeblas.com, http://www.deporteyciencia.com (parleblas)
*/
using System;
using System.Data;
public class Constants
{
//the strings created by Catalog cannot be const
//formulas
public static string DjIndexFormula = Catalog.GetString("Dj Index") + " ((tv-tc)/tc *100)";
public static string QIndexFormula = Catalog.GetString("Q index") + " (tv/tc)";
public const string FvIndexFormula = "F/V sj+(100%)/sj *100";
public const string IeIndexFormula = "IE (cmj-sj)/sj *100";
public const string IubIndexFormula = "IUB (abk-cmj)/cmj *100";
//strings
public static string AllJumpsName = Catalog.GetString("All jumps");
public static string AllRunsName = Catalog.GetString("All runs");
}
......@@ -53,7 +53,8 @@ public class PreferencesWindow {
}
static public PreferencesWindow Show (Gtk.Window parent, int digitsNumber, bool showHeight, bool showInitialSpeed, bool askDeletion, bool weightStatsPercent, bool heightPreferred, bool metersSecondsPreferred)
//static public PreferencesWindow Show (Gtk.Window parent, int digitsNumber, bool showHeight, bool showInitialSpeed, bool askDeletion, bool weightStatsPercent, bool heightPreferred, bool metersSecondsPreferred)
static public PreferencesWindow Show (Gtk.Window parent, int digitsNumber, bool showHeight, bool showInitialSpeed, bool askDeletion, bool heightPreferred, bool metersSecondsPreferred)
{
if (PreferencesWindowBox == null) {
PreferencesWindowBox = new PreferencesWindow (parent);
......@@ -81,12 +82,14 @@ public class PreferencesWindow {
PreferencesWindowBox.checkbutton_ask_deletion.Active = false;
}
/*
if(weightStatsPercent) {
PreferencesWindowBox.checkbutton_percent_kg_preferred.Active = true;
}
else {
PreferencesWindowBox.checkbutton_percent_kg_preferred.Active = false;
}
*/
if(heightPreferred) {
PreferencesWindowBox.checkbutton_height_preferred.Active = true;
......@@ -125,7 +128,7 @@ public class PreferencesWindow {
SqlitePreferences.Update("showHeight", PreferencesWindowBox.checkbutton_height.Active.ToString());
SqlitePreferences.Update("showInitialSpeed", PreferencesWindowBox.checkbutton_initial_speed.Active.ToString());
SqlitePreferences.Update("askDeletion", PreferencesWindowBox.checkbutton_ask_deletion.Active.ToString());
SqlitePreferences.Update("weightStatsPercent", PreferencesWindowBox.checkbutton_percent_kg_preferred.Active.ToString());
//SqlitePreferences.Update("weightStatsPercent", PreferencesWindowBox.checkbutton_percent_kg_preferred.Active.ToString());
SqlitePreferences.Update("heightPreferred", PreferencesWindowBox.checkbutton_height_preferred.Active.ToString());
SqlitePreferences.Update("metersSecondsPreferred", PreferencesWindowBox.checkbutton_meters_seconds_preferred.Active.ToString());
......
......@@ -164,19 +164,8 @@ public class ReportWindow {
public void Add(string type, string subtype, string applyTo, ArrayList sendSelectedSessions,
string showJumps, string showSex, ArrayList markedRows)
{
/*
string sessionsAsAString = "";
for (int i=0; i < sendSelectedSessions.Count ; i++) {
if(i>0) {
sessionsAsAString += ":";
}
string [] myStrFull = sendSelectedSessions[i].ToString().Split(new char[] {':'});
sessionsAsAString += myStrFull[0];
}
*/
string sessionsAsAString = arrayToString(sendSelectedSessions);
string markedRowsAsAString = arrayToString(markedRows);
store.AppendValues (
type,
......
This diff is collapsed.
......@@ -43,7 +43,7 @@ public class Report : ExportSession
private int prefsDigitsNumber;
private bool heightPreferred;
private bool weightStatsPercent;
//private bool weightStatsPercent;
bool toReport = true;
......@@ -340,7 +340,7 @@ public class Report : ExportSession
statsJumpsType,
limit,
heightPreferred,
weightStatsPercent,
//weightStatsPercent,
arrayListMarkedRows,
rj_evolution_mark_consecutives,
false, //graph
......@@ -366,7 +366,7 @@ public class Report : ExportSession
statsJumpsType,
limit,
heightPreferred,
weightStatsPercent,
//weightStatsPercent,
arrayListMarkedRows,
rj_evolution_mark_consecutives,
true, //graph
......@@ -408,9 +408,11 @@ public class Report : ExportSession
set { heightPreferred = value; }
}
/*
public bool WeightStatsPercent {
set { weightStatsPercent = value; }
}
*/
public string Progversion {
set { progversion = value; }
......
......@@ -102,7 +102,7 @@ class Sqlite
SqlitePreferences.insert ("showHeight", "True");
SqlitePreferences.insert ("showInitialSpeed", "True");
SqlitePreferences.insert ("simulated", "True");
SqlitePreferences.insert ("weightStatsPercent", "True");
SqlitePreferences.insert ("weightStatsPercent", "True"); //currently not used
SqlitePreferences.insert ("askDeletion", "True");
SqlitePreferences.insert ("heightPreferred", "False");
SqlitePreferences.insert ("metersSecondsPreferred", "True");
......
This diff is collapsed.
This diff is collapsed.
......@@ -147,6 +147,12 @@ public class StatGlobal : Stat
strFull[0] + "(" + strFull[2] + ")";
}
return string.Format(Catalog.GetString("{0} in some jumps and statistics on {1}"), selectedValuesString, mySessionString);
//if is a stat of a concrete jumper, show it in enunciate
string myPersonString = "";
if (personID != -1) {
myPersonString = string.Format(Catalog.GetString(" for person {0}({1})"), personName, personID);
}
return string.Format(Catalog.GetString("{0} in some jumps and statistics on {1}{2}"), selectedValuesString, mySessionString, myPersonString);
}
}
......@@ -172,7 +172,7 @@ public class StatRjEvolution : Stat
if(statValues[0] != Catalog.GetString("AVG") && statValues[0] != Catalog.GetString("SD")) {
store.SetValue(iter, 0, true); //first col is true if it's not AVG or SD
markedRows.Add(myPath.ToString());
Console.WriteLine("FROM PRINTDATA (EVOLUTION) Added to markedRows row:{0}", myPath.ToString());
//Console.WriteLine("FROM PRINTDATA (EVOLUTION) Added to markedRows row:{0}", myPath.ToString());
}
for(int i=0; i < statValues.Length; i++) {
......
This diff is collapsed.
This diff is collapsed.
......@@ -2,6 +2,7 @@
<ul>
<li><a href="index_fr.html">Introduction</a></li>
<li>Caractéristiques<a href="features.html"><font size="1">(anglais)</font></li></a>
<li><a href="faq_es.html">FAQ (spanish)</a></li>
<li>Screenshots<a href="screenshots.html"><font size="1">(anglais)</font></li></a>
<li><a href="contact_fr.html">Contact</a></li>
<li>Documents<a href="documents.html"><font size="1">(anglais)</font></li></a>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment