[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - ios/Mobile ios/Mobile.xcodeproj

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Apr 12 19:44:19 UTC 2019


 ios/Mobile.xcodeproj/project.pbxproj                       |    3 +++
 ios/Mobile/Resources/Settings.bundle/en.lproj/Root.strings |binary
 ios/Mobile/Resources/Settings.bundle/fi.lproj/Root.strings |   10 ++++++++++
 3 files changed, 13 insertions(+)

New commits:
commit e6c9f9b97061a43ae50945f88e270ab0f71787ac
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Apr 12 21:16:46 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Apr 12 22:43:41 2019 +0300

    Experiment with adding localisation of the Settings.bundle
    
    Add a sample Finnish localisation. The localised Root.strings files
    are supposed to come from some Pootle-based workflow eventually.
    
    Apparently there is some new and improved way to do localisation in
    Xcode 10, "Base localisation", but our project file was created in an
    earlier Xcode version and I couldn't figure out how to do it the new
    way for Settings.bundle, so I manually added the fi.lproj directory.
    
    I changed the English Root.strings file to be in UTF-8 instead of
    UTF-16 (and it still works). (The Finnish one is UTF-8, too.) I added
    the strings to be translated from Root.plist into it. That is the file
    that should be used as a base for Pootle work, no need to extract
    strings from the Root.plist, I think.
    
    Change-Id: I80f1c3199ee14678bb1438e218eb9c2475cd66f8

diff --git a/ios/Mobile.xcodeproj/project.pbxproj b/ios/Mobile.xcodeproj/project.pbxproj
index 05b5c3045..4172c1fda 100644
--- a/ios/Mobile.xcodeproj/project.pbxproj
+++ b/ios/Mobile.xcodeproj/project.pbxproj
@@ -2181,6 +2181,7 @@
 			knownRegions = (
 				en,
 				Base,
+				fi,
 			);
 			mainGroup = BE8D771E2136762500AC58EA;
 			productRefGroup = BE8D77282136762500AC58EA /* Products */;
@@ -2290,6 +2291,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
 				CLANG_ANALYZER_NONNULL = YES;
 				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
 				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
@@ -2349,6 +2351,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
 				CLANG_ANALYZER_NONNULL = YES;
 				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
 				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
diff --git a/ios/Mobile/Resources/Settings.bundle/en.lproj/Root.strings b/ios/Mobile/Resources/Settings.bundle/en.lproj/Root.strings
index 8cd87b9d6..ce9f49df2 100644
Binary files a/ios/Mobile/Resources/Settings.bundle/en.lproj/Root.strings and b/ios/Mobile/Resources/Settings.bundle/en.lproj/Root.strings differ
diff --git a/ios/Mobile/Resources/Settings.bundle/fi.lproj/Root.strings b/ios/Mobile/Resources/Settings.bundle/fi.lproj/Root.strings
new file mode 100644
index 000000000..0cc7b8a28
--- /dev/null
+++ b/ios/Mobile/Resources/Settings.bundle/fi.lproj/Root.strings
@@ -0,0 +1,10 @@
+/* A single strings file, whose title is specified in your preferences schema. The strings files provide the localized content to display to the user for each of your preferences. */
+
+"Name" = "Nimi";
+"none given" = "ei mitään";
+"Enabled" = "On";
+"App info" = "Tietoa appista";
+"Version" = "Versio";
+"Settings" = "Asetukset";
+"Empty tile cache each time" = "Tyhjennä laattavälimuisti joka kerta";
+"Template list URL" = "Mallilistan URL";


More information about the Libreoffice-commits mailing list