diff options
author | dmoagx <post@wickenrode.com> | 2013-03-11 01:52:05 +0000 |
---|---|---|
committer | dmoagx <post@wickenrode.com> | 2013-03-11 01:52:05 +0000 |
commit | d70bd5befb27a72e1b9ab6e44692ad67b2f437b9 (patch) | |
tree | 8151835523b502d87f45ab73a223a89886a07d45 /Source/SPDatabaseDocument.m | |
parent | 980abfd10ef5aebe29a7e2369b996b16e25a16af (diff) | |
download | sequelpro-d70bd5befb27a72e1b9ab6e44692ad67b2f437b9.tar.gz sequelpro-d70bd5befb27a72e1b9ab6e44692ad67b2f437b9.tar.bz2 sequelpro-d70bd5befb27a72e1b9ab6e44692ad67b2f437b9.zip |
* When adding a database the servers default charset is now shown
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 03c4d919..bf1221f9 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -760,7 +760,9 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase"; // Populate the database encoding popup button with a default menu item [databaseEncodingButton removeAllItems]; - [databaseEncodingButton addItemWithTitle:@"Default"]; + NSString *defaultCharset = [databaseDataInstance getServerDefaultCharacterSet]; + NSString *defaultItemTitle = (defaultCharset)? [NSString stringWithFormat:NSLocalizedString(@"Default (%@)",@"Add Database Sheet : Charset : Use Server Default ($1 = Charset Name)"),defaultCharset] : NSLocalizedString(@"Default",@"Add Database Sheet : Charset : Use Server Default (unknown)"); + [databaseEncodingButton addItemWithTitle:defaultItemTitle]; // Retrieve the server-supported encodings and add them to the menu NSArray *encodings = [databaseDataInstance getDatabaseCharacterSetEncodings]; |