corrade-nucleus-nucleons

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 19  →  ?path2? @ 20
/pack-rat/003_pack_rat/pack-rat/node_modules/bootstrap-table/docs/_i18n/zh-cn/documentation/localizations.md
@@ -0,0 +1,90 @@
# 多语言 []({{ site.repo }}/blob/develop/docs/_i18n/{{ site.lang }}/documentation/localizations.md)
 
---
 
<table class="table"
id="l"
data-search="true"
data-show-toggle="true"
data-show-columns="true"
data-mobile-responsive="true">
<thead>
<tr>
<th>Name</th>
<th>Parameter</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr>
<td>formatLoadingMessage</td>
<td>-</td>
<td>'Loading, please wait…'</td>
</tr>
<tr>
<td>formatRecordsPerPage</td>
<td>pageNumber</td>
<td>'%s records per page'</td>
</tr>
<tr>
<td>formatShowingRows</td>
<td>pageFrom, pageTo, totalRows</td>
<td>'Showing %s to %s of %s rows'</td>
</tr>
<tr>
<td>formatDetailPagination</td>
<td>totalRows</td>
<td>'Showing %s rows'</td>
</tr>
<tr>
<td>formatSearch</td>
<td>-</td>
<td>'Search'</td>
</tr>
<tr>
<td>formatNoMatches</td>
<td>-</td>
<td>'No matching records found'</td>
</tr>
<tr>
<td>formatRefresh</td>
<td>-</td>
<td>'Refresh'</td>
</tr>
<tr>
<td>formatToggle</td>
<td>-</td>
<td>'Toggle'</td>
</tr>
<tr>
<td>formatColumns</td>
<td>-</td>
<td>'Columns'</td>
</tr>
<tr>
<td>formatAllRows</td>
<td>-</td>
<td>'All'</td>
</tr>
</tbody>
</table>
 
---
 
**PS:**
 
We can import [all locale files](https://github.com/wenzhixin/bootstrap-table/tree/master/src/locale) what you need:
 
```html
<script src="bootstrap-table-en-US.js"></script>
<script src="bootstrap-table-zh-CN.js"></script>
...
```
 
And then use JavaScript to switch locale:
 
```js
$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['en-US']);
// $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-CN']);
// ...
```