From 2fa13f3ded3449d0a4ddd0357ca42d6b075d07a8 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 12 Jun 2010 15:41:41 +0000 Subject: - Update the nib localisation postprocessor to output strings files in the original format they were read using - Convert the .strings files to UTF16 --- Resources/English.lproj/AboutPanel.strings | Bin 456 -> 914 bytes .../English.lproj/ConnectionErrorDialog.strings | Bin 894 -> 1790 bytes Resources/English.lproj/ConnectionView.strings | Bin 13560 -> 27074 bytes Resources/English.lproj/Console.strings | Bin 2317 -> 4636 bytes .../English.lproj/ContentFilterManager.strings | Bin 5430 -> 10682 bytes .../English.lproj/ContentPaginationView.strings | Bin 696 -> 1394 bytes Resources/English.lproj/DBView.strings | Bin 66215 -> 131916 bytes .../English.lproj/DataMigrationDialog.strings | Bin 7759 -> 15340 bytes .../English.lproj/DatabaseProcessList.strings | Bin 4446 -> 8882 bytes .../English.lproj/DatabaseServerVariables.strings | Bin 1325 -> 2652 bytes Resources/English.lproj/EncodingPopupView.strings | Bin 457 -> 916 bytes Resources/English.lproj/ExportDialog.strings | Bin 10612 -> 21202 bytes Resources/English.lproj/FieldEditorSheet.strings | Bin 1824 -> 3650 bytes Resources/English.lproj/ImportAccessory.strings | Bin 3440 -> 6882 bytes Resources/English.lproj/MainMenu.strings | Bin 18155 -> 36648 bytes Resources/English.lproj/MainWindow.strings | Bin 82 -> 166 bytes Resources/English.lproj/Navigator.strings | Bin 1377 -> 2720 bytes Resources/English.lproj/Preferences.strings | Bin 22617 -> 45164 bytes Resources/English.lproj/PrintAccessory.strings | Bin 119 -> 240 bytes .../English.lproj/ProgressIndicatorLayer.strings | Bin 357 -> 716 bytes .../English.lproj/QueryFavoriteManager.strings | Bin 15363 -> 30014 bytes Resources/English.lproj/SSHQuestionDialog.strings | Bin 840 -> 1682 bytes Resources/English.lproj/SaveSPFAccessory.strings | Bin 1818 -> 3638 bytes Resources/English.lproj/UserManagerView.strings | Bin 7471 -> 14944 bytes Source/xibLocalizationPostprocessor.m | 2 +- 25 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/English.lproj/AboutPanel.strings b/Resources/English.lproj/AboutPanel.strings index c54d1df0..f054ebc4 100644 Binary files a/Resources/English.lproj/AboutPanel.strings and b/Resources/English.lproj/AboutPanel.strings differ diff --git a/Resources/English.lproj/ConnectionErrorDialog.strings b/Resources/English.lproj/ConnectionErrorDialog.strings index d29c36a3..c18da448 100644 Binary files a/Resources/English.lproj/ConnectionErrorDialog.strings and b/Resources/English.lproj/ConnectionErrorDialog.strings differ diff --git a/Resources/English.lproj/ConnectionView.strings b/Resources/English.lproj/ConnectionView.strings index ec54b3fd..ef71e217 100644 Binary files a/Resources/English.lproj/ConnectionView.strings and b/Resources/English.lproj/ConnectionView.strings differ diff --git a/Resources/English.lproj/Console.strings b/Resources/English.lproj/Console.strings index fbb92435..6dccb282 100644 Binary files a/Resources/English.lproj/Console.strings and b/Resources/English.lproj/Console.strings differ diff --git a/Resources/English.lproj/ContentFilterManager.strings b/Resources/English.lproj/ContentFilterManager.strings index 9ca79b4b..00ca2d92 100644 Binary files a/Resources/English.lproj/ContentFilterManager.strings and b/Resources/English.lproj/ContentFilterManager.strings differ diff --git a/Resources/English.lproj/ContentPaginationView.strings b/Resources/English.lproj/ContentPaginationView.strings index b07a5318..5dedf99c 100644 Binary files a/Resources/English.lproj/ContentPaginationView.strings and b/Resources/English.lproj/ContentPaginationView.strings differ diff --git a/Resources/English.lproj/DBView.strings b/Resources/English.lproj/DBView.strings index 03e730c2..fb029199 100644 Binary files a/Resources/English.lproj/DBView.strings and b/Resources/English.lproj/DBView.strings differ diff --git a/Resources/English.lproj/DataMigrationDialog.strings b/Resources/English.lproj/DataMigrationDialog.strings index 2e2bfc79..89aa301d 100644 Binary files a/Resources/English.lproj/DataMigrationDialog.strings and b/Resources/English.lproj/DataMigrationDialog.strings differ diff --git a/Resources/English.lproj/DatabaseProcessList.strings b/Resources/English.lproj/DatabaseProcessList.strings index d1027e9a..f5a5ed40 100644 Binary files a/Resources/English.lproj/DatabaseProcessList.strings and b/Resources/English.lproj/DatabaseProcessList.strings differ diff --git a/Resources/English.lproj/DatabaseServerVariables.strings b/Resources/English.lproj/DatabaseServerVariables.strings index 06a6f175..98a6fb51 100644 Binary files a/Resources/English.lproj/DatabaseServerVariables.strings and b/Resources/English.lproj/DatabaseServerVariables.strings differ diff --git a/Resources/English.lproj/EncodingPopupView.strings b/Resources/English.lproj/EncodingPopupView.strings index a030540a..ee98fe17 100644 Binary files a/Resources/English.lproj/EncodingPopupView.strings and b/Resources/English.lproj/EncodingPopupView.strings differ diff --git a/Resources/English.lproj/ExportDialog.strings b/Resources/English.lproj/ExportDialog.strings index c9cc93f2..60db86a4 100644 Binary files a/Resources/English.lproj/ExportDialog.strings and b/Resources/English.lproj/ExportDialog.strings differ diff --git a/Resources/English.lproj/FieldEditorSheet.strings b/Resources/English.lproj/FieldEditorSheet.strings index 2e4b0268..0c7ad875 100644 Binary files a/Resources/English.lproj/FieldEditorSheet.strings and b/Resources/English.lproj/FieldEditorSheet.strings differ diff --git a/Resources/English.lproj/ImportAccessory.strings b/Resources/English.lproj/ImportAccessory.strings index c692f947..06e341e9 100644 Binary files a/Resources/English.lproj/ImportAccessory.strings and b/Resources/English.lproj/ImportAccessory.strings differ diff --git a/Resources/English.lproj/MainMenu.strings b/Resources/English.lproj/MainMenu.strings index 938585f7..3ac87470 100644 Binary files a/Resources/English.lproj/MainMenu.strings and b/Resources/English.lproj/MainMenu.strings differ diff --git a/Resources/English.lproj/MainWindow.strings b/Resources/English.lproj/MainWindow.strings index a7aa769e..1191d0d2 100644 Binary files a/Resources/English.lproj/MainWindow.strings and b/Resources/English.lproj/MainWindow.strings differ diff --git a/Resources/English.lproj/Navigator.strings b/Resources/English.lproj/Navigator.strings index 03ea6c14..4ba3c740 100644 Binary files a/Resources/English.lproj/Navigator.strings and b/Resources/English.lproj/Navigator.strings differ diff --git a/Resources/English.lproj/Preferences.strings b/Resources/English.lproj/Preferences.strings index 3d44bb02..7c4c53ff 100644 Binary files a/Resources/English.lproj/Preferences.strings and b/Resources/English.lproj/Preferences.strings differ diff --git a/Resources/English.lproj/PrintAccessory.strings b/Resources/English.lproj/PrintAccessory.strings index d57c5540..bb08702d 100644 Binary files a/Resources/English.lproj/PrintAccessory.strings and b/Resources/English.lproj/PrintAccessory.strings differ diff --git a/Resources/English.lproj/ProgressIndicatorLayer.strings b/Resources/English.lproj/ProgressIndicatorLayer.strings index 398368fa..a7df86c9 100644 Binary files a/Resources/English.lproj/ProgressIndicatorLayer.strings and b/Resources/English.lproj/ProgressIndicatorLayer.strings differ diff --git a/Resources/English.lproj/QueryFavoriteManager.strings b/Resources/English.lproj/QueryFavoriteManager.strings index 81293def..aa062ee2 100644 Binary files a/Resources/English.lproj/QueryFavoriteManager.strings and b/Resources/English.lproj/QueryFavoriteManager.strings differ diff --git a/Resources/English.lproj/SSHQuestionDialog.strings b/Resources/English.lproj/SSHQuestionDialog.strings index fb876b5f..68c90c89 100644 Binary files a/Resources/English.lproj/SSHQuestionDialog.strings and b/Resources/English.lproj/SSHQuestionDialog.strings differ diff --git a/Resources/English.lproj/SaveSPFAccessory.strings b/Resources/English.lproj/SaveSPFAccessory.strings index 4782425d..9265656d 100644 Binary files a/Resources/English.lproj/SaveSPFAccessory.strings and b/Resources/English.lproj/SaveSPFAccessory.strings differ diff --git a/Resources/English.lproj/UserManagerView.strings b/Resources/English.lproj/UserManagerView.strings index 80d213e3..72deec21 100644 Binary files a/Resources/English.lproj/UserManagerView.strings and b/Resources/English.lproj/UserManagerView.strings differ diff --git a/Source/xibLocalizationPostprocessor.m b/Source/xibLocalizationPostprocessor.m index 591e92b7..a6379aa7 100644 --- a/Source/xibLocalizationPostprocessor.m +++ b/Source/xibLocalizationPostprocessor.m @@ -54,7 +54,7 @@ int main(int argc, const char *argv[]) NSLog(@"Warning: skipped garbage input line %d, contents: \"%@\"", lineCount, line); } - if (outputStrings.length && ![outputStrings writeToFile:[NSString stringWithUTF8String:argv[2]] atomically:NO encoding:NSUTF8StringEncoding error:&error]) { + if (outputStrings.length && ![outputStrings writeToFile:[NSString stringWithUTF8String:argv[2]] atomically:NO encoding:usedEncoding error:&error]) { fprintf(stderr, "Error writing %s: %s\n", argv[2], error.localizedDescription.UTF8String); exit (-1); } -- cgit v1.2.3