Skip to content

Commit

Permalink
Merge pull request #1773 from Eitot/feature/stringcatalogs
Browse files Browse the repository at this point in the history
Migrate to Xcode String Catalog

This converts most .strings and .stringsdict files into .xcstrings files using Xcode's migration tool. Primary motivation for this was to have a better translation workflow with Crowdin.

String Catalog does not seem to support the predicate localisations. Those .strings files remain.
  • Loading branch information
barijaona authored Jul 21, 2024
2 parents bd34462 + 1252a1d commit 4c27db8
Show file tree
Hide file tree
Showing 325 changed files with 67,120 additions and 32,311 deletions.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
PROJECT=Vienna.xcodeproj
LOCALES=cs da de en-AU en-GB es eu fr gl it ja ko lt nl pt-BR pt ru sv tr uk zh-Hans zh-Hant

default:
xcodebuild -project $(PROJECT) -scheme Vienna archive
Expand All @@ -18,10 +17,3 @@ clean:
xcodebuild -project $(PROJECT) -scheme Vienna -configuration Development clean
xcodebuild -project $(PROJECT) -scheme Vienna -configuration Deployment clean
rm -fr Build

localize:
for locale in $(LOCALES); do \
xcodebuild -importLocalizations -project $(PROJECT) \
-localizationPath Localizations/$${locale}.xliff \
-disableAutomaticPackageResolution; \
done
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func render(_ combinedTranslations: [Int : [TranslationWithOptions]]) throws ->
combinedTranslationStrings.append("\"\(combined.original)\" = \"\(combined.translation)\";")
}
}
return combinedTranslationStrings
return combinedTranslationStrings.sorted()
}

let groupedByNumOptions = try parseAndExpand(fileName: stringsFileName)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
688 changes: 49 additions & 639 deletions Vienna.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions Vienna/Interfaces/cs.lproj/ActivityViewer.strings

This file was deleted.

6 changes: 0 additions & 6 deletions Vienna/Interfaces/cs.lproj/Downloads.strings

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions Vienna/Interfaces/cs.lproj/FeedCredentials.strings

This file was deleted.

12 changes: 0 additions & 12 deletions Vienna/Interfaces/cs.lproj/GroupFolder.strings

This file was deleted.

36 changes: 0 additions & 36 deletions Vienna/Interfaces/cs.lproj/InfoWindow.strings

This file was deleted.

Loading

0 comments on commit 4c27db8

Please sign in to comment.