Skip to content

Commit

Permalink
Aktualizacja linii tłumaczeń
Browse files Browse the repository at this point in the history
  • Loading branch information
linkiniga authored and Kamaz25 committed Aug 23, 2021
1 parent 6aa8cb1 commit 256751f
Show file tree
Hide file tree
Showing 15 changed files with 241 additions and 488 deletions.
25 changes: 12 additions & 13 deletions Kompozycje/Kompozycje.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_user_compositions_gui():
QApplication.processEvents()
user_comp = get_user_compositions(filename)
except Exception:
CustomMessageBox(None, tr('Loading settings failed')).button_ok()
CustomMessageBox(None, tr('Failed to load settings.')).button_ok()
progress.stop()
return user_comp

Expand Down Expand Up @@ -326,8 +326,7 @@ def check_comps_schema(self, compositions, comp_type):
if self.update_comps_schema(compositions):
CustomMessageBox(
self.kompozycje.dock,
tr('Some layers from composition are missing, '
' check composition') + f' {comp_type}'
tr('The layers from composition are missing. Check composition.') + f' {comp_type}'
).button_ok()
self.save_to_project_file()
break
Expand Down Expand Up @@ -521,7 +520,7 @@ def save(self):
list(self.kompozycje.domyslne_kompozycje.keys()):
CustomMessageBox(
self.dlg,
tr('Specified composition name already in use!')).button_ok()
tr('A composition unit with name already exists!')).button_ok()
return
if comp_name:
composition_params = dict()
Expand All @@ -532,7 +531,7 @@ def save(self):
self.dlg.accept()
else:
CustomMessageBox(
self.dlg, tr('Enter name for composition')).button_ok()
self.dlg, tr('Enter composition name')).button_ok()

def get_all_comp_layers(self):
all_layers_list = []
Expand Down Expand Up @@ -624,19 +623,19 @@ def add_layer(self):
else:
CustomMessageBox(
self.dlg,
tr('Choose layer, to add it to selected')
tr('Choose layer to add to tick.')
).button_ok()
else:
CustomMessageBox(
self.dlg, tr('Select group, to choose layer.')
self.dlg, tr('Mark group to choose layer.')
).button_ok()

def del_layer(self):
table_sel_model = self.dlg.warstwy_table.selectionModel()
rows = table_sel_model.selectedRows()
if not rows:
CustomMessageBox(
self.dlg, tr('Select layer, to remove it from selected.')
self.dlg, tr('Select layer to remove from the mark layers.')
).button_ok()
else:
index_list = []
Expand All @@ -662,7 +661,7 @@ def move_down(self):
QItemSelectionModel.Select)
else:
CustomMessageBox(
self.dlg, tr('Choose composition, to change order')
self.dlg, tr('Choose composition to change order.')
).button_ok()

def move_up(self):
Expand All @@ -678,7 +677,7 @@ def move_up(self):
QItemSelectionModel.Select)
else:
CustomMessageBox(
self.dlg, tr('Choose composition, to change order')
self.dlg, tr('Choose composition to change order.')
).button_ok()


Expand Down Expand Up @@ -771,7 +770,7 @@ def save(self):
or name in list(self.kompozycje.domyslne_kompozycje.keys())
) and (not self.czy_domyslna):
CustomMessageBox(
self.dlg, tr('Specified composition name already in use!')
self.dlg, tr('A composition unit with name already exists!')
).button_ok()
return

Expand All @@ -784,7 +783,7 @@ def save(self):
self.kompozycje.stworzone_kompozycje[name] = self.kompozycje.stworzone_kompozycje.pop(self.old_name)
self.dlg.accept()
else:
CustomMessageBox(self.dlg, tr('Enter composition name')).button_ok()
CustomMessageBox(self.dlg, tr('Enter composition name:')).button_ok()


class CompositionsDeleter(object):
Expand All @@ -798,7 +797,7 @@ def run_comp_deleter(self):
rows = model.selectedRows()
if not rows:
CustomMessageBox(
table, tr('Select composition to remove it')
table, tr('Select composition to remove:')
).button_ok()
return

Expand Down
2 changes: 1 addition & 1 deletion Kompozycje/compositions_saver.ui
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ border: 1px solid #5689b0;
<string notr="true">color : white; font-weight: bold;</string>
</property>
<property name="text">
<string>Select compositions</string>
<string>Select composition</string>
</property>
</widget>
</widget>
Expand Down
10 changes: 5 additions & 5 deletions Kompozycje/nowa_kompozycja.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def check(self):
item = model.itemFromIndex(row)
item.setCheckState(QtCore.Qt.Checked)
if not model.rowCount():
raise AttributeError("No layers in 'selected layer'")
raise AttributeError("No layers in 'select layer'")
except AttributeError:
CustomMessageBox(table, tr('No layers in selected layer')).button_ok()
CustomMessageBox(table, tr('No layers in select layers.')).button_ok()

def uncheck(self):
try:
Expand All @@ -52,7 +52,7 @@ def uncheck(self):
if not model.rowCount():
raise AttributeError("No layers in 'selected layer'")
except AttributeError:
CustomMessageBox(None, tr("No layers in selected layer")).button_ok()
CustomMessageBox(None, tr("No layers in select layers.")).button_ok()

def check_all(self):
try:
Expand All @@ -64,7 +64,7 @@ def check_all(self):
if not model.rowCount():
raise AttributeError("No layers in 'selected layer'")
except AttributeError:
CustomMessageBox(None, tr("No layers in selected layer")).button_ok()
CustomMessageBox(None, tr("No layers in select layers.")).button_ok()

