Skip to content

Commit

Permalink
Extract string resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
rivaldi8 committed Feb 22, 2016
1 parent a0b817e commit 33b31da
Show file tree
Hide file tree
Showing 34 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
mToCurrencyLabel.setText(mTargetCurrency.getCurrencyCode());
mConvertedAmountCurrencyLabel.setText(mTargetCurrency.getCurrencyCode());

mSampleExchangeRate.setText("e.g. 1 " + fromCurrency.getCurrencyCode() + " = " + " x.xx " + mTargetCurrency.getCurrencyCode());
mSampleExchangeRate.setText(String.format(getString(R.string.sample_exchange_rate),
fromCurrency.getCurrencyCode(),
mTargetCurrency.getCurrencyCode()));
final InputLayoutErrorClearer textChangeListener = new InputLayoutErrorClearer();

CommoditiesDbAdapter commoditiesDbAdapter = CommoditiesDbAdapter.getInstance();
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 @@ -386,6 +386,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -406,6 +406,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -386,6 +386,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Mes actual</item>
<item>Últims 3 mesos</item>
Expand Down
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 @@ -391,6 +391,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -383,6 +383,7 @@ No user-identifiable information will be collected as part of this process!</str
<string name="menu_move_transaction">Verschieben…</string>
<string name="menu_duplicate_transaction">Kopieren</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Aktueller Monat</item>
<item>Letzte 3 Monate</item>
Expand Down
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 @@ -397,6 +397,7 @@ No user-identifiable information will be collected as part of this process!
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -386,6 +386,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -383,6 +383,7 @@ Este proceso solo recoge información que no permite identificar al usuario</str
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Mes actual</item>
<item>Últimos 3 meses</item>
Expand Down
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 @@ -383,6 +383,7 @@ Este proceso solo recoge información que no permite identificar al usuario</str
<string name="menu_move_transaction">Mover...</string>
<string name="menu_duplicate_transaction">Duplicar</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Mes actual</item>
<item>Últimos 3 meses</item>
Expand Down
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 @@ -386,6 +386,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -383,6 +383,7 @@ Aucune information permettant d\'identifier l\'utilisateur ne sera recueillis da
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Mois actuel</item>
<item>3 derniers mois</item>
Expand Down
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 @@ -388,6 +388,7 @@ No user-identifiable information will be collected as part of this process!
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -383,6 +383,7 @@
<string name="menu_move_transaction">Sposta...</string>
<string name="menu_duplicate_transaction">Duplica</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Mese corrente</item>
<item>Ultimi 3 mesi</item>
Expand Down
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 @@ -386,6 +386,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -376,6 +376,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -381,6 +381,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -391,6 +391,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -377,6 +377,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Gjeldende måned</item>
<item>Siste 3 måneder</item>
Expand Down
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 @@ -387,6 +387,7 @@ No user-identifiable information will be collected as part of this process!
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Huidige maand</item>
<item>Afgelopen 3 maanden</item>
Expand Down
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 @@ -377,6 +377,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Gjeldende måned</item>
<item>Siste 3 måneder</item>
Expand Down
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 @@ -384,6 +384,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Bieżący miesiąc</item>
<item>Ostatnie 3 miesiące</item>
Expand Down
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 @@ -381,6 +381,7 @@ Neste processo não serão recolhidas informações do utilizador!</string>
<string name="menu_move_transaction">Mover...</string>
<string name="menu_duplicate_transaction">Duplicar</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Mês atual</item>
<item>Last 3 meses</item>
Expand Down
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 @@ -381,6 +381,7 @@ Neste processo não serão recolhidas informações do utilizador!</string>
<string name="menu_move_transaction">Mover...</string>
<string name="menu_duplicate_transaction">Duplicar</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Mês actual</item>
<item>Últimos 3 meses</item>
Expand Down
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 @@ -391,6 +391,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -389,6 +389,7 @@
<string name="menu_move_transaction">Переместить...</string>
<string name="menu_duplicate_transaction">Повтор</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Текущий месяц</item>
<item>Последний квартал</item>
Expand Down
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 @@ -391,6 +391,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -386,6 +386,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -386,6 +386,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -387,6 +387,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Поточний місяць</item>
<item>Останній квартал</item>
Expand Down
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 @@ -381,6 +381,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@
<string name="menu_move_transaction">移动…</string>
<string name="menu_duplicate_transaction">复制</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>本月</item>
<item>最近3个月</item>
Expand Down
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 @@ -378,6 +378,7 @@ No user-identifiable information will be collected as part of this process!
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down
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 @@ -392,6 +392,7 @@
<string name="menu_move_transaction">Move...</string>
<string name="menu_duplicate_transaction">Duplicate</string>
<string name="error_invalid_exchange_rate">Invalid exchange rate</string>
<string name="sample_exchange_rate">e.g. 1 %1$s = x.xx %2$s</string>
<string-array name="report_time_range">
<item>Current month</item>
<item>Last 3 months</item>
Expand Down

0 comments on commit 33b31da

Please sign in to comment.