Extract strings into resources (#151)

Move all strings into resource files to make future translating easier

No user facing changes in this PR
This commit is contained in:
damontecres 2025-11-03 15:38:12 -05:00 committed by GitHub
parent 40267be633
commit 2840fa3f2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
52 changed files with 616 additions and 306 deletions

View file

@ -5,6 +5,7 @@ import android.content.Context
import android.provider.Settings
import androidx.datastore.core.DataStore
import com.github.damontecres.wholphin.BuildConfig
import com.github.damontecres.wholphin.R
import com.github.damontecres.wholphin.data.ServerRepository
import com.github.damontecres.wholphin.preferences.AppPreferences
import com.github.damontecres.wholphin.preferences.UserPreferences
@ -47,9 +48,11 @@ annotation class IoCoroutineScope
object AppModule {
@Provides
@Singleton
fun clientInfo(): ClientInfo =
fun clientInfo(
@ApplicationContext context: Context,
): ClientInfo =
ClientInfo(
name = "Wholphin",
name = context.getString(R.string.app_name),
version = BuildConfig.VERSION_NAME,
)