i18n improvement
This commit is contained in:
		
							parent
							
								
									61de50ea55
								
							
						
					
					
						commit
						9ea4f73187
					
				
					 2 changed files with 9 additions and 4 deletions
				
			
		|  | @ -16,7 +16,6 @@ import androidx.compose.ui.text.style.TextAlign | |||
| import androidx.compose.ui.tooling.preview.Preview | ||||
| import androidx.compose.ui.unit.dp | ||||
| import androidx.compose.ui.unit.sp | ||||
| import androidx.hilt.navigation.compose.hiltViewModel | ||||
| import be.ugent.sel.studeez.R | ||||
| import be.ugent.sel.studeez.common.composable.BasicButton | ||||
| import be.ugent.sel.studeez.common.composable.ImageBackgroundButton | ||||
|  | @ -70,7 +69,7 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi | |||
|         verticalArrangement = Arrangement.SpaceBetween | ||||
|     ) { | ||||
|         Text( | ||||
|             text = stringResource(R.string.congrats) + hms, | ||||
|             text = stringResource(R.string.congrats, hms), | ||||
|             modifier = Modifier | ||||
|                 .fillMaxWidth(), | ||||
|             textAlign = TextAlign.Center, | ||||
|  | @ -135,6 +134,12 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi | |||
| fun SessionRecapScreenPreview() { | ||||
|     SessionRecapScreen( | ||||
|         modifier = Modifier, | ||||
|         sessionRecapActions = SessionRecapActions(hiltViewModel(), {}, {}) | ||||
|         sessionRecapActions = SessionRecapActions( | ||||
|             { SessionReport( | ||||
|                 studyTime = 100, | ||||
|             ) }, | ||||
|             {}, | ||||
|             {}, | ||||
|         ) | ||||
|     ) | ||||
| } | ||||
|  |  | |||
|  | @ -150,7 +150,7 @@ | |||
|     <string name="repeats">Number of Repeats</string> | ||||
| 
 | ||||
|     <!-- Session Recap --> | ||||
|     <string name="congrats">"Congratulations! You studied: "</string> | ||||
|     <string name="congrats">"Congratulations! You studied: %s"</string> | ||||
|     <string name="how_did_it_go">How did it go?</string> | ||||
|     <string name="good">Good</string> | ||||
|     <string name="bad">Bad</string> | ||||
|  |  | |||
		Reference in a new issue
	
	 brreynie
						brreynie