Browse Source

let more strings to be translatable

pull/362/head
Houston4444 3 years ago
parent
commit
d562c30848
4 changed files with 13 additions and 13 deletions
  1. +3
    -3
      src/catia.py
  2. +7
    -7
      src/claudia_launcher.py
  3. +2
    -2
      src/render.py
  4. +1
    -1
      src/shared_canvasjack.py

+ 3
- 3
src/catia.py View File

@@ -737,7 +737,7 @@ class CatiaMainW(AbstractCanvasJackClass):
self.fGroupList.remove(group) self.fGroupList.remove(group)
break break
else: else:
print("Catia - remove group failed")
print(self.tr("Catia - remove group failed"))
return return


patchcanvas.removeGroup(groupId) patchcanvas.removeGroup(groupId)
@@ -877,7 +877,7 @@ class CatiaMainW(AbstractCanvasJackClass):
break break


else: else:
print("Catia - connect jack ports failed")
print(self.tr("Catia - connect jack ports failed"))
return -1 return -1


return self.canvas_connectPorts(portOutId, portInId) return self.canvas_connectPorts(portOutId, portInId)
@@ -900,7 +900,7 @@ class CatiaMainW(AbstractCanvasJackClass):
portInId = port[iPortId] portInId = port[iPortId]


if portOutId == -1 or portInId == -1: if portOutId == -1 or portInId == -1:
print("Catia - disconnect ports failed")
print(self.tr("Catia - disconnect ports failed"))
return return


self.canvas_disconnectPorts(portOutId, portInId) self.canvas_disconnectPorts(portOutId, portInId)


+ 7
- 7
src/claudia_launcher.py View File

@@ -522,7 +522,7 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW):


def clearInfo_DAW(self): def clearInfo_DAW(self):
self.ico_app_daw.setPixmap(self.getIcon("start-here").pixmap(48, 48)) self.ico_app_daw.setPixmap(self.getIcon("start-here").pixmap(48, 48))
self.label_name_daw.setText("App Name")
self.label_name_daw.setText(self.tr("App Name"))
self.ico_ladspa_daw.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_ladspa_daw.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
self.ico_dssi_daw.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_dssi_daw.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
self.ico_lv2_daw.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_lv2_daw.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
@@ -536,7 +536,7 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW):


def clearInfo_Host(self): def clearInfo_Host(self):
self.ico_app_host.setPixmap(self.getIcon("start-here").pixmap(48, 48)) self.ico_app_host.setPixmap(self.getIcon("start-here").pixmap(48, 48))
self.label_name_host.setText("App Name")
self.label_name_host.setText(self.tr("App Name"))
self.ico_ladspa_host.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_ladspa_host.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
self.ico_dssi_host.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_dssi_host.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
self.ico_lv2_host.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_lv2_host.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
@@ -549,7 +549,7 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW):


def clearInfo_Intrument(self): def clearInfo_Intrument(self):
self.ico_app_ins.setPixmap(self.getIcon("start-here").pixmap(48, 48)) self.ico_app_ins.setPixmap(self.getIcon("start-here").pixmap(48, 48))
self.label_name_ins.setText("App Name")
self.label_name_ins.setText(self.tr("App Name"))
self.ico_builtin_fx_ins.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_builtin_fx_ins.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
self.ico_audio_input_ins.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_audio_input_ins.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
self.label_midi_mode_ins.setText("---") self.label_midi_mode_ins.setText("---")
@@ -559,7 +559,7 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW):


def clearInfo_Bristol(self): def clearInfo_Bristol(self):
self.ico_app_bristol.setPixmap(self.getIcon("start-here").pixmap(48, 48)) self.ico_app_bristol.setPixmap(self.getIcon("start-here").pixmap(48, 48))
self.label_name_bristol.setText("App Name")
self.label_name_bristol.setText(self.tr("App Name"))
self.ico_builtin_fx_bristol.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_builtin_fx_bristol.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
self.ico_audio_input_bristol.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_audio_input_bristol.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
self.label_midi_mode_bristol.setText("---") self.label_midi_mode_bristol.setText("---")
@@ -569,7 +569,7 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW):


