Skip to content

Commit

Permalink
dashboard: smoother profile translation (fixes #4586) (#4606)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Kuljeet1998 and dogi authored Oct 10, 2024
1 parent cb4925b commit 8f03b4f
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 26
targetSdkVersion 34
versionCode 2010
versionName "0.20.10"
versionCode 2011
versionName "0.20.11"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ class UserProfileFragment : Fragment() {
}

val map = linkedMapOf(
"Community Name" to Utilities.checkNA(model?.planetCode!!),
"Last Login : " to handler.lastVisit?.let { Utilities.getRelativeTime(it) },
"Total Visits : " to handler.offlineVisits.toString(),
"Most Opened Resource : " to Utilities.checkNA(handler.maxOpenedResource),
"Number of Resources Opened : " to Utilities.checkNA(handler.numberOfResourceOpen)
getString(R.string.community_name) to Utilities.checkNA(model?.planetCode!!),
getString(R.string.last_login) to handler.lastVisit?.let { Utilities.getRelativeTime(it) },
getString(R.string.total_visits_overall) to handler.offlineVisits.toString(),
getString(R.string.most_opened_resource) to Utilities.checkNA(handler.maxOpenedResource),
getString(R.string.number_of_resources_opened) to Utilities.checkNA(handler.numberOfResourceOpen)
)

val keys = LinkedList(map.keys)
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1191,5 +1191,10 @@
<string name="my_purpose_description">هدفي - ما هي طموحاتك التعليمية والمهنية؟</string>
<string name="my_purpose">هدفي</string>
<string name="my_goals">أهدافي</string>
<string name="community_name">اسم المجتمع</string>
<string name="last_login">آخر تسجيل دخول : </string>
<string name="total_visits_overall">إجمالي الزيارات : </string>
<string name="most_opened_resource">أكثر مورد تم فتحه : </string>
<string name="number_of_resources_opened">عدد الموارد المفتوحة : </string>

</resources>
5 changes: 5 additions & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1191,5 +1191,10 @@
<string name="my_purpose_description">Mi Propósito - ¿Cuáles son tus ambiciones educativas y profesionales?</string>
<string name="my_purpose">Mi Propósito</string>
<string name="my_goals">Mis Metas</string>
<string name="community_name">Nombre de la Comunidad</string>
<string name="last_login">Último Inicio de Sesión : </string>
<string name="total_visits_overall">Total de Visitas : </string>
<string name="most_opened_resource">Recurso Más Abierto : </string>
<string name="number_of_resources_opened">Número de Recursos Abiertos : </string>

</resources>
5 changes: 5 additions & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1191,5 +1191,10 @@
<string name="my_purpose_description">Mon But - Quelles sont vos ambitions éducatives et professionnelles ?</string>
<string name="my_purpose">Mon But</string>
<string name="my_goals">Mes Objectifs</string>
<string name="community_name">Nom de la Communauté</string>
<string name="last_login">Dernière Connexion : </string>
<string name="total_visits_overall">Total des Visites : </string>
<string name="most_opened_resource">Ressource La Plus Consultée : </string>
<string name="number_of_resources_opened">Nombre de Ressources Ouvertes : </string>

</resources>
5 changes: 5 additions & 0 deletions app/src/main/res/values-ne/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1191,5 +1191,10 @@
<string name="my_purpose_description">मेरो उद्देश्य - तपाईका शैक्षिक र व्यावसायिक महत्वाकांक्षा के हुन्?</string>
<string name="my_purpose">मेरो उद्देश्य</string>
<string name="my_goals">मेरा लक्ष्यहरू</string>
<string name="community_name">समुदायको नाम</string>
<string name="last_login">अन्तिम लगइन : </string>
<string name="total_visits_overall">कुल भ्रमण : </string>
<string name="most_opened_resource">सबैभन्दा धेरै खोलेको स्रोत : </string>
<string name="number_of_resources_opened">खोलिएका स्रोतहरूको संख्या : </string>

</resources>
5 changes: 5 additions & 0 deletions app/src/main/res/values-so/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1191,5 +1191,10 @@
<string name="my_purpose_description">Ujeedadayda - Waa maxay himilooyinkaaga waxbarasho iyo kuwa xirfadeed?</string>
<string name="my_purpose">Ujeedadayda</string>
<string name="my_goals">Hadafyadayda</string>
<string name="community_name">Magaca Bulshada</string>
<string name="last_login">Gelitaankii Ugu Dambeeyay : </string>
<string name="total_visits_overall">Tirada Booqashooyinka : </string>
<string name="most_opened_resource">Kheyraadka Ugu Badan ee La Furay : </string>
<string name="number_of_resources_opened">Tirada Kheyraadka La Furay : </string>

</resources>
5 changes: 5 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1191,5 +1191,10 @@
<string name="my_purpose_description">My Purpose - What are your educational and professional ambitions?</string>
<string name="my_purpose">My Purpose</string>
<string name="my_goals">My Goals</string>
<string name="community_name">Community Name</string>
<string name="last_login">Last Login : </string>
<string name="total_visits_overall">Total Visits : </string>
<string name="most_opened_resource">Most Opened Resource : </string>
<string name="number_of_resources_opened">Number of Resources Opened : </string>

</resources>

0 comments on commit 8f03b4f

Please sign in to comment.