CS translations

This commit is contained in:
Milos Kozak 2017-04-05 22:04:55 +02:00
parent f596050239
commit a02da220c9
3 changed files with 26 additions and 6 deletions

View file

@ -321,7 +321,7 @@ public class OverviewFragment extends Fragment {
return;
menu.setHeaderTitle(MainApp.sResources.getString(R.string.loop));
if (activeloop.isEnabled(PluginBase.LOOP)) {
menu.add(MainApp.sResources.getString(R.string.disabledloop));
menu.add(MainApp.sResources.getString(R.string.disableloop));
if (!activeloop.isSuspended()) {
menu.add(MainApp.sResources.getString(R.string.suspendloopfor1h));
menu.add(MainApp.sResources.getString(R.string.suspendloopfor2h));
@ -336,19 +336,19 @@ public class OverviewFragment extends Fragment {
}
}
if (!activeloop.isEnabled(PluginBase.LOOP))
menu.add(MainApp.sResources.getString(R.string.enabledloop));
menu.add(MainApp.sResources.getString(R.string.enableloop));
}
@Override
public boolean onContextItemSelected(MenuItem item) {
final LoopPlugin activeloop = MainApp.getConfigBuilder().getActiveLoop();
if (item.getTitle() == MainApp.sResources.getString(R.string.disabledloop)) {
if (item.getTitle() == MainApp.sResources.getString(R.string.disableloop)) {
activeloop.setFragmentEnabled(PluginBase.LOOP, false);
activeloop.setFragmentVisible(PluginBase.LOOP, false);
MainApp.getConfigBuilder().storeSettings();
MainApp.bus().post(new EventRefreshGui(false));
return true;
} else if (item.getTitle() == MainApp.sResources.getString(R.string.enabledloop)) {
} else if (item.getTitle() == MainApp.sResources.getString(R.string.enableloop)) {
activeloop.setFragmentEnabled(PluginBase.LOOP, true);
activeloop.setFragmentVisible(PluginBase.LOOP, true);
MainApp.getConfigBuilder().storeSettings();

View file

@ -507,4 +507,23 @@
<string name="wear_detailedIOB_summary">Rozepsat IOB do bolusového a bazálního na hodinkách</string>
<string name="wear_detailedIOB_title">Zobrazit detailní IOB</string>
<string name="wear_settings">Nastavení hodinek</string>
<string name="Glimp">Glimp</string>
<string name="batteryoptimalizationerror">Zařízení patrně nepodporuje vyloučení z optimalizace baterie.</string>
<string name="disconnectpumpfor10h">Odpojit pumpu na 10 h</string>
<string name="disconnectpumpfor1h">Odpojit pumpu na 1 h</string>
<string name="disconnectpumpfor2h">Odpojit pumpu na 2 h</string>
<string name="disconnectpumpfor30m">Odpojit pumpu na 30 min</string>
<string name="disconnectpumpfor3h">Odpojit pumpu na 3 h</string>
<string name="enableloop">Povolit smyčku</string>
<string name="loopmenu">Menu smyčky</string>
<string name="loopsuspended">Smyčka pozastavena</string>
<string name="loopsuspendedfor">Pozastaveno (%d min)</string>
<string name="needwhitelisting">%s potřebuje vypnout optimalizace baterie pro optimalní výkon</string>
<string name="pleaseallowpermission">Prosím povolte oprávnění</string>
<string name="resume">Obnovit</string>
<string name="suspendloopfor10h">Pozastavit smyčku na 10 h</string>
<string name="suspendloopfor1h">Pozastavit smyčku na 1 h</string>
<string name="suspendloopfor2h">Pozastavit smyčku na 2 h</string>
<string name="suspendloopfor3h">Pozastavit smyčku na 3 h</string>
<string name="disableloop">Zakázat smyčku</string>
</resources>

View file

@ -139,7 +139,8 @@
<string name="closedloop">Closed Loop</string>
<string name="openloop">Open Loop</string>
<string name="disabledloop">Loop Disabled</string>
<string name="enabledloop">Loop Enabled</string>
<string name="disableloop">Disable loop</string>
<string name="enableloop">Enable loop</string>
<string name="openloop_newsuggestion">New suggestion available</string>
<string name="unsupportedclientver">Unsupported version of NSClient</string>
@ -564,7 +565,7 @@
<string name="suspendloopfor1h">Suspend loop for 1h</string>
<string name="suspendloopfor2h">Suspend loop for 2h</string>
<string name="suspendloopfor3h">Suspend loop for 3h</string>
<string name="suspendloopfor10h">Suspend loop for 10h</string>
<string name="suspendloopfor10h">Suspend loop for 10 h</string>
<string name="disconnectpumpfor30m">Disconnect pump for 30 min</string>
<string name="disconnectpumpfor1h">Disconnect pump for 1 h</string>
<string name="disconnectpumpfor2h">Disconnect pump for 2 h</string>