diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-27 13:26:47 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-27 13:26:47 +0000 |
commit | 2183eeefefb81846c2cc2c6b4bf68b12167f2b24 (patch) | |
tree | dedc18dc550106e3d889c26fe263b3319f896c06 /Resources/English.lproj | |
parent | 572b761e971c732585ef5f0fcf852e1842d44e31 (diff) | |
download | sequelpro-2183eeefefb81846c2cc2c6b4bf68b12167f2b24.tar.gz sequelpro-2183eeefefb81846c2cc2c6b4bf68b12167f2b24.tar.bz2 sequelpro-2183eeefefb81846c2cc2c6b4bf68b12167f2b24.zip |
• marked 'sequel-pro-print-template.html' as localizable
• outsourced default QuickLook types into a localizable plist
- prepared SP preferences and SP code to allow the user to add own QL types
• prepared a localizable 'ContentFilter.plist' [not yet implemented fully]
- this plist will held the default filter operators
- this approach will give the user the chance to add own filters
• removed three tiny memory leaks
Note: In MCPResult.m variable 'MCPYear0000' was stored retained. Why?
I removed it and couldn't encounter any problems.
Diffstat (limited to 'Resources/English.lproj')
-rw-r--r-- | Resources/English.lproj/ContentFilters.plist | 7 | ||||
-rw-r--r-- | Resources/English.lproj/EditorQuickLookTypes.plist | 89 | ||||
-rw-r--r-- | Resources/English.lproj/sequel-pro-print-template.html | 76 |
3 files changed, 172 insertions, 0 deletions
diff --git a/Resources/English.lproj/ContentFilters.plist b/Resources/English.lproj/ContentFilters.plist new file mode 100644 index 00000000..4768f16b --- /dev/null +++ b/Resources/English.lproj/ContentFilters.plist @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> + <dict> + + </dict> +</plist> diff --git a/Resources/English.lproj/EditorQuickLookTypes.plist b/Resources/English.lproj/EditorQuickLookTypes.plist new file mode 100644 index 00000000..011124b8 --- /dev/null +++ b/Resources/English.lproj/EditorQuickLookTypes.plist @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> + <dict> + <key>QuickLookTypes</key> + <array> + <dict> + <key>MenuLabel</key> + <string>Image</string> + <key>Extension</key> + <string>icns</string> + <key>treatAsText</key> + <false/> + </dict> + <dict> + <key>MenuLabel</key> + <string>Sound (m4a)</string> + <key>Extension</key> + <string>m4a</string> + <key>treatAsText</key> + <false/> + </dict> + <dict> + <key>MenuLabel</key> + <string>Sound (mp3)</string> + <key>Extension</key> + <string>mp3</string> + <key>treatAsText</key> + <false/> + </dict> + <dict> + <key>MenuLabel</key> + <string>Sound (linear)</string> + <key>Extension</key> + <string>wav</string> + <key>treatAsText</key> + <false/> + </dict> + <dict> + <key>MenuLabel</key> + <string>Movie (mov)</string> + <key>Extension</key> + <string>mov</string> + <key>treatAsText</key> + <false/> + </dict> + <dict> + <key>MenuLabel</key> + <string>PDF</string> + <key>Extension</key> + <string>pdf</string> + <key>treatAsText</key> + <false/> + </dict> + <dict> + <key>MenuLabel</key> + <string>HTML</string> + <key>Extension</key> + <string>html</string> + <key>treatAsText</key> + <true/> + </dict> + <dict> + <key>MenuLabel</key> + <string>Word Document</string> + <key>Extension</key> + <string>doc</string> + <key>treatAsText</key> + <false/> + </dict> + <dict> + <key>MenuLabel</key> + <string>Word Document (xml)</string> + <key>Extension</key> + <string>docx</string> + <key>treatAsText</key> + <false/> + </dict> + <dict> + <key>MenuLabel</key> + <string>RTF</string> + <key>Extension</key> + <string>rtf</string> + <key>treatAsText</key> + <false/> + </dict> + </array> + </dict> +</plist> diff --git a/Resources/English.lproj/sequel-pro-print-template.html b/Resources/English.lproj/sequel-pro-print-template.html new file mode 100644 index 00000000..9dd2f624 --- /dev/null +++ b/Resources/English.lproj/sequel-pro-print-template.html @@ -0,0 +1,76 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html dir="ltr" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> +<head> +<title>Sequel Pro</title> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<style type="text/css" media="all"> +html { + font-size:82%; +} +.nowrap { + white-space:nowrap; +} +div.nowrap { + margin:0; + padding:0; +} +body, table, th, td { + background-color:#FFFFFF; + color:#000000; +} +table, th, td { + border:0.1em solid #000000; +} + +table { + border-collapse:collapse; + border-spacing:0; + width: 100%; +} + +th, td { + padding:0.2em; +} + +th { + background-color:#E5E5E5; + font-weight:bold; +} + +tr > td { + text-align: left; +} + +tr.even > td { + background-color: #EDF3FE; +} + +tr.odd > td { + background-color: #FFFFFF; +} + +</style> +</head> + +<body> +<p> + <b>Connection:</b> {{c.username}}{% if c.username %}@{% /if %}{{c.hostname}}{% if c.port %}:{% /if %}{{c.port}}/{{c.database}}<br> + <b>Generated on:</b> {% now | date_format: "dd MMM yyyy 'at' HH:mm:ss" %} by {{c.version}}<br> + {% if c.query %}<b>SQL query:</b> {{c.query}}{% /if %} + <br> +</p> +<table id="table_results" class="data"> +<thead><tr> +{% for column in columns %}<th>{{ column }}</th>{% /for %} +</tr></thead> + +<tbody> +{% for row in rows %} +<tr {% cycle 'class="odd" ' 'class="even" ' %}> + {% for cell in row %}<td>{{ cell }}</td>{% /for %} +</tr> +{% /for %} +</tbody> +</table> + +</body></html> |