From a74ce8074ee4bb161869af7ac54cf7dd4c339a27 Mon Sep 17 00:00:00 2001 From: vspader Date: Sun, 3 Jun 2007 14:54:21 +0000 Subject: [PATCH] Added new localization file for some missed inprogram text. --- Preferences/General/AppcastArrayController.m | 6 +++--- .../General/English.lproj/InfoPlist.strings | Bin 198 -> 198 bytes .../General/English.lproj/Localizable.strings | 3 +++ .../General/General.xcodeproj/project.pbxproj | 14 ++++++++++++++ Preferences/General/Info.plist | 2 +- .../General/Swedish.lproj/Localizable.strings | 3 +++ Scripts/load_localization.sh | 2 ++ Scripts/update_strings.sh | 1 + 8 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 Preferences/General/English.lproj/Localizable.strings create mode 100644 Preferences/General/Swedish.lproj/Localizable.strings diff --git a/Preferences/General/AppcastArrayController.m b/Preferences/General/AppcastArrayController.m index 5af4e42a3..da53cb173 100644 --- a/Preferences/General/AppcastArrayController.m +++ b/Preferences/General/AppcastArrayController.m @@ -17,15 +17,15 @@ [self addObject: [NSDictionary dictionaryWithObjectsAndKeys: - @"Stable", @"name", @"http://cogx.org/appcast/stable.xml", @"url",nil]]; + NSLocalizedString(@"Stable", @""), @"name", @"http://cogx.org/appcast/stable.xml", @"url",nil]]; [self addObject: [NSDictionary dictionaryWithObjectsAndKeys: - @"Unstable", @"name", @"http://cogx.org/appcast/unstable.xml", @"url",nil]]; + NSLocalizedString(@"Unstable", @""), @"name", @"http://cogx.org/appcast/unstable.xml", @"url",nil]]; [self addObject: [NSDictionary dictionaryWithObjectsAndKeys: - @"Nightly", @"name", @"http://cogx.org/appcast/nightly.xml", @"url",nil]]; + NSLocalizedString(@"Nightly", @""), @"name", @"http://cogx.org/appcast/nightly.xml", @"url",nil]]; } diff --git a/Preferences/General/English.lproj/InfoPlist.strings b/Preferences/General/English.lproj/InfoPlist.strings index 4c2120eadbca31c63533339aa04e659a7d8d9266..2aaaa9550504edb84431861afec9e2812ce49a77 100644 GIT binary patch delta 12 TcmX@cc#M(h|G$aMhZz|FBTWS6 delta 11 ScmX@cc#M(x-+zXQOoss-69nY| diff --git a/Preferences/General/English.lproj/Localizable.strings b/Preferences/General/English.lproj/Localizable.strings new file mode 100644 index 000000000..a4eeda5b1 --- /dev/null +++ b/Preferences/General/English.lproj/Localizable.strings @@ -0,0 +1,3 @@ +"Nightly" = "Nightly"; +"Stable" = "Stable"; +"Unstable" = "Unstable"; diff --git a/Preferences/General/General.xcodeproj/project.pbxproj b/Preferences/General/General.xcodeproj/project.pbxproj index 50afa179c..f1044c5ef 100644 --- a/Preferences/General/General.xcodeproj/project.pbxproj +++ b/Preferences/General/General.xcodeproj/project.pbxproj @@ -14,6 +14,7 @@ 17C6433F0B8A783F00C53518 /* OutputPane.m in Sources */ = {isa = PBXBuildFile; fileRef = 17C6433E0B8A783F00C53518 /* OutputPane.m */; }; 17C643690B8A788000C53518 /* output.png in Resources */ = {isa = PBXBuildFile; fileRef = 17C643680B8A788000C53518 /* output.png */; }; 17C644330B8A791D00C53518 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17C644310B8A791D00C53518 /* CoreAudio.framework */; }; + 17E41DB80C130AA500AC744D /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 17E41DB70C130AA500AC744D /* Localizable.strings */; }; 8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; }; 8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; }; 8E07AA870AAC8EA200A4B32F /* FileDrawerPane.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E07AA7F0AAC8EA200A4B32F /* FileDrawerPane.m */; }; @@ -46,6 +47,8 @@ 17C643680B8A788000C53518 /* output.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = output.png; path = Icons/output.png; sourceTree = ""; }; 17C644310B8A791D00C53518 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = ""; }; 17E41C660C13074400AC744D /* Swedish */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = Swedish; path = Swedish.lproj/Preferences.nib; sourceTree = ""; }; + 17E41DB50C130A9D00AC744D /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = ""; }; + 17E41DF80C130CAA00AC744D /* Swedish */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Swedish; path = Swedish.lproj/Localizable.strings; sourceTree = ""; }; 32DBCF630370AF2F00C91783 /* General_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = General_Prefix.pch; sourceTree = ""; }; 8D5B49B6048680CD000E48DA /* General.preferencePane */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = General.preferencePane; sourceTree = BUILT_PRODUCTS_DIR; }; 8D5B49B7048680CD000E48DA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = Info.plist; sourceTree = ""; }; @@ -113,6 +116,7 @@ 8D5B49B7048680CD000E48DA /* Info.plist */, 089C167DFE841241C02AAC07 /* InfoPlist.strings */, 8E07AC030AAC968C00A4B32F /* Preferences.nib */, + 17E41DB70C130AA500AC744D /* Localizable.strings */, ); name = Resources; sourceTree = ""; @@ -265,6 +269,7 @@ 8E15A86C0B894768006DC802 /* updates.png in Resources */, 17C643690B8A788000C53518 /* output.png in Resources */, 1766C7A80B912A71004A7AE4 /* lastfm.png in Resources */, + 17E41DB80C130AA500AC744D /* Localizable.strings in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -299,6 +304,15 @@ name = InfoPlist.strings; sourceTree = ""; }; + 17E41DB70C130AA500AC744D /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + 17E41DB50C130A9D00AC744D /* English */, + 17E41DF80C130CAA00AC744D /* Swedish */, + ); + name = Localizable.strings; + sourceTree = ""; + }; 8E07AC030AAC968C00A4B32F /* Preferences.nib */ = { isa = PBXVariantGroup; children = ( diff --git a/Preferences/General/Info.plist b/Preferences/General/Info.plist index 8fab1133d..90e4109e5 100644 --- a/Preferences/General/Info.plist +++ b/Preferences/General/Info.plist @@ -11,7 +11,7 @@ CFBundleIconFile CFBundleIdentifier - com.vspader.cogpreferences + org.cogx.cog.preferences CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType diff --git a/Preferences/General/Swedish.lproj/Localizable.strings b/Preferences/General/Swedish.lproj/Localizable.strings new file mode 100644 index 000000000..2a5fd5e92 --- /dev/null +++ b/Preferences/General/Swedish.lproj/Localizable.strings @@ -0,0 +1,3 @@ +"Nightly" = "Nattliga"; +"Stable" = "Stabil"; +"Unstable" = "Instabil"; diff --git a/Scripts/load_localization.sh b/Scripts/load_localization.sh index 23bd25070..604840470 100755 --- a/Scripts/load_localization.sh +++ b/Scripts/load_localization.sh @@ -22,4 +22,6 @@ nibtool -d Localizations/$language/MainUI.strings English.lproj/MainMenu.nib -W nibtool -d Localizations/$language/OpenURLPanel.strings English.lproj/OpenURLPanel.nib -W $language.lproj/OpenURLPanel.nib nibtool -d Localizations/$language/PreferencesUI.strings Preferences/General/English.lproj/Preferences.nib -W Preferences/General/$language.lproj/Preferences.nib cp Localizations/$language/MainProgram.strings $language.lproj/Localizable.strings +cp Localizations/$language/PreferencesProgram.strings Preferences/General/$language.lproj/Localizable.strings + diff --git a/Scripts/update_strings.sh b/Scripts/update_strings.sh index 25b3fbe80..d010ad0f4 100755 --- a/Scripts/update_strings.sh +++ b/Scripts/update_strings.sh @@ -8,4 +8,5 @@ nibtool -L English.lproj/OpenURLPanel.nib > Localizations/English/OpenURLPanel.s nibtool -L Preferences/General/English.lproj/Preferences.nib > Localizations/English/PreferencesUI.strings cp English.lproj/Localizable.strings Localizations/English/MainProgram.strings +cp Preferences/General/English.lproj/Localizable.strings Localizations/English/PreferencesProgram.strings