summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheiko tietze <tietze.heiko@gmail.com>2018-03-21 10:22:52 +0100
committerHeiko Tietze <tietze.heiko@gmail.com>2018-03-26 14:58:23 +0200
commit84f8e28d092676aad830a9fbae8145a57c6301bc (patch)
tree0323021aff1b11324ffe6b5af05f77dc8b54601e
parent01582612fe1283025685b09d23aba27435696c92 (diff)
tdf#116315 - Cycle Case including Sentence case
Sentence case added at position #2 in the sequence Change-Id: I99b5afb44260b1a40c7ceb906f729e339aaefd13 Reviewed-on: https://gerrit.libreoffice.org/51696 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu2
-rw-r--r--unotools/source/i18n/caserotate.cxx7
2 files changed, 6 insertions, 3 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
index 19eb401cdead..70a80e8b31da 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
@@ -2646,7 +2646,7 @@
<value xml:lang="en-US">Cycle Case</value>
</prop>
<prop oor:name="TooltipLabel" oor:type="xs:string">
- <value xml:lang="en-US">Cycle Case (Title Case, UPPERCASE, lowercase)</value>
+ <value xml:lang="en-US">Cycle Case (Title Case, Sentence case, UPPERCASE, lowercase)</value>
</prop>
</node>
<node oor:name=".uno:ChangeCaseToHalfWidth" oor:op="replace">
diff --git a/unotools/source/i18n/caserotate.cxx b/unotools/source/i18n/caserotate.cxx
index d4921e9053ef..a242b855ec29 100644
--- a/unotools/source/i18n/caserotate.cxx
+++ b/unotools/source/i18n/caserotate.cxx
@@ -22,11 +22,14 @@ TransliterationFlags RotateTransliteration::getNextMode()
case 0:
nMode = TransliterationFlags::TITLE_CASE;
break;
- case 1:
+ case 1: //tdf#116315
+ nMode = TransliterationFlags::SENTENCE_CASE;
+ break;
+ case 2:
nMode = TransliterationFlags::LOWERCASE_UPPERCASE;
break;
default:
- case 2:
+ case 3:
nMode = TransliterationFlags::UPPERCASE_LOWERCASE;
nF3ShiftCounter = -1;
break;