def uncheck_all(self):
try:
Expand All @@ -76,4 +76,4 @@ def uncheck_all(self):
if not model.rowCount():
raise AttributeError("No layers in 'selected layer'")
except AttributeError:
CustomMessageBox(None, tr("No layers in selected layer")).button_ok()
CustomMessageBox(None, tr("No layers in select layers.")).button_ok()
6 changes: 3 additions & 3 deletions Kompozycje/nowa_kompozycja.ui
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ border-bottom: 1px solid black;
color: black;</string>
</property>
<property name="text">
<string>Layers in Groups</string>
<string>Layers in groups</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
Expand Down Expand Up @@ -453,7 +453,7 @@ border-bottom: 1px solid black;
color: black;</string>
</property>
<property name="text">
<string>Selected Layers</string>
<string>Selected layers</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
Expand Down Expand Up @@ -539,7 +539,7 @@ QScrollBar:vertical{
<item>
<widget class="QPushButton" name="checkAllPushButton">
<property name="text">
<string>Select All</string>
<string>Select all</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion OrtoTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def disconnect_ortofotomapa_group(self):
except Exception:
QgsMessageLog.logMessage(
tr("Error, detaching signals from "
"groups in layers tree"
"groups in layers tree."
),
tag="GIAP Layout"
)
Expand Down
2 changes: 1 addition & 1 deletion Searcher/searchAddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def fetch_address(self, address):
raise e
except URLError:
iface.messageBar().pushCritical(
tr('Error'), tr('Check if address is correct'))
tr('Error'), tr('Check address'))
return
self.res.decode()

Expand Down
6 changes: 3 additions & 3 deletions Searcher/searchParcel.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def fetch(self):
with urlopen(url, timeout=19) as r:
content = r.read()
except IncompleteRead:
CustomMessageBox(None, f"{tr('Error')} {tr('Service returned incompleted responce')}").button_ok()
CustomMessageBox(None, f"{tr('Error')} {tr('Service returned incomplete responce')}").button_ok()
return False
except HTTPError:
CustomMessageBox(None, f"{tr('Error')} {tr('Service error')}").button_ok()
return False
except URLError:
CustomMessageBox(None, f"{tr('Error')} {tr('Service not responding')}").button_ok()
CustomMessageBox(None, f"{tr('Error')} {tr('Service is not responding.')}").button_ok()
return False
except socket.timeout:
CustomMessageBox(None, f"{tr('Error')} {tr('Service temporary unvailiable on the ULDK side')}").button_ok()
Expand Down Expand Up @@ -114,7 +114,7 @@ def parse_responce(self, resp):
if self.not_valid > 0:
iface.messageBar().pushMessage(
tr('Warning'),
tr('Service return {} not valid features'
tr('Service return {} not valid features.'
).format(self.not_valid),
Qgis.Warning
)
Expand Down
2 changes: 1 addition & 1 deletion StyleManager/stylemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def add_style(self):
if ok:
if str(text) in ['', 'None', 'False']:
msg = QMessageBox()
msg.setText(tr('Not valid name, try again'))
msg.setText(tr('Not valid name, try again!'))
msg.exec_()
return
self.mn.set_style(text, filename)
Expand Down
4 changes: 2 additions & 2 deletions giap_dynamic_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def add_to_ribbon(self):
alg_ind += 1
alg = self.dlg.algorithmTree.algorithmForIndex(ind.child(alg_ind, 0))
else:
CustomMessageBox(self.dlg, tr("Selected item has sub-section")).button_ok()
CustomMessageBox(self.dlg, tr("Select item has sub-section")).button_ok()
return

for group in tool:
Expand Down Expand Up @@ -600,7 +600,7 @@ def key_pressed(self):
# remove selected buttons
for col in range(self.gridLayout.columnCount()):
for row in [0, 1]:
it = self.gridLayout.itemAtPosition(row, col)
it = self.gridLayout.AtPosition(row, col)
if it is None:
continue
if not it.widget().selected:
Expand Down
6 changes: 3 additions & 3 deletions giap_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,21 @@ def initGui(self):
self.styleButton.setBaseSize(QSize(25, 25))
self.styleButton.clicked.connect(self.show_style_manager_dialog)
self.styleButton.setObjectName('ThemeButton')

self.settingsButton = QToolButton()
self.settingsButton.setText(tr("Settings"))
self.settingsButton.setBaseSize(QSize(25, 25))
self.settingsButton.clicked.connect(self.show_settings_dialog)
self.settingsButton.setObjectName('SettingsButton')

corner_widget = QWidget(self.main_widget.tabWidget)
corner_layout = QHBoxLayout()
corner_layout.setContentsMargins(0, 0, 0, 0)
corner_layout.addWidget(self.menuButton)
corner_layout.addWidget(self.editButton)
corner_layout.addWidget(self.styleButton)
corner_layout.addWidget(self.settingsButton)

self.main_widget.lineEdit_address.setToolTip(f"""{tr('Enter the data according to the scheme:')}
{tr('for the address point:')} {'Warszawa, Pasaż Ursynowski 1'}
{tr('for the street:')} {'Warszawa, Pasaż Ursynowski'}""")
#logo icon
plug_dir = os.path.dirname(__file__)
gbut = QPushButton()
Expand Down
Binary file modified i18n/giap_pl.qm
Binary file not shown.
Loading

0 comments on commit 256751f

Please sign in to comment.