db28b15
From ffd8369b909c86653ef30593fddf67c9f5308583 Mon Sep 17 00:00:00 2001
db28b15
From: Stephan Bergmann <sbergman@redhat.com>
db28b15
Date: Mon, 5 Feb 2018 17:17:17 +0100
db28b15
Subject: [PATCH] rhbz#1541486: Fix localized'ness of ooSetupFactoryUIName
db28b15
 props
db28b15
db28b15
8f44fb5ee0bd21d192820ffd359504f6d1c68a52 "Mark Base window titles for
db28b15
localisation" localized some uses of ooSetupFactoryUIName in
db28b15
officecfg/registry/data/org/openoffice/Setup.xcu, but failed to mark the prop as
db28b15
oor:localized="true" in officecfg/registry/schema/org/openoffice/Setup.xcs.  (So
db28b15
some arbitrary localized version of the prop would win at runtime, potentially
db28b15
displaying certain window titles in wrong languages.)
db28b15
db28b15
Other uses of ooSetupFactoryUIName in Setup.xcu (for "Calc", "Impress",
db28b15
"Writer", etc.) have never been localized, and are probably not meant to be
db28b15
localized.  AFAICS, irrespective of oor:localized="true" in Setup.xcs, their
db28b15
values not being marked with xml:lang="en-US" in Setup.xcu will mean that they
db28b15
will not appear in
db28b15
translations/source/*/officecfg/registry/data/org/openoffice.po and will not
db28b15
accidentally start to be translated after this commit.
db28b15
db28b15
(Theoretically, inconsistencies between oor:localized in xcs and uses of
db28b15
xml:lang in xcu could statically be caught at build time, e.g., with
db28b15
officecfg/util/sanity.xsl.  However, those checks work on each XML file
db28b15
individually, so don't have the schema information available when looking at
db28b15
the data in the xcu file.  And those checks are written in XSLT, which makes
db28b15
writing new checks rather, erm, unpleasant.)
db28b15
db28b15
Change-Id: I9c61e8ebf75d3d54f7e5b6688eac47a6ed8dc5c3
db28b15
Reviewed-on: https://gerrit.libreoffice.org/49252
db28b15
Tested-by: Jenkins <ci@libreoffice.org>
db28b15
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
db28b15
---
db28b15
 officecfg/registry/schema/org/openoffice/Setup.xcs | 2 +-
db28b15
 1 file changed, 1 insertion(+), 1 deletion(-)
db28b15
db28b15
diff --git a/officecfg/registry/schema/org/openoffice/Setup.xcs b/officecfg/registry/schema/org/openoffice/Setup.xcs
db28b15
index f55e3698f58f..31db1eca9af4 100644
db28b15
--- a/officecfg/registry/schema/org/openoffice/Setup.xcs
db28b15
+++ b/officecfg/registry/schema/org/openoffice/Setup.xcs
db28b15
@@ -149,7 +149,7 @@
db28b15
           <desc>Specifies the short name of the factory.</desc>
db28b15
         </info>
db28b15
       </prop>
db28b15
-      <prop oor:name="ooSetupFactoryUIName" oor:type="xs:string">
db28b15
+      <prop oor:name="ooSetupFactoryUIName" oor:type="xs:string" oor:localized="true">
db28b15
         
db28b15
         <info>
db28b15
           <desc>Specifies the UI name of the factory.</desc>
db28b15
-- 
db28b15
2.14.3
db28b15