[haiku-commits] Change in haiku[master]: DeskCalc: fix translation of key labels

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 22 Dec 2019 13:13:09 +0000

From Adrien Destugues <pulkomandy@xxxxxxxxx>:

Adrien Destugues has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/2049 ;)


Change subject: DeskCalc: fix translation of key labels
......................................................................

DeskCalc: fix translation of key labels

The labels were never actually translated, only marked for use in
catalogs. Moreover, all the keys were sent as a single string, which is
unconvenient for translation and requires useless parsing in the code.

Use an array of strings instead, which is simpler.

There is a change to the archiving format, instead of storing the whole
keymap, only its name is stored. For backwards compatibility, if we
detect "ln" at the start of the string we use scientific mode.
---
M src/apps/deskcalc/CalcView.cpp
M src/apps/deskcalc/CalcView.h
2 files changed, 99 insertions(+), 40 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/49/2049/1
--
To view, visit https://review.haiku-os.org/c/haiku/+/2049
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I566d8d51e8ac6e780fc25207aad1dfa7ff737988
Gerrit-Change-Number: 2049
Gerrit-PatchSet: 1
Gerrit-Owner: Adrien Destugues <pulkomandy@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: DeskCalc: fix translation of key labels - Gerrit