aboutsummaryrefslogtreecommitdiffstats
path: root/CodingStyle
diff options
context:
space:
mode:
authorGravatar Tim Wootton <tim@tee-jay.demon.co.uk>2014-12-17 09:23:53 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-17 07:51:57 -0800
commita9bb191dba7f85360d8a88c452f1f949854a6ed0 (patch)
treef57513a7c55c91c85032467b9bd1fe9abf7508c9 /CodingStyle
parent4921c28c4d39bfa8f04493920e7390981f4c2b2b (diff)
downloadsubsurface-a9bb191dba7f85360d8a88c452f1f949854a6ed0.tar.gz
Adds advice on text strings to style guide
Signed-off-by: Tim Wootton <tim@tee-jay.demon.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'CodingStyle')
-rw-r--r--CodingStyle31
1 files changed, 31 insertions, 0 deletions
diff --git a/CodingStyle b/CodingStyle
index c053cd2d4..75aa1d431 100644
--- a/CodingStyle
+++ b/CodingStyle
@@ -110,6 +110,37 @@ Basic rules
in C++ we are a bit less strict about this - but still, try not to go
crazy.
+- text strings
+ The default language of subsurface is US English so please use US English
+ spelling and terminology.
+ Where at all possible strings should be passed to the tr() function to enable
+ translation into other languages.
+
+ -- like this
+ QString msgTitle = tr("Submit user survey.");
+
+ -- rather than
+ QString msgTitle = "Submit user survey.";
+
+
+- UI text style
+ These guidleines are designed to ensure consitency in presentation within
+ Subsurface.
+ Only the first word of multi-word text strings should be captalized unless
+ a word would normally be capitalized mid-sentance, like Africa. This applies
+ to all UI text including menus, menu items, tool-tips, button text and label
+ text etc. e.g. "Check for updates" rather than "Check for Updates".
+ We also captialize Subsurface (NOTE: not SubSurface) when referring to the
+ application itself.
+ Abbreviations should end with a period, e.g. "temp." not "temp" for
+ temperature
+ Numerals in chemical formulae should use subscript characters e.g. O₂ not O2
+ Partial pressures in Subsurface are, by convention, abbreviated with a single
+ "p" rather than 2, as in pO₂ not ppO₂
+ Where more than one term exists for something, please choose the one already
+ in use within Subsurface e.g. Cylinder vs. Tank.
+
+
Sample Settings
===============