[Sugar-devel] [PATCH] Changed symbols on the calculate activity button. (Ticket #2161)

2010-09-30 Thread Ishan Bansal
New symbols defined for the calculator activity in order to give a calculator
look to activity.
---
 layout.py  |2 +-
 mathlib.py |4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/layout.py b/layout.py
index d439a3a..df7a7c0 100644
--- a/layout.py
+++ b/layout.py
@@ -74,7 +74,7 @@ class CalcLayout:
 [4, 2, 1, div_sym, self.col_gray3, lambda w: 
self._parent.add_text(div_sym)],
 [5, 2, 1, ')', self.col_gray3, lambda w: 
self._parent.add_text(')')],
 
-[3, 3, 3, _('Enter'), self.col_gray1, lambda w: 
self._parent.process()],
+[3, 3, 3, ('='), self.col_gray1, lambda w: self._parent.process()],
 ]
 
 def create_dialog(self):
diff --git a/mathlib.py b/mathlib.py
index b9bce1e..d6f903d 100644
--- a/mathlib.py
+++ b/mathlib.py
@@ -81,12 +81,12 @@ class MathLib:
 # TRANS: multiplication symbol (default: '*')
 self.mul_sym = _('mul_sym')
 if len(self.mul_sym) == 0 or len(self.mul_sym)  3:
-self.mul_sym = '*'
+self.mul_sym = 'x'
 
 # TRANS: division symbol (default: '/')
 self.div_sym = _('div_sym')
 if len(self.div_sym) == 0 or len(self.div_sym)  3:
-self.div_sym = '/'
+self.div_sym = '÷'
 
 def set_format_type(self, fmt, digit_limit=9):
 self.format_type = fmt
-- 
1.7.0.4

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Changed symbols on the calculate activity button. (Ticket #2161)

2010-09-30 Thread Gonzalo Odiard
The problem with this idea is, the activity will look like a calculator, but
the children will be confused about the keys they must press.

Gonzalo
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Changed symbols on the calculate activity button. (Ticket #2161)

2010-09-30 Thread Sascha Silbe
Excerpts from Ishan Bansal's message of Thu Sep 30 18:03:21 +0200 2010:

 +[3, 3, 3, ('='), self.col_gray1, lambda w: 
 self._parent.process()],

You dropped the underscore (shortcut name of gettext.gettext), but I'm
wondering whether we need to translate it at all (if not, the
parentheses should be left out). Is there any language that uses arabic
numerals, but not = for equality?

 -self.mul_sym = '*'
 +self.mul_sym = 'x'

I guess this should read '×' (MULTIPLICATION SIGN, Unicode 00D7)
instead?

Please mention in the summary which symbols were changed as Calculate
has lots of them.

Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/


signature.asc
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Changed symbols on the calculate activity button. (Ticket #2161)

2010-09-30 Thread Ishan Bansal
Sacha

I have changed the sign being used for * to × .

Also i have not been able to found any language which translate = to a
different symbol.

If anyone do find a language which does so then please notify so that the
'_' symbol could be added for localization.

Regards

ishan

On Thu, Sep 30, 2010 at 10:03 PM, Sascha Silbe 
sascha-ml-reply-to-201...@silbe.org wrote:

 Excerpts from Ishan Bansal's message of Thu Sep 30 18:03:21 +0200 2010:

  +[3, 3, 3, ('='), self.col_gray1, lambda w:
 self._parent.process()],

 You dropped the underscore (shortcut name of gettext.gettext), but I'm
 wondering whether we need to translate it at all (if not, the
 parentheses should be left out). Is there any language that uses arabic
 numerals, but not = for equality?

  -self.mul_sym = '*'
  +self.mul_sym = 'x'

 I guess this should read '×' (MULTIPLICATION SIGN, Unicode 00D7)
 instead?

 Please mention in the summary which symbols were changed as Calculate
 has lots of them.

 Sascha

 --
 http://sascha.silbe.org/
 http://www.infra-silbe.de/

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Changed symbols on the calculate activity button. (Ticket #2161)

2010-09-30 Thread Gonzalo Odiard
Sasha, Ishan:

This change does not complicate the use for children?

Gonzalo
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Changed symbols on the calculate activity button. (Ticket #2161)

2010-09-30 Thread Walter Bender
On Thu, Sep 30, 2010 at 1:31 PM, Gonzalo Odiard gonz...@laptop.org wrote:
 Sasha, Ishan:

 This change does not complicate the use for children?

 Gonzalo

I am on the fence re these proposed changes, however, does the key
associated with the decimal point reflect the value in
locale.localeconv()['decimal_point']? It doesn't seem to in my tests.
That would seemingly be an uncontroversial change.

regards.

-walter


 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel





-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel