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 | 9 +++++++++ 3 files changed, 12 insertions(+)
New commits: commit 095c4de38b13122e595b441270536622143067e1 Author: Tor Lillqvist <[email protected]> AuthorDate: Fri Apr 12 21:16:46 2019 +0300 Commit: Tor Lillqvist <[email protected]> CommitDate: Fri Apr 12 21:26:37 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 28be8d7fc..119e90303 100644 --- a/ios/Mobile.xcodeproj/project.pbxproj +++ b/ios/Mobile.xcodeproj/project.pbxproj @@ -1674,6 +1674,7 @@ knownRegions = ( en, Base, + fi, ); mainGroup = BE8D771E2136762500AC58EA; productRefGroup = BE8D77282136762500AC58EA /* Products */; @@ -1782,6 +1783,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"; @@ -1841,6 +1843,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..958682953 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..35c058abf --- /dev/null +++ b/ios/Mobile/Resources/Settings.bundle/fi.lproj/Root.strings @@ -0,0 +1,9 @@ +/* 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"; +"Template list URL" = "Mallilistan URL"; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
