Skip to content

Commit

Permalink
Update Chinese Simplified translation
Browse files Browse the repository at this point in the history
Extract default book name string for translation
  • Loading branch information
codinguser committed Aug 31, 2016
1 parent 77d9323 commit 4c42484
Show file tree
Hide file tree
Showing 34 changed files with 66 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import android.net.Uri;
import android.support.annotation.NonNull;

import org.gnucash.android.R;
import org.gnucash.android.app.GnuCashApplication;
import org.gnucash.android.db.DatabaseSchema.BookEntry;
import org.gnucash.android.model.Book;
Expand Down Expand Up @@ -111,7 +112,7 @@ public boolean deleteBook(@NonNull String bookUID){

return result;
}

/**
* Sets the book with unique identifier {@code uid} as active and all others as inactive
* <p>If the parameter is null, then the currently active book is not changed</p>
Expand Down Expand Up @@ -191,7 +192,9 @@ public boolean isActive(String bookUID){
SQLiteStatement statement = mDb.compileStatement(sql);

while (true) {
String name = "Book" + " " + bookCount;
Context context = GnuCashApplication.getAppContext();
String name = context.getString(R.string.book_default_name, bookCount);
//String name = "Book" + " " + bookCount;

statement.clearBindings();
statement.bindString(1, name);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-af-rZA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -477,4 +477,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ar-rSA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -505,4 +505,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ca-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -475,4 +475,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-cs-rCZ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -484,4 +484,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -474,4 +474,5 @@ No user-identifiable information will be collected as part of this process!</str
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-el-rGR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -488,4 +488,5 @@ No user-identifiable information will be collected as part of this process!
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-en-rGB/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -477,4 +477,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-es-rMX/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -474,4 +474,5 @@ Este proceso solo recoge información que no permite identificar al usuario</str
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,5 @@ Este proceso solo recoge información que no permite identificar al usuario</str
<string name="repeat_on_weekday">en %1$s</string>
<string name="repeat_x_times">%1$s veces</string>
<string name="menu_show_compact_view">Vista compacta</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-fi-rFI/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -477,4 +477,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -474,4 +474,5 @@ Aucune information permettant d\'identifier l\'utilisateur ne sera recueillis da
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-hu-rHU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -479,4 +479,5 @@ No user-identifiable information will be collected as part of this process!
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-it-rIT/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -474,4 +474,5 @@
<string name="repeat_on_weekday">il %1$s</string>
<string name="repeat_x_times">per %1$s volte</string>
<string name="menu_show_compact_view">Visualizzazione compatta</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-iw-rIL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -491,4 +491,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,5 @@
<string name="repeat_on_weekday">%1$s に</string>
<string name="repeat_x_times">%1$s 回</string>
<string name="menu_show_compact_view">コンパクト表示</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ko-rKR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -464,4 +464,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-lv-rLV/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -484,4 +484,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-nb/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-nl-rNL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -478,4 +478,5 @@ No user-identifiable information will be collected as part of this process!
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-no-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-pl-rPL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -478,4 +478,5 @@ Konto docelowe używa innej waluty niż konto wyjściowe</string>
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,5 @@ Neste processo não serão recolhidas informações do utilizador!</string>
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-pt-rPT/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -471,4 +471,5 @@ Neste processo não serão recolhidas informações do utilizador!</string>
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ro-rRO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -484,4 +484,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,5 @@
<string name="repeat_on_weekday">в %1$s</string>
<string name="repeat_x_times">для %1$s раз</string>
<string name="menu_show_compact_view">Компактный вид</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-sr-rSP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -484,4 +484,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-sv-rSE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -477,4 +477,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-tr-rTR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -477,4 +477,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-uk-rUA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -480,4 +480,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-vi-rVN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -470,4 +470,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
56 changes: 29 additions & 27 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@
<string name="summary_xml_ofx_header">当导出数据到GnuCash桌面版以外的程序时需要开启这个选项。</string>
<string name="title_whats_new">新功能</string>
<string name="whats_new">
- Support for multiple different books \n
- Adds ownCloud as destination for exports\n
- Compact view for transactions list\n
- Re-design of passcode lock screen\n
- Improved handling of scheduled transactions\n
- Multiple bug fixes and improvements\n
- 支持多个账簿 \n
- 支持ownCloud\n
- 紧凑列表视图\n
- 重新设计的锁屏界面\n
- 改进计划交易功能\n
- 多个缺陷修复以及性能提升\n
</string>
<string name="label_dismiss">知道了</string>
<string name="toast_transanction_amount_required">输入金额才能保存交易</string>
Expand Down Expand Up @@ -174,7 +174,7 @@
<string name="label_no_recurring_transactions">没有要显示的计划交易</string>
<string name="toast_recurring_transaction_deleted">计划交易已删除</string>
<string name="label_placeholder_account">占位符</string>
<string name="label_default_transfer_account">默认的转账帐户</string>
<string name="label_default_transfer_account">默认的转账科目</string>
<plurals name="label_sub_accounts">
<item quantity="other">%d 子科目</item>
</plurals>
Expand All @@ -185,7 +185,7 @@
<item>资产</item>
<item>负债</item>
<item>收入</item>
<item>费用</item>
<item>支出</item>
<item>应付账款</item>
<item>应收账款</item>
<item>所有者权益</item>
Expand All @@ -210,7 +210,8 @@
<string name="title_all_accounts">所有</string>
<string name="summary_create_default_accounts">创建通用的科目结构</string>
<string name="title_create_default_accounts">创建默认科目</string>
<string name="msg_confirm_create_default_accounts_setting">A new book will be opened with the default accounts\n\nYour current accounts and transactions will not be modified!</string>
<string name="msg_confirm_create_default_accounts_setting">将会创建新的账簿附带默认的科目
现在这个账簿不会受到影响</string>
<string name="menu_scheduled_transactions">计划的交易</string>
<string name="msg_confirm_create_default_accounts_first_run">欢迎使用GnuCash Android! \n你可以选择:1)创建常用的科目结构,2)导入自定义的科目结构。\或者稍后再决定,两种选择也能在设置中找到。
</string>
Expand Down Expand Up @@ -271,7 +272,7 @@
<string name="label_delete_account_transactions_description">科目中包含交易信息。 \n如何处理交易信息</string>
<string name="label_delete_account_subaccounts_description">还存在子科目。 \n如何处理这些子科目</string>
<string name="label_delete_transactions">删除交易</string>
<string name="toast_disable_double_entry_to_save_transaction">请选择一个转账科目,否则在“设置”中关闭双航模式(复式簿记)</string>
<string name="toast_disable_double_entry_to_save_transaction">请选择一个转账科目,否则在“设置”中关闭双行模式(复式簿记)</string>
<string name="label_tap_to_create_schedule">点击然后创建计划任务</string>
<string name="title_restore_backup">从备份恢复&#8230;</string>
<string name="header_backup_and_export_settings">备份和导出</string>
Expand Down Expand Up @@ -437,32 +438,33 @@
<string name="title_confirm_delete_book">确认删除帐簿</string>
<string name="msg_all_book_data_will_be_deleted">该帐簿中所有科目和交易都会被删除!</string>
<string name="btn_delete_book">删除帐簿</string>
<string name="label_last_export_time">最后导出:</string>
<string name="label_last_export_time">最后导出时间:</string>
<string name="menu_title_enable_sync">启用同步</string>
<string name="menu_title_new_book">新建帐簿</string>
<string name="toast_transaction_has_no_splits_and_cannot_open">所选交易没有分割项,无法开启</string>
<string name="label_split_count">%1$d 项分割</string>
<string name="label_inside_account_with_name">于 %1$s</string>
<plurals name="book_account_stats">
<item quantity="other">%d 个科目</item>
<item quantity="other">%d个科目</item>
</plurals>
<plurals name="book_transaction_stats">
<item quantity="other">%d 笔交易</item>
<item quantity="other">%d笔交易</item>
</plurals>
<string-array name="report_account_types">
<item>EXPENSE</item>
<item>INCOME</item>
<item>支出</item>
<item>收入</item>
</string-array>
<string name="toast_connected_to_google_drive">Connected to Google Drive</string>
<string name="toast_unable_to_connect_to_google_drive">Unable to connect to Google Drive</string>
<string name="toast_enter_amount_to_split">Please enter an amount to split</string>
<string name="label_export_target_external_service">external service</string>
<string name="toast_updated_transaction_recurring_schedule">Updated transaction recurring schedule</string>
<string name="label_export_transactions_since_date">Since</string>
<string name="switch_export_transactions_from_all_time">All time</string>
<string name="label_recommend_app">Recommend in Play Store</string>
<string name="repeat_until_date">until %1$s</string>
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="toast_connected_to_google_drive">已连接到Google Drive</string>
<string name="toast_unable_to_connect_to_google_drive">无法连接到Google Drive</string>
<string name="toast_enter_amount_to_split">请输入拆分金额</string>
<string name="label_export_target_external_service">其他服务……</string>
<string name="toast_updated_transaction_recurring_schedule">计划交易已经更新</string>
<string name="label_export_transactions_since_date">时间点:</string>
<string name="switch_export_transactions_from_all_time">全部</string>
<string name="label_recommend_app">在Paly Store上推荐</string>
<string name="repeat_until_date">直到%1$s</string>
<string name="repeat_on_weekday">在%1$s</string>
<string name="repeat_x_times">共%1$s次</string>
<string name="menu_show_compact_view">紧凑视图</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -467,4 +467,5 @@ No user-identifiable information will be collected as part of this process!
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -485,4 +485,5 @@
<string name="repeat_on_weekday">on %1$s</string>
<string name="repeat_x_times">for %1$s times</string>
<string name="menu_show_compact_view">Compact View</string>
<string name="book_default_name">Book %1$d</string>
</resources>

0 comments on commit 4c42484

Please sign in to comment.