Add some label translations (EN/FR)

This commit is contained in:
Tanguy Herbron 2018-07-17 00:43:45 +02:00
parent aa10defb03
commit f8bb7b0487
4 changed files with 18 additions and 7 deletions

View File

@ -139,7 +139,7 @@ public class Informations extends Fragment {
if(currency.getMaxCoinSupply() == 0) if(currency.getMaxCoinSupply() == 0)
{ {
((TextView) view.findViewById(R.id.txtViewTotalSupply)) ((TextView) view.findViewById(R.id.txtViewTotalSupply))
.setText(PlaceholderManager.getSymbolString("Infinity", getActivity())); .setText(PlaceholderManager.getSymbolString(getString(R.string.infinity), getActivity()));
} }
else else
{ {

View File

@ -236,10 +236,10 @@ public class MarketCapitalization extends Fragment {
colors.add(topCurrencies.get(i).getChartColor()); colors.add(topCurrencies.get(i).getChartColor());
} }
entries.add(new PieEntry(100-topCurrenciesDominance, "Others", "others")); entries.add(new PieEntry(100-topCurrenciesDominance, getString(R.string.others), "others"));
colors.add(-12369084); colors.add(-12369084);
PieDataSet set = new PieDataSet(entries, "Market Cap Dominance"); PieDataSet set = new PieDataSet(entries, getString(R.string.market_dominance));
set.setColors(colors); set.setColors(colors);
set.setSliceSpace(1); set.setSliceSpace(1);
set.setDrawValues(false); set.setDrawValues(false);
@ -310,7 +310,7 @@ public class MarketCapitalization extends Fragment {
pieChart.setTouchEnabled(true); pieChart.setTouchEnabled(true);
pieChart.setEntryLabelColor(Color.WHITE); pieChart.setEntryLabelColor(Color.WHITE);
updateDetails(marketCapManager.getMarketCap(), marketCapManager.getDayVolume(), "Global", 0); updateDetails(marketCapManager.getMarketCap(), marketCapManager.getDayVolume(), getString(R.string.global), 0);
((TextView) view.findViewById(R.id.textViewActiveCrypto)) ((TextView) view.findViewById(R.id.textViewActiveCrypto))
.setText(marketCapManager.getActive_crypto()); .setText(marketCapManager.getActive_crypto());
((TextView) view.findViewById(R.id.textViewActiveMarkets)) ((TextView) view.findViewById(R.id.textViewActiveMarkets))
@ -374,7 +374,7 @@ public class MarketCapitalization extends Fragment {
view.findViewById(R.id.currencyIcon).setVisibility(View.GONE); view.findViewById(R.id.currencyIcon).setVisibility(View.GONE);
view.findViewById(R.id.layoutPercentageDominance).setVisibility(View.VISIBLE); view.findViewById(R.id.layoutPercentageDominance).setVisibility(View.VISIBLE);
updateDetails(othersMarketCap, othersVolume, "Other coins", h.getY()); updateDetails(othersMarketCap, othersVolume, getString(R.string.other_coins), h.getY());
pieChart.setDrawCenterText(true); pieChart.setDrawCenterText(true);
} }
@ -390,7 +390,7 @@ public class MarketCapitalization extends Fragment {
view.findViewById(R.id.layoutActiveCrypto).setVisibility(View.VISIBLE); view.findViewById(R.id.layoutActiveCrypto).setVisibility(View.VISIBLE);
view.findViewById(R.id.layoutActiveMarkets).setVisibility(View.VISIBLE); view.findViewById(R.id.layoutActiveMarkets).setVisibility(View.VISIBLE);
updateDetails(marketCapManager.getMarketCap(), marketCapManager.getDayVolume(), "Global", 0); updateDetails(marketCapManager.getMarketCap(), marketCapManager.getDayVolume(), getString(R.string.global), 0);
pieChart.setDrawCenterText(true); pieChart.setDrawCenterText(true);
} }
@ -416,7 +416,7 @@ public class MarketCapitalization extends Fragment {
private SpannableString generateCenterSpannableText() { private SpannableString generateCenterSpannableText() {
SpannableString spannableString = new SpannableString("Market Capitalization Dominance"); SpannableString spannableString = new SpannableString(getString(R.string.market_dominance));
return spannableString; return spannableString;
} }
} }

View File

@ -99,6 +99,12 @@
<string name="restoreBackup">Restaurer une sauvegarde</string> <string name="restoreBackup">Restaurer une sauvegarde</string>
<string name="pref_header_wallet">Paramètre des portes-monnaies</string> <string name="pref_header_wallet">Paramètre des portes-monnaies</string>
<string name="infinity">Infini</string>
<string name="others">Autres</string>
<string name="market_dominance">Dominance du marché</string>
<string name="global">Global</string>
<string name="other_coins">Autres monnaies</string>
<string-array name="time_interval_string_array"> <string-array name="time_interval_string_array">
<item>1 heure</item> <item>1 heure</item>
<item>3 heures</item> <item>3 heures</item>

View File

@ -214,5 +214,10 @@
<string name="confirm">Confirm</string> <string name="confirm">Confirm</string>
<string name="cancel">Cancel</string> <string name="cancel">Cancel</string>
<string name="save">Save</string> <string name="save">Save</string>
<string name="infinity">Infinity</string>
<string name="others">Others</string>
<string name="market_dominance">Market Cap Dominance</string>
<string name="global">Global</string>
<string name="other_coins">Other coins</string>
</resources> </resources>