def clearInfo_Plugin(self): def clearInfo_Plugin(self):
self.ico_app_plugin.setPixmap(self.getIcon("lv2").pixmap(48, 48)) self.ico_app_plugin.setPixmap(self.getIcon("lv2").pixmap(48, 48))
self.label_name_plugin.setText("Plugin Name")
self.label_name_plugin.setText(self.tr("Plugin Name"))
self.label_plugin_audio_ins.setText("0") self.label_plugin_audio_ins.setText("0")
self.label_plugin_audio_outs.setText("0") self.label_plugin_audio_outs.setText("0")
self.label_plugin_midi_ins.setText("0") self.label_plugin_midi_ins.setText("0")
@@ -581,7 +581,7 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW):


def clearInfo_Effect(self): def clearInfo_Effect(self):
self.ico_app_effect.setPixmap(self.getIcon("start-here").pixmap(48, 48)) self.ico_app_effect.setPixmap(self.getIcon("start-here").pixmap(48, 48))
self.label_name_effect.setText("App Name")
self.label_name_effect.setText(self.tr("App Name"))
self.ico_stereo_effect.setPixmap(self.getIconForYesNo(False).pixmap(16, 16)) self.ico_stereo_effect.setPixmap(self.getIconForYesNo(False).pixmap(16, 16))
self.label_midi_mode_effect.setText("---") self.label_midi_mode_effect.setText("---")
self.label_session_level_effect.setText(database.LEVEL_0) self.label_session_level_effect.setText(database.LEVEL_0)
@@ -590,7 +590,7 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW):


def clearInfo_Tool(self): def clearInfo_Tool(self):
self.ico_app_tool.setPixmap(self.getIcon("start-here").pixmap(48, 48)) self.ico_app_tool.setPixmap(self.getIcon("start-here").pixmap(48, 48))
self.label_name_tool.setText("App Name")
self.label_name_tool.setText(self.tr("App Name"))
self.label_midi_mode_tool.setText("---") self.label_midi_mode_tool.setText("---")
self.label_session_level_tool.setText(database.LEVEL_0) self.label_session_level_tool.setText(database.LEVEL_0)
self.frame_Tool.setEnabled(False) self.frame_Tool.setEnabled(False)


+ 2
- 2
src/render.py View File

@@ -239,7 +239,7 @@ class RenderW(QDialog):
os.chdir(self.ui.le_folder.text()) os.chdir(self.ui.le_folder.text())


if newBufferSize != int(jacklib.get_buffer_size(self.fJackClient)): if newBufferSize != int(jacklib.get_buffer_size(self.fJackClient)):
print("NOTICE: buffer size changed before render")
print(self.tr("NOTICE: buffer size changed before render"))
jacklib.set_buffer_size(self.fJackClient, newBufferSize) jacklib.set_buffer_size(self.fJackClient, newBufferSize)


if useTransport: if useTransport:
@@ -252,7 +252,7 @@ class RenderW(QDialog):
self.fProcess.waitForStarted() self.fProcess.waitForStarted()


if self.fFreewheel: if self.fFreewheel:
print("NOTICE: rendering in freewheel mode")
print(self.tr("NOTICE: rendering in freewheel mode"))
sleep(1) sleep(1)
jacklib.set_freewheel(self.fJackClient, 1) jacklib.set_freewheel(self.fJackClient, 1)




+ 1
- 1
src/shared_canvasjack.py View File

@@ -156,7 +156,7 @@ class AbstractCanvasJackClass(QMainWindow):
failed = bool(jacksettings.setBufferSize(bufferSize)) failed = bool(jacksettings.setBufferSize(bufferSize))


if failed: if failed:
print("Failed to change buffer-size as %i, reset to %i" % (bufferSize, self.fBufferSize))
print(self.tr("Failed to change buffer-size as %i, reset to %i") % (bufferSize, self.fBufferSize))
self.ui_setBufferSize(self.fBufferSize, True) self.ui_setBufferSize(self.fBufferSize, True)


def jack_setSampleRate(self, sampleRate): def jack_setSampleRate(self, sampleRate):


Loading…
Cancel
Save