Merge branch 'stable-1.1'

Conflicts:
	data/locale/zh.ts
This commit is contained in:
Vesa
2014-11-21 14:06:12 +02:00
2 changed files with 102 additions and 113 deletions

View File

@@ -31,10 +31,11 @@
<source>Current language not translated (or native English).
If you&apos;re interested in translating LMMS in another language or want to improve existing translations, you&apos;re welcome to help us! Simply contact the maintainer!</source>
<translation type="unfinished">
<translation>
https://github.com/LMMS/lmms/wiki/Creating-a-localization
TonyChyitonychee1989@gmail.com
Min Zhang zm1990s@gmail.com
@@ -130,7 +131,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>Click here, if you want to open another audio-file. A dialog will appear where you can select your file. Settings like looping-mode, start and end-points, amplify-value, and so on are not reset. So, it may not sound like the original sample.</source>
<translation>(looping-mode)/(amplify-value)</translation>
<translation> (looping-mode)/(amplify-value)</translation>
</message>
<message>
<source>Reverse sample</source>
@@ -138,7 +139,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>If you enable this button, the whole sample is reversed. This is useful for cool effects, e.g. a reversed crash.</source>
<translation>reversed crash.</translation>
<translation type="unfinished">reversed crash</translation>
</message>
<message>
<source>Amplify:</source>
@@ -146,15 +147,15 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>With this knob you can set the amplify ratio. When you set a value of 100% your sample isn&apos;t changed. Otherwise it will be amplified up or down (your actual sample-file isn&apos;t touched!)</source>
<translation>100% ()</translation>
<translation>100% </translation>
</message>
<message>
<source>Startpoint:</source>
<translation> </translation>
<translation> </translation>
</message>
<message>
<source>Endpoint:</source>
<translation>:</translation>
<translation> </translation>
</message>
<message>
<source>Continue sample playback across notes</source>
@@ -170,27 +171,27 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>This button disables looping. The sample plays only once from start to end. </source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>Enable loop</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>This button enables forwards-looping. The sample loops between the end point and the loop point.</source>
<translation type="unfinished"></translation>
<translation type="unfinished">Forwards-looping End PointLoop Point</translation>
</message>
<message>
<source>This button enables ping-pong-looping. The sample loops backwards and forwards between the end point and the loop point.</source>
<translation type="unfinished"></translation>
<translation type="unfinished">Ping-pong-looping End PointLoop Point</translation>
</message>
<message>
<source>With this knob you can set the point where AudioFileProcessor should begin playing your sample. </source>
<translation type="unfinished"></translation>
<translation> AudioFileProcessor </translation>
</message>
<message>
<source>With this knob you can set the point where AudioFileProcessor should stop playing your sample. </source>
<translation type="unfinished"></translation>
<translation> AudioFileProcessor </translation>
</message>
<message>
<source>Loopback point:</source>
@@ -198,7 +199,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>With this knob you can set the point where the loop starts. </source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@@ -216,7 +217,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>LMMS was kicked by JACK for some reason. Therefore the JACK backend of LMMS has been restarted. You will have to make manual connections again.</source>
<translation>LMMS由于某些原因与JACK断开连接LMMS的JACK后端重启导致的</translation>
<translation>LMMS由于某些原因与JACK断开连接 LMMS的JACK后端重启导致的</translation>
</message>
<message>
<source>JACK server down</source>
@@ -224,7 +225,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>The JACK server seems to have been shutdown and starting a new instance failed. Therefore LMMS is unable to proceed. You should save your project and restart JACK and LMMS.</source>
<translation>JACK服务好像崩溃了而且未能正常启动LMMS不能正常工作JACK和LMMS</translation>
<translation>JACK服务好像崩溃了 LMMS不能正常工作JACK和LMMS</translation>
</message>
</context>
<context>
@@ -294,7 +295,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>Edit song-global automation</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>Connected to %1</source>
@@ -322,7 +323,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>Remove all linked controls</source>
<translation></translation>
<translation></translation>
</message>
</context>
<context>
@@ -401,7 +402,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>All selected values were copied to the clipboard.</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>Discrete progression</source>
@@ -455,11 +456,11 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
<name>AutomationPatternView</name>
<message>
<source>double-click to open this pattern in automation editor</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>Open in Automation editor</source>
<translation> Automation editor</translation>
<translation>Automation editor</translation>
</message>
<message>
<source>Clear</source>
@@ -497,11 +498,11 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
<name>BassBoosterControlDialog</name>
<message>
<source>FREQ</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>Frequency:</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>GAIN</source>
@@ -539,11 +540,11 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
<name>CarlaInstrumentView</name>
<message>
<source>Show GUI</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>Click here to show or hide the graphical user interface (GUI) of Carla.</source>
<translation type="unfinished"></translation>
<translation> Carla </translation>
</message>
</context>
<context>
@@ -585,7 +586,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>MIDI-devices to receive MIDI-events from</source>
<translation> MIDI MIDI </translation>
<translation> MIDI MIDI </translation>
</message>
<message>
<source>USER CONTROLLER</source>
@@ -681,15 +682,15 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
<name>DualFilterControls</name>
<message>
<source>Filter 1 enabled</source>
<translation>1 </translation>
<translation> 1 </translation>
</message>
<message>
<source>Filter 1 type</source>
<translation> 1 </translation>
<translation> 1 </translation>
</message>
<message>
<source>Cutoff 1 frequency</source>
<translation type="unfinished"></translation>
<translation> 1 </translation>
</message>
<message>
<source>Q/Resonance 1</source>
@@ -697,7 +698,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>Gain 1</source>
<translation type="unfinished"></translation>
<translation> 1</translation>
</message>
<message>
<source>Mix</source>
@@ -705,15 +706,15 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>Filter 2 enabled</source>
<translation type="unfinished"> 2</translation>
<translation> 2</translation>
</message>
<message>
<source>Filter 2 type</source>
<translation type="unfinished"> 1 {2 ?}</translation>
<translation> 2 </translation>
</message>
<message>
<source>Cutoff 2 frequency</source>
<translation type="unfinished"></translation>
<translation> 2 </translation>
</message>
<message>
<source>Q/Resonance 2</source>
@@ -721,7 +722,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>Gain 2</source>
<translation type="unfinished"></translation>
<translation> 2</translation>
</message>
<message>
<source>LowPass</source>
@@ -788,7 +789,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
<name>Effect</name>
<message>
<source>Effect enabled</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>Wet/Dry mix</source>
@@ -807,7 +808,7 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
<name>EffectChain</name>
<message>
<source>Effects enabled</source>
<translation></translation>
<translation></translation>
</message>
</context>
<context>
@@ -829,14 +830,14 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>Plugin description</source>
<translation></translation>
<translation></translation>
</message>
</context>
<context>
<name>EffectView</name>
<message>
<source>Toggles the effect on or off.</source>
<translation></translation>
<translation type="unfinished">/</translation>
</message>
<message>
<source>On/Off</source>
@@ -844,15 +845,15 @@ Jeff Bai邮箱jeffbaichina@gmail.com</translation>
</message>
<message>
<source>W/D</source>
<translation>W/D</translation>
<translation>/湿</translation>
</message>
<message>
<source>Wet Level:</source>
<translation type="unfinished"></translation>
<translation type="unfinished">湿</translation>
</message>
<message>
<source>The Wet/Dry knob sets the ratio between the input signal and the effect signal that forms the output.</source>
<translation type="unfinished"></translation>
<translation>湿</translation>
</message>
<message>
<source>DECAY</source>
@@ -990,23 +991,23 @@ Right clicking will bring up a context menu where you can change the order in wh
</message>
<message>
<source>ATT</source>
<translation type="unfinished"></translation>
<translation>ATT</translation>
</message>
<message>
<source>Attack:</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>Use this knob for setting attack-time of the current envelope. The bigger this value the longer the envelope needs to increase to attack-level. Choose a small value for instruments like pianos and a big value for strings.</source>
<translation type="unfinished"></translation>
<translation type="unfinished">(ADSR Attack)</translation>
</message>
<message>
<source>HOLD</source>
<translation type="unfinished"></translation>
<translation>HOLD</translation>
</message>
<message>
<source>Hold:</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>Use this knob for setting hold-time of the current envelope. The bigger this value the longer the envelope holds attack-level before it begins to decrease to sustain-level.</source>
@@ -1014,7 +1015,7 @@ Right clicking will bring up a context menu where you can change the order in wh
</message>
<message>
<source>DEC</source>
<translation type="unfinished"></translation>
<translation>DEC</translation>
</message>
<message>
<source>Decay:</source>
@@ -1022,31 +1023,31 @@ Right clicking will bring up a context menu where you can change the order in wh
</message>
<message>
<source>Use this knob for setting decay-time of the current envelope. The bigger this value the longer the envelope needs to decrease from attack-level to sustain-level. Choose a small value for instruments like pianos.</source>
<translation type="unfinished"></translation>
<translation type="unfinished">(ADSR Decay)</translation>
</message>
<message>
<source>SUST</source>
<translation type="unfinished"></translation>
<translation>SUST</translation>
</message>
<message>
<source>Sustain:</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>Use this knob for setting sustain-level of the current envelope. The bigger this value the higher the level on which the envelope stays before going down to zero.</source>
<translation type="unfinished"></translation>
<translation type="unfinished">(ADSR Sustain)</translation>
</message>
<message>
<source>REL</source>
<translation type="unfinished"></translation>
<translation type="unfinished">REL</translation>
</message>
<message>
<source>Release:</source>
<translation type="unfinished"></translation>
<translation type="unfinished">退</translation>
</message>
<message>
<source>Use this knob for setting release-time of the current envelope. The bigger this value the longer the envelope needs to decrease from sustain-level to zero. Choose a big value for soft instruments like strings.</source>
<translation type="unfinished"></translation>
<translation type="unfinished">(ADSR Release)</translation>
</message>
<message>
<source>AMT</source>
@@ -1233,7 +1234,7 @@ Right clicking will bring up a context menu where you can change the order in wh
</message>
<message>
<source>Please note that not all of the parameters above apply for all file formats.</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>Quality settings</source>
@@ -7168,7 +7169,7 @@ This chip was used in the Commodore 64 computer.</source>
</message>
<message>
<source>BUFFER SIZE</source>
<translation></translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>Reset to default-value</source>
@@ -7266,15 +7267,15 @@ Latency: %2 ms</source>
</message>
<message>
<source>Here you can setup the internal buffer-size used by LMMS. Smaller values result in a lower latency but also may cause unusable sound or bad performance, especially on older computers or systems with a non-realtime kernel.</source>
<translation type="unfinished"></translation>
<translation type="unfinished"> LMMS </translation>
</message>
<message>
<source>Choose LMMS working directory</source>
<translation>LMMS工作目</translation>
<translation> LMMS </translation>
</message>
<message>
<source>Choose your VST-plugin directory</source>
<translation>VST插件目</translation>
<translation> VST </translation>
</message>
<message>
<source>Choose artwork-theme directory</source>
@@ -7282,15 +7283,15 @@ Latency: %2 ms</source>
</message>
<message>
<source>Choose FL Studio installation directory</source>
<translation>FL Studio安装目</translation>
<translation> FL Studio </translation>
</message>
<message>
<source>Choose LADSPA plugin directory</source>
<translation>LADSPA插件目</translation>
<translation> LADSPA </translation>
</message>
<message>
<source>Choose STK rawwave directory</source>
<translation> STK rawwave </translation>
<translation> STK rawwave </translation>
</message>
<message>
<source>Here you can select your preferred audio-interface. Depending on the configuration of your system during compilation time you can choose between ALSA, JACK, OSS and more. Below you see a box which offers controls to setup the selected audio-interface.</source>
@@ -7306,11 +7307,11 @@ Latency: %2 ms</source>
</message>
<message>
<source>LADSPA plugin paths</source>
<translation>LADSPA插件目录</translation>
<translation>LADSPA </translation>
</message>
<message>
<source>Default Soundfont File</source>
<translation>SoundFont</translation>
<translation> SoundFont </translation>
</message>
<message>
<source>Background artwork</source>
@@ -7318,7 +7319,7 @@ Latency: %2 ms</source>
</message>
<message>
<source>Choose default SoundFont</source>
<translation>SoundFont</translation>
<translation> SoundFont</translation>
</message>
<message>
<source>Choose background artwork</source>
@@ -7498,7 +7499,7 @@ Latency: %2 ms</source>
<name>sidInstrument</name>
<message>
<source>Cutoff</source>
<translation></translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>Resonance</source>
@@ -7510,7 +7511,7 @@ Latency: %2 ms</source>
</message>
<message>
<source>Voice 3 off</source>
<translation type="unfinished"></translation>
<translation type="unfinished"> 3 </translation>
</message>
<message>
<source>Volume</source>
@@ -7529,11 +7530,11 @@ Latency: %2 ms</source>
</message>
<message>
<source>Resonance:</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>Cutoff frequency:</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>High-Pass filter </source>
@@ -7549,7 +7550,7 @@ Latency: %2 ms</source>
</message>
<message>
<source>Voice3 Off </source>
<translation type="unfinished"></translation>
<translation> 3 </translation>
</message>
<message>
<source>MOS6581 SID </source>
@@ -7561,7 +7562,7 @@ Latency: %2 ms</source>
</message>
<message>
<source>Attack:</source>
<translation></translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>Attack rate determines how rapidly the output of Voice %1 rises from zero to peak amplitude.</source>
@@ -7577,7 +7578,7 @@ Latency: %2 ms</source>
</message>
<message>
<source>Sustain:</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>Output of Voice %1 will remain at the selected Sustain amplitude as long as the note is held.</source>
@@ -7585,7 +7586,7 @@ Latency: %2 ms</source>
</message>
<message>
<source>Release:</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<source>The output of of Voice %1 will fall from Sustain amplitude to zero amplitude at the selected Release rate.</source>
@@ -7676,11 +7677,11 @@ Latency: %2 ms</source>
</message>
<message>
<source>The project %1 is now saved.</source>
<translation>%1</translation>
<translation> %1 </translation>
</message>
<message>
<source>Project NOT saved.</source>
<translation></translation>
<translation> **** </translation>
</message>
<message>
<source>The project %1 was not saved!</source>
@@ -7692,7 +7693,7 @@ Latency: %2 ms</source>
</message>
<message>
<source>untitled</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>Select file for project-export...</source>
@@ -7708,11 +7709,11 @@ Latency: %2 ms</source>
</message>
<message>
<source>MIDI sequences</source>
<translation>MIDI音序</translation>
<translation>MIDI </translation>
</message>
<message>
<source>FL Studio projects</source>
<translation>FL Studio</translation>
<translation>FL Studio </translation>
</message>
<message>
<source>All file types</source>

