Fixed translation

This commit is contained in:
Pierre HUBERT 2018-08-29 10:19:24 +02:00
parent f9fc7227a5
commit 111f1749f5
3 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import android.widget.TextView;
import org.communiquons.android.comunic.client.R;
import org.communiquons.android.comunic.client.data.utils.StringsUtils;
import org.communiquons.android.comunic.client.data.utils.Utilities;
import org.communiquons.android.comunic.client.ui.utils.UiUtils;
/**
* CountDown view
@ -96,7 +97,8 @@ public class CountDownView extends BaseFrameLayoutView {
int seconds = remaining_time % 60;
Log.v(TAG, days + "d " + hours + ":" + minutes + ":" + seconds);
return StringsUtils.EnsureZerosInNumberString(days, 2) + "d "
return StringsUtils.EnsureZerosInNumberString(days, 2)
+ UiUtils.getString(getContext(), R.string.date_days_short) + " "
+ StringsUtils.EnsureZerosInNumberString(hours, 2) + ":"
+ StringsUtils.EnsureZerosInNumberString(minutes, 2) + ":"
+ StringsUtils.EnsureZerosInNumberString(seconds, 2);

View File

@ -248,4 +248,5 @@
<string name="activity_about_title">A propos</string>
<string name="dialog_open_source_licenses_title">Licences Open Source</string>
<string name="btn_open_source_licences">Licences Open Source</string>
<string name="date_days_short">j</string>
</resources>

View File

@ -252,4 +252,5 @@
<string name="dialog_delete_conversation_message_cancel">Cancel</string>
<string name="dialog_delete_conversation_message_confirm">Delete</string>
<string name="err_delete_conversation_message">Could not delete conversation message!</string>
<string name="date_days_short">d</string>
</resources>