Skip to content

Commit

Permalink
added se and it translation, changed add to icon
Browse files Browse the repository at this point in the history
  • Loading branch information
harisont committed Oct 3, 2020
1 parent edfaa7b commit 0b5e059
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 9 deletions.
5 changes: 5 additions & 0 deletions SpesApp/app/src/main/res/drawable/ic_baseline_add_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="@color/colorAccent"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@color/colorAccent" android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</vector>
15 changes: 8 additions & 7 deletions SpesApp/app/src/main/res/layout/dialog_add_ingredient.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:weightSum="4">
android:weightSum="5">

<EditText
android:id="@+id/new_ingr_name"
android:text=""
android:layout_width="0dp"
android:layout_weight="3"
android:layout_weight="4"
android:layout_height="wrap_content"
android:hint="@string/name" />
<Button
android:id="@+id/quickadd_btn"

<ImageButton
android:id="@+id/quickadd-btn"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:text="@string/add_btn"> <!--TODO: + svg -->
</Button>
android:layout_weight="1"
android:src="@drawable/ic_baseline_add_24">
</ImageButton>

</LinearLayout>
12 changes: 12 additions & 0 deletions SpesApp/app/src/main/res/values-it-rIT/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">SpesApp</string>
<string name="tab_text_1">Lista della spesa</string>
<string name="tab_text_2">Dispensa</string>
<string name="name">Nome ingrediente</string>
<string name="add_success">Ingrediente salvato correttamente!</string>
<string name="add_failure_no_key">Inserire un nome per l\'ingrediente!</string>
<string name="add_failure_duplicate">L\'ingrediente é già in lista!</string>
<string name="never_shown">Ahh! L\'app é stregata! Questa stringa non dovrebbe mai apparire!</string>
<string name="coming_soon">Ci stiamo lavorando!</string>
</resources>
12 changes: 12 additions & 0 deletions SpesApp/app/src/main/res/values-sv-rSE/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">SpesApp</string>
<string name="tab_text_1">Inköpslista</string>
<string name="tab_text_2">Skafferi</string>
<string name="name">Ingrediensnamn</string>
<string name="add_success">Ingrediensen har sparats</string>
<string name="add_failure_no_key">Ange ett namn för ingrediensen</string>
<string name="add_failure_duplicate">Ingrediensen finns redan i en lista!</string>
<string name="never_shown">Aaah! Appen är hemsökt! Denna sträng ska aldrig visas.</string>
<string name="coming_soon">Denna funktionen kommer snart!</string>
</resources>
3 changes: 1 addition & 2 deletions SpesApp/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<resources>
<string name="app_name">SpesApp</string>
<string name="tab_text_1">Grocery list</string>
<string name="tab_text_2">Storage</string>
<string name="tab_text_2">Pantry</string>

<string name="name">Ingredient name</string>
<string name="add_btn">ADD</string> <!--TODO replace with icon-->

<string name="add_success">Ingredient saved successfully!</string>
<string name="add_failure_no_key">Please provide a name for the ingredient!</string>
Expand Down

0 comments on commit 0b5e059

Please sign in to comment.