1""" 2Port of "function defines". 3""" 4from Foundation import NSBundle 5 6def NSLocalizedString(key, comment): 7 return NSBundle.mainBundle().localizedStringForKey_value_table_(key, '', None) 8 9def NSLocalizedStringFromTable(key, tbl, comment): 10 return NSBundle.mainBundle().localizedStringForKey_value_table_(key, '', tbl) 11 12def NSLocalizedStringFromTableInBundle(key, tbl, bundle, comment): 13 return bundle.localizedStringForKey_value_table_(key, '', tbl) 14 15def NSLocalizedStringWithDefaultValue(key, tbl, bundle, val, comment): 16 return bundle.localizedStringForKey_value_table_(key, val, tbl) 17