Calculator: Delocalize mathematical function before passing to arity

Some languages, such as Spanish, localizes mathematical functions
("sen" for "sin" in this example). The underlying arithmetic engine
doesn't understand the localized version so we need to delocalize
it before passing it to the engine.

Change-Id: I486726a1b9533952cd0ec3544b44f33a614549d9

Conflicts:

	src/com/android/calculator2/Logic.java
Calculator: New Features

Squashed commit of the following patches, with modifications to build
under the Android build system and return to the original namespace:

start of new features

(most buttons are set to do nothing though)

delete whole function (log, sin, etc)

gitignore

modulo working

graphing started

I'll probably make it it's own panel, but for now...

graphs functions (mostly)

graph, matrix panels in menu

graphing actually decent now (few bugs though)

bug fixes for graphing (graph on del, on start up, fix for negative numbers)

wolfram alpha for functions

graph works in separate thread, updated icons

graphing optimizations

bug fixes in graphing, buttons in matrices

new ui for adding matrices

click to remove matrix

save matrices on rotation

depricated code, begone!

solving matrices works (screw order of operations)

does not actually display the result though...

okay, probably important - displays matrix answers

bugfixes

multiple sizes for matrices

catches for matrix exceptions

fixes for line breaks in graphs

bug fix for tablets and back button

tablet panels

updated graphics

bumped up graph resolution (might be too slow)

changed package to com.android2.calculator3

matrix scrollable, dot product, cross product

spacing added

hex and bin support (no button yet)

new page with Hex digits, a few optimizations

dec, hex, and bin don't work properly atm

calculate in hex, bin

null pointers occasionally, selected input should stay highlighted (ie:
dec button should be blue if set to dec), and it should save the mode
when minimized

save mode on close

see selected mode

set selected mode on load

doesnt save mode, buggy

fix bug where loading would fail if activity finished

fix crash when converting

rearranged hex page, graphing fixed

update to 1.2

display descriptions on long press

pulldown image added, error handled better

bar is draggable

bar snaps to top/bottom, goes up on back

limit drag height

better handling for dragging

show history

increase text size in history

curse you, padding, curse yoooou

remove pages

calculate rationals in hex/bin

click to open/close history

remove function page, support for complex numbers

fixed history getting overwritten

copy from history

hide paste when nothing to paste

comas in answer, fix rotation bug

fixed crash with decimals in hex/bin

removed outdated code

fix image stretch

matrix add icon swapped out

manually merged a few changes from upstream

icon is uniquely ours

limit max width in history

bugfix with history height and keyboards

add matrix button changed back to match better

removed comas in results, localized equation when graphing

(bugfixes for languages other than English)

attempt at fixing mismatched formatting

zooming in graph shouldn't have been enabled yet

removed hardcoded values in graph

preparation for zooming

bugfix for null graphs

swapped out matrix add button

translation fix for nl

zoom enabled on graph

bugfixes for graphing

Change-Id: I7d7d7a1ec2cf33ac20b2bf265884eeb4c4ebbad7
PT-BR: Translations for new features

Change-Id: Ifb0a9b4725f451cd99b4b0ecd4845d34d67e4b7e
Calculator: Updated italian translation

	Added strings for new advanced features

Change-Id: I22e6dcfd5d5b00792ac3002504e35f247da19406
Calculator: Added czech missing translation and update

Change-Id: I9a4da5bf40a19b9086af5b235d61131ecb2e2a4a
Calculator:
Added missing danish translations

Patch Set 2:
Removed spaces

Change-Id: I338a0d8ff15fabb586d1600897cfcc6a7bf86bd7
Update Russian Translation-Calculator-CM10

Added Russian Translation-Fix typo-CM10

Update Russian Translation-CM10
Merge "Calculator: Added czech missing translation and update" into jellybean
Merge "Calculator: Added missing danish translations" into jellybean
Merge "Update Russian Translation-Calculator-CM10" into jellybean
Hungarian translation for the Calculator and resizing the text on the buttons

Resizing the text on the buttons of the Calculator if there is not enough space
on the button. It is necessary because some translations or the rational
abbreviations of the text (eg. Hungarian) are too long for the button area.

If the text fits the button this modification does not
affect the outlook of the buttons.

Before:
http://db.tt/VOHeO8V0
http://db.tt/iLYdo9Sp

After:
http://db.tt/0yy7m5Cn
http://db.tt/4uCUOs8A

Change-Id: Ic3a7008b3e7280bb493510df3e7f6a515fa4ac60
Calculator: Add german translation for new features

Change-Id: I7a60ba0f6e737cb035de473e2e62319a113b6ed3
Merge remote-tracking branch 'cm/jellybean' into jb

Conflicts:
	res/values/colors.xml
	src/com/android/calculator2/ColorButton.java