Added German to good auto-set lang list, fixed issues 376 and 365

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1099 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-12-23 14:25:43 +00:00
parent 2c8705ee75
commit f1f3c31d21
3 changed files with 12 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
*/
var put_locale = function(svgCanvas, given_param){
var lang_param;
var good_langs = ['cs','nl','en','es','fr','ro','sk'];
var good_langs = ['cs','de','en','es','fr','nl','ro','sk'];
if(given_param) {
lang_param = given_param;
} else {

View File

@@ -618,11 +618,19 @@ span.zoom_tool {
#svg_docprops_container #svg_docprops_docprops,
#svg_docprops_container #svg_docprops_prefs {
float: left;
width: 220px;
width: 221px;
margin: 5px .7em;
overflow: hidden;
}
#svg_docprops_container #svg_docprops_prefs {
float: right;
}
#svg_docprops legend {
max-width: 195px;
}
#svg_docprops_docprops > legend, #svg_docprops_prefs > legend {
font-weight: bold;
font-size: 1.1em;

View File

@@ -2033,7 +2033,7 @@ function svg_edit_setup() {
{sel:'#tool_open', fn: clickOpen, evt: 'click', key: [modKey+'O', true]},
{sel:'#tool_source', fn: showSourceEditor, evt: 'click', key: ['U', true]},
{sel:'#tool_wireframe', fn: clickWireframe, evt: 'click', key: ['F', true]},
{sel:'#tool_source_cancel,#svg_source_overlay,#tool_docprops_cancel', fn: cancelOverlays, evt: 'click', key: ['esc', false, false]},
{sel:'#tool_source_cancel,#svg_source_overlay,#tool_docprops_cancel', fn: cancelOverlays, evt: 'click', key: ['esc', false, false], hidekey: true},
{sel:'#tool_source_save', fn: saveSourceEditor, evt: 'click'},
{sel:'#tool_docprops_save', fn: saveDocProperties, evt: 'click'},
{sel:'#tool_docprops', fn: showDocProperties, evt: 'click', key: [modKey+'I', true]},
@@ -2108,7 +2108,7 @@ function svg_edit_setup() {
});
// Put shortcut in title
if(opts.sel) {
if(opts.sel && !opts.hidekey) {
var new_title = btn.attr('title').split('[')[0] + '[' + keyval + ']';
key_assocs[keyval] = opts.sel;
btn.attr('title', new_title);