Show additional info for unit and currency converter (#720)

* Now for conversion patterns such as "TO > FROM" and "TO - FROM" are accepted

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Added help URL for unit converter

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Localized supported units are now shown on a screen that can be invoked from unit converter settings

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Made localizable titles for dimensions and preferences

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Show currency units on list if enabled.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Supported units are now listed inline instead of a separate screen.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

---------

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>
This commit is contained in:
Guillermo Villafuerte
2024-08-12 15:13:02 +02:00
committed by GitHub
parent 1a4f4d5e96
commit 827eb08908
11 changed files with 169 additions and 31 deletions
@@ -608,6 +608,7 @@
<string name="preference_search_unitconverter_summary">Usage: 1.5 kg or 4 cm &gt;&gt; in</string>
<string name="preference_search_currencyconverter">Currency converter</string>
<string name="preference_search_currencyconverter_summary">Periodically download exchange rates to convert currencies</string>
<string name="preference_search_supportedunits">Supported units\n(use abbreviation on search box)</string>
<string name="preference_search_wikipedia">Wikipedia</string>
<string name="preference_search_wikipedia_summary">Search the free encyclopedia</string>
<string name="preference_search_websites">Websites</string>
+14
View File
@@ -3,6 +3,20 @@
<!--
Important note: Unit symbols may not contain spaces.
-->
<!-- DIMENSIONS -->
<string name="dimension_length">Length</string>
<string name="dimension_mass">Mass</string>
<string name="dimension_velocity">Velocity</string>
<string name="dimension_volume">Volume</string>
<string name="dimension_area">Area</string>
<string name="dimension_currency">Currency</string>
<string name="dimension_data">Data</string>
<string name="dimension_bitrate">Bitrate</string>
<string name="dimension_pressure">Pressure</string>
<string name="dimension_energy">Energy</string>
<string name="dimension_frequency">Frequency</string>
<string name="dimension_temperature">Temperature</string>
<string name="dimension_time">Time</string>
<!-- UNITS OF LENGTH -->
<string name="unit_meter_symbol">m</string>
<plurals name="unit_meter">