Skip to content

Commit 353bf37

Browse files
committed
qtplasmac: fix translation issues
1 parent 3af80f3 commit 353bf37

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

lib/python/qtvcp/lib/qtplasmac/conv_rectangle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def preview(P, W, Conv):
3737
origin = W.centLeft.text() == 'CENTER'
3838
styles = [None, 'extRadius', 'extRadius', 'extRadius', 'extRadius']
3939
for n in range(1, 5):
40-
if W['r{}Button'.format(n)].text().startswith(_('CHAMFER')):
40+
if W['r{}Button'.format(n)].text().startswith(_translate('Conversational', 'CHAMFER')):
4141
styles[n] = 'chamfer'
42-
elif W['r{}Button'.format(n)].text().startswith(_('iRADIUS')):
42+
elif W['r{}Button'.format(n)].text().startswith(_translate('Conversational', 'iRADIUS')):
4343
styles[n] = 'intRadius'
4444
style1 = W.r1Button.text()
4545
style2 = W.r1Button.text()

lib/python/qtvcp/lib/qtplasmac/conv_settings.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ def save(P, W, Conv):
3333
error = ''
3434
valid, P.leadIn = Conv.conv_is_float(W.liEntry.text())
3535
if not valid:
36-
msg = _('Invalid LEAD IN entry detected')
36+
msg = _translate('Conversational', 'Invalid LEAD IN entry detected')
3737
error += '{}\n\n'.format(msg)
3838
valid, P.leadOut = Conv.conv_is_float(W.loEntry.text())
3939
if not valid:
40-
msg = _('Invalid LEAD OUT entry detected')
40+
msg = _translate('Conversational', 'Invalid LEAD OUT entry detected')
4141
error += '{}\n\n'.format(msg)
4242
valid, P.holeDiameter = Conv.conv_is_float(W.shEntry.text())
4343
if not valid:
44-
msg = _('Invalid DIAMETER entry detected')
44+
msg = _translate('Conversational', 'Invalid DIAMETER entry detected')
4545
error += '{}\n\n'.format(msg)
4646
valid, P.holeSpeed = Conv.conv_is_float(W.hsEntry.text())
4747
if not valid:
48-
msg = _('Invalid SPEED % entry detected')
48+
msg = _translate('Conversational', 'Invalid SPEED % entry detected')
4949
error += '{}\n\n'.format(msg)
5050
valid, P.gridSize = Conv.conv_is_float(W.gsEntry.text())
5151
if not valid:
52-
msg = _('Invalid GRID SIZE entry detected')
52+
msg = _translate('Conversational', 'Invalid GRID SIZE entry detected')
5353
error += '{}\n\n'.format(msg)
5454
if error:
5555
P.dialogError = True

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = '1.230.231'
1+
VERSION = '1.230.232'
22

33
'''
44
qtplasmac_handler.py

share/qtvcp/screens/qtplasmac/versions.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ <h2>QtPlasmaC Version History</h2>
3030
</table>
3131
<br>
3232
<!--- ****** ADD NEXT VERSION BELOW THIS LINE ****** --->
33+
<br><b><u>v1.230.232 2022 Aug 21</u></b>
34+
<ul style="margin:0;">
35+
<li>fix a few more translation issues</li>
36+
</ul>
37+
<i>Changes submitted by snowgoer540 (Greg Carl)</i><br>
38+
3339
<br><b><u>v1.230.231 2022 Aug 21</u></b>
3440
<ul style="margin:0;">
3541
<li>fix probe test error if ihs-skip is active</li>

0 commit comments

Comments
 (0)