File tree 3 files changed +6
-4
lines changed
Sources/StringCatalogConverterLibrary
Tests/StringCatalogConverterLibraryTests/Resources/SimpleTest
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ extension StringCatalog {
11
11
static func cleanupValueForAndroid( _ value: String ) -> String {
12
12
value
13
13
. replacingOccurrences ( of: " ' " , with: " \\ ' " )
14
+ . replacingOccurrences ( of: " %@ " , with: " %1$s " )
15
+ . replacingOccurrences ( of: " %d " , with: " %2$d " )
14
16
}
15
17
16
18
public func converted(
Original file line number Diff line number Diff line change 1
1
<resources >
2
2
<string name =" child_button" >Child Tap</string >
3
3
<string name =" collection_empty_message" >Es sind keine Elemente anzuzeigen</string >
4
- <string name =" collection_item" >Element %@ </string >
4
+ <string name =" collection_item" >Element %1$s </string >
5
5
<string name =" counter_button" >Tap</string >
6
- <string name =" counter_status_text" >Anzahl der Child Taps: %d</string >
6
+ <string name =" counter_status_text" >Anzahl der Child Taps: %2$ d</string >
7
7
<string name =" counter_website" >Number42 Website</string >
8
8
<string name =" error_request" >Bei der Anfrage ist ein Fehler aufgetreten.</string >
9
9
<string name =" error_universal" >Fehler</string >
Original file line number Diff line number Diff line change 1
1
<resources >
2
2
<string name =" child_button" >Child Tap</string >
3
3
<string name =" collection_empty_message" >There are no items to show</string >
4
- <string name =" collection_item" >Item %@ </string >
4
+ <string name =" collection_item" >Item %1$s </string >
5
5
<string name =" counter_button" >Tap</string >
6
- <string name =" counter_status_text" >Number of Child Taps: %d</string >
6
+ <string name =" counter_status_text" >Number of Child Taps: %2$ d</string >
7
7
<string name =" counter_website" >Number42 Website</string >
8
8
<string name =" error_request" >An error occurred during this request.</string >
9
9
<string name =" error_universal" >Error</string >
You can’t perform that action at this time.
0 commit comments