View File

@@ -92,18 +92,20 @@ bool AutomatableModel::isAutomated() const
void AutomatableModel::saveSettings( QDomDocument& doc, QDomElement& element, const QString& name )
{
if( isAutomated() )
if( isAutomated() || m_scaleType != Linear )
{
// automation needs tuple of data (name, id, value)
// scale type also needs an extra value
// => it must be appended as a node
QDomElement me = doc.createElement( name );
me.setAttribute( "id", id() );
me.setAttribute( "value", m_value );
me.setAttribute( "scale_type", m_scaleType == Logarithmic ? "log" : "linear" );
element.appendChild( me );
}
else
{
// non automation => can be saved as attribute
// non automation, linear scale (default), can be saved as attribute
element.setAttribute( name, m_value );
}
@@ -128,15 +130,6 @@ void AutomatableModel::saveSettings( QDomDocument& doc, QDomElement& element, co
controllerElement.appendChild( element );
}
if( m_scaleType == Logarithmic )
{
element.setAttribute( "scale_type", "log" );
}
if( m_scaleType == Linear )
{
element.setAttribute( "scale_type", "linear" );
}
}
@@ -144,22 +137,6 @@ void AutomatableModel::saveSettings( QDomDocument& doc, QDomElement& element, co
void AutomatableModel::loadSettings( const QDomElement& element, const QString& name )
{
// read scale type and overwrite default scale type
if( element.hasAttribute("scale_type") ) // wrong in most cases
{
if( element.attribute("scale_type") == "log" )
{
setScaleType( Logarithmic );
}
if( element.attribute("scale_type") == "linear" )
{
setScaleType( Linear );
}
}
else {
setScaleType( Linear );
}
// compat code
QDomNode node = element.namedItem( AutomationPattern::classNodeName() );
if( node.isElement() )
@@ -199,14 +176,25 @@ void AutomatableModel::loadSettings( const QDomElement& element, const QString&
// <ladspacontrols port10="4.41">
// <port00 value="4.41" id="4249278"/>
// </ladspacontrols>
// element => there is automation data
// element => there is automation data, or scaletype information
node = element.namedItem( name );
if( node.isElement() )
{
changeID( node.toElement().attribute( "id" ).toInt() );
setValue( node.toElement().attribute( "value" ).toFloat() );
}
else if( element.hasAttribute( name ) )
if( node.isElement() )
{
changeID( node.toElement().attribute( "id" ).toInt() );
setValue( node.toElement().attribute( "value" ).toFloat() );
if( node.toElement().hasAttribute( "scale_type" ) )
{
if( node.toElement().attribute( "scale_type" ) == "linear" )
{
setScaleType( Linear );
}
else if( node.toElement().attribute( "scale_type" ) == "log" )
{
setScaleType( Logarithmic );
}
}
}
else if( element.hasAttribute( name ) )
// attribute => read the element's value from the attribute list
{
setInitValue( element.attribute( name ).toFloat() );