Skip to content

Commit 4c42484

Browse files
committed
Update Chinese Simplified translation
Extract default book name string for translation
1 parent 77d9323 commit 4c42484

File tree

34 files changed

+66
-29
lines changed

34 files changed

+66
-29
lines changed

app/src/main/java/org/gnucash/android/db/adapter/BooksDbAdapter.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import android.net.Uri;
2525
import android.support.annotation.NonNull;
2626

27+
import org.gnucash.android.R;
2728
import org.gnucash.android.app.GnuCashApplication;
2829
import org.gnucash.android.db.DatabaseSchema.BookEntry;
2930
import org.gnucash.android.model.Book;
@@ -111,7 +112,7 @@ public boolean deleteBook(@NonNull String bookUID){
111112

112113
return result;
113114
}
114-
115+
115116
/**
116117
* Sets the book with unique identifier {@code uid} as active and all others as inactive
117118
* <p>If the parameter is null, then the currently active book is not changed</p>
@@ -191,7 +192,9 @@ public boolean isActive(String bookUID){
191192
SQLiteStatement statement = mDb.compileStatement(sql);
192193

193194
while (true) {
194-
String name = "Book" + " " + bookCount;
195+
Context context = GnuCashApplication.getAppContext();
196+
String name = context.getString(R.string.book_default_name, bookCount);
197+
//String name = "Book" + " " + bookCount;
195198

196199
statement.clearBindings();
197200
statement.bindString(1, name);

app/src/main/res/values-af-rZA/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,4 +477,5 @@
477477
<string name="repeat_on_weekday">on %1$s</string>
478478
<string name="repeat_x_times">for %1$s times</string>
479479
<string name="menu_show_compact_view">Compact View</string>
480+
<string name="book_default_name">Book %1$d</string>
480481
</resources>

app/src/main/res/values-ar-rSA/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,4 +505,5 @@
505505
<string name="repeat_on_weekday">on %1$s</string>
506506
<string name="repeat_x_times">for %1$s times</string>
507507
<string name="menu_show_compact_view">Compact View</string>
508+
<string name="book_default_name">Book %1$d</string>
508509
</resources>

app/src/main/res/values-ca-rES/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,4 +475,5 @@
475475
<string name="repeat_on_weekday">on %1$s</string>
476476
<string name="repeat_x_times">for %1$s times</string>
477477
<string name="menu_show_compact_view">Compact View</string>
478+
<string name="book_default_name">Book %1$d</string>
478479
</resources>

app/src/main/res/values-cs-rCZ/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,4 +484,5 @@
484484
<string name="repeat_on_weekday">on %1$s</string>
485485
<string name="repeat_x_times">for %1$s times</string>
486486
<string name="menu_show_compact_view">Compact View</string>
487+
<string name="book_default_name">Book %1$d</string>
487488
</resources>

app/src/main/res/values-de/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,4 +474,5 @@ No user-identifiable information will be collected as part of this process!</str
474474
<string name="repeat_on_weekday">on %1$s</string>
475475
<string name="repeat_x_times">for %1$s times</string>
476476
<string name="menu_show_compact_view">Compact View</string>
477+
<string name="book_default_name">Book %1$d</string>
477478
</resources>

app/src/main/res/values-el-rGR/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,4 +488,5 @@ No user-identifiable information will be collected as part of this process!
488488
<string name="repeat_on_weekday">on %1$s</string>
489489
<string name="repeat_x_times">for %1$s times</string>
490490
<string name="menu_show_compact_view">Compact View</string>
491+
<string name="book_default_name">Book %1$d</string>
491492
</resources>

app/src/main/res/values-en-rGB/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,4 +477,5 @@
477477
<string name="repeat_on_weekday">on %1$s</string>
478478
<string name="repeat_x_times">for %1$s times</string>
479479
<string name="menu_show_compact_view">Compact View</string>
480+
<string name="book_default_name">Book %1$d</string>
480481
</resources>

app/src/main/res/values-es-rMX/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,4 +474,5 @@ Este proceso solo recoge información que no permite identificar al usuario</str
474474
<string name="repeat_on_weekday">on %1$s</string>
475475
<string name="repeat_x_times">for %1$s times</string>
476476
<string name="menu_show_compact_view">Compact View</string>
477+
<string name="book_default_name">Book %1$d</string>
477478
</resources>

app/src/main/res/values-es/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,4 +472,5 @@ Este proceso solo recoge información que no permite identificar al usuario</str
472472
<string name="repeat_on_weekday">en %1$s</string>
473473
<string name="repeat_x_times">%1$s veces</string>
474474
<string name="menu_show_compact_view">Vista compacta</string>
475+
<string name="book_default_name">Book %1$d</string>
475476
</resources>

0 commit comments

Comments
 (0)